Function at 0x1007cf50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x10122040]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
mov dword [esp + 0x14], ecx
mov ecx, dword [0x101d76bc]
mov dword [esp + 0x50], ecx
push edi
mov edi, edx
test ecx, ecx
je case.0x1007d675.527
mov edx, dword [ecx + 0x74]
lea esi, [ecx + 8]
mov dword [esp + 0x50], edx
cmp edi, 0x200
ja 0x1007d65d
je case.0x1007cfaf.160
lea eax, [edi - 7]
cmp eax, 0xfe
ja case.0x1007d675.527
movzx eax, byte [eax + 0x1007d888]
jmp dword [eax*4 + 0x1007d870]
cmp edi, 0x100
je 0x1007cfcb
mov byte [esp + 0x17], 0
cmp edi, 0x104
jne 0x1007cfd0
mov byte [esp + 0x17], 1
cmp dword [ebp + 8], 0x100
jae case.0x1007d675.527
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [esp + 0x50], al
je 0x1007d01a
test al, al
je 0x1007d007
movss xmm3, dword [0x10114dac]
jmp 0x1007d00a
xorps xmm3, xmm3
push dword [esp + 0x50]
mov ecx, esi
push 0x1000
call fcn.10053110
push 0x10
call edi
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [esp + 0x50], al
je 0x1007d051
test al, al
je 0x1007d03e
movss xmm3, dword [0x10114dac]
jmp 0x1007d041
xorps xmm3, xmm3
push dword [esp + 0x50]
mov ecx, esi
push 0x2000
call fcn.10053110
push 0x12
call edi
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [esp + 0x50], al
je 0x1007d088
test al, al
je 0x1007d075
movss xmm3, dword [0x10114dac]
jmp 0x1007d078
xorps xmm3, xmm3
push dword [esp + 0x50]
mov ecx, esi
push 0x4000
call fcn.10053110
push 0x5d
call edi
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [esp + 0x50], al
je 0x1007d0c2
test al, al
je 0x1007d0ac
movss xmm0, dword [0x10114dac]
jmp 0x1007d0af
xorps xmm0, xmm0
push dword [esp + 0x50]
movaps xmm3, xmm0
mov ecx, esi
push 0x8000
call fcn.10053110
mov esi, dword [ebp + 8]
cmp esi, 0xd
jne 0x1007d0dd
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne esi, eax
mov ecx, esi
call fcn.1007ca10
test eax, eax
je 0x1007d0f8
mov dl, byte [esp + 0x17]
push ecx
push esi
mov ecx, eax
call fcn.1007bea0
add esp, 8
cmp esi, 0x10
jne 0x1007d166
push 0xa0
call edi
mov cl, byte [esp + 0x17]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1007d126
push ecx
mov dl, cl
mov ecx, 0x210
push 0xa0
call fcn.1007bea0
add esp, 8
push 0xa1
call edi
mov cl, byte [esp + 0x17]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1007d675.527
push ecx
mov dl, cl
mov ecx, 0x214
push 0xa1
call fcn.1007bea0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f3306
mov esp, ebp
pop ebp
ret
cmp esi, 0x11
jne 0x1007d1d4
push 0xa2
call edi
mov cl, byte [esp + 0x17]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1007d194
push ecx
mov dl, cl
mov ecx, 0x20f
push 0xa2
call fcn.1007bea0
add esp, 8
push 0xa3
call edi
mov cl, byte [esp + 0x17]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1007d675.527
push ecx
mov dl, cl
mov ecx, 0x213
push 0xa3
call fcn.1007bea0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f3306
mov esp, ebp
pop ebp
ret
cmp esi, 0x12
jne case.0x1007d675.527
push 0xa4
call edi
mov cl, byte [esp + 0x17]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1007d206
push ecx
mov dl, cl
mov ecx, 0x211
push 0xa4
call fcn.1007bea0
add esp, 8
push 0xa5
call edi
mov cl, byte [esp + 0x17]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1007d675.527
push ecx
mov dl, cl
mov ecx, 0x215
push 0xa5
call fcn.1007bea0
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f3306
mov esp, ebp
pop ebp
ret
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
cmp edi, 7
sete byte [esp + 0x17]
cmp dword [esi + 0xdb0], 0
jne 0x1007d27f
push 0x5db
push str.D:csgo_rax_sourcelegacyimguiimgui.cpp
push str.Ctx___0
call eax
mov ecx, dword [0x101d76bc]
add esp, 0xc
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov dword [esp + 0x54], ecx
mov edx, dword [esi + 0xdb0]
mov esi, dword [ecx + 0x3780]
sub esi, 1
mov dword [esp + 0x50], edx
js 0x1007d2e1
lea edi, [esi + esi*2]
shl edi, 3
nop word [eax + eax]
test esi, esi
js 0x1007d2ac
cmp esi, dword [ecx + 0x3780]
jl 0x1007d2c4
push 0x704
push str.D:csgo_rax_sourcelegacyimguiimgui.h
push str.i___0__i___Size
call eax
mov ecx, dword [esp + 0x60]
add esp, 0xc
mov eax, dword [ecx + 0x3788]
cmp dword [eax + edi], 6
je 0x1007d32d
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
sub edi, 0x18
sub esi, 1
jns 0x1007d2a0
mov edx, dword [esp + 0x50]
cmp byte [edx + 0x3768], 0
sete al
mov cl, byte [esp + 0x17]
cmp al, cl
je case.0x1007d675.527
mov edi, dword [edx + 0x3784]
lea esi, [edx + 0x3780]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
mov byte [esp + 0x28], cl
mov ecx, dword [esi]
mov dword [esp + 0x20], 6
cmp ecx, edi
jne 0x1007d349
inc ecx
test edi, edi
je 0x1007d337
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x1007d33c
mov al, byte [eax + edi + 8]
mov edx, dword [esp + 0x50]
jmp 0x1007d2eb
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1006b6e0
mov eax, dword [esi]
movups xmm0, xmmword [esp + 0x20]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 8]
movups xmmword [eax + ecx*8], xmm0
xorps xmm0, xmm0
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [esi]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f3306
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x1007d454
mov ecx, dword [ebp + 8]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja case.0x1007d675.527
movzx edi, cx
mov eax, edi
test ax, ax
jne 0x1007d3b3
cmp word [esi + 0x3764], ax
je case.0x1007d675.527
cmp byte [esi + 0x3761], 0
je case.0x1007d675.527
movzx edx, word [esi + 0x3764]
mov ecx, eax
and ecx, 0xfc00
mov dword [esp + 0x50], 0xd800
cmp cx, word [esp + 0x50]
jne 0x1007d409
test dx, dx
je 0x1007d3ef
push 0xfffd
mov ecx, esi
call fcn.10052fc0
mov word [esi + 0x3764], di
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f3306
mov esp, ebp
pop ebp
ret
test dx, dx
je 0x1007d436
mov eax, 0xdc00
cmp cx, ax
je 0x1007d428
push 0xfffd
mov ecx, esi
call fcn.10052fc0
mov eax, edi
jmp 0x1007d42d
mov eax, 0xfffd
xor ecx, ecx
mov word [esi + 0x3764], cx
movzx eax, ax
mov ecx, esi
push eax
call fcn.10052fc0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f3306
mov esp, ebp
pop ebp
ret
push 1
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0
push eax
push 1
lea eax, [ebp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [esi + 0xdb0], 0
movzx edi, word [esp + 0x50]
jne 0x1007d499
push 0x4dc
push str.D:csgo_rax_sourcelegacyimguiimgui.cpp
push str.Ctx___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
test edi, edi
je case.0x1007d675.527
cmp byte [esi + 0x3761], 0
je case.0x1007d675.527
mov esi, dword [esi + 0xdb0]
xorps xmm0, xmm0
add esi, 0x3780
mov dword [esp + 0x28], edi
movlpd qword [esp + 0x2c], xmm0
mov dword [esp + 0x34], 0
mov dword [esp + 0x20], 5
mov ecx, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x24], 2
cmp ecx, edi
jne 0x1007d50a
inc ecx
test edi, edi
je 0x1007d4f8
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x1007d4fd
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1006b6e0
mov eax, dword [esi]
movups xmm0, xmmword [esp + 0x20]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 8]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [esp + 0x30]
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [esi]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f3306
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0xc], 1
jne case.0x1007d675.527
call fcn.1007bd50
test al, al
je case.0x1007d675.527
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f3306
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp edi, 0x200
mov dword [edx + 4], ecx
mov edx, dword [edx + 8]
setne al
inc eax
mov dword [esp + 0x1c], eax
cmp edx, eax
je 0x1007d5ff
cmp edi, 0x200
mov dword [esp + 0x54], 0x12
mov eax, 2
mov dword [esp + 0x40], 0x10
cmovne eax, dword [esp + 0x54]
mov dword [esp + 0x24], eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [esp + 0x44], 0x80000000
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x20], 0x10
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0
test edx, edx
je 0x1007d5e9
lea ecx, [esp + 0x40]
push ecx
call eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
lea ecx, [esp + 0x20]
push ecx
call eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
movsx edx, ax
shr eax, 0x10
cwde
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
cmp edi, 0xa0
jne 0x1007d635
lea eax, [esp + 0x54]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je case.0x1007d675.527
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
movd xmm2, eax
mov ecx, esi
movd xmm1, edx
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.100533a0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f3306
mov esp, ebp
pop ebp
ret
lea eax, [edi - 0x201]
cmp eax, 0xa2
ja case.0x1007d675.527
movzx eax, byte [eax + 0x1007d9a4]
jmp dword [eax*4 + 0x1007d988]
xor eax, eax
cmp edi, 0x2a3
setne al
inc eax
cmp dword [edx + 8], eax
jne case.0x1007d675.527
mov ecx, dword [esp + 0x18]
cmp dword [edx + 4], ecx
jne 0x1007d6a1
mov dword [edx + 4], 0
movss xmm1, dword [0x10114fc0]
mov ecx, esi
movaps xmm2, xmm1
mov dword [edx + 8], 0
call fcn.100533a0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f3306
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x54], 0
cmp edi, 0x204
je 0x1007d6e5
cmp edi, 0x206
jne 0x1007d6ed
mov dword [esp + 0x54], 1
cmp edi, 0x207
je 0x1007d6fd
cmp edi, 0x209
jne 0x1007d705
mov dword [esp + 0x54], 2
cmp edi, 0x20b
je 0x1007d715
cmp edi, 0x20d
jne 0x1007d729
mov eax, dword [ebp + 8]
shr eax, 0x10
dec eax
neg eax
sbb eax, eax
neg eax
add eax, 3
mov dword [esp + 0x54], eax
cmp dword [edx + 0xc], 0
jne 0x1007d748
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x1007d744
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
mov edx, dword [esp + 0x50]
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x54]
bts eax, ecx
push 1
push ecx
mov ecx, esi
mov dword [edx + 0xc], eax
call fcn.10053590
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f3306
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp edi, 0x205
sete cl
mov dword [esp + 0x54], ecx
cmp edi, 0x208
jne 0x1007d790
mov ecx, 2
jmp 0x1007d7a8
cmp edi, 0x20c
jne 0x1007d7ac
mov ecx, dword [ebp + 8]
shr ecx, 0x10
dec ecx
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 3
mov dword [esp + 0x54], ecx
mov eax, dword [edx + 0xc]
btr eax, ecx
mov dword [edx + 0xc], eax
test eax, eax
jne 0x1007d7cf
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esp + 0x18]
jne 0x1007d7cb
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 0x54]
push 0
push ecx
mov ecx, esi
call fcn.10053590
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f3306
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
xorps xmm1, xmm1
shr eax, 0x10
mov ecx, esi
cwde
movd xmm2, eax
cvtdq2ps xmm2, xmm2
mulss xmm2, dword [0x10114ca8]
call fcn.100536b0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f3306
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
xorps xmm2, xmm2
shr eax, 0x10
mov ecx, esi
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
mulss xmm1, dword [0x10114f58]
call fcn.100536b0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f3306
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 7
jne case.0x1007d675.527
mov byte [edx + 0x25], 1
mov ecx, dword [esp + 0x5c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.100f3306
mov esp, ebp
pop ebp
ret