Function at 0x45e730
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x5c
mov eax, dword [0x4b5320]
mov dword [esp + 4], 1
test eax, eax
jne 0x45e74a
xor eax, eax
add esp, 0x5c
ret
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push ebp
push esi
push edi
lea eax, [esp + 0x20]
test eax, eax
je 0x45e76a
mov dword [esp + 0x20], 0
lea eax, [esp + 0x20]
jmp 0x45e76c
xor eax, eax
mov ecx, dword [0x4b5328]
mov edx, dword [0x4b63c0]
push eax
push ecx
push 0x100e
push edx
call ebx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edx, dword [0x4b63c0]
lea ecx, [esp + 0x18]
push 1
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x30]
mov dword [esp + 0x30], eax
mov eax, dword [0x4b63c0]
push edx
push 0
push 0x1012
push eax
mov dword [esp + 0x44], ecx
call ebx
mov edi, dword [0x4b5324]
mov esi, dword [esp + 0x3c]
mov ecx, dword [0x4b5328]
xor edx, edx
cmp edi, 1
mov dword [esp + 0x10], ecx
setne dl
inc edx
cmp esi, 0xffffffff
mov edi, edx
jne 0x45e864
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
cmp eax, ebp
jge 0x45e816
sub ebp, eax
mov esi, ecx
mov eax, ebp
cdq
and edx, 3
add eax, edx
sar eax, 2
sub esi, eax
dec esi
jns 0x45e899
xor esi, esi
jmp 0x45e899
mov edx, dword [esp + 0x2c]
cmp eax, edx
jle 0x45e85e
sub eax, edx
push 0
mov ebp, eax
push 0
cdq
and edx, 3
push 0x1004
add eax, edx
sar eax, 2
lea esi, [eax + ecx + 1]
mov eax, dword [0x4b63c0]
push eax
call ebx
sub eax, edi
cmp esi, eax
jle 0x45e893
mov ecx, dword [0x4b63c0]
push 0
push 0
push 0x1004
push ecx
call ebx
mov esi, eax
sub esi, edi
jmp 0x45e893
mov esi, ecx
xor ebp, ebp
jmp 0x45e899
mov edx, dword [0x4b63c0]
push 0
push 0
push 0x1004
push edx
call ebx
sub eax, edi
cmp esi, eax
jle 0x45e891
mov eax, dword [0x4b63c0]
push 0
push 0
push 0x1004
push eax
call ebx
mov esi, eax
sub esi, edi
xor ebp, ebp
mov ecx, dword [0x4b5328]
cmp esi, ecx
je 0x45e982
cmp dword [0x4b5324], 0x23
jne 0x45e8c1
push esi
push ecx
mov ecx, dword [0x4b63c0]
push ecx
call fcn.0040c470
mov ecx, dword [0x4b5328]
add esp, 0xc
cmp dword [0x4b5324], 0x24
jne 0x45e8e1
mov edx, dword [0x4b63c0]
push esi
push ecx
push edx
call fcn.004016a0
mov ecx, dword [0x4b5328]
add esp, 0xc
cmp dword [0x4b5324], 1
jne 0x45e8fa
mov eax, dword [0x4b63c0]
push esi
push ecx
push eax
call fcn.00469e40
add esp, 0xc
mov edx, dword [0x4b63c0]
lea ecx, [esp + 0x44]
push ecx
push esi
mov eax, 3
push 0x102b
push edx
mov dword [0x4b5328], esi
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
call ebx
mov eax, dword [0x4b5328]
mov ecx, dword [esp + 0x10]
cmp eax, ecx
jle 0x45e93f
inc eax
push 1
push eax
mov eax, dword [0x4b63c0]
push 0x1013
push eax
jmp 0x45e94e
mov ecx, dword [0x4b63c0]
push 0
push eax
push 0x1013
push ecx
call ebx
mov edx, dword [0x4b63c0]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 0x28
sub eax, ebp
lea eax, [eax + eax*4]
test eax, eax
jge 0x45e96d
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x4b5328]
mov dword [esp + 0x14], 2
cmp dword [esp + 0x10], ecx
je 0x45e999
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, 0x80
jne 0x45e754
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret