Function at 0x4023e8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x64
call fcn.004022a6
xor eax, 1
test al, al
je 0x402405
mov eax, 0
jmp 0x40275e
mov eax, dword [0x46f088]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x147
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
call eax
sub esp, 0x10
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40246b
mov byte [ebp - 0x22], 0xff
mov byte [ebp - 0x21], 0xff
mov byte [ebp - 0x20], 0xff
mov byte [ebp - 0x1f], 0xff
mov byte [ebp - 0x1e], 0xff
mov byte [ebp - 0x1d], 0xff
lea eax, [ebp - 0x22]
mov dword [esp], eax
call fcn.00404541
mov dword [0x46f060], eax
mov dword [0x46f064], edx
jmp 0x402510
mov dword [ebp - 0xc], 0
mov ecx, 0x46f044
call fcn.004575cc
mov dword [ebp - 0x28], eax
jmp 0x4024e9
lea eax, [ebp - 0x28]
mov ecx, eax
call fcn.00420ec0
movzx eax, byte [eax + 0xa0]
test al, al
je 0x4024a9
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jne 0x4024a9
mov eax, 1
jmp 0x4024ae
mov eax, 0
test al, al
je 0x4024d5
lea eax, [ebp - 0x28]
mov ecx, eax
call fcn.00420ec0
mov edx, dword [eax + 0x8c]
mov eax, dword [eax + 0x88]
mov dword [0x46f060], eax
mov dword [0x46f064], edx
jmp 0x402510
lea eax, [ebp - 0x28]
mov dword [esp], 0
mov ecx, eax
call fcn.0041fab8
sub esp, 4
mov ecx, 0x46f044
call fcn.004575a8
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.0041ff60
test al, al
jne 0x402481
movzx eax, byte [0x46f054]
xor eax, 1
test al, al
je 0x402606
mov eax, dword [0x46f0b0]
mov dword [esp + 8], 0x20
lea edx, [ebp - 0x50]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetWindowTextA]
call eax
sub esp, 0xc
mov dword [esp + 8], 0xa
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
lea eax, [ebp - 0x50]
mov dword [esp], eax
call sub.msvcrt.dll_strtol
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jle 0x40257d
cmp dword [ebp - 0x14], 0xffff
jg 0x40257d
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test al, al
je 0x4025fd
mov eax, dword [0x46f080]
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Error
mov dword [esp + 4], str.Invalid_port_number._nPort_number_must_be_an_integer_in_the_range_1___65535
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_MessageBoxA]
call eax
sub esp, 0x10
mov eax, dword [0x46f0b0]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SetFocus]
call eax
sub esp, 4
mov eax, dword [0x46f0b0]
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_GetWindowTextLengthA]
call eax
sub esp, 4
mov edx, eax
mov eax, dword [0x46f0b0]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], 0xb1
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
call eax
sub esp, 0x10
mov eax, 0
jmp 0x40275e
mov eax, dword [ebp - 0x14]
mov word [0x46f050], ax
mov eax, dword [0x46f0b4]
mov dword [esp], eax
call fcn.00403bb9
mov byte [0x46f052], al
mov eax, dword [0x46f0c0]
mov dword [esp], eax
call fcn.00403bb9
mov byte [0x46f053], al
mov dword [0x46f05c], 4
mov eax, dword [0x46f0b8]
mov dword [esp], eax
call fcn.00403bb9
test al, al
je 0x40266a
mov dword [0x46f05c], 2
mov eax, dword [0x46f0bc]
mov dword [esp], eax
call fcn.00403bb9
test al, al
je 0x40266a
mov dword [0x46f05c], 1
mov eax, dword [0x46f0cc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x147
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_SendMessageA]
call eax
sub esp, 0x10
add eax, 1
mov dword [0x46f058], eax
mov ecx, 0x46f044
call fcn.004575cc
mov dword [ebp - 0x30], eax
jmp 0x402703
lea eax, [ebp - 0x30]
mov ecx, eax
call fcn.00420ec0
lea ebx, [eax + 0x90]
lea eax, [ebp - 0x30]
mov ecx, eax
call fcn.00420ec0
mov edx, dword [eax + 0x8c]
mov eax, dword [eax + 0x88]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00406c9f
xor eax, 1
test al, al
je 0x4026ef
mov eax, 0
jmp 0x40275e
lea eax, [ebp - 0x30]
mov dword [esp], 0
mov ecx, eax
call fcn.0041fab8
sub esp, 4
mov ecx, 0x46f044
call fcn.004575a8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov dword [esp + 4], eax
lea eax, [ebp - 0x30]
mov dword [esp], eax
call fcn.0041ff60
test al, al
jne 0x4026ab
mov dword [esp], 0x46f050
call fcn.0040698a
test al, al
je 0x402758
mov eax, dword [0x46f060]
mov edx, dword [0x46f064]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00406f0a
test al, al
je 0x402758
mov eax, 1
jmp 0x40275d
mov eax, 0
nop
mov ebx, dword [ebp - 4]
leave
ret