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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ecx
mov ebx, eax
xor edi, edi
imul eax, esi, 0xd
mov edx, dword [0x408664]
mov eax, dword [edx + eax*4 + 0x20]
dec eax
je 0x4059f2
dec eax
je 0x405a62
dec eax
je 0x405a8b
jmp 0x405bb8
lea eax, [ebp - 0x124]
push eax
call sub.user32.dll_GetKeyboardState
mov byte [ebp - 0x113], 0
mov byte [ebp - 0x82], 0
mov byte [ebp - 0x81], 0
push 1
imul eax, esi, 0xd
mov edx, dword [0x408664]
mov eax, dword [edx + eax*4 + 0x24]
push eax
call sub.user32.dll_MapVirtualKeyA
mov byte [ebp - 0x143], 0
push 0
lea edx, [ebp - 0x143]
push edx
lea edx, [ebp - 0x124]
push edx
imul edx, esi, 0xd
mov ecx, dword [0x408664]
mov edx, dword [ecx + edx*4 + 0x24]
push edx
push eax
call sub.user32.dll_ToAscii
mov byte [ebp - 0x142], 0
lea edi, [ebp - 0x143]
jmp 0x405ab5
push 0x10
call sub.user32.dll_GetKeyState
test ah, 0x10
jne 0x405a7c
imul eax, esi, 0xd
mov edx, dword [0x408664]
mov edi, dword [edx + eax*4]
jmp 0x405ab5
imul eax, esi, 0xd
mov edx, dword [0x408664]
mov edi, dword [edx + eax*4 + 4]
jmp 0x405ab5
push 0x90
call sub.user32.dll_GetKeyState
test al, 1
jne 0x405aa8
imul eax, esi, 0xd
mov edx, dword [0x408664]
mov edi, dword [edx + eax*4 + 8]
jmp 0x405ab5
imul eax, esi, 0xd
mov edx, dword [0x408664]
mov edi, dword [edx + eax*4 + 0xc]
mov eax, dword [0x408658]
add eax, 0xc
push eax
call sub.gdi32.dll_CreateFontIndirectA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x405adb
mov eax, dword [ebp - 0x10]
push eax
push ebx
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x14], eax
jmp 0x405ae0
xor eax, eax
mov dword [ebp - 0x14], eax
push 1
push ebx
call sub.gdi32.dll_SetBkMode
mov dword [ebp - 0xc], eax
cmp dword [ebp + 8], 0
je 0x405b01
push 0xe
call sub.user32.dll_GetSysColor
push eax
push ebx
call sub.gdi32.dll_SetTextColor
jmp 0x405b5b
imul eax, esi, 0xd
mov edx, dword [0x408664]
mov eax, dword [edx + eax*4 + 0x1c]
cmp eax, 2
je 0x405b3d
imul edx, esi, 0xd
mov ecx, dword [0x408664]
cmp eax, 4
je 0x405b3d
imul edx, esi, 0xd
mov ecx, dword [0x408664]
cmp eax, 5
je 0x405b3d
imul edx, esi, 0xd
mov ecx, dword [0x408664]
cmp eax, 6
jne 0x405b4d
push 3
call sub.user32.dll_GetSysColor
push eax
push ebx
call sub.gdi32.dll_SetTextColor
jmp 0x405b5b
push 0x12
call sub.user32.dll_GetSysColor
push eax
push ebx
call sub.gdi32.dll_SetTextColor
push edi
call sub.kernel32.dll_lstrlenA
mov esi, eax
lea eax, [ebp - 8]
push eax
push esi
push edi
push ebx
call sub.gdi32.dll_GetTextExtentPoint32A
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x24]
sub eax, dword [ebp - 8]
sar eax, 1
jns 0x405b7f
adc eax, 0
mov edx, dword [ebp - 0x18]
sub edx, dword [ebp - 0x20]
sub edx, dword [ebp - 4]
sar edx, 1
jns 0x405b8f
adc edx, 0
push esi
push edi
push edx
push eax
push ebx
call sub.gdi32.dll_TextOutA
mov edi, eax
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.gdi32.dll_SetBkMode
mov eax, dword [ebp - 0x14]
push eax
push ebx
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 0x10]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4