Function at 0x10081890
Capabilities:
Connect socket

Disassembly:
sub esp, 0x1e4
mov eax, dword [0x102184e0]
xor eax, esp
mov dword [esp + 0x1e0], eax
mov eax, dword [esp + 0x1e8]
push ebp
push esi
mov esi, dword [ebx]
mov dword [esp + 0x10], ecx
mov dword [ebx + ecx*4 + 0x428], 0xffffffff
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x2c]
push edx
push eax
push ebx
mov dword [esp + 0x24], 0
call fcn.100816b0
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x10081c1b
mov edx, dword [esp + 0x34]
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0xc0]
push ecx
push edx
lea eax, [esp + 0x48]
push eax
call fcn.100810e0
add esp, 0x10
test eax, eax
jne 0x1008194e
call fcn.100b600e
mov edi, eax
call fcn.100b600e
mov edx, dword [edi]
push 0x100
lea ecx, [esp + 0xf0]
push ecx
push edx
mov ebp, eax
call fcn.100a70a0
push eax
mov eax, dword [ebp]
push eax
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.1007fc80
mov ecx, dword [esp + 0x28]
push ecx
push ebx
call fcn.10081620
add esp, 0x24
jmp 0x10081c18
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0xc0]
push eax
push str.__Trying__s:_ld..._n
push esi
call fcn.1007fb40
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x1c]
add esp, 0x10
cmp eax, 2
je 0x1008197f
cmp eax, 0x17
jne 0x10081a67
mov eax, 1
cmp dword [esp + 0x30], eax
jne 0x10081a67
cmp dword [esi + 0xc00], 0
mov dword [esp + 0xc], eax
je 0x100819a6
push ebx
mov ecx, edi
call fcn.100814b0
add esp, 4
push edi
call fcn.10081530
add esp, 4
cmp dword [esp + 0xc], 0
je 0x100819c4
cmp dword [esi + 0xc24], 0
je 0x100819c4
call fcn.100808e0
cmp dword [esi + 0x620], 0
je 0x10081a07
push 1
push esi
call fcn.1007efd0
mov ecx, dword [esi + 0x624]
mov edx, dword [esi + 0x620]
push 0
push edi
push ecx
call edx
push 0
push esi
mov dword [esp + 0x2c], eax
call fcn.1007efd0
mov eax, dword [esp + 0x2c]
add esp, 0x1c
cmp eax, 2
jne 0x10081a74
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x2c]
cmp eax, 2
je 0x10081a19
cmp eax, 0x17
jne 0x10081a9f
lea eax, [esp + 0x3c]
push eax
call fcn.100a8580
mov ecx, dword [esp + 0x30]
push eax
push ecx
push edi
push ebx
call fcn.10080b10
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x10081a9f
push edi
push ebx
call fcn.10081620
add esp, 8
cmp ebp, 1
jne 0x10081bf3
pop edi
pop esi
lea eax, [ebp + 6]
pop ebp
mov ecx, dword [esp + 0x1e0]
xor ecx, esp
call fcn.100b197c
add esp, 0x1e4
ret
mov dword [esp + 0xc], 0
jmp 0x100819a6
test eax, eax
je 0x10081a07
push edi
push ebx
call fcn.10081620
add esp, 8
pop edi
pop esi
mov eax, 0x2a
pop ebp
mov ecx, dword [esp + 0x1e0]
xor ecx, esp
call fcn.100b197c
add esp, 0x1e4
ret
push 1
push edi
call fcn.100a89f0
lea edx, [esp + 0x24]
push edx
call fcn.10098390
mov ecx, dword [eax]
mov dword [ebx + 0x5b8], ecx
mov edx, dword [eax + 4]
mov dword [ebx + 0x5bc], edx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x5c0], ecx
mov edx, dword [eax + 0xc]
add esp, 0xc
cmp dword [ebx + 0x5c8], 1
mov dword [ebx + 0x5c4], edx
jle 0x10081b0f
mov eax, dword [ebx + 0x5d4]
mov ecx, dword [ebx + 0x5d0]
push 3
push eax
push ecx
push esi
call fcn.1007ed10
mov edx, dword [ebx + 0x5dc]
mov eax, dword [ebx + 0x5d8]
push 4
push edx
push eax
push esi
call fcn.1007ed10
add esp, 0x20
cmp dword [esp + 0x18], 0
jne 0x10081c0d
cmp dword [ebx + 0x2f8], 4
je 0x10081c0d
cmp dword [ebx + 0x590], 0
jne 0x10081b4a
mov ecx, dword [esp + 0x38]
push ecx
lea edx, [esp + 0x40]
push edx
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10081be4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0xb
je 0x10081bbd
cmp ebp, 0x2732
jle 0x10081b67
cmp ebp, 0x2734
jle 0x10081bbd
push 0x100
lea eax, [esp + 0xf0]
push eax
push ebp
call fcn.100a70a0
push eax
lea ecx, [esp + 0xcc]
push ecx
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.1007fb40
push edi
push ebx
mov dword [esi + 0xeac], ebp
call fcn.10081620
add esp, 0x24
pop edi
mov ebp, 7
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x1e0]
xor ecx, esp
call fcn.100b197c
add esp, 0x1e4
ret
mov edx, dword [esp + 0x14]
mov dword [ebx + edx*4 + 0x428], edi
pop edi
xor ebp, ebp
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x1e0]
xor ecx, esp
call fcn.100b197c
add esp, 0x1e4
ret
test ebp, ebp
jne 0x10081bf3
mov edx, dword [esp + 0x14]
mov dword [ebx + edx*4 + 0x428], edi
pop edi
pop esi
mov eax, ebp
pop ebp
mov ecx, dword [esp + 0x1e0]
xor ecx, esp
call fcn.100b197c
add esp, 0x1e4
ret
mov eax, dword [esp + 0x14]
mov dword [ebx + eax*4 + 0x428], edi
xor eax, eax
pop edi
mov ecx, dword [esp + 0x1e8]
pop esi
pop ebp
xor ecx, esp
call fcn.100b197c
add esp, 0x1e4
ret