Function at 0x40455c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40eb25
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x23c
push esi
mov dword [ebp - 0x238], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_1
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
imul eax, eax, 6
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4045f3
mov dword [ebp - 0x228], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040e48c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040e48c
mov eax, dword [ebp - 0x228]
jmp 0x4047d8
mov dword [ebp - 0x1c], 0
jmp 0x404605
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp + 0xc]
jge 0x4047ae
push 0x206
push 0
lea eax, [ebp - 0x224]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x206
lea ecx, [ebp - 0x224]
push ecx
push 0x416550
mov edx, dword [ebp - 0x1c]
imul edx, edx, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx + 8]
push ecx
mov edx, dword [ebp - 0x1c]
imul edx, edx, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx + 4]
push ecx
mov ecx, dword [ebp - 0x238]
call sym.OpenScanf.exe_public:_unsigned_long_int___thiscall_CResIni::IniReadString_char_const___char_const___char_const___char___unsigned_long_int_
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [ebp - 0x18]
call fcn.00404dc0
cmp eax, 1
jne 0x404680
jmp 0x4045fc
push 0x4150d4
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::SpanExcluding
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0x23c]
mov dword [ebp - 0x240], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x240]
push edx
lea ecx, [ebp - 0x10]
call fcn.0040e4a4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x22c]
call fcn.0040e48c
lea ecx, [ebp - 0x10]
call fcn.00404dc0
cmp eax, 1
jne 0x4046da
jmp 0x4045fc
lea ecx, [ebp - 0x18]
call fcn.00404d80
mov esi, eax
lea ecx, [ebp - 0x10]
call fcn.00404d80
sub esi, eax
sub esi, 1
push esi
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::Right
mov dword [ebp - 0x244], eax
mov ecx, dword [ebp - 0x244]
mov dword [ebp - 0x248], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x248]
push edx
lea ecx, [ebp - 0x18]
call fcn.0040e4a4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.0040e48c
lea ecx, [ebp - 0x18]
call fcn.00404dc0
cmp eax, 1
jne 0x404747
jmp 0x4045fc
mov eax, dword [ebp - 0x1c]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x1c]
imul ecx, ecx, 6
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp + 8]
mov ax, word [esi + eax]
mov word [edx + ecx + 4], ax
lea ecx, [ebp - 0x10]
call fcn.00404de0
push eax
mov ecx, dword [ebp - 0x238]
call sym.OpenScanf.exe_private:_unsigned_char___thiscall_CResIni::GetSpecialKey_char_const__
mov ecx, dword [ebp - 0x1c]
imul ecx, ecx, 6
mov edx, dword [ebp - 0x14]
mov byte [edx + ecx], al
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::MakeLower
push 0
lea ecx, [ebp - 0x18]
call fcn.00404df0
push eax
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov ecx, dword [ebp - 0x1c]
imul ecx, ecx, 6
mov edx, dword [ebp - 0x14]
mov word [edx + ecx + 2], ax
jmp 0x4045fc
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0040e48c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.0040e48c
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 8