Function at 0x417244
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x134
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov byte [ebp - 0x120], dl
mov byte [ebp - 0x124], al
mov word [ebp - 0xa], 0
mov byte [ebp - 0xb], 0
mov byte [ebp - 0xc], 0
cmp dword [ebp + 8], 0x90
jne 0x4173ed
mov eax, dword [sym.imp.KERNEL32.dll_GetVersion]
call eax
mov dword [ebp - 0x10], eax
mov word [ebp - 0xa], 1
movzx eax, word [ebp - 0xa]
cmp dword [ebp + 0xc], eax
jl 0x4174b6
cmp byte [ebp - 0x124], 0
je 0x4172b4
mov eax, dword [ebp - 0x11c]
mov ecx, eax
call fcn.00417af4
mov eax, dword [ebp - 0x10]
test eax, eax
js 0x417316
mov eax, dword [ebp + 8]
movzx eax, al
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0x45
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_keybd_event]
call eax
sub esp, 0x10
mov eax, dword [ebp + 8]
movzx eax, al
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x45
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_keybd_event]
call eax
sub esp, 0x10
jmp 0x4173dd
mov eax, dword [ebp - 0x10]
shr ax, 8
cmp al, 9
jbe 0x41737e
mov dword [ebp - 0xf4], 1
mov eax, dword [ebp - 0xf4]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 8]
mov word [ebp - 0xf0], ax
movzx eax, word [ebp - 0xf0]
mov word [ebp - 0x10c], ax
mov dword [ebp - 0xec], 2
mov dword [esp + 8], 0x1c
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov dword [esp], 2
mov eax, dword [sym.imp.USER32.dll_SendInput]
call eax
sub esp, 0xc
jmp 0x4173dd
mov dword [esp], 0x90
mov eax, dword [sym.imp.USER32.dll_GetKeyState]
call eax
sub esp, 4
cwde
and eax, 1
test eax, eax
setne al
mov byte [ebp - 0xc], al
lea eax, [ebp - 0x110]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetKeyboardState]
call eax
sub esp, 4
cmp byte [ebp - 0xc], 0
je 0x4173c0
movzx eax, byte [ebp - 0x80]
and eax, 0xfffffffe
mov byte [ebp - 0x80], al
jmp 0x4173ca
movzx eax, byte [ebp - 0x80]
or eax, 1
mov byte [ebp - 0x80], al
lea eax, [ebp - 0x110]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SetKeyboardState]
call eax
sub esp, 4
movzx eax, word [ebp - 0xa]
add eax, 1
mov word [ebp - 0xa], ax
jmp 0x417291
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_MapVirtualKeyA]
call eax
sub esp, 8
mov byte [ebp - 0xb], al
mov word [ebp - 0xa], 1
movzx eax, word [ebp - 0xa]
cmp dword [ebp + 0xc], eax
jl 0x4174b7
cmp byte [ebp - 0x124], 0
je 0x417431
mov eax, dword [ebp - 0x11c]
mov ecx, eax
call fcn.00417af4
mov eax, dword [ebp + 8]
movzx eax, al
mov dword [esp], eax
call fcn.00417198
test al, al
je 0x41744a
mov ebx, 1
jmp 0x41744f
mov ebx, 0
movzx ecx, byte [ebp - 0xb]
mov eax, dword [ebp + 8]
movzx edx, al
mov eax, dword [ebp - 0x11c]
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ecx, eax
call fcn.004170f0
sub esp, 0xc
cmp byte [ebp - 0x120], 0
je 0x4174a6
movzx ecx, byte [ebp - 0xb]
mov eax, dword [ebp + 8]
movzx edx, al
mov eax, dword [ebp - 0x11c]
mov dword [esp + 8], 3
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ecx, eax
call fcn.004170f0
sub esp, 0xc
movzx eax, word [ebp - 0xa]
add eax, 1
mov word [ebp - 0xa], ax
jmp 0x41740e
nop
mov ebx, dword [ebp - 4]
leave
ret 0x10