Function at 0x52c7e0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x430
cmp edx, dword [esp + 0x434]
push ebx
mov ebx, ecx
mov dword [esp + 0x48], ebx
je 0x52c802
xor eax, eax
pop ebx
add esp, 0x430
ret 8
push ebp
push esi
mov esi, dword [esp + 0x444]
test esi, esi
push edi
je 0x52ccaf
mov eax, dword [esi + 8]
cmp eax, 0xfffffe6e
ja 0x52ca09
je 0x52c89e
cmp eax, 0xfffffe63
je 0x52c99b
cmp eax, 0xfffffe64
je 0x52c8bc
cmp eax, 0xfffffe6a
jne 0x52ccaf
xor eax, eax
mov ecx, 0xa
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0xc]
test al, 2
je 0x52c863
mov dword [esp + 0x20], 0x2000
jmp 0x52c86f
test al, 1
je 0x52c89b
mov dword [esp + 0x20], 0x1000
mov edx, dword [esi]
mov eax, dword [esi + 0x3c]
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x110d
push edx
mov dword [esp + 0x34], 0xf000
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], 0x18
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 8]
push eax
push 0
push 0x805d
push ebx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret 8
movzx eax, word [esi + 0xc]
sub eax, 0x26
je 0x52c8ce
sub eax, 2
jne 0x52ccaf
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call ebp
test ah, ah
js 0x52ccaf
mov ecx, dword [esi]
call fcn.0052c250
mov ebx, eax
test ebx, ebx
je 0x52ccaf
cmp word [esi + 0xc], 0x26
push ebx
jne 0x52c905
mov ecx, dword [esi]
push 7
push 0x110a
push ecx
jmp 0x52c90f
mov edx, dword [esi]
push 6
push 0x110a
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
test edi, edi
je 0x52ccaf
push 0x10
call ebp
test ah, ah
jns 0x52c966
mov edx, dword [0x5a1528]
test edx, edx
jne 0x52c939
mov edx, ebx
mov dword [0x5a1528], edx
mov ecx, dword [esi]
push 0
push 0
push edi
call fcn.0052c640
mov edx, dword [0x5a1528]
mov ecx, dword [esi]
push 1
push 1
push edi
call fcn.0052c640
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret 8
push 0
push 0
mov dword [0x5a1528], 0
mov ecx, dword [esi]
push edi
mov edx, edi
call fcn.0052c640
mov ecx, dword [esi]
push 1
push 1
push edi
mov edx, edi
call fcn.0052c640
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret 8
movzx edx, word [esi + 0x1a]
test edx, edx
jle 0x52ccaf
mov al, byte [esi + 0x18]
test al, al
jne 0x52ccaf
lea eax, [esp + 0x58]
push eax
push 2
xor ecx, ecx
call fcn.00426460
test eax, eax
je 0x52ccaf
mov eax, dword [esi + 0x10]
cmp eax, 0x3e7
jbe 0x52c9d9
mov eax, 0x3e6
jmp 0x52c9df
test eax, eax
jge 0x52c9df
xor eax, eax
mov esi, dword [esi + 0xc]
mov byte [esp + eax + 0x58], 0
lea ecx, [esp + 0x58]
jmp 0x52c9f0
mov al, byte [ecx]
inc ecx
mov byte [esi], al
inc esi
test al, al
jne 0x52c9f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret 8
cmp eax, 0xfffffff4
je 0x52cc10
cmp eax, 0xfffffffd
je 0x52c89e
cmp eax, 0xfffffffe
jne 0x52ccaf
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edi, dword [esi]
push edx
push eax
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp eax, edi
jne 0x52ccaf
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
xor edx, edx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], edx
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], edx
lea edx, [esp + 0x40]
push edx
push 0
mov dword [esp + 0x48], eax
mov eax, dword [esi]
push 0x1111
push eax
mov dword [esp + 0x54], ecx
call ebx
mov ecx, dword [esi]
mov ebp, eax
call fcn.0052c250
xor edi, edi
cmp ebp, edi
mov dword [esp + 0x50], eax
mov al, byte [esp + 0x48]
je 0x52cbc3
test al, 0x46
je 0x52cbc3
mov edx, dword [esi]
xor eax, eax
mov ecx, 0xa
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
push eax
push 0x110c
push edx
mov dword [esp + 0x28], 0x14
mov dword [esp + 0x2c], ebp
call ebx
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call edi
test ah, ah
jns 0x52cb5f
mov eax, dword [0x5a1528]
test eax, eax
jne 0x52caf7
mov dword [0x5a1528], ebp
mov eax, dword [esp + 0x3c]
test ah, ah
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], 0x14
je 0x52cb32
mov ecx, eax
shr ecx, 0x10
movzx edx, al
shl ecx, 0x10
lea eax, [esp + 0x18]
push eax
or ecx, edx
push 0
mov dword [esp + 0x44], ecx
mov ecx, dword [esi]
push 0x110d
push ecx
call ebx
jmp 0x52cbeb
mov edx, eax
shr edx, 0x10
shl edx, 0x10
movzx eax, al
or edx, eax
lea ecx, [esp + 0x18]
push ecx
or edx, 0x100
push 0
mov dword [esp + 0x44], edx
mov edx, dword [esi]
push 0x110d
push edx
call ebx
jmp 0x52cbeb
push 0x10
call edi
test ah, ah
jns 0x52cb9b
mov edx, dword [0x5a1528]
test edx, edx
jne 0x52cb7b
mov edx, dword [esp + 0x50]
mov dword [0x5a1528], edx
mov ecx, dword [esi]
push 0
push 0
push ebp
call fcn.0052c640
mov edx, dword [0x5a1528]
mov ecx, dword [esi]
push 1
push 1
push ebp
call fcn.0052c640
jmp 0x52cbeb
push 0
push 0
mov dword [0x5a1528], 0
mov ecx, dword [esi]
push ebp
mov edx, ebp
call fcn.0052c640
mov ecx, dword [esi]
push 1
push 1
push ebp
mov edx, ebp
call fcn.0052c640
jmp 0x52cbeb
test al, 0x20
je 0x52cbe5
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [esi], eax
jne 0x52cbeb
push edi
push edi
mov dword [0x5a1528], edi
mov ecx, dword [esi]
push ebp
mov edx, ebp
call fcn.0052c640
jmp 0x52cbeb
mov dword [0x5a1528], edi
mov eax, dword [esi + 8]
mov ecx, dword [esp + 0x54]
push eax
push 0
push 0x805d
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret 8
mov eax, dword [esi + 0xc]
dec eax
je 0x52ccbe
sub eax, 0x10000
jne 0x52ccaf
mov edx, dword [esi + 0x24]
xor eax, eax
mov ecx, 0xa
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esi]
lea eax, [esp + 0x18]
push eax
push 0
push 0x110c
push ecx
mov dword [esp + 0x28], 0x14
mov dword [esp + 0x2c], edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov al, byte [esp + 0x3d]
test al, al
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
je 0x52cc91
push 0xe
call edi
mov edx, dword [esi + 0x10]
push eax
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0xd
call edi
push eax
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.GDI32.dll_SetBkColor]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret 8
push 8
call edi
mov ecx, dword [esi + 0x10]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
push 5
call edi
mov edx, dword [esi + 0x10]
push eax
push edx
call dword [sym.imp.GDI32.dll_SetBkColor]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x430
ret 8
pop edi
pop esi
pop ebp
mov eax, 0x20
pop ebx
add esp, 0x430
ret 8