Function at 0x1800d7fd0
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x110
mov rax, qword [0x18016f298]
xor rax, rsp
mov qword [rsp + 0xf0], rax
mov rbp, qword [rcx]
lea r9, [rsp + 0x20]
mov qword [r8], 0xffffffffffffffff
mov r15, r8
lea r8, [rsp + 0x30]
mov rsi, rcx
xor r12b, r12b
call fcn.1800d7620
mov edi, eax
test eax, eax
je 0x1800d8020
xor eax, eax
jmp 0x1800d818a
movzx eax, word [rsp + 0x40]
mov qword [rsp + 0x108], rbx
cmp eax, 2
je 0x1800d8044
cmp eax, 0x17
jne 0x1800d82b5
lea rdx, [rsp + 0x48]
mov ecx, eax
jmp 0x1800d804e
lea rdx, [rsp + 0x44]
mov ecx, 2
mov r9d, reloc.WLDAP32.dll_Ordinal_46
lea r8, [rsp + 0xc0]
call fcn.1800e6a60
test rax, rax
je 0x1800d82b5
movzx ecx, word [rsp + 0x42]
call qword [sym.imp.WS2_32.dll_ntohs]
lea r8, [rsp + 0xc0]
mov qword [rsp + 0x100], r14
lea rdx, str.__Trying__s..._n
mov rcx, rbp
call fcn.1800d6030
mov eax, dword [rsp + 0x30]
cmp eax, 2
je 0x1800d80a2
cmp eax, 0x17
jne 0x1800d80ae
cmp dword [rsp + 0x34], 1
jne 0x1800d80ae
mov r14b, 1
jmp 0x1800d80b1
xor r14b, r14b
mov rbx, qword [rsp + 0x20]
test r14b, r14b
je 0x1800d80cf
cmp byte [rbp + 0x766], 0
je 0x1800d80cf
mov rdx, rbx
mov rcx, rsi
call fcn.1800d7720
mov rcx, rbx
call fcn.1800d7560
test r14b, r14b
je 0x1800d80f0
cmp byte [rbp + 0x99c], 0
je 0x1800d80f0
mov rdx, rbx
mov rcx, rbp
call fcn.1800d8310
cmp qword [rbp + 0x2c8], 0
je 0x1800d812d
mov dl, 1
mov rcx, rbp
call fcn.1800c6110
mov rcx, qword [rbp + 0x2d0]
xor r8d, r8d
mov rdx, rbx
call qword [rbp + 0x2c8]
xor edx, edx
mov rcx, rbp
mov r14d, eax
call fcn.1800c6110
cmp r14d, 2
jne 0x1800d81a9
mov r12b, 1
mov eax, dword [rsp + 0x30]
cmp eax, 2
je 0x1800d813f
cmp eax, 0x17
jne 0x1800d81c4
lea rcx, [rsp + 0x40]
call fcn.1800fd280
mov r8d, dword [rsp + 0x30]
mov r9d, eax
mov rdx, rbx
mov rcx, rsi
call fcn.1800d7ad0
mov edi, eax
test eax, eax
je 0x1800d81c4
mov rdx, rbx
mov rcx, rsi
call fcn.1800d6bd0
cmp edi, 1
mov eax, 7
cmove edi, eax
mov eax, edi
mov r14, qword [rsp + 0x100]
mov rbx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xf0]
xor rcx, rsp
call fcn.180107470
add rsp, 0x110
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
test r14d, r14d
je 0x1800d812d
mov rdx, rbx
mov rcx, rsi
call fcn.1800d6bd0
mov eax, Ordinal_46
jmp 0x1800d817a
mov edx, 1
mov rcx, rbx
call fcn.1800fd310
lea rcx, [rsp + 0x20]
call fcn.1800ca870
cmp dword [rsi + 0x3e0], 1
movups xmm0, xmmword [rax]
movups xmmword [rsi + 0x3d0], xmm0
jle 0x1800d8203
mov rdx, qword [rsi + 0x3e8]
mov r8d, 3
mov rcx, rbp
call fcn.1800c5b50
test r12b, r12b
jne 0x1800d82ab
cmp dword [rsi + 0xbc], 1
jne 0x1800d82ab
cmp byte [rsi + 0x3c6], r12b
jne 0x1800d824a
mov r8d, dword [rsp + 0x3c]
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1800d824a
test edi, edi
jne 0x1800d8178
mov qword [r15], rbx
jmp 0x1800d8178
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0xb
je 0x1800d82a1
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x1800d82a1
mov edx, eax
mov rcx, rsi
call fcn.1800e6010
mov r9, rax
lea r8, [rsp + 0xc0]
lea rdx, str.Immediate_connect_fail_for__s:__s_n
mov rcx, rbp
call fcn.1800d6030
mov rdx, rbx
mov dword [rbp + 0x4c94], edi
mov rcx, rsi
call fcn.1800d6bd0
mov edi, 7
jmp 0x1800d8178
xor edi, edi
mov qword [r15], rbx
jmp 0x1800d8178
mov qword [r15], rbx
xor eax, eax
jmp 0x1800d817a
mov byte [rsp + 0xc0], 0
call fcn.18010c27c
mov dword [rax], 0x273f
call fcn.18010c27c
mov rbx, rax
call fcn.18010c27c
mov edx, dword [rbx]
mov rcx, rsi
mov rdi, rax
call fcn.1800e6010
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rbp
call fcn.1800d5f30
mov rdx, qword [rsp + 0x20]
mov rcx, rsi
call fcn.1800d6bd0
xor eax, eax
jmp 0x1800d8182