Function at 0x1001ac40
Capabilities:
Connect socket

Disassembly:
sub esp, 0x160
mov eax, dword [0x1007b430]
xor eax, esp
mov dword [esp + 0x15c], eax
mov eax, dword [esp + 0x164]
push ebp
push esi
mov esi, dword [ebx]
mov dword [esp + 0x10], ecx
mov dword [ecx], 0xffffffff
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x28]
push edx
push eax
push ebx
mov dword [esp + 0x1c], 0
call fcn.1001aa80
mov ebp, eax
add esp, 0x10
test ebp, ebp
je 0x1001aca4
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x15c]
xor ecx, esp
call fcn.1004b8fc
add esp, 0x160
ret
movzx eax, word [esp + 0x34]
sub eax, 2
push edi
jne 0x1001adf0
push 0x2e
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x44]
push ecx
push 2
call fcn.1003fda0
add esp, 0x10
test eax, eax
je 0x1001adf0
mov edx, dword [esp + 0x3a]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
lea ecx, [esp + 0xb8]
push ecx
push str.__Trying__s..._n
push esi
call fcn.100148c0
mov edi, dword [esp + 0x18]
add esp, 0xc
cmp dword [esp + 0x28], 2
jne 0x1001ae49
mov eax, 1
cmp dword [esp + 0x2c], eax
jne 0x1001ae49
test byte [esi + 0xa90], 8
mov dword [esp + 0xc], eax
je 0x1001ad2b
push ebx
mov ecx, edi
call fcn.1001a870
add esp, 4
push edi
call fcn.1001a910
add esp, 4
cmp dword [esp + 0xc], 0
je 0x1001ad4c
test dword [esi + 0xa90], 0x2000
je 0x1001ad4c
call fcn.10019f50
cmp dword [esi + 0x610], 0
je 0x1001ad93
push 1
push esi
call fcn.10017c20
mov edx, dword [esi + 0x614]
mov eax, dword [esi + 0x610]
push 0
push edi
push edx
call eax
push 0
push esi
mov dword [esp + 0x28], eax
call fcn.10017c20
mov eax, dword [esp + 0x28]
add esp, 0x1c
cmp eax, 2
jne 0x1001ae56
mov dword [esp + 0x10], 1
cmp dword [esp + 0x28], 2
jne 0x1001ae85
lea ecx, [esp + 0x38]
push ecx
call fcn.10011e30
mov edx, dword [esp + 0x2c]
push eax
push edx
push edi
push ebx
call fcn.1001a130
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x1001ae85
push edi
push ebx
call fcn.1001aa00
add esp, 8
cmp ebp, 1
jne 0x1001afbc
pop edi
pop esi
lea eax, [ebp + 6]
pop ebp
mov ecx, dword [esp + 0x15c]
xor ecx, esp
call fcn.1004b8fc
add esp, 0x160
ret
mov byte [esp + 0xb8], 0
call fcn.100508c6
mov dword [eax], 0x273f
call fcn.100508c6
mov edi, eax
call fcn.100508c6
mov ecx, dword [edi]
mov ebp, eax
push 0x80
lea eax, [esp + 0xec]
push eax
push ecx
call fcn.1003f380
mov edx, dword [ebp]
push eax
push edx
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.100149a0
mov eax, dword [esp + 0x28]
push eax
push ebx
call fcn.1001aa00
add esp, 0x24
jmp 0x1001afdc
mov dword [esp + 0xc], 0
jmp 0x1001ad2b
test eax, eax
je 0x1001ad93
push edi
push ebx
call fcn.1001aa00
add esp, 8
pop edi
pop esi
mov eax, 0x2a
pop ebp
mov ecx, dword [esp + 0x15c]
xor ecx, esp
call fcn.1004b8fc
add esp, 0x160
ret
push 1
push edi
call fcn.10042380
lea eax, [esp + 0x20]
push eax
call fcn.100343f0
mov ecx, dword [eax]
mov dword [ebx + 0x298], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0x29c], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x2a0], ecx
mov edx, dword [eax + 0xc]
add esp, 0xc
cmp dword [ebx + 0x2a8], 1
mov dword [ebx + 0x2a4], edx
jle 0x1001aedf
mov eax, dword [ebx + 0x2b4]
mov ecx, dword [ebx + 0x2b0]
push 3
push eax
push ecx
push esi
call fcn.100178c0
add esp, 0x10
cmp dword [esp + 0x10], 0
jne 0x1001afd6
cmp dword [ebx + 0x90], 1
jne 0x1001afd6
test dword [ebx + 0x294], 0x8000000
jne 0x1001af1d
mov edx, dword [esp + 0x34]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1001afb2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0xb
je 0x1001af90
cmp ebp, 0x2732
jle 0x1001af3a
cmp ebp, 0x2734
jle 0x1001af90
push 0x80
lea ecx, [esp + 0xec]
push ecx
push ebp
call fcn.1003f380
push eax
lea edx, [esp + 0xc8]
push edx
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.100148c0
push edi
push ebx
mov dword [esi + 0xcac], ebp
call fcn.1001aa00
add esp, 0x24
pop edi
mov ebp, 7
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x15c]
xor ecx, esp
call fcn.1004b8fc
add esp, 0x160
ret
mov eax, dword [esp + 0x14]
mov dword [eax], edi
pop edi
xor ebp, ebp
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x15c]
xor ecx, esp
call fcn.1004b8fc
add esp, 0x160
ret
test ebp, ebp
jne 0x1001afbc
mov eax, dword [esp + 0x14]
mov dword [eax], edi
pop edi
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x15c]
xor ecx, esp
call fcn.1004b8fc
add esp, 0x160
ret
mov ecx, dword [esp + 0x14]
mov dword [ecx], edi
mov ecx, dword [esp + 0x168]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.1004b8fc
add esp, 0x160
ret