Function at 0x1000f7e0
Capabilities:
Connect socket

Disassembly:
sub esp, 0xd4
mov eax, dword [0x10072bfc]
xor eax, esp
mov dword [esp + 0xd0], eax
mov eax, dword [esp + 0xd8]
push esi
mov esi, dword [ebx]
push edi
mov dword [esp + 0x14], ecx
mov dword [ecx], 0xffffffff
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push edx
push eax
xor edi, edi
push ebx
mov dword [esp + 0x20], edi
call fcn.1000f700
add esp, 0x10
mov dword [esp + 8], eax
cmp eax, edi
jne 0x1000f994
movzx eax, word [esp + 0x28]
sub eax, 2
jne 0x1000f962
push 0x2e
lea eax, [esp + 0xac]
push eax
lea ecx, [esp + 0x34]
push ecx
push 2
call fcn.100128d0
add esp, 0x10
test eax, eax
je 0x1000f962
mov edx, dword [esp + 0x2a]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
push ebp
lea ecx, [esp + 0xac]
push ecx
push str.__Trying__s..._n
push esi
call fcn.1000c510
mov ebp, dword [esp + 0x1c]
add esp, 0xc
cmp dword [esp + 0x1c], 2
jne 0x1000f9ad
mov eax, 1
cmp dword [esp + 0x20], eax
jne 0x1000f9ad
mov dword [esp + 0x10], eax
cmp dword [esi + 0x364], edi
je 0x1000f8b3
mov edx, ebp
mov edi, ebx
call fcn.1000f490
push ebp
call fcn.1000f4f0
add esp, 4
cmp dword [esp + 0x10], 0
je 0x1000f8d3
cmp dword [esi + 0x46c], 0
je 0x1000f8d3
mov edi, ebp
call fcn.1000ec30
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x1000f8fd
mov edx, dword [esi + 0x1b4]
push 0
push ebp
push edx
call eax
add esp, 0xc
cmp eax, 2
jne 0x1000f9b6
mov dword [esp + 0x14], 1
cmp dword [esp + 0x1c], 2
jne 0x1000f9e5
lea eax, [esp + 0x2c]
push eax
call fcn.10002060
mov ecx, dword [esp + 0x20]
push eax
push ecx
push ebp
push ebx
call fcn.1000ede0
add esp, 0x14
mov dword [esp + 0xc], eax
test eax, eax
je 0x1000f9e5
push ebp
push ebx
call fcn.1000f6b0
mov eax, dword [esp + 0x14]
add esp, 8
cmp eax, 1
jne 0x1000fb15
pop ebp
pop edi
mov eax, 7
pop esi
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.10060a40
add esp, 0xd4
ret
mov byte [esp + 0xa8], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push ebx
call fcn.10012660
push eax
push edi
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push esi
call fcn.1000c5a0
mov eax, dword [esp + 0x24]
push eax
push ebx
call fcn.1000f6b0
add esp, 0x20
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.10060a40
add esp, 0xd4
ret
mov dword [esp + 0x10], edi
jmp 0x1000f8b3
test eax, eax
je 0x1000f8fd
push ebp
push ebx
call fcn.1000f6b0
add esp, 8
pop ebp
pop edi
mov eax, 0x2a
pop esi
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.10060a40
add esp, 0xd4
ret
mov edi, 1
push edi
push ebp
call fcn.1002e5f0
add esp, 8
call fcn.1000c050
mov dword [ebx + 0x234], eax
mov dword [ebx + 0x238], edx
cmp dword [ebx + 0x23c], edi
jle 0x1000fa1d
mov edx, dword [ebx + 0x240]
push edx
push esi
call fcn.1000a450
add esp, 8
cmp dword [esp + 0x14], 0
jne 0x1000fb0d
cmp dword [ebx + 0x8c], edi
jne 0x1000fb0d
mov eax, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x30]
push ecx
push ebp
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1000fae4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0xb
je 0x1000faba
cmp edi, 0x2732
jle 0x1000fa6b
cmp edi, 0x2734
jle 0x1000faba
push edi
push ebx
call fcn.10012660
push eax
lea edx, [esp + 0xb8]
push edx
push str.Immediate_connect_fail_for__s:__s_n
push esi
call fcn.1000c510
push ebp
push ebx
mov dword [esi + 0x8604], edi
call fcn.1000f6b0
add esp, 0x20
pop ebp
mov dword [esp + 8], 7
mov eax, dword [esp + 8]
pop edi
pop esi
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.10060a40
add esp, 0xd4
ret
mov eax, dword [esp + 0x18]
mov dword [eax], ebp
pop ebp
mov dword [esp + 8], 0
mov eax, dword [esp + 8]
pop edi
pop esi
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.10060a40
add esp, 0xd4
ret
cmp dword [esp + 0xc], 0
jne 0x1000faf1
mov eax, dword [esp + 0x18]
mov dword [eax], ebp
mov eax, dword [esp + 0xc]
pop ebp
pop edi
pop esi
mov ecx, dword [esp + 0xd0]
xor ecx, esp
call fcn.10060a40
add esp, 0xd4
ret
mov ecx, dword [esp + 0x18]
mov dword [ecx], ebp
xor eax, eax
mov ecx, dword [esp + 0xdc]
pop ebp
pop edi
pop esi
xor ecx, esp
call fcn.10060a40
add esp, 0xd4
ret