Function at 0x4a53c3
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x42], eax
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x46], eax
cmp dword [0x52cf50], 0xbb9
je 0x4a53f5
mov dword [ebp + 0x24], 1
mov eax, dword [ebp + 0x24]
sub eax, 5
cmp eax, 1
sbb eax, eax
neg eax
push eax
push 1
push 0
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0043c3e6
add esp, 0x18
mov dword [0x531b6c], 0
mov dword [0x531b90], 0
mov dword [0x531b70], 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp + 0x18]
push eax
push 0x65
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4a5464
jmp 0x4a57d7
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
cmp dword [eax + 0xde], ecx
jne 0x4a5586
cmp dword [ebp + 0x1c], 0
jne 0x4a5586
mov eax, dword [ebp - 8]
add eax, 0x1c
mov ecx, 0x52cfd0
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x72]
mov ecx, dword [ebp - 8]
add eax, dword [ecx + 0x54]
mov ecx, dword [ebp - 8]
add eax, dword [ecx + 0x18]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x6e]
mov ecx, dword [ebp - 8]
sub eax, dword [ecx + 0x14]
push eax
push 0x52cfd0
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [0x52d9f8], eax
mov dword [0x52d9fc], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [0x52c400], eax
mov dword [0x52c404], ecx
mov eax, dword [ebp + 0x10]
sub eax, dword [0x52cfd0]
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0x7a]
mov dword [0x52d8d0], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [0x52cfd4]
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0x7e]
mov dword [0x52d8d4], eax
mov eax, dword [ebp + 0x10]
sub eax, dword [0x52cfd8]
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0x56]
mov ecx, dword [ebp + 0xc]
sub eax, dword [ecx + 0x82]
mov dword [0x52d8d8], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [0x52cfdc]
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0x5a]
mov ecx, dword [ebp + 0xc]
sub eax, dword [ecx + 0x86]
mov dword [0x52d8dc], eax
mov eax, dword [ebp + 0x10]
mov dword [0x52d8d0], eax
mov eax, dword [ebp + 0x10]
mov dword [0x52d8d8], eax
mov dword [0x531af0], 0xf
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
jmp 0x4a57c1
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, ax
xor ecx, ecx
mov cl, ah
mov dword [ebp - 0x20], ecx
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, ax
xor ecx, ecx
mov cl, ah
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.004379c0
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
and eax, 0xffff
shl eax, 0x10
mov ecx, dword [ebp + 0x1c]
and ecx, 0xffff
or eax, ecx
mov dword [0x52cfc4], eax
mov eax, dword [ebp - 0xc]
add eax, 0x30
mov ecx, 0x52cfd0
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
movsx eax, word [ebp + 0x20]
push eax
mov eax, dword [ebp + 0x20]
shr eax, 0x10
and eax, 0xffff
movsx eax, ax
push eax
push 0x52cfd0
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [0x52d9f8], eax
mov dword [0x52d9fc], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [0x52c400], eax
mov dword [0x52c404], ecx
mov eax, dword [ebp + 0x10]
sub eax, dword [0x52cfd0]
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0x7a]
mov dword [0x52d8d0], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [0x52cfd4]
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0x7e]
mov dword [0x52d8d4], eax
mov eax, dword [ebp + 0x10]
sub eax, dword [0x52cfd8]
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0x56]
mov ecx, dword [ebp + 0xc]
sub eax, dword [ecx + 0x82]
mov dword [0x52d8d8], eax
mov eax, dword [ebp + 0x14]
sub eax, dword [0x52cfdc]
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx + 0x5a]
mov ecx, dword [ebp + 0xc]
sub eax, dword [ecx + 0x86]
mov dword [0x52d8dc], eax
mov word [0x52cfe0], 0
cmp dword [ebp - 0x1c], 0
je 0x4a56be
mov dword [0x531af0], 9
jmp 0x4a57b7
cmp dword [ebp - 0x20], 0
je 0x4a56ea
cmp dword [ebp - 0x1c], 0
je 0x4a56ea
mov dword [0x531af0], 0xb
mov word [0x52cfe0], 1
jmp 0x4a57b7
mov dword [0x531af0], 0xa
mov eax, dword [ebp - 8]
cmp dword [eax + 0x34], 0x22
jne 0x4a572b
mov eax, dword [ebp - 8]
cmp dword [eax + 0x8c], 2
jg 0x4a572b
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x8c]
dec eax
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.004379c0
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.004385d2
add esp, 8
mov dword [0x531b78], eax
cmp dword [0x531b78], 0xffffffff
je 0x4a57b7
lea eax, [ebp - 0x14]
push eax
mov eax, dword [0x531b78]
push eax
push 0x65
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x26]
push eax
call fcn.00476b89
add esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4a57b7
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 4], eax
push 1
push 0x10
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
call fcn.004e43fc
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x14]
push eax
call fcn.004796fa
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call fcn.0047947b
add esp, 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x18]
push eax
call fcn.0047947b
add esp, 4
pop edi
pop esi
pop ebx
leave
ret