Function at 0x1008a900
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x100b93cc
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x148], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x160]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [esp + 0x170]
push esi
mov dword [esp + 0x1c], esi
call fcn.1005d810
mov ebp, dword [ebx + 0x178]
mov dword [esp + 0x2c], ebp
test ebp, ebp
je 0x1008ae8e
mov eax, dword [ebp + 0x1b4]
cmp eax, dword [ebp + 0x1b8]
je 0x1008ae8e
mov ecx, ebp
mov dword [esp + 0x28], 0xffffffff
mov byte [esp + 0x17], 1
call fcn.10071610
test al, al
je 0x1008a9a3
mov eax, dword [ebx + 0x178]
mov eax, dword [eax + 0x1f0]
mov ecx, dword [eax]
mov al, byte [eax + 4]
mov dword [esp + 0x28], ecx
mov byte [esp + 0x17], al
mov ecx, dword [ebp + 0x1b8]
mov eax, 0x4ec4ec4f
sub ecx, dword [ebp + 0x1b4]
imul ecx
mov dword [esp + 0x20], 0
sar edx, 4
mov eax, edx
mov dword [esp + 0x1c], 0
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x34], eax
je 0x1008ae8e
xor eax, eax
mov dword [esp + 0x24], eax
mov ebp, dword [ebp + 0x1b4]
mov ecx, ebx
add ebp, eax
call fcn.1004b640
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esp + 0x20]
add ecx, edx
mov dword [esp + 0x104], eax
lea eax, [esp + 0x6c]
mov dword [esp + 0x100], ecx
lea ecx, [ebx + 0x4c]
push eax
mov dword [esp + 0xfc], edx
mov dword [esp + 0x100], 0
mov dword [esp + 0x11c], 0
mov dword [esp + 0x120], 0
call fcn.1005af70
mov dword [esp + 0x168], 0
lea edi, [esp + 0x118]
mov edx, dword [esi]
lea ecx, [ebp + 4]
push edi
push eax
push ecx
mov ecx, esi
call dword [edx + 0x80]
mov dword [esp + 0x168], 0xffffffff
cmp dword [esp + 0x80], 8
mov edi, dword [esp + 0x1c]
jb 0x1008aa82
push dword [esp + 0x6c]
call fcn.10034183
add esp, 4
xor eax, eax
mov dword [esp + 0x80], 7
mov word [esp + 0x6c], ax
mov ecx, ebx
lea eax, [esp + 0x118]
mov dword [esp + 0x7c], 0
push eax
lea eax, [esp + 0xfc]
push eax
lea eax, [esp + 0xc8]
push eax
call fcn.1008a5b0
push eax
lea eax, [esp + 0xe4]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov esi, dword [ebp + 0x30]
cmp esi, 3
jne 0x1008ab22
lea eax, [esp + 0x40]
push eax
lea ecx, [ebx + 0x4c]
call fcn.1005af70
mov dword [esp + 0x168], 2
mov esi, dword [eax + 0x20]
mov dword [esp + 0x168], 0xffffffff
cmp dword [esp + 0x54], 8
jb 0x1008ab0b
push dword [esp + 0x40]
call fcn.10034183
add esp, 4
xor eax, eax
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], ax
cmp esi, 1
jne 0x1008ab35
mov eax, dword [ebp + 0x2c]
xor ecx, ecx
imul eax, dword [ebp + 0x28]
test eax, eax
cmovne esi, ecx
mov eax, esi
sub eax, 0
je 0x1008ab8d
sub eax, 2
jne 0x1008abbf
mov edi, dword [esp + 0xe8]
mov eax, edi
sub eax, dword [esp + 0xe0]
mov edx, dword [esp + 0x100]
sub edx, eax
mov eax, edx
sub eax, dword [esp + 0xe0]
add edi, eax
mov dword [esp + 0xe0], edx
mov dword [esp + 0xe8], edi
lea eax, [esp + 0xe0]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov edi, dword [esp + 0x1c]
jmp 0x1008abbf
mov ecx, dword [esp + 0xf8]
mov eax, ecx
sub eax, dword [esp + 0xe0]
add dword [esp + 0xe8], eax
lea eax, [esp + 0xe0]
mov dword [esp + 0xe0], ecx
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
lea eax, [esp + 0x130]
push eax
lea ecx, [ebx + 0x4c]
call fcn.1005af70
mov dword [esp + 0x168], 4
mov ecx, ebx
mov eax, dword [ebx]
mov dword [esp + 0x150], esi
mov esi, dword [esp + 0x18]
mov esi, dword [esi]
call dword [eax + 0xe0]
mov ecx, dword [esp + 0x18]
push eax
lea eax, [esp + 0x134]
push eax
lea eax, [esp + 0xe8]
push eax
lea eax, [ebp + 4]
push eax
call dword [esi + 0x88]
mov ecx, dword [ebx + 0x178]
call fcn.10071610
test al, al
je 0x1008ad8a
cmp dword [esp + 0x28], edi
jne 0x1008ad8a
cmp byte [esp + 0x17], 0
je 0x1008ac3c
mov edi, dword [ebx + 0x180]
jmp 0x1008ac42
mov edi, dword [ebx + 0x184]
test edi, edi
je 0x1008ad8a
mov eax, dword [edi]
lea ecx, [esp + 0x98]
mov esi, dword [esp + 0xec]
sub esi, dword [esp + 0xe4]
push ecx
mov ecx, edi
call dword [eax + 0x18]
mov ecx, dword [eax]
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x108], eax
add eax, ecx
mov dword [esp + 0x110], eax
lea ecx, [esp + 0xa0]
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x10c], eax
add eax, esi
mov dword [esp + 0x114], eax
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x18]
push eax
lea eax, [esp + 0x10c]
mov ecx, ebx
push eax
lea eax, [esp + 0xd8]
push eax
call fcn.1008a5b0
push eax
lea eax, [esp + 0x10c]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x5c]
xor esi, esi
mov dword [esp + 0x30], eax
test eax, eax
je 0x1008ad63
lea eax, [esp + 0xf0]
mov dword [esp + 0xf0], esi
push eax
mov dword [esp + 0xf8], esi
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0xf0]
push eax
mov eax, dword [ecx]
call dword [eax + 4]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
lea eax, [esp + 0xf0]
push eax
push ebx
call fcn.10049a70
add esp, 8
lea eax, [esp + 0x108]
push dword [esp + 0xf4]
push dword [esp + 0xf4]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x1008ad63
mov esi, 1
push esi
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
mov eax, 2
cmovne esi, eax
mov eax, dword [esp + 0x110]
cmp eax, dword [esp + 0x100]
jg 0x1008ad8a
mov eax, dword [edi]
lea ecx, [esp + 0x108]
push esi
mov esi, dword [esp + 0x1c]
push ecx
push esi
mov ecx, edi
call dword [eax + 0x14]
jmp 0x1008ad8e
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x20]
add edi, dword [ebp + 0x1c]
mov ecx, dword [ebx + 0x18c]
mov dword [esp + 0x20], edi
test ecx, ecx
je 0x1008ae28
mov eax, dword [ecx]
lea edx, [esp + 0xa8]
push edx
call dword [eax + 0x18]
mov ecx, ebx
mov esi, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0xfc]
mov dword [esp + 0x3c], esi
push eax
lea eax, [esp + 0xb8]
push eax
call fcn.1008a5b0
push eax
lea eax, [esp + 0x124]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, esi
mov ecx, edi
mov esi, dword [esp + 0x18]
cdq
sub eax, edx
lea edx, [esp + 0x120]
sar eax, 1
sub ecx, eax
mov eax, ecx
sub eax, dword [esp + 0x120]
add dword [esp + 0x128], eax
mov dword [esp + 0x120], ecx
mov ecx, dword [ebx + 0x18c]
push 0
push edx
push esi
mov eax, dword [ecx]
call dword [eax + 0x14]
mov dword [esp + 0x168], 0xffffffff
cmp dword [esp + 0x144], 8
jb 0x1008ae4c
push dword [esp + 0x130]
call fcn.10034183
add esp, 4
mov edi, dword [esp + 0x1c]
xor eax, eax
mov ebp, dword [esp + 0x2c]
inc edi
mov word [esp + 0x130], ax
mov eax, dword [esp + 0x24]
add eax, 0x34
mov dword [esp + 0x144], 7
mov dword [esp + 0x140], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
cmp edi, dword [esp + 0x34]
jb 0x1008a9e0
mov ecx, dword [esp + 0x160]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x148]
xor ecx, esp
call fcn.10033901
add esp, 0x158
ret 4