Function at 0x40ab60
Capabilities:
Get graphical window text
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x84
call sub.USER32.dll_GetDesktopWindow
mov edx, eax
lea eax, [ebp - 0x18]
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.USER32.dll_GetWindowRect
sub esp, 8
mov dword [esp + 0x2c], 0
mov eax, dword [0x464050]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov eax, dword [0x464038]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x7d
mov dword [esp + 0x18], 0x190
mov edx, dword [ebp - 0xc]
sub edx, 0x7d
mov eax, edx
sar eax, 0x1f
shr eax, 0x1f
lea eax, [edx + eax]
sar eax, 1
mov dword [esp + 0x14], eax
mov edx, dword [ebp - 0x10]
sub edx, 0x190
mov eax, edx
sar eax, 0x1f
shr eax, 0x1f
lea eax, [edx + eax]
sar eax, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x80c90000
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str.InputBox
mov dword [esp], pe_nt_image_headers32
call sub.USER32.dll_CreateWindowExA
sub esp, 0x30
mov dword [0x464034], eax
cmp dword [0x464034], 0
jne 0x40ac26
mov dword [ebp - 0x54], 0
jmp 0x40ae37
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [0x46404c]
mov dword [esp], eax
call sub.USER32.dll_SetWindowTextA
sub esp, 8
mov eax, dword [0x464034]
mov dword [esp], eax
call sub.USER32.dll_SetForegroundWindow
sub esp, 4
mov dword [esp + 4], 0
mov eax, dword [0x464038]
mov dword [esp], eax
call sub.USER32.dll_EnableWindow
sub esp, 8
mov dword [esp + 4], 5
mov eax, dword [0x464034]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
mov eax, dword [0x464034]
mov dword [esp], eax
call sub.USER32.dll_UpdateWindow
sub esp, 4
mov dword [ebp - 0x1c], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x48]
mov dword [esp], eax
call sub.USER32.dll_GetMessageA
sub esp, 0x10
test eax, eax
je 0x40ae31
cmp dword [ebp - 0x44], 0x100
jne 0x40ae10
cmp dword [ebp - 0x40], 0x1b
jne 0x40ad04
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov eax, dword [0x464034]
mov dword [esp], eax
call sub.USER32.dll_SendMessageA
sub esp, 0x10
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x40], 0xd
jne 0x40adb1
mov eax, dword [0x46403c]
mov dword [esp], eax
call sub.USER32.dll_GetWindowTextLengthA
sub esp, 4
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
inc dword [eax]
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x40ad50
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
je 0x40ad46
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sym.operator_delete___void_
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sym.operator_new___unsigned_int_
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov eax, dword [0x46403c]
mov dword [esp], eax
call sub.USER32.dll_GetWindowTextA
sub esp, 0xc
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov eax, dword [0x464034]
mov dword [esp], eax
call sub.USER32.dll_SendMessageA
sub esp, 0x10
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0x40], 9
jne 0x40ae10
call sub.USER32.dll_GetFocus
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
cmp eax, dword [0x46403c]
jne 0x40adda
mov eax, dword [0x464040]
mov dword [esp], eax
call sub.USER32.dll_SetFocus
sub esp, 4
mov eax, dword [ebp - 0x4c]
cmp eax, dword [0x464040]
jne 0x40adf5
mov eax, dword [0x464044]
mov dword [esp], eax
call sub.USER32.dll_SetFocus
sub esp, 4
mov eax, dword [ebp - 0x4c]
cmp eax, dword [0x464044]
jne 0x40ae10
mov eax, dword [0x46403c]
mov dword [esp], eax
call sub.USER32.dll_SetFocus
sub esp, 4
lea eax, [ebp - 0x48]
mov dword [esp], eax
call sub.USER32.dll_TranslateMessage
sub esp, 4
lea eax, [ebp - 0x48]
mov dword [esp], eax
call sub.USER32.dll_DispatchMessageA
sub esp, 4
jmp 0x40ac94
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov ebx, dword [ebp - 4]
leave
ret