Function at 0x4074d7
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 [0x418638], 0
je 0x4074fc
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0x418638]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
jmp 0x40750c
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 0x407551
mov ecx, dword [0x418638]
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.004098d3
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 [0x418638]
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 0x407566
mov dword [ebp - 0x30], 0x10000000
jmp 0x40756d
mov dword [ebp - 0x30], 0x10080000
mov eax, dword [ebp - 0x48]
cmp dword [eax + 0x28], 0
jne 0x40757e
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x4c], ecx
jmp 0x407587
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x28]
mov dword [ebp - 0x4c], eax
push 0
push 0
push 0
mov ecx, dword [0x418638]
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 0x407606
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
push edx
call fcn.0040961e
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 [0x418638]
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 0x407755
cmp dword [ebp - 0x28], 0x100
jne 0x40773c
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x50], edx
cmp dword [ebp - 0x50], 9
je 0x4076e6
cmp dword [ebp - 0x50], 0xd
je 0x4076a9
cmp dword [ebp - 0x50], 0x1b
je 0x407680
jmp 0x40773c
mov eax, dword [ebp - 0x48]
xor ecx, ecx
mov cl, byte [eax + 0x38]
test ecx, ecx
jne 0x4076a4
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 0x40763e
jmp 0x40773c
mov ecx, dword [ebp - 0x48]
xor edx, edx
mov dl, byte [ecx + 0x39]
test edx, edx
je 0x4076c9
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx eax, ax
and eax, 0x8000
test eax, eax
je 0x4076e4
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 0x40763e
jmp 0x40773c
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 0x407707
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 0x40771f
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 0x407737
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x40763e
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 0x40763e
xor eax, eax
cmp dword [ebp - 0x24], 1
sete al
mov esp, ebp
pop ebp
ret