Function at 0x409680
Capabilities:
Create process on windows
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [edx + 0x90]
mov dword [ebp - 0x1c], ecx
test ebx, ebx
je 0x4096e2
mov esi, eax
test byte [ebx + 0x18], 0x10
je 0x4096f0
mov eax, dword [ebx + 0x10]
mov edi, edx
mov dword [ebp - 0x20], eax
test eax, eax
je 0x409718
mov eax, dword [ebx + 0x44]
cmp eax, 0x2e
je 0x4096e2
mov ecx, dword [esi + 0x94]
cmp eax, 0x2e002e
je 0x409790
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x409840
test ecx, ecx
je 0x4096db
mov edx, ecx
mov eax, edi
call sym._collapse_entry.part.0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x409760
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x12
call dword [sym.imp.user32.dll_GetKeyState]
mov edx, dword [esi]
sub esp, 4
test ax, ax
mov eax, ebx
js 0x409780
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp sym._launch_entry.constprop.0.isra.0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x188
mov eax, dword [esi + 4]
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
mov edx, ebx
mov ecx, eax
mov eax, dword [ebp - 0x1c]
sub esp, 0x10
mov dword [esp], eax
mov eax, esi
call dbg.scan_entry
mov eax, dword [ebx + 0x44]
cmp eax, 0x2e
jne 0x4096b2
jmp 0x4096e2
mov eax, edi
xor edx, edx
call dbg.calc_widths
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
jmp dbg.set_header
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp dbg.show_properties_dlg
cmp word [ebx + 0x48], 0
jne 0x4096c3
mov ebx, dword [ecx + 8]
test ebx, ebx
je 0x4097ac
lea eax, [esi + 4]
mov edx, ebx
call sym._collapse_entry.part.0
mov edx, dword [sym.imp.user32.dll_SendMessageW]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x188
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
call edx
mov edx, dword [ebp - 0x24]
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], 0x18f
mov eax, dword [esi + 4]
mov dword [ebp - 0x28], edx
mov dword [esp], eax
call edx
mov edx, dword [ebp - 0x28]
sub esp, 0x10
mov dword [ebp - 0x24], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x186
mov eax, dword [esi + 4]
mov dword [esp], eax
call edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x24]
mov edx, ebx
sub esp, 0x10
mov dword [esp], eax
mov eax, esi
call dbg.set_curdir
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4096e2
jmp 0x409760
test ecx, ecx
je 0x409865
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x409865
mov edx, dword [ecx + 4]
test edx, edx
je 0x409865
cmp dword [edx + 0x44], 0x2e
je 0x409908
test byte [edx + 0x18], 0x10
mov dword [ebp - 0x24], edx
jne 0x409880
mov edx, dword [edi + 0x84]
test edx, edx
jne 0x4096db
jmp 0x4097ac
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x18f
mov eax, dword [esi + 4]
mov dword [ebp - 0x28], ecx
mov dword [esp], eax
call dword [sym.imp.user32.dll_SendMessageW]
mov ecx, dword [ebp - 0x28]
lea edx, [esi + 4]
sub esp, 0x10
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x24]
mov dword [ecx + 0xc], 1
xor ecx, ecx
mov dword [esp + 4], eax
lea eax, [esi + 4]
mov dword [esp], 0x1f
call sym._insert_entries.part.0
mov ecx, dword [esi + 0x160]
test ecx, ecx
jne 0x409865
mov eax, dword [ebp - 0x28]
xor edx, edx
call dbg.calc_widths
test eax, eax
je 0x409865
mov eax, dword [ebp - 0x28]
call dbg.set_header
mov dword [esi + 0x160], 1
jmp 0x409865
mov eax, dword [edx]
test eax, eax
je 0x40985c
cmp dword [eax + 0x44], 0x2e002e
mov edx, eax
jne 0x40985c
cmp word [eax + 0x48], 0
jne 0x40985c
mov edx, dword [eax]
test edx, edx
cmove edx, eax
jmp 0x40985c