Function at 0x4056c3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
push edi
and dword [ebp - 0x50], 0
push dword [ebp + 8]
call fcn.00405666
mov dword [ebp + 8], eax
push dword [ebp + 0xc]
call fcn.00405666
mov dword [ebp + 0xc], eax
push dword [ebp + 0x10]
call fcn.00405666
add esp, 0xc
mov dword [ebp + 0x10], eax
cmp dword [0x4567c4], 0
jne 0x405709
push 0x11
call sub.GDI32.dll_GetStockObject
mov dword [0x4567c4], eax
mov dword [ebp - 0x4c], 0x30
mov dword [ebp - 0x48], 3
lea eax, [0x40556e]
mov dword [ebp - 0x44], eax
and dword [ebp - 0x40], 0
and dword [ebp - 0x3c], 0
mov eax, dword [0x45d29c]
mov dword [ebp - 0x38], eax
and dword [ebp - 0x34], 0
push 0x7f00
push 0
call sub.USER32.dll_LoadCursorA
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0x10
and dword [ebp - 0x28], 0
mov eax, dword [str.InputRequester]
mov dword [ebp - 0x24], eax
and dword [ebp - 0x20], 0
lea eax, [ebp - 0x4c]
push eax
call sub.USER32.dll_RegisterClassExA
and dword [0x45d454], 0
push 1
call fcn.00405f8e
call fcn.00405ef0
mov dword [0x45d444], eax
or eax, eax
je 0x4057a2
push eax
call sub.USER32.dll_IsWindowEnabled
or eax, eax
je 0x4057a2
push 0
push dword [0x45d444]
call sub.USER32.dll_EnableWindow
mov dword [0x45d440], 1
jmp 0x4057a9
and dword [0x45d440], 0
push 0
call sub.USER32.dll_GetSystemMetrics
mov dword [ebp - 0x70], eax
push 1
call sub.USER32.dll_GetSystemMetrics
mov dword [ebp - 0x74], eax
call fcn.00405ef0
push 0
push dword [0x45d29c]
push 0
push eax
push 0x82
push 0x12c
mov edi, dword [ebp - 0x74]
mov eax, edi
mov ecx, 2
xor edx, edx
test eax, eax
setl dl
add eax, edx
sar eax, 1
mov edi, eax
sub edi, 0x41
push edi
mov edi, dword [ebp - 0x70]
mov eax, edi
mov ecx, 2
xor edx, edx
test eax, eax
setl dl
add eax, edx
sar eax, 1
mov edi, eax
sub edi, 0x96
push edi
push 0x10c00000
push dword [ebp + 8]
push dword [0x4567c0]
push 0
call sub.USER32.dll_CreateWindowExA
mov esi, eax
or eax, eax
je 0x405a18
mov ebx, 0xa
lea eax, [ebp - 0x50]
push eax
push 0xffffffffffffffeb
push esi
call sub.USER32.dll_SetWindowLongA
push 0
push dword [0x45d29c]
push 0
push esi
push 0x16
push 0x118
push 0xa
push 0xa
push 0x5000000b
push dword [ebp + 0xc]
push 0x4567d7
push 0
call sub.USER32.dll_CreateWindowExA
mov dword [0x45d448], eax
mov ebx, 0x20
push 1
push dword [0x4567c4]
push 0x30
push eax
call sub.USER32.dll_SendMessageA
push 0
push dword [0x45d29c]
push 0xa
push esi
push 0x15
push 0x113
push 0x20
push 0xa
push 0x50010080
push 0
push str.EDIT
push 0x200
call sub.USER32.dll_CreateWindowExA
mov dword [0x45d44c], eax
mov ebx, 0x43
push 1
push dword [0x4567c4]
push 0x30
push eax
call sub.USER32.dll_SendMessageA
push dword [0x45d44c]
call sub.USER32.dll_SetFocus
cmp dword [ebp + 0x10], 0
je 0x405918
push dword [ebp + 0x10]
push 0
push 0xc
push dword [0x45d44c]
call sub.USER32.dll_SendMessageA
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strlen
mov dword [ebp - 0x7c], eax
push dword [ebp + 0x10]
call sub.MSVCRT.dll_strlen
add esp, 8
push eax
mov edi, dword [ebp - 0x7c]
push edi
push 0xb1
push dword [0x45d44c]
call sub.USER32.dll_SendMessageA
push 0
push dword [0x45d29c]
push 0x3e8
push esi
push 0x19
push 0x50
push ebx
push 0x6e
push 0x50010001
push 0x4567c8
push 0x4567cb
push 0
call sub.USER32.dll_CreateWindowExA
mov dword [0x45d450], eax
push 1
push dword [0x4567c4]
push 0x30
push eax
call sub.USER32.dll_SendMessageA
mov byte [ebp - 0x5c], 1
mov word [ebp - 0x5a], 0xd
mov word [ebp - 0x58], 0x3e8
mov byte [ebp - 0x56], 1
mov word [ebp - 0x54], 0x1b
mov word [ebp - 0x52], 0x3e9
push 2
lea eax, [ebp - 0x5c]
push eax
call sub.USER32.dll_CreateAcceleratorTableA
mov dword [ebp - 0x78], eax
push esi
call sub.USER32.dll_SetForegroundWindow
push esi
call sub.USER32.dll_BringWindowToTop
jmp 0x4059b7
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x78]
push esi
call sub.USER32.dll_TranslateAcceleratorA
or eax, eax
jne 0x4059b7
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.dll_TranslateMessage
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.dll_DispatchMessageA
cmp dword [0x45d454], 0
jne 0x4059d3
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call sub.USER32.dll_GetMessageA
or eax, eax
jne 0x405994
cmp dword [ebp - 0x78], 0
je 0x4059e1
push dword [ebp - 0x78]
call sub.USER32.dll_DestroyAcceleratorTable
cmp dword [ebp - 0x50], 0
je 0x405a18
push dword [ebp - 0x50]
call sub.MSVCRT.dll_strlen
mov esi, eax
push dword [ebp + 0x14]
push esi
call fcn.0042d600
mov ebx, eax
push dword [ebp - 0x50]
push ebx
call sub.MSVCRT.dll_strcpy
add esp, 0xc
push dword [ebp - 0x50]
push 0
push dword [0x45d298]
call sub.KERNEL32.dll_HeapFree
cmp dword [ebp - 0x50], 0
jne 0x405a26
push dword [ebp + 0x14]
call fcn.0042d6e0
push dword [ebp + 8]
call fcn.004056a8
push dword [ebp + 0xc]
call fcn.004056a8
push dword [ebp + 0x10]
call fcn.004056a8
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret 0x10