Function at 0x409580
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40c500
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x412018]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x26
call edi
shr eax, 0xf
test al, 1
je 0x4095ca
mov dword [esi + 0xc], 1
push 1
jmp 0x40960a
push 0x28
call edi
shr eax, 0xf
test al, 1
je 0x4095e0
mov dword [esi + 0xc], 2
push 2
jmp 0x40960a
push 0x25
call edi
shr eax, 0xf
test al, 1
je 0x4095f6
mov dword [esi + 0xc], 3
push 3
jmp 0x40960a
push 0x27
call edi
shr eax, 0xf
test al, 1
je 0x409612
mov dword [esi + 0xc], 4
push 4
mov ecx, dword [esi + 0x10]
call fcn.00408bb0
push 0x7b
call edi
shr eax, 0xf
test al, 1
je 0x409673
push 4
push str.reset
push 0x40f540
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x4098b4
mov edi, dword [esi + 0x10]
lea ecx, [edi + 0x24]
mov word [edi + 0x14], 0x101
mov eax, dword [ecx]
cmp eax, dword [ecx + 4]
je 0x409652
call fcn.00409df0
mov ecx, edi
call fcn.00408540
mov eax, dword [esi + 0x10]
mov byte [eax + 0x14], 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x70
call edi
shr eax, 0xf
test al, 1
je 0x4096f9
push 0xc
call dword [sym.imp.MSVCR110.dll_void____cdecl_operator_new_unsigned_int_]
mov esi, eax
add esp, 4
test esi, esi
je 0x4096a8
mov dword [esi + 4], 0
mov word [esi + 8], 0xff
mov byte [esi + 0xa], 1
mov dword [esi], vtable.OrderHelp.0
jmp 0x4096aa
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x68], 0
mov ecx, dword [0x41285c]
lea eax, [esp + 0x10]
push eax
lea ecx, [ecx + 4]
call fcn.00407e90
mov dword [esp + 0x68], 0xffffffff
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4096df
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x74
call edi
shr eax, 0xf
test al, 1
je 0x4097c2
mov ebx, dword [0x412864]
mov ecx, ebx
call fcn.00401860
push 0x40d3b4
lea ecx, [esp + 0x30]
call fcn.00401270
lea ecx, [ebx + 4]
lea eax, [esp + 0x2c]
mov dword [esp + 0x68], 1
cmp ecx, eax
je 0x409740
push 0xffffffffffffffff
push 0
push eax
call fcn.00401310
mov dword [esp + 0x68], 0xffffffff
cmp dword [esp + 0x40], 0x10
mov edi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
jb 0x40975e
push dword [esp + 0x2c]
call edi
add esp, 4
push dword [esi + 0x10]
mov ecx, ebx
call fcn.00401e70
push str.data
lea ecx, [esp + 0x48]
call fcn.00401270
push ecx
lea eax, [esp + 0x48]
push eax
mov ecx, ebx
mov dword [esp + 0x70], 2
call fcn.00401f90
cmp dword [esp + 0x58], 0x10
jb 0x40979b
push dword [esp + 0x44]
call edi
add esp, 4
push 0
push 0x40f554
push 0x40f55c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x78
call edi
shr eax, 0xf
test al, 1
je 0x40988c
mov ebx, dword [0x412864]
push str.data
lea ecx, [esp + 0x18]
call fcn.00401270
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
mov dword [esp + 0x6c], 3
call fcn.00401950
mov dword [esp + 0x68], 0xffffffff
cmp dword [esp + 0x28], 0x10
jb 0x409815
push dword [esp + 0x14]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov edi, dword [esi + 0x10]
mov dword [esp + 0x28], 0xf
lea ecx, [edi + 0x24]
mov word [edi + 0x14], 0x101
mov eax, dword [ecx]
mov dword [esp + 0x24], 0
mov byte [esp + 0x14], 0
cmp eax, dword [ecx + 4]
je 0x409842
call fcn.00409df0
mov ecx, edi
call fcn.00408540
push ecx
push dword [esi + 0x10]
mov ecx, ebx
call fcn.00401f10
push 0
push 0x40f568
push 0x40f570
push 0
mov dword [ebx], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esi + 0x10]
mov byte [eax + 0x14], 1
mov byte [esi + 0xa], 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1b
call edi
shr eax, 0xf
test al, 1
je 0x4098b4
push 4
push 0x40f57c
push 0x40f584
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x4098b4
mov byte [esi + 9], 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret