Function at 0x1400f1960
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x1a0
mov rax, qword [0x140320c20]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbp, qword [rcx]
lea r9, [rsp + 0x28]
mov qword [r8], 0xffffffffffffffff
mov r15, r8
lea r8, [rsp + 0x40]
mov rsi, rcx
xor r12b, r12b
call fcn.1400f0f80
mov edi, eax
test eax, eax
je 0x1400f19b0
xor eax, eax
jmp 0x1400f1c47
lea r8, [rsp + 0x20]
mov qword [rsp + 0x198], rbx
lea rdx, [rsp + 0xd0]
lea rcx, [rsp + 0x50]
call fcn.1400f18d0
test al, al
jne 0x1400f1a21
call fcn.14022383c
mov rbx, rax
call fcn.14022383c
mov ecx, dword [rbx]
lea rdx, [rsp + 0x100]
mov r8d, 0x80
mov rdi, rax
call fcn.14011b4c0
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.1400ef9b0
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call fcn.1400f05b0
xor eax, eax
jmp 0x1400f1c3f
lea r8, [rsp + 0xd0]
mov qword [rsp + 0x190], r14
lea rdx, str.__Trying__s..._n
mov rcx, rbp
call fcn.1400efac0
mov eax, dword [rsp + 0x40]
cmp eax, 2
je 0x1400f1a4e
cmp eax, 0x17
jne 0x1400f1a5a
cmp dword [rsp + 0x44], 1
jne 0x1400f1a5a
mov r14b, 1
jmp 0x1400f1a5d
xor r14b, r14b
mov rbx, qword [rsp + 0x28]
test r14b, r14b
je 0x1400f1a7b
test byte [rbp + 0xe74], 8
je 0x1400f1a7b
mov rdx, rbx
mov rcx, rsi
call fcn.1400f1d90
mov rcx, rbx
call fcn.1400f0ec0
test r14b, r14b
je 0x1400f1a9f
test dword [rbp + 0xe74], 0x1000
je 0x1400f1a9f
mov rdx, rbx
mov rcx, rbp
call fcn.1400f1c70
cmp qword [rbp + 0x738], 0
je 0x1400f1adc
mov dl, 1
mov rcx, rbp
call fcn.1400dff10
mov rcx, qword [rbp + 0x740]
xor r8d, r8d
mov rdx, rbx
call qword [rbp + 0x738]
xor edx, edx
mov rcx, rbp
mov r14d, eax
call fcn.1400dff10
cmp r14d, 2
jne 0x1400f1b2a
mov r12b, 1
mov eax, dword [rsp + 0x40]
cmp eax, 2
je 0x1400f1aea
cmp eax, 0x17
jne 0x1400f1b44
lea rcx, [rsp + 0x50]
call fcn.14011be70
mov r8d, dword [rsp + 0x40]
mov r9d, eax
mov rdx, rbx
mov rcx, rsi
call fcn.1400f13c0
mov edi, eax
test eax, eax
je 0x1400f1b44
mov rdx, rbx
mov rcx, rsi
call fcn.1400f05b0
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x1400f1c37
test r14d, r14d
je 0x1400f1adc
mov rdx, rbx
mov rcx, rsi
call fcn.1400f05b0
mov eax, Ordinal_46
jmp 0x1400f1c37
mov edx, 1
mov rcx, rbx
call fcn.14011bf00
lea rcx, [rsp + 0x28]
call fcn.1400f2f10
cmp dword [rsi + 0x3d8], 1
movups xmm0, xmmword [rax]
movups xmmword [rsi + 0x3c8], xmm0
jle 0x1400f1b83
mov rdx, qword [rsi + 0x3e0]
mov r8d, 3
mov rcx, rbp
call fcn.1400df710
test r12b, r12b
jne 0x1400f1c32
cmp dword [rsi + 0xbc], 1
jne 0x1400f1c32
test dword [rsi + 0x3c4], 0x8000000
jne 0x1400f1bc8
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1400f1bc8
test edi, edi
jne 0x1400f1c2e
mov qword [r15], rbx
mov eax, edi
jmp 0x1400f1c37
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0xb
je 0x1400f1c29
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x1400f1c29
mov r8d, 0x80
lea rdx, [rsp + 0x100]
mov ecx, eax
call fcn.14011b4c0
mov r9, rax
lea r8, [rsp + 0xd0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov rcx, rbp
call fcn.1400efac0
mov rdx, rbx
mov dword [rbp + 0x10e8], edi
mov rcx, rsi
call fcn.1400f05b0
mov edi, 7
mov eax, edi
jmp 0x1400f1c37
xor edi, edi
mov qword [r15], rbx
mov eax, edi
jmp 0x1400f1c37
mov qword [r15], rbx
xor eax, eax
mov r14, qword [rsp + 0x190]
mov rbx, qword [rsp + 0x198]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140215090
add rsp, 0x1a0
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret