Function at 0x45795c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov byte [ebp - 2], dl
mov byte [ebp - 1], al
lea esi, [ebp - 0x1f]
xor eax, eax
push ebp
push 0x457baf
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 1], 0
setne al
push eax
cmp byte [ebp - 1], 2
sete al
push eax
movzx eax, byte [ebp - 2]
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 4]
mov dl, 1
mov eax, dword [0x4503cc]
call fcn.00455fa8
mov ebx, eax
jmp 0x457b04
cmp dword [esi + 4], 0x100
jne 0x4579dc
cmp dword [esi + 8], 0x1b
jne 0x4579dc
mov eax, dword [ebx + 0x2c]
mov dword [esi], eax
mov dword [esi + 4], 0x10
xor eax, eax
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x457ae3
cmp dword [esi + 4], 0x100
jne 0x457a08
cmp dword [esi + 8], 0x70
jne 0x457a08
mov byte [ebp - 3], 0
mov eax, dword [ebx + 0x74]
push eax
lea eax, [ebp - 3]
push eax
mov cl, 7
mov dl, 1
mov eax, dword [ebx + 0x2c]
call fcn.004425fc
jmp 0x457ae3
cmp dword [esi + 4], 0x100
jne 0x457a76
mov eax, dword [esi + 8]
cmp eax, dword [0x4b8684]
jne 0x457a76
push 0x10
call sub.user32.dll_GetKeyState
and ax, 0x80
cmp ax, 0x80
jne 0x457a76
push 0x11
call sub.user32.dll_GetKeyState
and ax, 0x80
cmp ax, 0x80
jne 0x457a76
push 0x12
call sub.user32.dll_GetKeyState
and ax, 0x80
cmp ax, 0x80
jne 0x457a76
movzx eax, byte [ebp - 1]
test al, al
je 0x457a5b
sub al, 2
jne 0x457a76
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax]
call dword [edx + 0xc0]
test al, al
jne 0x457a76
mov eax, ebx
call fcn.00451810
jmp 0x457ae3
cmp dword [esi + 4], 0x100
jne 0x457ae3
cmp dword [esi + 8], 0x43
jne 0x457ae3
push 0x11
call sub.user32.dll_GetKeyState
and ax, 0x80
cmp ax, 0x80
jne 0x457ae3
xor eax, eax
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax]
call dword [edx + 0xc0]
test al, al
je 0x457aca
lea ecx, [ebp - 0x24]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor edx, edx
mov edi, dword [eax]
call dword [edi + 0x354]
mov eax, dword [ebp - 0x24]
call fcn.00436ba4
jmp 0x457ae3
lea edx, [ebp - 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [eax]
call dword [ecx + 0x320]
mov eax, dword [ebp - 0x28]
call fcn.00436ba4
mov eax, dword [esi]
cmp eax, dword [ebx + 0x34]
je 0x457af8
push esi
mov eax, dword [ebx + 0x2c]
push eax
call sub.user32.dll_IsDialogMessageW
test eax, eax
jne 0x457b04
push esi
call sub.user32.dll_TranslateMessage
push esi
call sub.user32.dll_DispatchMessageW
mov eax, dword [ebx + 0x2c]
push eax
call sub.user32.dll_IsWindow
test eax, eax
je 0x457b27
push 0
push 0
push 0
push esi
call sub.user32.dll_GetMessageW
inc eax
cmp eax, 1
ja 0x4579b2
movzx eax, byte [ebp - 1]
test al, al
je 0x457b33
sub al, 2
jne 0x457b39
cmp byte [ebx + 0x5d], 0
jne 0x457b3d
xor eax, eax
jmp 0x457b3f
mov al, 1
mov byte [ebp - 3], al
mov eax, ebx
call fcn.004052c8
cmp byte [ebp - 3], 0
je 0x457b94
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0xc4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x4c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x5c]
mov eax, dword [ebp + 8]
push eax
xor edx, edx
xor eax, eax
call fcn.0045795c
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457bb6
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00406e54
ret