Function at 0x1007f237
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x100e7260]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
or dword [ebp - 0xdc], 0xffffffff
and dword [ebp - 0xd8], 0
mov byte [ebp - 0xce], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 0x10]
or dword [eax], 0xffffffff
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0xc4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1007f07d
add esp, 0x10
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
je 0x1007f2a4
xor eax, eax
jmp 0x1007f623
lea eax, [ebp - 0xec]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.1007f73d
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x1007f308
call fcn.1003fd84
push dword [eax]
push dword [ebp + 8]
call fcn.100b3c46
pop ecx
pop ecx
push eax
call fcn.1003fd84
push dword [eax]
push str.sa_addr_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0xcc]
call fcn.10083b69
add esp, 0x10
push dword [ebp - 0xc8]
push dword [ebp + 8]
call fcn.100801b1
pop ecx
pop ecx
xor eax, eax
jmp 0x1007f623
lea eax, [ebp - 0x34]
push eax
push str.__Trying__s..._n
push dword [ebp - 0xcc]
call fcn.100837f8
add esp, 0xc
cmp dword [ebp - 0xc4], 2
jne 0x1007f33d
cmp dword [ebp - 0xc0], 1
jne 0x1007f33d
mov dword [ebp - 0xe4], 1
jmp 0x1007f344
and dword [ebp - 0xe4], 0
cmp dword [ebp - 0xe4], 0
jne 0x1007f356
and dword [ebp - 0xe8], 0
jmp 0x1007f360
mov dword [ebp - 0xe8], 1
mov al, byte [ebp - 0xe8]
mov byte [ebp - 0xcd], al
movzx eax, byte [ebp - 0xcd]
test eax, eax
je 0x1007f398
mov eax, dword [ebp - 0xcc]
movzx eax, byte [eax + 0x3a6]
test eax, eax
je 0x1007f398
push dword [ebp - 0xc8]
push dword [ebp + 8]
call fcn.1007f6d2
pop ecx
pop ecx
xor eax, eax
jne 0x1007f398
push dword [ebp - 0xc8]
call fcn.1007f633
pop ecx
movzx eax, byte [ebp - 0xcd]
test eax, eax
je 0x1007f3d7
mov eax, dword [ebp - 0xcc]
movzx eax, byte [eax + 0x4e0]
test eax, eax
je 0x1007f3d7
push dword [ebp - 0xc8]
push dword [ebp - 0xcc]
call fcn.10080023
pop ecx
pop ecx
mov eax, dword [ebp - 0xcc]
cmp dword [eax + 0x1d8], 0
je 0x1007f442
push 0
push dword [ebp - 0xc8]
mov eax, dword [ebp - 0xcc]
push dword [eax + 0x1dc]
mov eax, dword [ebp - 0xcc]
call dword [eax + 0x1d8]
add esp, 0xc
mov dword [ebp - 0xd8], eax
cmp dword [ebp - 0xd8], 2
jne 0x1007f421
mov byte [ebp - 0xce], 1
jmp 0x1007f442
cmp dword [ebp - 0xd8], 0
je 0x1007f442
push dword [ebp - 0xc8]
push dword [ebp + 8]
call fcn.100801b1
pop ecx
pop ecx
push 0x2a
pop eax
jmp 0x1007f623
cmp dword [ebp - 0xc4], 2
jne 0x1007f4ab
lea eax, [ebp - 0xb4]
push eax
call fcn.100b287b
pop ecx
push eax
push dword [ebp - 0xc4]
push dword [ebp - 0xc8]
push dword [ebp + 8]
call fcn.1007f938
add esp, 0x10
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
je 0x1007f4ab
push dword [ebp - 0xc8]
push dword [ebp + 8]
call fcn.100801b1
pop ecx
pop ecx
cmp dword [ebp - 0xd4], 1
jne 0x1007f4a0
push 7
pop eax
jmp 0x1007f623
mov eax, dword [ebp - 0xd4]
jmp 0x1007f623
push 1
push dword [ebp - 0xc8]
call fcn.100b26e9
pop ecx
pop ecx
lea eax, [ebp - 0xfc]
push eax
call fcn.10084232
pop ecx
mov edi, dword [ebp + 8]
add edi, 0x3b0
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3c0], 1
jle 0x1007f501
push 3
mov eax, dword [ebp + 8]
push dword [eax + 0x3cc]
push dword [eax + 0x3c8]
push dword [ebp - 0xcc]
call fcn.10072a01
add esp, 0x10
movzx eax, byte [ebp - 0xce]
test eax, eax
jne 0x1007f55e
mov eax, dword [ebp + 8]
cmp dword [eax + 0x94], 1
jne 0x1007f55e
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 0x3aa]
test eax, eax
je 0x1007f528
jmp 0x1007f547
push dword [ebp - 0xb8]
lea eax, [ebp - 0xb4]
push eax
push dword [ebp - 0xc8]
call dword [sym.imp.WS2_32.dll_connect]
mov dword [ebp - 0xdc], eax
cmp dword [ebp - 0xdc], 0xffffffff
jne 0x1007f55c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xd8], eax
jmp 0x1007f570
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc8]
mov dword [eax], ecx
xor eax, eax
jmp 0x1007f623
cmp dword [ebp - 0xdc], 0xffffffff
jne 0x1007f609
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0xe0], eax
cmp dword [ebp - 0xe0], 0xb
je 0x1007f5ac
cmp dword [ebp - 0xe0], 0x2732
jle 0x1007f5b5
cmp dword [ebp - 0xe0], 0x2734
jle 0x1007f5ac
jmp 0x1007f5b5
and dword [ebp - 0xd4], 0
jmp 0x1007f609
push dword [ebp - 0xd8]
push dword [ebp + 8]
call fcn.100b3c46
pop ecx
pop ecx
push eax
lea eax, [ebp - 0x34]
push eax
push str.Immediate_connect_fail_for__s:__s_n
push dword [ebp - 0xcc]
call fcn.100837f8
add esp, 0x10
mov eax, dword [ebp - 0xcc]
mov ecx, dword [ebp - 0xd8]
mov dword [eax + 0x4744], ecx
push dword [ebp - 0xc8]
push dword [ebp + 8]
call fcn.100801b1
pop ecx
pop ecx
mov dword [ebp - 0xd4], 7
cmp dword [ebp - 0xd4], 0
jne 0x1007f61d
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc8]
mov dword [eax], ecx
mov eax, dword [ebp - 0xd4]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003d588
mov esp, ebp
pop ebp
ret