Function at 0x180085ee0
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x210
mov rax, qword [0x18015f460]
xor rax, rsp
mov qword [rsp + 0x1f0], rax
mov rbp, qword [rcx]
movsxd r13, r8d
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x30]
mov rsi, rcx
xor r14d, r14d
mov qword [rcx + r13*8 + 0x4d0], 0xffffffffffffffff
call fcn.180085d00
mov edi, eax
test eax, eax
jne 0x1800860c8
movzx ecx, word [rsp + 0x40]
mov qword [rsp + 0x208], rbx
cmp ecx, 2
je 0x180085f7d
cmp ecx, 0x17
jne 0x180086236
lea r9d, [r14 + 0x2e]
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0x48]
call fcn.1800b40c0
test rax, rax
je 0x180086236
movzx ecx, word [rsp + 0x42]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r9d, ax
jmp 0x180085fad
lea r8, [rsp + 0xc0]
lea rdx, [rsp + 0x44]
mov r9d, reloc.WLDAP32.dll_Ordinal_46
call fcn.1800b40c0
test rax, rax
je 0x180086236
movzx ecx, word [rsp + 0x42]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r9d, ax
lea r8, [rsp + 0xc0]
lea rdx, str.__Trying__s:_ld..._n
mov rcx, rbp
mov qword [rsp + 0x200], r12
call fcn.1800831b0
mov eax, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x20]
cmp eax, 2
je 0x180085fdf
cmp eax, 0x17
jne 0x180086002
cmp dword [rsp + 0x34], 1
jne 0x180086002
mov r12d, 1
cmp dword [rbp + 0x102c], r14d
je 0x180086005
mov rdx, rbx
mov rcx, rsi
call fcn.1800859d0
jmp 0x180086005
xor r12d, r12d
mov rcx, rbx
call fcn.180085a60
test r12d, r12d
je 0x180086026
cmp dword [rbp + 0x1050], r14d
je 0x180086026
mov rdx, rbx
mov rcx, rbp
call fcn.180084b90
cmp qword [rbp + 0x728], r14
je 0x18008606b
mov edx, 1
mov rcx, rbp
call fcn.180080580
mov rcx, qword [rbp + 0x730]
xor r8d, r8d
mov rdx, rbx
call qword [rbp + 0x728]
xor edx, edx
mov rcx, rbp
mov r12d, eax
call fcn.180080580
cmp r12d, 2
jne 0x1800860e7
lea r14d, [r12 - 1]
mov eax, dword [rsp + 0x30]
cmp eax, 2
je 0x18008607d
cmp eax, 0x17
jne 0x180086102
lea rcx, [rsp + 0x40]
call fcn.1800b3c60
mov r8d, dword [rsp + 0x30]
mov rdx, rbx
mov r9d, eax
mov rcx, rsi
call fcn.180084e00
mov edi, eax
test eax, eax
je 0x180086102
mov rdx, rbx
mov rcx, rsi
call fcn.180085c60
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
mov r12, qword [rsp + 0x200]
mov rbx, qword [rsp + 0x208]
mov rcx, qword [rsp + 0x1f0]
xor rcx, rsp
call fcn.1800c9b90
add rsp, 0x210
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
test r12d, r12d
je 0x18008606b
mov rdx, rbx
mov rcx, rsi
call fcn.180085c60
mov eax, Ordinal_45
jmp 0x1800860b8
mov edx, 1
mov rcx, rbx
call fcn.1800b4110
lea rcx, [rsp + 0x20]
call fcn.1800a4500
cmp dword [rsi + 0x708], 1
mov rcx, qword [rax]
mov qword [rsi + 0x6f8], rcx
mov rax, qword [rax + 8]
mov qword [rsi + 0x700], rax
jle 0x180086161
mov rdx, qword [rsi + 0x710]
mov r8d, 3
mov rcx, rbp
call fcn.180080220
mov rdx, qword [rsi + 0x718]
mov r8d, 4
mov rcx, rbp
call fcn.180080220
test r14d, r14d
jne 0x180086227
cmp dword [rsi + 0x32c], 4
je 0x180086227
cmp dword [rsi + 0x6d4], r14d
jne 0x1800861af
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1800861af
test edi, edi
jne 0x180086220
mov qword [rsi + r13*8 + 0x4d0], rbx
mov eax, edi
jmp 0x1800860b8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0xb
je 0x180086216
cmp eax, 0x2732
jle 0x1800861ca
cmp eax, 0x2734
jle 0x180086216
lea rdx, [rsp + 0xf0]
mov r8d, pe_nt_image_headers64
mov ecx, eax
call fcn.180070a50
lea r8, [rsp + 0xc0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov r9, rax
mov rcx, rbp
call fcn.1800831b0
mov rdx, rbx
mov rcx, rsi
mov dword [rbp + 0x1350], edi
call fcn.180085c60
mov edi, 7
mov eax, edi
jmp 0x1800860b8
xor edi, edi
mov qword [rsi + r13*8 + 0x4d0], rbx
mov eax, edi
jmp 0x1800860b8
mov qword [rsi + r13*8 + 0x4d0], rbx
xor eax, eax
jmp 0x1800860b8
mov byte [rsp + 0xc0], r14b
call fcn.1800cca74
mov dword [rax], 0x273f
call fcn.1800cca74
mov rbx, rax
call fcn.1800cca74
mov ecx, dword [rbx]
lea rdx, [rsp + 0xf0]
mov r8d, pe_nt_image_headers64
mov rdi, rax
call fcn.180070a50
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.180083310
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
call fcn.180085c60
xor eax, eax
jmp 0x1800860c0