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

Disassembly:
push 0xffffffffffffffff
push 0x40e559
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x128
push esi
mov eax, dword [0x414dec]
mov dword [esp + 0x134], 0
test eax, eax
je 0x404284
lea ecx, [esp + 0x10]
call fcn.004067c0
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 0x404262
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 0x414358
lea edx, [esp + 0x140]
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00406800
mov esi, eax
cmp esi, 1
mov dword [esp + 0x14], esi
jg 0x4042a2
lea ecx, [esp + 0x18]
mov byte [esp + 0x134], 1
call fcn.0040dace
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 0
call fcn.004067f0
lea ecx, [esp + 0x13c]
mov dword [esp + 0x134], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x40481d
push ebx
push edi
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x28]
call fcn.004049e0
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 0x4042d9
cmp esi, 2
sete al
test al, al
je 0x4042d9
mov bl, 1
jmp 0x4042db
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 0x404316
lea ecx, [esp + 0x10]
push 1
push ecx
lea ecx, [esp + 0x28]
call fcn.004049e0
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.004049e0
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 0x4043d1
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x28]
call fcn.004049e0
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 0x404390
mov ecx, dword [0x414df4]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4043c4
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x28]
call fcn.004049e0
mov eax, dword [eax]
push eax
call ebx
add esp, 4
neg eax
sbb eax, eax
neg eax
push eax
mov eax, dword [0x414df4]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [0x414df4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea edx, [esp + 0x10]
push 0
push edx
lea ecx, [esp + 0x28]
call fcn.004049e0
mov eax, dword [eax]
push str.ClickLeft
push eax
call edi
add esp, 8
test eax, eax
jne 0x404401
cmp esi, 3
mov byte [esp + 0xf], 1
sete al
test al, al
jne 0x404406
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 0x4044a4
lea eax, [esp + 0x14]
push 1
push eax
lea ecx, [esp + 0x2c]
call fcn.004049e0
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.004049e0
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 [0x414dec]
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 [0x414dec]
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.004049e0
mov eax, dword [eax]
push str.ClickRghit
push eax
call edi
add esp, 8
test eax, eax
jne 0x4044d4
cmp esi, 3
mov byte [esp + 0x13], 1
sete al
test al, al
jne 0x4044d9
mov byte [esp + 0x13], 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x404571
lea edx, [esp + 0x14]
push 1
push edx
lea ecx, [esp + 0x2c]
call fcn.004049e0
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.004049e0
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 [0x414dec]
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 [0x414dec]
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.004049e0
mov eax, dword [eax]
push str.KeyDownd
push eax
call edi
add esp, 8
test eax, eax
jne 0x4045a1
cmp esi, 2
mov byte [esp + 0x13], 1
sete al
test al, al
jne 0x4045a6
mov byte [esp + 0x13], 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov al, byte [esp + 0x13]
test al, al
je 0x40462c
lea ecx, [esp + 0x14]
push 1
push ecx
lea ecx, [esp + 0x2c]
call fcn.004049e0
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 [0x414dec]
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 [0x414dec]
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.004049e0
mov eax, dword [eax]
push str.Input
push eax
call edi
add esp, 8
test eax, eax
jne 0x40465b
cmp esi, 2
sete al
test al, al
je 0x40465b
mov bl, 1
jmp 0x40465d
xor bl, bl
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x40472c
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.004049e0
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.004049e0
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 0x404722
xor eax, eax
mov al, byte [esp + esi + 0x38]
cmp eax, 0x80
jb 0x40470d
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 [0x414dec]
push 0x286
push eax
call ebp
inc esi
cmp esi, edi
jl 0x4046f2
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.004049e0
mov eax, dword [eax]
push str.DelCache
push eax
call edi
add esp, 8
test eax, eax
pop ebp
jne 0x40475c
cmp esi, 2
sete al
test al, al
je 0x40475c
mov bl, 1
jmp 0x40475e
xor bl, bl
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4047dd
lea edx, [esp + 0x14]
push 1
push edx
lea ecx, [esp + 0x28]
call fcn.004049e0
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 0x4047a4
push 1
call fcn.00403550
add esp, 4
lea eax, [esp + 0x14]
push 1
push eax
lea ecx, [esp + 0x28]
call fcn.004049e0
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 0x4047dd
push 0
call fcn.00403550
add esp, 4
lea ecx, [esp + 0x20]
mov byte [esp + 0x13c], 1
call fcn.0040dace
lea ecx, [esp + 0x18]
mov byte [esp + 0x13c], 0
call fcn.004067f0
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