Function at 0x1007db66
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x10124040]
xor eax, esp
mov dword [esp + 0x54], eax
push esi
mov dword [esp + 0x14], ecx
mov ecx, dword [0x101d9974]
mov dword [esp + 0x50], ecx
push edi
mov edi, edx
test ecx, ecx
je case.0x1007e225.527
mov edx, dword [ecx + 0x74]
lea esi, [ecx + 8]
mov dword [esp + 0x50], edx
cmp edi, 0x200
ja 0x1007e20d
je case.0x1007db5f.160
lea eax, [edi - 7]
cmp eax, 0xfe
ja case.0x1007e225.527
movzx eax, byte [eax + 0x1007e438]
jmp dword [eax*4 + 0x1007e420]
cmp edi, 0x100
je 0x1007db7b
mov byte [esp + 0x17], 0
cmp edi, 0x104
jne 0x1007db80
mov byte [esp + 0x17], 1
cmp dword [ebp + 8], 0x100
jae case.0x1007e225.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 0x1007dbca
test al, al
je 0x1007dbb7
movss xmm3, dword [0x10116e2c]
jmp 0x1007dbba
xorps xmm3, xmm3
push dword [esp + 0x50]
mov ecx, esi
push 0x1000
call fcn.10053cb0
push 0x10
call edi
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [esp + 0x50], al
je 0x1007dc01
test al, al
je 0x1007dbee
movss xmm3, dword [0x10116e2c]
jmp 0x1007dbf1
xorps xmm3, xmm3
push dword [esp + 0x50]
mov ecx, esi
push 0x2000
call fcn.10053cb0
push 0x12
call edi
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [esp + 0x50], al
je 0x1007dc38
test al, al
je 0x1007dc25
movss xmm3, dword [0x10116e2c]
jmp 0x1007dc28
xorps xmm3, xmm3
push dword [esp + 0x50]
mov ecx, esi
push 0x4000
call fcn.10053cb0
push 0x5d
call edi
shr eax, 0xf
and al, 1
cmp byte [esi + 0x3761], 0
mov byte [esp + 0x50], al
je 0x1007dc72
test al, al
je 0x1007dc5c
movss xmm0, dword [0x10116e2c]
jmp 0x1007dc5f
xorps xmm0, xmm0
push dword [esp + 0x50]
movaps xmm3, xmm0
mov ecx, esi
push 0x8000
call fcn.10053cb0
mov esi, dword [ebp + 8]
cmp esi, 0xd
jne 0x1007dc8d
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne esi, eax
mov ecx, esi
call fcn.1007d5c0
test eax, eax
je 0x1007dca8
mov dl, byte [esp + 0x17]
push ecx
push esi
mov ecx, eax
call fcn.1007ca50
add esp, 8
cmp esi, 0x10
jne 0x1007dd16
push 0xa0
call edi
mov cl, byte [esp + 0x17]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1007dcd6
push ecx
mov dl, cl
mov ecx, 0x210
push 0xa0
call fcn.1007ca50
add esp, 8
push 0xa1
call edi
mov cl, byte [esp + 0x17]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1007e225.527
push ecx
mov dl, cl
mov ecx, 0x214
push 0xa1
call fcn.1007ca50
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f4f36
mov esp, ebp
pop ebp
ret
cmp esi, 0x11
jne 0x1007dd84
push 0xa2
call edi
mov cl, byte [esp + 0x17]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1007dd44
push ecx
mov dl, cl
mov ecx, 0x20f
push 0xa2
call fcn.1007ca50
add esp, 8
push 0xa3
call edi
mov cl, byte [esp + 0x17]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1007e225.527
push ecx
mov dl, cl
mov ecx, 0x213
push 0xa3
call fcn.1007ca50
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f4f36
mov esp, ebp
pop ebp
ret
cmp esi, 0x12
jne case.0x1007e225.527
push 0xa4
call edi
mov cl, byte [esp + 0x17]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1007ddb6
push ecx
mov dl, cl
mov ecx, 0x211
push 0xa4
call fcn.1007ca50
add esp, 8
push 0xa5
call edi
mov cl, byte [esp + 0x17]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1007e225.527
push ecx
mov dl, cl
mov ecx, 0x215
push 0xa5
call fcn.1007ca50
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f4f36
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 0x1007de2f
push 0x5db
push str.D:csgo_rax_sourcelegacyimguiimgui.cpp
push str.Ctx___0
call eax
mov ecx, dword [0x101d9974]
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 0x1007de91
lea edi, [esi + esi*2]
shl edi, 3
nop word [eax + eax]
test esi, esi
js 0x1007de5c
cmp esi, dword [ecx + 0x3780]
jl 0x1007de74
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 0x1007dedd
mov eax, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
sub edi, 0x18
sub esi, 1
jns 0x1007de50
mov edx, dword [esp + 0x50]
cmp byte [edx + 0x3768], 0
sete al
mov cl, byte [esp + 0x17]
cmp al, cl
je case.0x1007e225.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 0x1007def9
inc ecx
test edi, edi
je 0x1007dee7
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x1007deec
mov al, byte [eax + edi + 8]
mov edx, dword [esp + 0x50]
jmp 0x1007de9b
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1006c280
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.100f4f36
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x1007e004
mov ecx, dword [ebp + 8]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja case.0x1007e225.527
movzx edi, cx
mov eax, edi
test ax, ax
jne 0x1007df63
cmp word [esi + 0x3764], ax
je case.0x1007e225.527
cmp byte [esi + 0x3761], 0
je case.0x1007e225.527
movzx edx, word [esi + 0x3764]
mov ecx, eax
and ecx, 0xfc00
mov dword [esp + 0x50], 0xd800
cmp cx, word [esp + 0x50]
jne 0x1007dfb9
test dx, dx
je 0x1007df9f
push 0xfffd
mov ecx, esi
call fcn.10053b60
mov word [esi + 0x3764], di
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f4f36
mov esp, ebp
pop ebp
ret
test dx, dx
je 0x1007dfe6
mov eax, 0xdc00
cmp cx, ax
je 0x1007dfd8
push 0xfffd
mov ecx, esi
call fcn.10053b60
mov eax, edi
jmp 0x1007dfdd
mov eax, 0xfffd
xor ecx, ecx
mov word [esi + 0x3764], cx
movzx eax, ax
mov ecx, esi
push eax
call fcn.10053b60
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f4f36
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 0x1007e049
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.0x1007e225.527
cmp byte [esi + 0x3761], 0
je case.0x1007e225.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 0x1007e0ba
inc ecx
test edi, edi
je 0x1007e0a8
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x1007e0ad
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.1006c280
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.100f4f36
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0xc], 1
jne case.0x1007e225.527
call fcn.1007c900
test al, al
je case.0x1007e225.527
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f4f36
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 0x1007e1af
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 0x1007e199
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 0x1007e1e5
lea eax, [esp + 0x54]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je case.0x1007e225.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.10053f40
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f4f36
mov esp, ebp
pop ebp
ret
lea eax, [edi - 0x201]
cmp eax, 0xa2
ja case.0x1007e225.527
movzx eax, byte [eax + 0x1007e554]
jmp dword [eax*4 + 0x1007e538]
xor eax, eax
cmp edi, 0x2a3
setne al
inc eax
cmp dword [edx + 8], eax
jne case.0x1007e225.527
mov ecx, dword [esp + 0x18]
cmp dword [edx + 4], ecx
jne 0x1007e251
mov dword [edx + 4], 0
movss xmm1, dword [0x10117040]
mov ecx, esi
movaps xmm2, xmm1
mov dword [edx + 8], 0
call fcn.10053f40
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f4f36
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x54], 0
cmp edi, 0x204
je 0x1007e295
cmp edi, 0x206
jne 0x1007e29d
mov dword [esp + 0x54], 1
cmp edi, 0x207
je 0x1007e2ad
cmp edi, 0x209
jne 0x1007e2b5
mov dword [esp + 0x54], 2
cmp edi, 0x20b
je 0x1007e2c5
cmp edi, 0x20d
jne 0x1007e2d9
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 0x1007e2f8
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x1007e2f4
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.10054130
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f4f36
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp edi, 0x205
sete cl
mov dword [esp + 0x54], ecx
cmp edi, 0x208
jne 0x1007e340
mov ecx, 2
jmp 0x1007e358
cmp edi, 0x20c
jne 0x1007e35c
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 0x1007e37f
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esp + 0x18]
jne 0x1007e37b
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 0x54]
push 0
push ecx
mov ecx, esi
call fcn.10054130
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f4f36
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 [0x10116d28]
call fcn.10054250
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f4f36
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 [0x10116fd8]
call fcn.10054250
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.100f4f36
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 7
jne case.0x1007e225.527
mov byte [edx + 0x25], 1
mov ecx, dword [esp + 0x5c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.100f4f36
mov esp, ebp
pop ebp
ret