From 6dda990934338637f6eca839c71d74cf29243ad3 Mon Sep 17 00:00:00 2001 From: drof Date: Sun, 18 Oct 2026 09:19:10 +0000 Subject: [PATCH] =?UTF-8?q?input-telemetry-handlers/generic.c=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- input-telemetry-handlers/generic.c | 86 ++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 input-telemetry-handlers/generic.c diff --git a/input-telemetry-handlers/generic.c b/input-telemetry-handlers/generic.c new file mode 100644 index 0000000..fed5f9c --- /dev/null +++ b/input-telemetry-handlers/generic.c @@ -0,0 +1,86 @@ +void __fastcall R5::InputTelemetryHandlers::ProcessWndProc(__int64 a1) +{ + int *v2; // rbx + __int64 v3; // r12 + int i; // r14d + int *v5; // rbp + int v6; // edi + __int128 v7; // xmm0 + char v8; // si + RTL_SRWLOCK *v9; // rcx + __int64 v10; // rdi + + if ( qword_4BCB4C8 != nullptr ) + { + v2 = (int *)(a1 + 4224); + v3 = 0; + for ( i = 0; i < 4; ++i ) + { + if ( *((_BYTE *)v2 + 4) == 0 ) + goto LABEL_19; + if ( qword_4BCB4C8 == nullptr ) + goto LABEL_18; + v5 = &v2[4 * v2[10] + 2]; + if ( *((_BYTE *)v2 + 832) != 0 ) + { + if ( byte_695982C != 0 ) + goto LABEL_21; + v6 = R5::InputTelemetryHandlers::ProcessControllerInput( + a1: (unsigned int *)v2 + 210, + a2: (__int64)&v2[4 * v2[10] + 2]); + } + else + { + if ( *((_BYTE *)v2 + 89) != 0 ) + { + if ( byte_695982C != 0 ) + goto LABEL_21; + AcquireSRWLockExclusive(SRWLock: (PSRWLOCK)v2 + 32); + v7 = *((_OWORD *)v2 + 20); + v8 = *((_BYTE *)v2 + 336); + v9 = (RTL_SRWLOCK *)(v2 + 64); +LABEL_11: + *(_OWORD *)v5 = v7; + ReleaseSRWLockExclusive(SRWLock: v9); + v6 = v8 != 0 ? 0x48F : 0; + goto LABEL_16; + } + if ( *((_BYTE *)v2 + 448) != 0 ) + { + if ( byte_695982C != 0 ) + goto LABEL_21; + AcquireSRWLockExclusive(SRWLock: (PSRWLOCK)v2 + 80); + v7 = *((_OWORD *)v2 + 44); + v8 = *((_BYTE *)v2 + 720); + v9 = (RTL_SRWLOCK *)(v2 + 160); + goto LABEL_11; + } + v6 = qword_4BCB4C8(a1: (unsigned int)i, a2: &v2[4 * v2[10] + 2]); + R5::SomeInputCollectionStuff2(a1: (__int64)&R5::InputTelemetry::Queue, a2: (__int64)v5, a3: v3); + } +LABEL_16: + if ( v6 == 0 ) + { +LABEL_21: + sub_1CBFC00(a1, a2: v2); + sub_1CBFA50(a1, a2: v2); + goto LABEL_19; + } + if ( v6 == 1167 ) + { +LABEL_18: + v10 = *v2; + sub_1CBF3B0(a1, a2: v2); + sub_1CBCEA0(a1, a2: (unsigned int)(32 * v10 + 115), a3: (unsigned int)(32 * v10 + 146)); + sub_1CBCEA0(a1, a2: (unsigned int)(12 * v10 + 259), a3: (unsigned int)(12 * v10 + 270)); + sub_1CBCF90(a1, a2: (unsigned int)(6 * v10 + 2), a3: (unsigned int)(6 * v10 + 7)); + memset(Dst: (void *)(a1 + 224 * v10 + 3312), Val: 0, Size: 0xE0u); + sub_1CBC1F0(a1, a2: 101, a3: *(_DWORD *)(a1 + 3292), a4: v10, a5: 0, a6: 0); + } +LABEL_19: + ++v3; + v2 += 224; + } + } +} + \ No newline at end of file