Function at 0x4106b7
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
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0x436e24]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 0x48]
cmp dword [edx + 0x28], 0
jne 0x410716
mov eax, dword [0x436e24]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
add eax, 1
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.004134a0
add esp, 4
mov dword [ebp - 0x40], eax
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [0x436e24]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [ebp - 0x48]
xor ecx, ecx
mov cl, byte [eax + 0x38]
test ecx, ecx
je 0x41072b
mov dword [ebp - 0x30], 0x10000000
jmp 0x410732
mov dword [ebp - 0x30], 0x10080000
mov edx, dword [ebp - 0x48]
cmp dword [edx + 0x28], 0
jne 0x410743
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
jmp 0x41074c
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 0x28]
mov dword [ebp - 0x4c], edx
push 0
push 0
push 0
mov eax, dword [0x436e24]
push eax
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 0x34]
push edx
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 0x30]
push ecx
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x48]
sub eax, dword [edx + 0x34]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0xc]
add ecx, eax
push ecx
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x48]
sub eax, dword [edx + 0x30]
cdq
sub eax, edx
sar eax, 1
mov ecx, dword [ebp - 0x10]
add ecx, eax
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x4c]
push eax
push str.EasyX_InputBox
push 1
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x48]
cmp dword [edx + 0x28], 0
jne 0x4107ca
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.004132c0
add esp, 4
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
mov ecx, dword [0x436e24]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
push 5
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x41091a
cmp dword [ebp - 0x28], 0x100
jne 0x410901
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x50], 9
je 0x4108ab
cmp dword [ebp - 0x50], 0xd
je 0x41086d
cmp dword [ebp - 0x50], 0x1b
je 0x410844
jmp 0x410901
mov edx, dword [ebp - 0x48]
xor eax, eax
mov al, byte [edx + 0x38]
test eax, eax
jne 0x410868
push 0
push 2
push 0x111
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x410802
jmp 0x410901
mov eax, dword [ebp - 0x48]
xor ecx, ecx
mov cl, byte [eax + 0x39]
test ecx, ecx
je 0x41088e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx edx, ax
and edx, 0x8000
test edx, edx
je 0x4108a9
push 0
push 1
push 0x111
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x410802
jmp 0x410901
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x3c]
cmp eax, dword [edx + 8]
jne 0x4108cc
mov ecx, dword [ebp - 0x48]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [eax + 0xc]
jne 0x4108e4
mov edx, dword [ebp - 0x48]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 0x48]
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ecx + 0x10]
jne 0x4108fc
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x410802
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x410802
xor eax, eax
cmp dword [ebp - 0x24], 1
sete al
mov esp, ebp
pop ebp
ret