Function at 0x180016ef0
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x220
mov rax, qword [0x180086048]
xor rax, rsp
mov qword [rsp + 0x200], rax
mov rbp, qword [rcx]
lea r9, [rsp + 0x28]
movsxd rax, r8d
mov rsi, rcx
lea r8, [rsp + 0x40]
xor r12b, r12b
lea r15, [rcx + rax*8]
mov qword [r15 + 0x4d0], 0xffffffffffffffff
call fcn.180016540
mov edi, eax
test eax, eax
jne 0x180017200
mov edx, dword [rsp + 0x4c]
lea r9, [rsp + 0x20]
lea r8, [rsp + 0xd0]
mov qword [rsp + 0x218], rbx
lea rcx, [rsp + 0x50]
call fcn.180015810
test al, al
jne 0x180016fb9
call fcn.180055838
mov ebx, dword [rax]
call fcn.180055838
mov r8d, 0x100
lea rdx, [rsp + 0x100]
mov ecx, ebx
mov rdi, rax
call fcn.18003cb30
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.180014e30
mov rdx, qword [rsp + 0x28]
mov rcx, rsi
call fcn.1800158a0
xor eax, eax
jmp 0x1800171f8
mov r9d, dword [rsp + 0x20]
lea r8, [rsp + 0xd0]
lea rdx, str.__Trying__s:_ld..._n
mov rcx, rbp
call fcn.180014f20
mov eax, dword [rsp + 0x40]
cmp eax, 2
je 0x180016fe3
cmp eax, 0x17
jne 0x180016fea
cmp dword [rsp + 0x44], 1
je 0x180016ff9
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call fcn.180016480
jmp 0x18001702e
mov rbx, qword [rsp + 0x28]
cmp byte [rbp + 0xf7b], r12b
je 0x180017012
mov rdx, rbx
mov rcx, rsi
call fcn.180017340
mov rcx, rbx
call fcn.180016480
cmp byte [rbp + 0xf83], r12b
je 0x18001702e
mov rdx, rbx
mov rcx, rbp
call fcn.180017220
cmp qword [rbp + 0x710], 0
mov qword [rsp + 0x210], r14
je 0x180017073
mov dl, 1
mov rcx, rbp
call fcn.180007390
mov rcx, qword [rbp + 0x718]
xor r8d, r8d
mov rdx, rbx
call qword [rbp + 0x710]
xor edx, edx
mov rcx, rbp
mov r14d, eax
call fcn.180007390
cmp r14d, 2
jne 0x1800170c1
mov r12b, 1
mov eax, dword [rsp + 0x40]
cmp eax, 2
je 0x180017081
cmp eax, 0x17
jne 0x1800170db
lea rcx, [rsp + 0x50]
call fcn.18003d5a0
mov r8d, dword [rsp + 0x40]
mov r9d, eax
mov rdx, rbx
mov rcx, rsi
call fcn.180016810
mov edi, eax
test eax, eax
je 0x1800170db
mov rdx, rbx
mov rcx, rsi
call fcn.1800158a0
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x1800171f0
test r14d, r14d
je 0x180017073
mov rdx, rbx
mov rcx, rsi
call fcn.1800158a0
mov eax, Ordinal_46
jmp 0x1800171f0
mov edx, 1
mov rcx, rbx
call fcn.180021430
lea rcx, [rsp + 0x28]
call fcn.180019150
cmp dword [rsi + 0x670], 1
movups xmm0, xmmword [rax]
movups xmmword [rsi + 0x660], xmm0
jle 0x18001712f
mov rdx, qword [rsi + 0x678]
mov r8d, 3
mov rcx, rbp
call fcn.1800069e0
mov rdx, qword [rsi + 0x680]
mov r8d, 4
mov rcx, rbp
call fcn.1800069e0
test r12b, r12b
jne 0x1800171e7
cmp dword [rsi + 0x32c], 4
je 0x1800171e7
cmp byte [rsi + 0x656], r12b
jne 0x180017175
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x180017175
test edi, edi
jne 0x1800171e3
mov qword [r15 + 0x4d0], rbx
mov eax, edi
jmp 0x1800171f0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
mov edi, eax
sub edx, 0xb
je 0x1800171da
sub edx, 0x2728
je 0x1800171da
cmp edx, 1
je 0x1800171da
mov r8d, 0x100
lea rdx, [rsp + 0x100]
mov ecx, eax
call fcn.18003cb30
mov r9, rax
lea r8, [rsp + 0xd0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov rcx, rbp
call fcn.180014f20
mov rdx, rbx
mov dword [rbp + 0x1258], edi
mov rcx, rsi
call fcn.1800158a0
mov edi, 7
mov eax, edi
jmp 0x1800171f0
xor edi, edi
mov qword [r15 + 0x4d0], rbx
mov eax, edi
jmp 0x1800171f0
mov qword [r15 + 0x4d0], rbx
xor eax, eax
mov r14, qword [rsp + 0x210]
mov rbx, qword [rsp + 0x218]
mov rcx, qword [rsp + 0x200]
xor rcx, rsp
call fcn.180046490
add rsp, 0x220
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret