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

Disassembly:
push 0xffffffffffffffff
push 0x40e469
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push esi
mov eax, dword [0x413dbc]
mov dword [esp + 0x134], 0
test eax, eax
je 0x404264
lea ecx, [esp + 0x10]
call fcn.00405880
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 1
call sub.MFC42.DLL_CStringArray::CStringArray
mov eax, dword [esp + 0x13c]
mov byte [esp + 0x134], 2
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x404242
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x13c]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 0x18]
push 0x413354
lea edx, [esp + 0x140]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.004058c0
mov esi, eax
cmp esi, 1
mov dword [esp + 0x14], esi
jg 0x404282
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 1
call fcn.0040d9ee
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 0
call fcn.004058b0
lea ecx, [esp + 0x13c]
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4047fd
push ebx
push edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x28]
call fcn.00404850
mov eax, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
push str.Delay
push eax
call edi
add esp, 8
test eax, eax
jne 0x4042b9
cmp esi, 2
sete al
test al, al
je 0x4042b9
mov bl, 1
jmp 0x4042bb
xor bl, bl
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
test bl, bl
mov ebx, dword [sym.imp.MSVCRT.dll_atoi]
je 0x4042f6
lea ecx, [esp + 0x10]
push 1
push ecx
lea ecx, [esp + 0x28]
call fcn.00404850
mov eax, dword [eax]
push eax
call ebx
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x10]
push 0
push edx
lea ecx, [esp + 0x28]
call fcn.00404850
mov eax, dword [eax]
push str.NextComplete
push eax
call edi
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
sete byte [esp + 0xf]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0xf]
test al, al
je 0x4043b1
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x28]
call fcn.00404850
mov eax, dword [eax]
push eax
call ebx
add esp, 4
lea ecx, [esp + 0x10]
test eax, eax
setle byte [esp + 0xf]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0xf]
test al, al
je 0x404370
mov ecx, dword [0x413dc4]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4043a4
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x28]
call fcn.00404850
mov eax, dword [eax]
push eax
call ebx
add esp, 4
neg eax
sbb eax, eax
neg eax
push eax
mov eax, dword [0x413dc4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x413dc4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edx, [esp + 0x10]
push 0
push edx
lea ecx, [esp + 0x28]
call fcn.00404850
mov eax, dword [eax]
push str.ClickLeft
push eax
call edi
add esp, 8
test eax, eax
jne 0x4043e1
cmp esi, 3
mov byte [esp + 0xf], 1
sete al
test al, al
jne 0x4043e6
mov byte [esp + 0xf], 0
push ebp
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
mov ebp, dword [sym.imp.USER32.dll_PostMessageA]
test al, al
je 0x404484
lea eax, [esp + 0x14]
push 1
push eax
lea ecx, [esp + 0x2c]
call fcn.00404850
mov eax, dword [eax]
push eax
call ebx
add esp, 4
lea ecx, [esp + 0x14]
mov edi, eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
push 2
push ecx
lea ecx, [esp + 0x2c]
call fcn.00404850
mov eax, dword [eax]
push eax
call ebx
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
call sub.MFC42.DLL_CString::CString
mov edx, dword [0x413dbc]
and esi, 0xffff
shl esi, 0x10
and edi, 0xffff
or esi, edi
push esi
push 1
push 0x201
push edx
call ebp
mov eax, dword [0x413dbc]
push esi
push 1
push 0x202
push eax
call ebp
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x2c]
call fcn.00404850
mov eax, dword [eax]
push str.ClickRghit
push eax
call edi
add esp, 8
test eax, eax
jne 0x4044b4
cmp esi, 3
mov byte [esp + 0x13], 1
sete al
test al, al
jne 0x4044b9
mov byte [esp + 0x13], 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x404551
lea edx, [esp + 0x14]
push 1
push edx
lea ecx, [esp + 0x2c]
call fcn.00404850
mov eax, dword [eax]
push eax
call ebx
add esp, 4
lea ecx, [esp + 0x14]
mov edi, eax
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x14]
push 2
push eax
lea ecx, [esp + 0x2c]
call fcn.00404850
mov eax, dword [eax]
push eax
call ebx
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x413dbc]
and esi, 0xffff
shl esi, 0x10
and edi, 0xffff
or esi, edi
push esi
push 2
push 0x204
push ecx
call ebp
mov edx, dword [0x413dbc]
push esi
push 2
push 0x205
push edx
call ebp
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esp + 0x2c]
call fcn.00404850
mov eax, dword [eax]
push str.KeyDownd
push eax
call edi
add esp, 8
test eax, eax
jne 0x404581
cmp esi, 2
mov byte [esp + 0x13], 1
sete al
test al, al
jne 0x404586
mov byte [esp + 0x13], 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x40460c
lea ecx, [esp + 0x14]
push 1
push ecx
lea ecx, [esp + 0x2c]
call fcn.00404850
mov eax, dword [eax]
push eax
call ebx
add esp, 4
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
lea ecx, [esp + 0x14]
mov esi, eax
call sub.MFC42.DLL_CString::CString
and esi, 0xff
push 0
mov ebx, esi
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov edx, dword [0x413dbc]
mov esi, eax
shl esi, 0x10
inc esi
push esi
push ebx
push 0x100
push edx
call ebp
push 0x1f4
sub esi, 0x40000000
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x413dbc]
push esi
push ebx
push 0x101
push eax
call ebp
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x2c]
call fcn.00404850
mov eax, dword [eax]
push str.Input
push eax
call edi
add esp, 8
test eax, eax
jne 0x40463b
cmp esi, 2
sete al
test al, al
je 0x40463b
mov bl, 1
jmp 0x40463d
xor bl, bl
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40470c
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x18]
push 1
push edx
lea ecx, [esp + 0x2c]
stosb byte es:[edi], al
call fcn.00404850
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push 1
push ecx
mov esi, dword [eax - 8]
lea ecx, [esp + 0x2c]
mov byte [esp + 0x148], 3
call fcn.00404850
mov eax, dword [eax]
push esi
lea edx, [esp + 0x3c]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x140], 2
call sub.MFC42.DLL_CString::CString
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
xor esi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
test edi, edi
jle 0x404702
xor eax, eax
mov al, byte [esp + esi + 0x38]
cmp eax, 0x80
jb 0x4046ed
xor ecx, ecx
mov cl, byte [esp + esi + 0x39]
mov edx, ecx
shl eax, 8
or eax, edx
inc esi
push 0
push eax
mov eax, dword [0x413dbc]
push 0x286
push eax
call ebp
inc esi
cmp esi, edi
jl 0x4046d2
mov edi, dword [sym.imp.MSVCRT.dll__mbscmp]
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push 0
push ecx
lea ecx, [esp + 0x2c]
call fcn.00404850
mov eax, dword [eax]
push str.DelCache
push eax
call edi
add esp, 8
test eax, eax
pop ebp
jne 0x40473c
cmp esi, 2
sete al
test al, al
je 0x40473c
mov bl, 1
jmp 0x40473e
xor bl, bl
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4047bd
lea edx, [esp + 0x14]
push 1
push edx
lea ecx, [esp + 0x28]
call fcn.00404850
mov eax, dword [eax]
push str.Cookie
push eax
call edi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x404784
push 1
call fcn.00403530
add esp, 4
lea eax, [esp + 0x14]
push 1
push eax
lea ecx, [esp + 0x28]
call fcn.00404850
mov eax, dword [eax]
push str.File
push eax
call edi
add esp, 8
lea ecx, [esp + 0x14]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4047bd
push 0
call fcn.00403530
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x13c], 1
call fcn.0040d9ee
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 0
call fcn.004058b0
lea ecx, [esp + 0x144]
mov dword [esp + 0x13c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x12c]
pop esi
mov dword fs:[0], ecx
add esp, 0x134
ret 4