Function at 0x40e319
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.004306f0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40e36c
push ebx
call fcn.0042ed69
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0xff
push 1
mov ebx, 0x184
call fcn.004306f0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40e3a5
push ebx
call fcn.0042ed69
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esp
push 0xff
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40e3d3
push 6
call fcn.0042ed6f
add esp, 4
mov dword [ebp - 0x10], esp
push 0xff
push dword [ebp - 4]
push dword [ebp + 8]
call dword [0x5b8734]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40e3fd
push 6
call fcn.0042ed6f
add esp, 4
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x40e410
mov eax, 0x4672f2
push eax
push 1
mov ebx, 0x178
call fcn.0042fdf0
add esp, 0x10
mov dword [ebp - 0x10], eax
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40e439
mov eax, 0x4672f2
push eax
push 1
mov ebx, 0x154
call fcn.004309c0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40e45f
push ebx
call fcn.0042ed69
add esp, 4
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40e472
mov eax, 0x4672f2
push eax
push 1
mov ebx, 0x178
call fcn.0042fdf0
add esp, 0x10
mov dword [ebp - 0x18], eax
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40e49b
mov eax, 0x4672f2
push eax
push 1
mov ebx, 0x154
call fcn.004309c0
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40e4c1
push ebx
call fcn.0042ed69
add esp, 4
push 0x46738f
push dword [ebp - 0x1c]
push 0x46738f
push dword [ebp - 0x14]
push 0x46738f
push dword [0x5b8544]
mov ecx, 6
call fcn.004010d5
add esp, 0x18
mov dword [ebp - 0x20], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40e4fc
push ebx
call fcn.0042ed69
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40e50c
push ebx
call fcn.0042ed69
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
mov ebx, dword [0x5b8544]
test ebx, ebx
je 0x40e523
push ebx
call fcn.0042ed69
add esp, 4
pop eax
mov dword [0x5b8544], eax
mov dword [ebp - 0xc], 0xffff0005
push reloc.WSOCK32.dll_getsockname
push 0
push 0x40e82a
push 1
mov ebx, 0x9dc
call fcn.00430cf0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push 0
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [0x5b8738]
nop
nop
nop
nop
cmp dword [ebp - 0x14], esp
je 0x40e57b
push 6
call fcn.0042ed6f
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffff0005
jne 0x40e5bd
push 0x80000301
push 0
push 1
push 1
mov ebx, 0x67c
call fcn.004301e0
add esp, 0x10
push 0
mov ebx, 0x350
call fcn.004305b0
add esp, 4
jmp 0x40e57e
mov eax, 1
jmp 0x40e5c7
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40e5d8
push ebx
call fcn.0042ed69
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40e5e8
push ebx
call fcn.0042ed69
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4