Function at 0x1002f350
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x38
push esi
push edi
call fcn.10014460
test eax, eax
je case.0x1002f7f3.527
call fcn.10014920
mov edi, dword [eax + 0x70]
mov dword [esp + 0x30], edi
test edi, edi
je case.0x1002f7f3.527
call fcn.10014920
mov esi, dword [esp + 0x48]
mov ecx, eax
mov dword [esp + 0x3c], ecx
cmp esi, 0x200
ja 0x1002f7db
je case.0x1002f3ac.160
lea eax, [esi - 7]
cmp eax, 0xfe
ja case.0x1002f7f3.527
movzx eax, byte [eax + 0x1002fa08]
jmp dword [eax*4 + 0x1002f9ec]
cmp esi, 0x100
je 0x1002f3c8
mov byte [esp + 0x3c], 0
cmp esi, 0x104
jne 0x1002f3cd
mov byte [esp + 0x3c], 1
cmp dword [esp + 0x4c], 0x100
jae case.0x1002f7f3.527
call fcn.10014920
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov edi, eax
push 0x11
call esi
shr eax, 0xf
mov ecx, edi
and eax, 0xffffff01
push eax
push 0x1000
call fcn.10008be0
push 0x10
call esi
shr eax, 0xf
mov ecx, edi
and eax, 0xffffff01
push eax
push 0x2000
call fcn.10008be0
push 0x12
call esi
shr eax, 0xf
mov ecx, edi
and eax, 0xffffff01
push eax
push 0x4000
call fcn.10008be0
push 0x5b
call esi
shr eax, 0xf
test al, 1
jne 0x1002f44d
push 0x5c
call esi
shr eax, 0xf
test al, 1
jne 0x1002f44d
xor al, al
jmp 0x1002f44f
mov al, 1
push eax
push 0x8000
mov ecx, edi
call fcn.10008be0
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
cmp esi, 0xd
jne 0x1002f47b
mov eax, ecx
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne esi, eax
push esi
call fcn.1002ed80
shr ecx, 0x10
add esp, 4
mov dword [esp + 0x38], eax
movzx edi, cl
cmp eax, 0x262
jne 0x1002f4af
cmp byte [esp + 0x3c], 0
jne 0x1002f4b3
push edi
push esi
push 1
push eax
call fcn.1002e210
mov eax, dword [esp + 0x48]
add esp, 0x10
jmp 0x1002f4b3
test eax, eax
je 0x1002f4c2
push edi
push esi
push dword [esp + 0x44]
push eax
call fcn.1002e210
add esp, 0x10
cmp esi, 0x10
jne 0x1002f52b
push 0xa0
call dword [sym.imp.USER32.dll_GetKeyState]
mov esi, dword [esp + 0x3c]
shr eax, 0xf
and al, 1
cmp al, byte [esp + 0x3c]
jne 0x1002f4f5
push edi
push 0xa0
push esi
push 0x210
call fcn.1002e210
add esp, 0x10
push 0xa1
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, byte [esp + 0x3c]
jne case.0x1002f7f3.527
push edi
push 0xa1
push esi
push 0x214
call fcn.1002e210
add esp, 0x10
xor eax, eax
pop edi
pop esi
add esp, 0x38
ret
cmp esi, 0x11
jne 0x1002f594
push 0xa2
call dword [sym.imp.USER32.dll_GetKeyState]
mov esi, dword [esp + 0x3c]
shr eax, 0xf
and al, 1
cmp al, byte [esp + 0x3c]
jne 0x1002f55e
push edi
push 0xa2
push esi
push 0x20f
call fcn.1002e210
add esp, 0x10
push 0xa3
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, byte [esp + 0x3c]
jne case.0x1002f7f3.527
push edi
push 0xa3
push esi
push 0x213
call fcn.1002e210
add esp, 0x10
xor eax, eax
pop edi
pop esi
add esp, 0x38
ret
cmp esi, 0x12
jne case.0x1002f7f3.527
push 0xa4
call dword [sym.imp.USER32.dll_GetKeyState]
mov esi, dword [esp + 0x3c]
shr eax, 0xf
and al, 1
cmp al, byte [esp + 0x3c]
jne 0x1002f5cb
push edi
push 0xa4
push esi
push 0x211
call fcn.1002e210
add esp, 0x10
push 0xa5
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, byte [esp + 0x3c]
jne case.0x1002f7f3.527
push edi
push 0xa5
push esi
push 0x215
call fcn.1002e210
add esp, 0x10
xor eax, eax
pop edi
pop esi
add esp, 0x38
ret
cmp esi, 7
sete al
movzx eax, al
push eax
call fcn.10008830
pop edi
xor eax, eax
pop esi
add esp, 0x38
ret
call fcn.1002ec00
pop edi
xor eax, eax
pop esi
add esp, 0x38
ret
push dword [esp + 0x44]
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x1002f657
mov ecx, dword [esp + 0x4c]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja case.0x1002f7f3.527
push ecx
mov ecx, dword [esp + 0x40]
call fcn.10008950
pop edi
xor eax, eax
pop esi
add esp, 0x38
ret
push 1
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0
push eax
push 1
lea eax, [esp + 0x58]
push eax
push 1
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push eax
call fcn.100088e0
pop edi
xor eax, eax
pop esi
add esp, 0x38
ret
cmp word [esp + 0x50], 1
jne case.0x1002f7f3.527
call fcn.1002ec40
test al, al
je case.0x1002f7f3.527
pop edi
mov eax, 1
pop esi
add esp, 0x38
ret
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
and eax, 0xffffff80
cmp eax, 0xff515700
jne 0x1002f6cd
mov dword [esp + 0x38], 2
jmp 0x1002f6db
xor ecx, ecx
cmp eax, 0xff515780
sete cl
mov dword [esp + 0x38], ecx
mov ecx, dword [edi + 8]
xor eax, eax
mov edx, dword [esp + 0x44]
cmp esi, 0x200
mov dword [edi + 4], edx
setne al
inc eax
mov dword [esp + 0x30], eax
cmp ecx, eax
je 0x1002f76c
cmp esi, 0x200
mov dword [esp + 0x34], 0x12
mov eax, 2
mov dword [esp + 0x18], 0x10
cmovne eax, dword [esp + 0x34]
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [esp + 0x1c], 0x80000000
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 0
mov dword [esp + 8], 0x10
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0
test ecx, ecx
je 0x1002f75a
lea ecx, [esp + 0x18]
push ecx
call eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
lea ecx, [esp + 8]
push ecx
call eax
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x44]
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x50]
movsx eax, cx
shr ecx, 0x10
mov dword [esp + 0x28], eax
movsx eax, cx
mov dword [esp + 0x2c], eax
cmp esi, 0xa0
jne 0x1002f79d
lea eax, [esp + 0x28]
push eax
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je case.0x1002f7f3.527
push dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
call fcn.10008ee0
movd xmm0, dword [esp + 0x2c]
sub esp, 8
mov ecx, dword [esp + 0x44]
cvtdq2ps xmm0, xmm0
movss dword [esp + 4], xmm0
movd xmm0, dword [esp + 0x30]
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.10008da0
pop edi
xor eax, eax
pop esi
add esp, 0x38
ret
lea eax, [esi - 0x201]
cmp eax, 0xa2
ja case.0x1002f7f3.527
movzx eax, byte [eax + 0x1002fb24]
jmp dword [eax*4 + 0x1002fb08]
xor eax, eax
cmp esi, 0x2a3
setne al
inc eax
cmp dword [edi + 8], eax
jne case.0x1002f7f3.527
mov eax, dword [edi + 4]
cmp eax, dword [esp + 0x44]
jne 0x1002f81f
mov dword [edi + 4], 0
sub esp, 8
mov dword [edi + 8], 0
mov dword [esp + 4], 0xff7fffff
mov dword [esp], 0xff7fffff
call fcn.10008da0
pop edi
xor eax, eax
pop esi
add esp, 0x38
ret
call fcn.1002e1e0
mov dword [esp + 0x34], eax
cmp esi, 0x204
je 0x1002f860
xor edi, edi
cmp esi, 0x206
jne 0x1002f865
mov edi, 1
cmp esi, 0x207
je 0x1002f875
cmp esi, 0x209
jne 0x1002f87a
mov edi, 2
cmp esi, 0x20b
je 0x1002f88a
cmp esi, 0x20d
jne 0x1002f89b
mov edi, dword [esp + 0x4c]
shr edi, 0x10
dec edi
neg edi
sbb edi, edi
neg edi
add edi, 3
mov esi, dword [esp + 0x30]
cmp dword [esi + 0xc], 0
jne 0x1002f8b9
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x1002f8b9
push dword [esp + 0x44]
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [esi + 0xc]
push dword [esp + 0x34]
mov ecx, dword [esp + 0x40]
bts eax, edi
mov dword [esi + 0xc], eax
call fcn.10008ee0
mov ecx, dword [esp + 0x3c]
push 1
push edi
call fcn.10008c30
pop edi
xor eax, eax
pop esi
add esp, 0x38
ret
call fcn.1002e1e0
xor ecx, ecx
mov dword [esp + 0x30], eax
cmp esi, 0x205
sete cl
mov dword [esp + 0x38], ecx
cmp esi, 0x208
jne 0x1002f90a
mov ecx, 2
jmp 0x1002f923
cmp esi, 0x20c
jne 0x1002f927
mov ecx, dword [esp + 0x4c]
shr ecx, 0x10
dec ecx
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 3
mov dword [esp + 0x38], ecx
mov eax, dword [edi + 0xc]
btr eax, ecx
mov dword [edi + 0xc], eax
test eax, eax
jne 0x1002f946
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esp + 0x44]
jne 0x1002f946
call dword [sym.imp.USER32.dll_ReleaseCapture]
push dword [esp + 0x30]
mov ecx, dword [esp + 0x40]
call fcn.10008ee0
mov ecx, dword [esp + 0x3c]
push 0
push dword [esp + 0x3c]
call fcn.10008c30
pop edi
xor eax, eax
pop esi
add esp, 0x38
ret
mov eax, dword [esp + 0x4c]
sub esp, 8
shr eax, 0x10
cwde
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x1009b66c]
movss dword [esp + 4], xmm0
mov dword [esp], 0
call fcn.10008f00
pop edi
xor eax, eax
pop esi
add esp, 0x38
ret
mov eax, dword [esp + 0x4c]
sub esp, 8
shr eax, 0x10
cwde
mov dword [esp + 4], 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
xorps xmm0, xmmword [0x1009b5b0]
divss xmm0, dword [0x1009b66c]
movss dword [esp], xmm0
call fcn.10008f00
pop edi
xor eax, eax
pop esi
add esp, 0x38
ret
cmp dword [esp + 0x4c], 7
jne case.0x1002f7f3.527
mov byte [edi + 0x29], 1
pop edi
xor eax, eax
pop esi
add esp, 0x38
ret