Function at 0x1801d2d60
Capabilities:
Connect socket

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x128]
sub rsp, 0x228
mov rax, qword [0x1804a20e0]
xor rax, rsp
mov qword [rbp + 0x100], rax
movsxd rax, r9d
mov r10, r8
mov r14, rdx
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rsi, rcx
xor r13b, r13b
lea r12, [rdx + rax*8]
mov rdx, r10
mov qword [r12 + 0x1c8], 0xffffffffffffffff
call fcn.1801d1ee0
mov edi, eax
test eax, eax
jne 0x1801d30ff
movzx ecx, word [rsp + 0x50]
mov qword [rsp + 0x220], rbx
sub ecx, 1
je 0x1801d2e7d
sub ecx, 1
je 0x1801d2e15
cmp ecx, 0x15
jne 0x1801d2e21
lea rdx, [rsp + 0x58]
lea ecx, [rax + 0x17]
lea r8, [rbp - 0x30]
mov r9d, reloc.WLDAP32.dll_Ordinal_46
call sub.WS2_32.dll_inet_ntop
test rax, rax
je 0x1801d2e21
movzx ecx, word [rsp + 0x52]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r9d, ax
jmp 0x1801d2ea7
lea rdx, [rsp + 0x54]
mov ecx, 2
jmp 0x1801d2ded
mov byte [rbp - 0x30], 0
call fcn.180216a1c
mov dword [rax], 0x273f
call fcn.180216a1c
mov rbx, rax
call fcn.180216a1c
mov ecx, dword [rbx]
lea rdx, [rbp]
mov r8d, 0x100
mov rdi, rax
call fcn.1801b9650
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1801d05f0
mov r8, qword [rsp + 0x30]
mov rdx, r14
mov rcx, rsi
call fcn.1801d14d0
xor eax, eax
jmp 0x1801d30f7
cmp dword [rsp + 0x4c], 2
jle 0x1801d2ea0
lea r9, [rsp + 0x52]
mov edx, reloc.WLDAP32.dll_Ordinal_46
lea r8, [0x180470708]
lea rcx, [rbp - 0x30]
call sym.gcm64.dll_curl_msnprintf
jmp 0x1801d2ea4
mov byte [rbp - 0x30], 0
xor r9d, r9d
cmp dword [rsp + 0x40], 0x17
lea rax, str.__Trying__s:_d...
lea rdx, str.__Trying___s_:_d...
mov qword [rsp + 0x218], r15
cmovne rdx, rax
lea r8, [rbp - 0x30]
mov rcx, rsi
call fcn.1801d0780
mov eax, dword [rsp + 0x40]
cmp eax, 2
je 0x1801d2ee0
cmp eax, 0x17
jne 0x1801d2eec
cmp dword [rsp + 0x44], 1
jne 0x1801d2eec
mov r15b, 1
jmp 0x1801d2eef
xor r15b, r15b
mov rbx, qword [rsp + 0x30]
test r15b, r15b
je 0x1801d2f0d
cmp byte [rsi + 0xad4], 0
je 0x1801d2f0d
mov rdx, rbx
mov rcx, rsi
call fcn.1801d3240
mov rcx, rbx
call fcn.1801d1e10
test r15b, r15b
je 0x1801d2f2e
cmp byte [rsi + 0xada], 0
je 0x1801d2f2e
mov rdx, rbx
mov rcx, rsi
call fcn.1801d3120
cmp qword [rsi + 0x278], 0
je 0x1801d2f6b
mov dl, 1
mov rcx, rsi
call fcn.1801be420
mov rcx, qword [rsi + 0x280]
xor r8d, r8d
mov rdx, rbx
call qword [rsi + 0x278]
xor edx, edx
mov rcx, rsi
mov r15d, eax
call fcn.1801be420
cmp r15d, 2
jne 0x1801d2fc0
mov r13b, 1
mov eax, dword [rsp + 0x40]
cmp eax, 2
je 0x1801d2f79
cmp eax, 0x17
jne 0x1801d2fdd
lea rcx, [rsp + 0x50]
call fcn.180201830
mov r9d, dword [rsp + 0x40]
mov r8, rbx
mov rdx, r14
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.1801d2320
mov edi, eax
test eax, eax
je 0x1801d2fdd
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call fcn.1801d14d0
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x1801d30ef
test r15d, r15d
je 0x1801d2f6b
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call fcn.1801d14d0
mov eax, Ordinal_46
jmp 0x1801d30ef
mov edx, 1
mov rcx, rbx
call fcn.1802018c0
lea rcx, [rsp + 0x30]
call fcn.1801d81c0
cmp dword [r14 + 0x544], 1
movups xmm0, xmmword [rax]
movups xmmword [r14 + 0x350], xmm0
jle 0x1801d3033
mov rdx, qword [r14 + 0x360]
mov r8d, 3
mov rcx, rsi
call fcn.1801bde50
mov rdx, qword [r14 + 0x368]
mov r8d, 4
mov rcx, rsi
call fcn.1801bde50
test r13b, r13b
jne 0x1801d30e5
cmp byte [r14 + 0x55d], 4
je 0x1801d30e5
cmp byte [r14 + 0x348], r13b
jne 0x1801d307b
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1801d307b
test edi, edi
jne 0x1801d30e1
mov qword [r12 + 0x1c8], rbx
mov eax, edi
jmp 0x1801d30ef
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0xb
je 0x1801d30d7
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x1801d30d7
mov r8d, 0x100
lea rdx, [rbp]
mov ecx, eax
call fcn.1801b9650
mov r9, rax
lea r8, [rbp - 0x30]
lea rdx, str.Immediate_connect_fail_for__s:__s
mov rcx, rsi
call fcn.1801d0780
mov r8, rbx
mov dword [rsi + 0xd8c], edi
mov rdx, r14
mov rcx, rsi
call fcn.1801d14d0
mov edi, 7
mov eax, edi
jmp 0x1801d30ef
xor edi, edi
mov qword [r12 + 0x1c8], rbx
mov eax, edi
jmp 0x1801d30ef
mov qword [r12 + 0x1c8], rbx
xor eax, eax
mov r15, qword [rsp + 0x218]
mov rbx, qword [rsp + 0x220]
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1800b8140
add rsp, 0x228
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret