Function at 0x405858
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x427b75
call fcn.004073a0
sub esp, 0x70
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov eax, dword [ebx + 4]
push edi
test byte [esi + 0x24], 1
mov dword [ebp - 0x18], esi
je 0x405b38
cmp eax, 0x200
je 0x405893
cmp eax, 0xa0
je 0x405893
cmp eax, 0x202
je 0x405893
cmp eax, 0x205
je 0x405893
cmp eax, 0x208
jne 0x405b38
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
test ax, ax
jl 0x405b38
push 2
call edi
test ax, ax
jl 0x405b38
push 4
call edi
test ax, ax
jl 0x405b38
push dword [ebx]
call fcn.00418ec7
test eax, eax
je 0x4058e1
cmp eax, esi
je 0x4058e9
test byte [eax + 0x24], 1
jne 0x4058e1
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_GetParent]
push eax
jmp 0x4058c2
cmp eax, esi
jne 0x405b38
push 0x4253ce
mov ecx, 0x438518
call fcn.004269e1
mov edi, eax
mov ecx, esi
mov dword [ebp - 0x1c], edi
mov ebx, dword [edi + 0xcc]
call fcn.0041a57b
test ebx, ebx
mov dword [ebp - 0x14], eax
je 0x405939
mov ecx, ebx
call fcn.004051b0
cmp eax, dword [ebp - 0x14]
je 0x405935
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 [edi + 0xcc], ebx
test ebx, ebx
jne 0x4059a1
push 0x58
call fcn.004170ef
pop ecx
mov dword [ebp - 0x10], eax
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 4], ecx
je 0x405956
mov ecx, eax
call fcn.0040559a
mov ecx, eax
or dword [ebp - 4], 0xffffffff
push 1
push dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov ebx, ecx
call fcn.004055ef
test eax, eax
jne 0x405983
mov ecx, ebx
test ecx, ecx
je 0x405b38
mov eax, dword [ecx]
push 1
call dword [eax + 4]
jmp 0x405b38
mov eax, dword [ebp - 0x10]
push 0
push 0
push 0x401
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x10]
mov dword [edi + 0xcc], eax
push 0x2c
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.004073c0
mov eax, dword [esi + 0x1c]
add esp, 0xc
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x28
push eax
push 0
push 0x408
mov dword [ebp - 0x4c], 1
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x4059f4
lea eax, [ebp - 0x50]
push eax
push 0
push 0x404
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], ecx
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x2c
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.004073c0
add esp, 0xc
mov eax, dword [esi]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0x28
push ecx
mov ecx, esi
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call dword [eax + 0x6c]
mov esi, eax
mov dword [ebp - 0x10], eax
inc esi
neg esi
sbb esi, esi
and esi, dword [ebp - 0x18]
cmp dword [edi + 0xd4], eax
mov dword [ebp - 0x14], esi
jne 0x405a6f
cmp dword [edi + 0xd0], esi
jne 0x405a6f
cmp eax, 0xffffffff
je 0x405b23
push dword [ebp + 8]
push ebx
call fcn.00405b49
jmp 0x405b23
cmp eax, 0xffffffff
je 0x405adb
mov eax, dword [ebp - 0x78]
push 0xb
pop ecx
lea esi, [ebp - 0x7c]
lea edi, [ebp - 0x50]
and eax, 0x3fffffff
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x50]
xor esi, esi
push eax
push esi
push 0x404
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
test byte [ebp - 0x75], 0x40
jne 0x405ab1
mov ecx, dword [ebp - 0x18]
call fcn.0041a5c2
test eax, eax
je 0x405ad5
push esi
push 1
push 0x401
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 edi, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
push dword [ebp + 8]
push ebx
call fcn.00405b49
cmp dword [edi + 0xd8], 0x28
lea eax, [edi + 0xd8]
mov dword [ebp + 8], eax
jb 0x405b0a
push eax
push 0
push 0x405
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
push 0xb
mov dword [edi + 0xd0], esi
mov dword [edi + 0xd4], ecx
pop ecx
lea esi, [ebp - 0x7c]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x58], 0xffffffff
je 0x405b38
cmp dword [ebp - 0x5c], 0
jne 0x405b38
push dword [ebp - 0x58]
call fcn.00407540
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4