Function at 0x4091f7
Capabilities:
Get graphical window text
Hide graphical window
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x48], ecx
cmp dword [0x451e04], 0
je 0x40921c
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0x451e04]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x40922c
push 0
lea edx, [ebp - 0x10]
push edx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x28], 0
jne 0x409271
mov ecx, dword [0x451e04]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
add eax, 1
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
push edx
call fcn.004128f0
add esp, 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [0x451e04]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp - 0x48]
xor edx, edx
mov dl, byte [ecx + 0x38]
test edx, edx
je 0x409286
mov dword [ebp - 0x30], 0x10000000
jmp 0x40928d
mov dword [ebp - 0x30], 0x10080000
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x28], 0
jne 0x40929e
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x4c], ecx
jmp 0x4092a7
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x4c], eax
push 0
push 0
push 0
mov ecx, dword [0x451e04]
push ecx
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x34]
push eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 0x30]
push edx
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x48]
sub eax, dword [ecx + 0x34]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0xc]
add edx, eax
push edx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x48]
sub eax, dword [ecx + 0x30]
cdq
sub eax, edx
sar eax, 1
mov edx, dword [ebp - 0x10]
add edx, eax
push edx
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
push str.EasyX_InputBox
push 1
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edx, dword [ebp - 0x48]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x28], 0
jne 0x409326
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.0040fed0
add esp, 4
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
mov edx, dword [0x451e04]
push edx
call dword [sym.imp.USER32.dll_EnableWindow]
push 5
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x409475
cmp dword [ebp - 0x28], 0x100
jne 0x40945c
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x50], edx
cmp dword [ebp - 0x50], 9
je 0x409406
cmp dword [ebp - 0x50], 0xd
je 0x4093c9
cmp dword [ebp - 0x50], 0x1b
je 0x4093a0
jmp 0x40945c
mov eax, dword [ebp - 0x48]
xor ecx, ecx
mov cl, byte [eax + 0x38]
test ecx, ecx
jne 0x4093c4
push 0
push 2
push 0x111
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40935e
jmp 0x40945c
mov ecx, dword [ebp - 0x48]
xor edx, edx
mov dl, byte [ecx + 0x39]
test edx, edx
je 0x4093e9
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
and eax, 0x8000
test eax, eax
je 0x409404
push 0
push 1
push 0x111
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40935e
jmp 0x40945c
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [eax + 8]
jne 0x409427
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ecx + 0xc]
jne 0x40943f
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x3c]
cmp eax, dword [edx + 0x10]
jne 0x409457
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x40935e
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40935e
xor eax, eax
cmp dword [ebp - 0x24], 1
sete al
mov esp, ebp
pop ebp
ret