Function at 0x1002eea9
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x1004dd03
call fcn.10017c58
sub esp, 0x7c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 4]
cmp esi, 0x200
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], esi
je 0x1002eef3
cmp esi, 0xa0
je 0x1002eef3
cmp esi, 0x202
je 0x1002eef3
cmp esi, 0x205
je 0x1002eef3
cmp esi, 0x208
jne 0x1002f1bc
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call esi
test ax, ax
jl 0x1002f1b9
push 2
call esi
test ax, ax
jl 0x1002f1b9
push 4
call esi
test ax, ax
jl 0x1002f1b9
call fcn.1004a08b
push dword [ebx]
mov esi, eax
mov dword [ebp - 0x18], esi
jmp 0x1002ef40
test word [eax + 0x38], 0x401
jne 0x1002ef49
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.1003239e
test eax, eax
jne 0x1002ef2e
cmp eax, edi
je 0x1002ef61
test eax, eax
jne 0x1002f28a
and dword [esi + 0x40], eax
or dword [esi + 0x44], 0xffffffff
jmp 0x1002f28a
mov ebx, dword [esi + 0x3c]
mov ecx, edi
call fcn.1003268e
test ebx, ebx
mov dword [ebp - 0x14], eax
je 0x1002ef97
mov ecx, ebx
call fcn.1000c55e
cmp eax, dword [ebp - 0x14]
je 0x1002ef93
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x60]
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 4]
xor ebx, ebx
mov dword [esi + 0x3c], ebx
test ebx, ebx
jne 0x1002eff1
push 0x6c
call fcn.1002feb4
pop ecx
mov dword [ebp - 0x1c], eax
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x1002efb4
mov ecx, eax
call fcn.1002ebd5
mov ebx, eax
mov eax, dword [ebx]
or dword [ebp - 4], 0xffffffff
push 1
push dword [ebp - 0x14]
mov ecx, ebx
call dword [eax + 0x130]
test eax, eax
jne 0x1002efd9
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 4]
jmp 0x1002f28a
push 0
push 0
push 0x401
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, dword [ebp - 0x10]
mov dword [esi + 0x3c], ebx
push 0x30
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.10016660
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
add esp, 0xc
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x28]
push eax
push dword [edi + 0x1c]
mov dword [ebp - 0x28], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x30
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.10016660
mov eax, dword [edi]
add esp, 0xc
lea ecx, [ebp - 0x58]
push ecx
push dword [ebp - 0x24]
mov ecx, edi
push dword [ebp - 0x28]
mov dword [ebp - 0x58], 0x28
call dword [eax + 0x6c]
mov ecx, eax
inc ecx
neg ecx
sbb ecx, ecx
and ecx, edi
cmp dword [esi + 0x44], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], ecx
jne 0x1002f0ab
cmp dword [esi + 0x40], ecx
jne 0x1002f0ab
test byte [edi + 0x39], 4
je 0x1002f094
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
movzx eax, word [ebp - 0x1c]
movzx ecx, word [ebp - 0x20]
shl eax, 0x10
or eax, ecx
push eax
push 0
push 0x412
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x1002f183
cmp eax, 0xffffffff
je 0x1002f183
push dword [ebp + 8]
push ebx
call fcn.1002ee27
jmp 0x1002f183
cmp eax, 0xffffffff
je 0x1002f1a5
mov eax, dword [ebp - 0x10]
push 0xc
pop ecx
lea esi, [ebp - 0x58]
lea edi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
and byte [ebp - 0x81], 0x3f
mov edi, 0x400
test dword [eax + 0x38], edi
je 0x1002f0dd
or dword [ebp - 0x84], 0x20
lea eax, [ebp - 0x88]
push eax
xor esi, esi
push esi
push 0x404
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
test byte [ebp - 0x51], 0x40
jne 0x1002f107
mov ecx, dword [ebp - 0x10]
call fcn.100334c4
test eax, eax
je 0x1002f14a
push esi
push 1
push 0x401
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x10]
test dword [eax + 0x38], edi
je 0x1002f137
lea eax, [ebp - 0x88]
push eax
push 1
push 0x411
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x213
push esi
push esi
push esi
push esi
push esi
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov esi, dword [ebp - 0x18]
push dword [ebp + 8]
push ebx
call fcn.1002ee27
lea edi, [esi + 0x48]
cmp dword [edi], 0x28
jb 0x1002f16f
push edi
push 0
push 0x405
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x44], eax
push 0xc
pop ecx
lea esi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x34], 0xffffffff
je 0x1002f28a
cmp dword [ebp - 0x38], 0
jne 0x1002f28a
push dword [ebp - 0x34]
call fcn.10015a8c
pop ecx
jmp 0x1002f28a
push 0
push 0
push 0x401
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x1002f14d
mov esi, dword [ebp - 0x1c]
test word [edi + 0x38], 0x401
je 0x1002f28a
push dword [ebx]
jmp 0x1002f1e2
cmp eax, edi
je 0x1002f1f3
test word [eax + 0x38], 0x401
jne 0x1002f1eb
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.1003239e
test eax, eax
jne 0x1002f1cc
cmp eax, edi
jne 0x1002f28a
cmp esi, 0x100
jb 0x1002f203
cmp esi, 0x109
jbe 0x1002f213
cmp esi, 0x104
jb 0x1002f218
cmp esi, 0x107
ja 0x1002f218
xor eax, eax
inc eax
jmp 0x1002f21a
xor eax, eax
test byte [edi + 0x39], 4
jne 0x1002f28a
test eax, eax
jne 0x1002f284
cmp esi, 0x201
je 0x1002f284
cmp esi, 0x203
je 0x1002f284
cmp esi, 0x204
je 0x1002f284
cmp esi, 0x206
je 0x1002f284
cmp esi, 0x207
je 0x1002f284
cmp esi, 0x209
je 0x1002f284
cmp esi, 0xa1
je 0x1002f284
cmp esi, 0xa3
je 0x1002f284
cmp esi, 0xa4
je 0x1002f284
cmp esi, 0xa6
je 0x1002f284
cmp esi, 0xa7
je 0x1002f284
cmp esi, 0xa9
jne 0x1002f28a
push eax
call fcn.100316b6
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4