Function at 0x408dd1
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x40902e
call fcn.0040a088
sub esp, 0x6c
mov eax, dword [ebp + 8]
test byte [ecx + 0x24], 1
push ebx
mov eax, dword [eax + 4]
push esi
mov dword [ebp - 0x10], ecx
push edi
je 0x4090ff
cmp eax, 0x200
je 0x408e1b
cmp eax, 0xa0
je 0x408e1b
cmp eax, 0x202
je 0x408e1b
cmp eax, 0x205
je 0x408e1b
cmp eax, 0x208
jne 0x4090ff
push 1
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
call esi
test ax, ax
jl 0x4090ff
push 2
call esi
test ax, ax
jl 0x4090ff
push 4
call esi
test ax, ax
jl 0x4090ff
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.00419cd6
test eax, eax
je 0x408e74
cmp eax, dword [ebp - 0x10]
je 0x408e7d
test byte [eax + 0x24], 1
jne 0x408e74
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00419cd6
test eax, eax
jne 0x408e56
cmp eax, dword [ebp - 0x10]
jne 0x4090ff
push 0x407b3c
mov ecx, 0x4444b0
call fcn.00434547
lea esi, [eax + 0xcc]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov ebx, dword [esi]
call fcn.0041b624
mov edi, eax
test ebx, ebx
je 0x408edb
mov eax, dword [ebx + 0x20]
test eax, eax
jne 0x408eb5
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.00419cd6
cmp eax, edi
je 0x408ed7
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x60]
test ebx, ebx
je 0x408ed3
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 4]
xor ebx, ebx
mov dword [esi], ebx
test ebx, ebx
jne 0x408f40
push 0x58
mov ebx, 0
call fcn.0041941f
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x408f01
mov ecx, eax
call fcn.00408aba
mov ebx, eax
push 1
mov ecx, ebx
mov dword [ebp - 4], 0xffffffff
push edi
call fcn.00408b40
test eax, eax
jne 0x408f2c
test ebx, ebx
je 0x4090ff
push 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 4]
jmp 0x4090ff
push 0
push 0
push 0x401
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esi], ebx
push 0x28
xor esi, esi
push esi
lea eax, [ebp - 0x50]
push eax
call fcn.0040a030
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x50], 0x28
mov dword [ebp - 0x4c], 1
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x50]
push eax
push esi
push 0x408
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x408f95
lea eax, [ebp - 0x50]
push eax
push esi
push 0x404
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp + 8]
add eax, 0x14
mov esi, dword [ebp - 0x10]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x24], edx
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x28
lea eax, [ebp - 0x78]
push 0
push eax
call fcn.0040a030
add esp, 0xc
lea eax, [ebp - 0x78]
mov dword [ebp - 0x78], 0x28
push eax
mov esi, dword [ebp - 0x10]
push dword [ebp - 0x24]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x28]
call dword [eax + 0x6c]
mov dword [ebp - 0x14], eax
inc eax
cmp eax, 1
mov eax, 0
adc eax, 0xffffffff
mov ecx, dword [ebp - 0x14]
and eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
add eax, 0xd4
mov dword [ebp - 0x1c], eax
cmp dword [eax], ecx
jne 0x409041
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
cmp dword [eax + 0xd0], ecx
jne 0x409041
cmp dword [ebp - 0x14], 0xffffffff
je 0x4090ee
push dword [ebp + 8]
push ebx
call fcn.00409111
jmp 0x4090ee
cmp dword [ebp - 0x14], 0xffffffff
je 0x4090a8
lea esi, [ebp - 0x78]
lea edi, [ebp - 0x50]
mov ecx, 0xa
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x74]
and eax, 0x3fffffff
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0x404
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
test byte [ebp - 0x71], 0x40
jne 0x409085
mov ecx, dword [ebp - 0x10]
call fcn.0041b669
test eax, eax
je 0x4090a8
xor esi, esi
push esi
push 1
push 0x401
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x13
push esi
push esi
push esi
push esi
push esi
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SetWindowPos]
push dword [ebp + 8]
push ebx
call fcn.00409111
mov edi, dword [ebp - 0x18]
add edi, 0xd8
cmp dword [edi], 0x28
jne 0x4090d0
push edi
push 0
push 0x405
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
lea esi, [ebp - 0x78]
mov dword [eax + 0xd0], ecx
mov eax, dword [ebp - 0x14]
mov ecx, 0xa
mov dword [edx], eax
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x54], 0xffffffff
je 0x4090ff
push dword [ebp - 0x54]
call fcn.0040a350
add esp, 4
mov eax, dword [ebp - 0xc]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4