Function at 0x422994
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, 0x44d515
call fcn.00423240
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 - 0x10], esi
je 0x422c6c
cmp eax, 0x200
je 0x4229cf
cmp eax, 0xa0
je 0x4229cf
cmp eax, 0x202
je 0x4229cf
cmp eax, 0x205
je 0x4229cf
cmp eax, 0x208
jne 0x422c6c
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 1
call edi
test ax, ax
jl 0x422c6c
push 2
call edi
test ax, ax
jl 0x422c6c
push 4
call edi
test ax, ax
jl 0x422c6c
push dword [ebx]
call fcn.00435a61
test eax, eax
je 0x422a1d
cmp eax, esi
je 0x422a25
test byte [eax + 0x24], 1
jne 0x422a1d
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_GetParent]
push eax
jmp 0x4229fe
cmp eax, esi
jne 0x422c6c
push 0x421ead
mov ecx, 0x4604d4
call fcn.00449d0a
mov edi, eax
mov ecx, esi
mov dword [ebp - 0x18], edi
mov ebx, dword [edi + 0xcc]
call fcn.004370ec
test ebx, ebx
mov dword [ebp - 0x14], eax
je 0x422a73
mov ecx, ebx
call fcn.00421fbe
cmp eax, dword [ebp - 0x14]
je 0x422a6f
mov esi, dword [ebx]
mov ecx, ebx
call dword [esi + 0x60]
push 1
mov ecx, ebx
call dword [esi + 4]
xor ebx, ebx
mov dword [edi + 0xcc], ebx
test ebx, ebx
jne 0x422ad5
push 0x58
call fcn.00438981
pop ecx
mov dword [ebp - 0x1c], eax
and dword [ebp - 4], 0
test eax, eax
je 0x422a91
mov ecx, eax
call fcn.004226d2
mov ebx, eax
jmp 0x422a93
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
push 1
push dword [ebp - 0x14]
mov ecx, ebx
call fcn.00422727
test eax, eax
jne 0x422abd
test ebx, ebx
je 0x422c6c
mov eax, dword [ebx]
push 1
mov ecx, ebx
call dword [eax + 4]
jmp 0x422c6c
push 0
push 0
push 0x401
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [edi + 0xcc], ebx
push 0x2c
lea eax, [ebp - 0x50]
pop esi
push esi
push 0
push eax
call fcn.00423a60
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], 1
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0x408
push dword [ebx + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
jne 0x422b29
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 eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], ecx
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_ScreenToClient]
push esi
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.00423a60
mov ecx, dword [ebp - 0x10]
add esp, 0xc
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x7c], esi
mov eax, dword [ecx]
push edx
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call dword [eax + 0x6c]
mov esi, eax
mov dword [ebp - 0x1c], eax
inc esi
neg esi
sbb esi, esi
and esi, dword [ebp - 0x10]
cmp dword [edi + 0xd4], eax
mov dword [ebp - 0x14], esi
jne 0x422ba3
cmp dword [edi + 0xd0], esi
jne 0x422ba3
cmp eax, 0xffffffff
je 0x422c57
push dword [ebp + 8]
push ebx
call fcn.00422c7d
jmp 0x422c57
cmp eax, 0xffffffff
je 0x422c0f
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 0x422be5
mov ecx, dword [ebp - 0x10]
call fcn.00437133
test eax, eax
je 0x422c09
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 - 0x18]
mov esi, dword [ebp - 0x14]
push dword [ebp + 8]
push ebx
call fcn.00422c7d
cmp dword [edi + 0xd8], 0x2c
lea eax, [edi + 0xd8]
mov dword [ebp + 8], eax
jne 0x422c3e
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 - 0x1c]
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 0x422c6c
cmp dword [ebp - 0x5c], 0
jne 0x422c6c
push dword [ebp - 0x58]
call fcn.00423c80
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4