Function at 0x4a582fbc
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 - 0x20]
xor eax, eax
push ebp
push 0x4a583239
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 [0x4a57a5e4]
call fcn.4a580a48
mov ebx, eax
jmp 0x4a58318e
cmp dword [esi + 4], 0x100
jne 0x4a58303c
cmp dword [esi + 8], 0x1b
jne 0x4a58303c
mov eax, dword [ebx + 0x34]
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 0x4a583147
cmp dword [esi + 4], 0x100
jne 0x4a583068
cmp dword [esi + 8], 0x70
jne 0x4a583068
mov byte [ebp - 3], 0
mov eax, dword [ebx + 0x7c]
push eax
lea eax, [ebp - 3]
push eax
mov cl, 0xa
mov dl, 1
mov eax, dword [ebx + 0x34]
call fcn.4a561fe0
jmp 0x4a583147
cmp dword [esi + 4], 0x100
jne 0x4a5830d6
mov eax, dword [esi + 8]
cmp eax, dword [0x4a5e8460]
jne 0x4a5830d6
push 0x10
call sub.user32.dll_GetKeyState
and ax, 0x80
cmp ax, 0x80
jne 0x4a5830d6
push 0x11
call sub.user32.dll_GetKeyState
and ax, 0x80
cmp ax, 0x80
jne 0x4a5830d6
push 0x12
call sub.user32.dll_GetKeyState
and ax, 0x80
cmp ax, 0x80
jne 0x4a5830d6
movzx eax, byte [ebp - 1]
test al, al
je 0x4a5830bb
sub al, 2
jne 0x4a5830d6
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax]
call dword [edx + 0xc0]
test al, al
jne 0x4a5830d6
mov eax, ebx
call fcn.4a57bcbc
jmp 0x4a583147
cmp dword [esi + 4], 0x100
jne 0x4a583147
cmp dword [esi + 8], 0x43
jne 0x4a583147
push 0x11
call sub.user32.dll_GetKeyState
and ax, 0x80
cmp ax, 0x80
jne 0x4a583147
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 0x4a58312e
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
or ecx, 0xffffffff
xor edx, edx
mov edi, dword [eax]
call dword [edi + 0x3c4]
mov eax, dword [ebp - 0x24]
call fcn.4a555644
jmp 0x4a583147
lea edx, [ebp - 0x28]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [eax]
call dword [ecx + 0x380]
mov eax, dword [ebp - 0x28]
call fcn.4a555644
cmp dword [esi + 4], 0
jne 0x4a58316d
call sub.kernel32.dll_GetCurrentThreadId_1
mov edx, dword [0x4a5ed644]
cmp eax, dword [edx]
jne 0x4a58316d
cmp dword [0x4a5e84e0], 0
je 0x4a58316d
xor eax, eax
call dword [0x4a5e84e0]
mov eax, dword [esi]
cmp eax, dword [ebx + 0x3c]
je 0x4a583182
push esi
mov eax, dword [ebx + 0x34]
push eax
call sub.user32.dll_IsDialogMessageW
test eax, eax
jne 0x4a58318e
push esi
call sub.user32.dll_TranslateMessage
push esi
call sub.user32.dll_DispatchMessageW
mov eax, dword [ebx + 0x34]
push eax
call sub.user32.dll_IsWindow
test eax, eax
je 0x4a5831b1
push 0
push 0
push 0
push esi
call sub.user32.dll_GetMessageW
inc eax
cmp eax, 1
ja 0x4a583012
movzx eax, byte [ebp - 1]
test al, al
je 0x4a5831bd
sub al, 2
jne 0x4a5831c3
cmp byte [ebx + 0x65], 0
jne 0x4a5831c7
xor eax, eax
jmp 0x4a5831c9
mov al, 1
mov byte [ebp - 3], al
mov eax, ebx
call fcn.4a505b78
cmp byte [ebp - 3], 0
je 0x4a58321e
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.4a582fbc
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a583240
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.4a507678
ret