Function at 0x455228
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, 0x4ceac4
cmp dword [0x4cb01c], 0
jl 0x455493
push 4
lea eax, [esi + 0x40]
push eax
lea edi, [ebx + 5]
push edi
call fcn.004bd07c
add esp, 0xc
test eax, eax
jne 0x455274
mov eax, dword [0x4cb024]
push eax
lea edx, [esi + 0x46]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x4556f7
push 2
lea eax, [esi + 0x4a]
push eax
push edi
call fcn.004bd07c
add esp, 0xc
test eax, eax
jne 0x4552a3
mov edx, dword [0x4cb01c]
push edx
lea ecx, [esi + 0x4e]
push ecx
mov eax, dword [ebp + 0x10]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x4556f7
push 2
lea edx, [esi + 0x52]
push edx
push edi
call fcn.004bd07c
add esp, 0xc
test eax, eax
jne 0x4552d2
mov ecx, dword [0x4cb020]
push ecx
lea eax, [esi + 0x56]
push eax
mov edx, dword [ebp + 0x10]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x4556f7
push 3
lea ecx, [esi + 0x5a]
push ecx
push edi
call fcn.004bd07c
add esp, 0xc
test eax, eax
jne 0x45532f
mov eax, dword [0x4cb01c]
mov dword [0x4e2130], eax
mov eax, dword [0x4cb020]
mov dword [0x4e2134], eax
push 1
push 0x4e2130
mov edx, dword [0x4d42a0]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.USER32.dll_MapWindowPoints
mov eax, dword [0x4e2130]
push eax
lea edx, [esi + 0x5f]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x4556f7
push 3
lea eax, [esi + 0x63]
push eax
push edi
call fcn.004bd07c
add esp, 0xc
test eax, eax
jne 0x45538d
mov edx, dword [0x4cb01c]
mov dword [0x4e2130], edx
mov edx, dword [0x4cb020]
mov dword [0x4e2134], edx
push 1
push 0x4e2130
mov ecx, dword [0x4d42a0]
push ecx
mov eax, dword [ebp + 8]
push eax
call sub.USER32.dll_MapWindowPoints
mov edx, dword [0x4e2134]
push edx
lea ecx, [esi + 0x68]
push ecx
mov eax, dword [ebp + 0x10]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x4556f7
push 3
lea edx, [esi + 0x6c]
push edx
push edi
call fcn.004bd07c
add esp, 0xc
test eax, eax
jne 0x4553e2
mov ecx, dword [0x4cb01c]
mov dword [0x4e2130], ecx
mov ecx, dword [0x4cb020]
mov dword [0x4e2134], ecx
push 0x4e2130
mov eax, dword [ebp + 8]
push eax
call sub.USER32.dll_ClientToScreen
mov edx, dword [0x4e2130]
push edx
lea ecx, [esi + 0x71]
push ecx
mov eax, dword [ebp + 0x10]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x4556f7
push 3
lea edx, [esi + 0x75]
push edx
push edi
call fcn.004bd07c
add esp, 0xc
test eax, eax
jne 0x455437
mov ecx, dword [0x4cb01c]
mov dword [0x4e2130], ecx
mov ecx, dword [0x4cb020]
mov dword [0x4e2134], ecx
push 0x4e2130
mov eax, dword [ebp + 8]
push eax
call sub.USER32.dll_ClientToScreen
mov edx, dword [0x4e2134]
push edx
lea ecx, [esi + 0x7a]
push ecx
mov eax, dword [ebp + 0x10]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x4556f7
push 4
lea edx, [esi + 0x7e]
push edx
push edi
call fcn.004bd07c
add esp, 0xc
test eax, eax
jne 0x4556f7
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b7934
mov ebx, eax
mov dword [0x4e212c], ebx
test ebx, ebx
je 0x4556f7
add ebx, 4
mov eax, dword [ebp + 0x10]
mov edi, ebx
mov esi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4556f7
push 4
lea eax, [esi + 0x84]
push eax
lea edi, [ebx + 5]
push edi
call fcn.004bd07c
add esp, 0xc
test eax, eax
jne 0x45550a
xor eax, eax
mov dword [0x4e2138], eax
push 1
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x4554c5
inc dword [0x4e2138]
push 0x11
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x4554d8
add dword [0x4e2138], 2
push 0x10
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x4554eb
add dword [0x4e2138], 4
mov edx, dword [0x4e2138]
push edx
lea ecx, [esi + 0x8a]
push ecx
mov eax, dword [ebp + 0x10]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x4556f7
push 0x4e2130
call sub.USER32.dll_GetCursorPos
push dword [0x4e2134]
push dword [0x4e2130]
call sub.USER32.dll_WindowFromPoint
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004b7934
mov dword [0x4e212c], eax
cmp dword [0x4e212c], 0
je 0x45560b
push 2
lea eax, [esi + 0x8e]
push eax
push edi
call fcn.004bd07c
add esp, 0xc
test eax, eax
jne 0x455586
push 0x4e2130
mov edx, dword [ebp + 8]
push edx
call sub.USER32.dll_ScreenToClient
mov ecx, dword [0x4e2130]
push ecx
lea eax, [esi + 0x92]
push eax
mov edx, dword [ebp + 0x10]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x45560b
push 2
lea ecx, [esi + 0x96]
push ecx
push edi
call fcn.004bd07c
add esp, 0xc
test eax, eax
jne 0x4555c6
push 0x4e2130
mov eax, dword [ebp + 8]
push eax
call sub.USER32.dll_ScreenToClient
mov edx, dword [0x4e2134]
push edx
lea ecx, [esi + 0x9a]
push ecx
mov eax, dword [ebp + 0x10]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x45560b
push 4
lea edx, [esi + 0x9e]
push edx
push edi
call fcn.004bd07c
add esp, 0xc
test eax, eax
jne 0x45560b
mov ecx, dword [0x4e212c]
add ecx, 4
mov eax, dword [ebp + 0x10]
push esi
mov edi, ecx
mov esi, eax
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
push 3
lea eax, [esi + 0xa4]
push eax
lea edi, [ebx + 5]
push edi
call fcn.004bd07c
add esp, 0xc
test eax, eax
jne 0x455653
push 0x4e2130
mov eax, dword [0x4d42a0]
push eax
call sub.USER32.dll_ScreenToClient
mov edx, dword [0x4e2130]
push edx
lea ecx, [esi + 0xa9]
push ecx
mov eax, dword [ebp + 0x10]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x4556f7
push 3
lea edx, [esi + 0xad]
push edx
push edi
call fcn.004bd07c
add esp, 0xc
test eax, eax
jne 0x455695
push 0x4e2130
mov ecx, dword [0x4d42a0]
push ecx
call sub.USER32.dll_ScreenToClient
mov eax, dword [0x4e2134]
push eax
lea edx, [esi + 0xb2]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x4556f7
push 3
lea eax, [esi + 0xb6]
push eax
push edi
call fcn.004bd07c
add esp, 0xc
test eax, eax
jne 0x4556c7
mov edx, dword [0x4e2130]
push edx
lea ecx, [esi + 0xbb]
push ecx
mov eax, dword [ebp + 0x10]
push eax
call sub.USER32.dll_wsprintfA
add esp, 0xc
jmp 0x4556f7
push 3
lea edx, [esi + 0xbf]
push edx
push edi
call fcn.004bd07c
add esp, 0xc
test eax, eax
jne 0x4556f7
mov ecx, dword [0x4e2134]
push ecx
lea eax, [esi + 0xc4]
push eax
mov edx, dword [ebp + 0x10]
push edx
call sub.USER32.dll_wsprintfA
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
ret 0xc