Function at 0x4086e9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
push 0x10
mov dword [edi + 0x794], eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
mov dword [edi], eax
lea eax, [edi + 0x340]
push eax
push 0x487
push dword [edi + 0x794]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [edi + 0x794]
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [ebp + 8], eax
test eax, eax
je 0x408a44
push 0x26
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov esi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
xor ecx, ecx
shr eax, 8
inc ecx
and eax, ecx
xor ebx, ebx
push ebx
mov dword [edi + 0x790], eax
call esi
push ebx
mov dword [edi + 4], eax
call esi
push dword [ebp + 8]
mov dword [edi + 0x358], eax
push dword [edi + 0x794]
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [edi + 0x358], ebx
je 0x408a44
mov eax, dword [0x4ff0e4]
push 0x2000
neg eax
push ebx
sbb eax, eax
push ebx
and eax, 0x9e
push ebx
add eax, 0x6d
push eax
push dword [0x531f80]
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push dword [edi + 0x358]
mov dword [edi + 0x350], eax
call esi
mov ecx, dword [0x4ff0e4]
mov dword [edi + 0x354], eax
mov eax, dword [0x4ff0e4]
mov eax, dword [eax*4 + section..data]
imul eax, dword [ecx*4 + 0x4f7008]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [edi + 0x18], eax
cmp dword [edi + 0x350], ebx
je 0x408a19
test eax, eax
je 0x408a19
push 0x430
lea eax, [edi + 0x35c]
push ebx
push eax
call fcn.0049a3b0
xor eax, eax
lea edx, [edi + 0x35c]
add esp, 0xc
mov dword [edx], 0x28
inc eax
mov word [edi + 0x368], ax
push 8
pop eax
mov word [edi + 0x36a], ax
add eax, 0x78
mov dword [edi + 0x37c], eax
mov dword [edi + 0x380], eax
mov eax, dword [0x4ff0e4]
push ebx
push edx
mov eax, dword [eax*4 + section..data]
mov dword [edi + 0x360], eax
mov eax, dword [0x4ff0e4]
mov eax, dword [eax*4 + 0x4f7008]
neg eax
mov dword [edi + 0x364], eax
mov eax, dword [0x4ff0e4]
mov ecx, dword [0x4ff0e4]
push dword [edi + 0x18]
mov eax, dword [eax*4 + 0x4f7008]
imul eax, dword [ecx*4 + section..data]
mov dword [edi + 0x370], eax
mov eax, dword [0x4ff0e4]
push dword [eax*4 + 0x4f7008]
push ebx
push dword [edi + 0x350]
push dword [edi + 0x358]
call dword [sym.imp.GDI32.dll_GetDIBits]
lea eax, [edi + 0x384]
push eax
push 0x100
push ebx
push dword [edi + 0x358]
call dword [sym.imp.GDI32.dll_GetDIBColorTable]
push dword [edi + 0x354]
push dword [edi + 0x358]
call esi
push dword [edi + 0x358]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [edi + 0x350]
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [edi + 0x790], ebx
je 0x408963
mov dword [ebp - 0x404], 0x800300
mov edx, 0x80
mov dword [edi + 0x78c], ebx
mov ecx, ebx
mov al, byte [edi + ecx*4 + 0x386]
mov byte [ebp + ecx*4 - 0x400], al
mov al, byte [edi + ecx*4 + 0x385]
mov byte [ebp + ecx*4 - 0x3ff], al
mov al, byte [edi + ecx*4 + 0x384]
mov byte [ebp + ecx*4 - 0x3fe], al
mov byte [ebp + ecx*4 - 0x3fd], bl
inc ecx
mov dword [edi + 0x78c], ecx
cmp ecx, edx
jl 0x408915
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.GDI32.dll_CreatePalette]
mov dword [0x4ff0e8], eax
mov ecx, dword [edi + 0x34c]
lea esi, [edi + 0x788]
sub ecx, dword [edi + 0x344]
mov edx, dword [edi + 0x348]
mov eax, ecx
sub edx, dword [edi + 0x340]
neg eax
push ebx
push ebx
add edx, 3
mov dword [edi + 0x14], ecx
and edx, 0xfffffffc
mov dword [edi + 0x364], eax
push esi
push ebx
imul ecx, edx
lea eax, [edi + 0x35c]
push eax
push dword [edi + 4]
mov dword [edi + 0x10], edx
mov dword [edi + 0x37c], ebx
mov dword [edi + 0x380], ebx
mov dword [edi + 0x360], edx
mov dword [edi + 0x370], ecx
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov dword [edi + 8], eax
test eax, eax
je 0x408a25
push eax
push dword [edi + 4]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [edi + 0xc], eax
mov eax, dword [esi]
mov dword [edi + 0x1c], eax
mov eax, dword [0x4ff0e4]
cmp dword [eax*4 + 0x4f7008], ebx
jle 0x408a14
add edi, 0x20
mov eax, dword [0x4ff0e4]
mov ecx, dword [eax*4 + section..data]
imul ecx, ebx
inc ebx
mov dword [edi], ecx
lea edi, [edi + 4]
mov ecx, dword [0x4ff0e4]
cmp ebx, dword [ecx*4 + 0x4f7008]
jl 0x4089f0
xor eax, eax
inc eax
jmp 0x408a46
push dword [edi + 0x358]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [edi + 0x350]
test eax, eax
je 0x408a36
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [edi + 0x18], ebx
je 0x408a44
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4