Function at 0x10015ea0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe0
mov eax, dword [0x10211a50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ecx]
mov dword [ebp - 0xdc], edx
mov dword [edx], 0xffffffff
lea edx, [ebp - 0xcc]
push edx
lea edx, [ebp - 0xc4]
push edx
push eax
push ecx
mov dword [ebp - 0xd4], ecx
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xc8], esi
call fcn.10015d20
add esp, 0x10
mov dword [ebp - 0xd0], eax
test eax, eax
je 0x10015f0e
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1016177d
mov esp, ebp
pop ebp
ret
push ebx
push edi
lea ebx, [ebp - 0xe0]
lea edi, [ebp - 0x34]
lea esi, [ebp - 0xb4]
call fcn.10015930
test eax, eax
jne 0x10015f73
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0xd4]
mov esi, eax
push esi
push edi
call fcn.1001f390
push eax
mov eax, dword [ebp - 0xc8]
push esi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push eax
call fcn.10013460
mov ecx, dword [ebp - 0xcc]
push ecx
push edi
call fcn.10015cc0
add esp, 0x20
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1016177d
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xc8]
lea edx, [ebp - 0x34]
push edx
push str.__Trying__s..._n
push esi
call fcn.100133e0
mov edi, dword [ebp - 0xcc]
add esp, 0xc
cmp dword [ebp - 0xc4], 2
jne 0x10015fc8
mov eax, 1
cmp dword [ebp - 0xc0], eax
jne 0x10015fc8
cmp dword [esi + 0x40c], 0
mov dword [ebp - 0xcc], eax
je 0x10015fd2
mov ebx, dword [ebp - 0xd4]
push edi
push ebx
call fcn.10015b70
add esp, 8
jmp 0x10015fd8
mov dword [ebp - 0xcc], 0
mov ebx, dword [ebp - 0xd4]
push edi
call fcn.10015bd0
add esp, 4
cmp dword [ebp - 0xcc], 0
je 0x10015ff8
cmp dword [esi + 0x548], 0
je 0x10015ff8
call fcn.10015210
mov eax, dword [esi + 0x1c8]
test eax, eax
je 0x10016020
mov ecx, dword [esi + 0x1cc]
push 0
push edi
push ecx
call eax
add esp, 0xc
cmp eax, 2
jne 0x10016074
mov dword [ebp - 0xd8], 1
cmp dword [ebp - 0xc4], 2
jne 0x10016098
lea edx, [ebp - 0xb4]
push edx
call fcn.100e9b30
push eax
mov eax, dword [ebp - 0xc4]
push eax
push edi
push ebx
call fcn.100153d0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x1001609e
push edi
push ebx
call fcn.10015cc0
add esp, 8
cmp esi, 1
jne 0x100161cd
pop edi
pop ebx
lea eax, [esi + 6]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1016177d
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x10016020
push edi
push ebx
call fcn.10015cc0
add esp, 8
pop edi
pop ebx
mov eax, 0x2a
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1016177d
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0xd0]
push 1
push edi
call fcn.1003e4b0
add esp, 8
call fcn.10012e70
cmp dword [ebx + 0x338], 1
mov dword [ebx + 0x330], eax
mov dword [ebx + 0x334], edx
jle 0x100160e2
mov ecx, dword [ebx + 0x344]
mov edx, dword [ebx + 0x340]
mov eax, dword [ebp - 0xc8]
push 3
push ecx
push edx
push eax
call fcn.100115d0
add esp, 0x10
cmp dword [ebp - 0xd8], 0
jne 0x100161e0
cmp dword [ebx + 0x94], 1
jne 0x100161e0
cmp dword [ebx + 0x318], 0
jne 0x10016123
mov ecx, dword [ebp - 0xb8]
push ecx
lea edx, [ebp - 0xb4]
push edx
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x100161c1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0xb
je 0x10016196
cmp esi, 0x2732
jle 0x10016140
cmp esi, 0x2734
jle 0x10016196
push esi
push ebx
call fcn.1001f390
mov ecx, dword [ebp - 0xc8]
push eax
lea eax, [ebp - 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push ecx
call fcn.100133e0
mov edx, dword [ebp - 0xc8]
push edi
push ebx
mov dword [edx + 0x474c], esi
call fcn.10015cc0
add esp, 0x20
mov dword [ebp - 0xd0], 7
mov esi, dword [ebp - 0xd0]
pop edi
pop ebx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1016177d
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xdc]
mov dword [eax], edi
mov dword [ebp - 0xd0], 0
mov esi, dword [ebp - 0xd0]
pop edi
pop ebx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1016177d
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x100161cd
mov eax, dword [ebp - 0xdc]
mov dword [eax], edi
pop edi
pop ebx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1016177d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xdc]
mov dword [ecx], edi
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
xor eax, eax
pop esi
call fcn.1016177d
mov esp, ebp
pop ebp
ret