Function at 0x10185c70
Capabilities:
Connect socket

Disassembly:
sub esp, 0x1e8
mov eax, dword [0x10263fdc]
xor eax, esp
mov dword [esp + 0x1e4], eax
mov eax, dword [esp + 0x1ec]
push esi
mov dword [esp + 0x10], ecx
mov dword [ebx + ecx*4 + 0x160], 0xffffffff
mov esi, edx
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
push esi
mov dword [esp + 0x1c], 0
call fcn.10185aa0
add esp, 0x10
mov dword [esp + 4], eax
test eax, eax
jne 0x10185ffa
mov edx, dword [esp + 0x34]
push ebp
push edi
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xc4]
push ecx
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.10185420
add esp, 0x10
test eax, eax
jne 0x10185d31
mov edi, dword [sym.imp.MSVCR100.dll__errno]
call edi
mov ebp, eax
call edi
mov edx, dword [ebp]
push 0x100
lea ecx, [esp + 0xf4]
push ecx
push edx
mov edi, eax
call fcn.101af230
push eax
mov eax, dword [edi]
push eax
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.1017f190
mov ecx, dword [esp + 0x2c]
push ecx
push ebx
push esi
call fcn.10185a20
add esp, 0x28
jmp 0x10185ff6
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0xc4]
push eax
push str.__Trying__s:_ld..._n
push esi
call fcn.1017f0b0
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x20]
add esp, 0x10
cmp eax, 2
je 0x10185d5e
cmp eax, 0x17
jne 0x10185d69
mov edi, 1
cmp dword [esp + 0x34], edi
je 0x10185d6d
xor edi, edi
jmp 0x10185d7d
cmp dword [esi + 0x7c8], 0
je 0x10185d7d
mov ecx, ebp
call fcn.101858c0
push ebp
call fcn.10185930
add esp, 4
test edi, edi
je 0x10185d9a
cmp dword [esi + 0x7e8], 0
je 0x10185d9a
mov edi, ebp
call fcn.10184c00
cmp dword [esi + 0x1e0], 0
je 0x10185dd7
push 1
push esi
call fcn.1017cbe0
mov ecx, dword [esi + 0x1e4]
mov edx, dword [esi + 0x1e0]
push 0
push ebp
push ecx
call edx
push 0
push esi
mov edi, eax
call fcn.1017cbe0
add esp, 0x1c
cmp edi, 2
jne 0x10185e41
mov dword [esp + 0x14], 1
mov eax, dword [esp + 0x30]
cmp eax, 2
je 0x10185de9
cmp eax, 0x17
jne 0x10185e6d
lea eax, [esp + 0x40]
push eax
call fcn.101b1580
mov ecx, dword [esp + 0x34]
push eax
push ecx
push ebp
mov edi, esi
call fcn.10184e30
add esp, 0x10
mov dword [esp + 0xc], eax
test eax, eax
je 0x10185e6d
push ebp
push ebx
push esi
call fcn.10185a20
mov eax, dword [esp + 0x18]
add esp, 0xc
cmp eax, 1
jne 0x10185ff8
pop edi
pop ebp
mov eax, 7
pop esi
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.101ce9e2
add esp, 0x1e8
ret
test edi, edi
je 0x10185dd7
push ebp
push ebx
push esi
call fcn.10185a20
add esp, 0xc
pop edi
pop ebp
mov eax, 0x2a
pop esi
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.101ce9e2
add esp, 0x1e8
ret
push 1
push ebp
call fcn.101ad160
lea edx, [esp + 0x28]
push edx
call fcn.10189620
mov ecx, dword [eax]
mov dword [ebx + 0x308], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0x30c], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x310], ecx
mov edx, dword [eax + 0xc]
add esp, 0xc
cmp dword [ebx + 0x300], 1
mov dword [ebx + 0x314], edx
jle 0x10185edd
mov eax, dword [ebx + 0x31c]
mov ecx, dword [ebx + 0x318]
push 3
push eax
push ecx
push esi
call fcn.1017c8e0
mov edx, dword [ebx + 0x324]
mov eax, dword [ebx + 0x320]
push 4
push edx
push eax
push esi
call fcn.1017c8e0
add esp, 0x20
cmp dword [esp + 0x14], 0
jne 0x10185feb
cmp dword [ebx + 0x60], 4
je 0x10185feb
cmp dword [ebx + 0x2dc], 0
jne 0x10185f15
mov ecx, dword [esp + 0x3c]
push ecx
lea edx, [esp + 0x44]
push edx
push ebp
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10185fbd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x10185f8e
cmp edi, 0x2732
jle 0x10185f32
cmp edi, 0x2734
jle 0x10185f8e
push 0x100
lea eax, [esp + 0xf4]
push eax
push edi
call fcn.101af230
push eax
lea ecx, [esp + 0xd0]
push ecx
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.1017f0b0
push ebp
push ebx
push esi
mov dword [esi + 0xa70], edi
call fcn.10185a20
add esp, 0x28
pop edi
mov dword [esp + 8], 7
mov eax, dword [esp + 8]
pop ebp
pop esi
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.101ce9e2
add esp, 0x1e8
ret
mov edx, dword [esp + 0x18]
pop edi
mov dword [ebx + edx*4 + 0x160], ebp
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
pop ebp
pop esi
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.101ce9e2
add esp, 0x1e8
ret
cmp dword [esp + 0xc], 0
jne 0x10185fcf
mov edx, dword [esp + 0x18]
mov dword [ebx + edx*4 + 0x160], ebp
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop esi
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.101ce9e2
add esp, 0x1e8
ret
mov eax, dword [esp + 0x18]
mov dword [ebx + eax*4 + 0x160], ebp
xor eax, eax
pop edi
pop ebp
mov ecx, dword [esp + 0x1e8]
pop esi
xor ecx, esp
call fcn.101ce9e2
add esp, 0x1e8
ret