Function at 0x1801d0130
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 [0x18049d0e0]
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.1801cf2b0
mov edi, eax
test eax, eax
jne 0x1801d04cf
movzx ecx, word [rsp + 0x50]
mov qword [rsp + 0x220], rbx
sub ecx, 1
je 0x1801d024d
sub ecx, 1
je 0x1801d01e5
cmp ecx, 0x15
jne 0x1801d01f1
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 0x1801d01f1
movzx ecx, word [rsp + 0x52]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r9d, ax
jmp 0x1801d0277
lea rdx, [rsp + 0x54]
mov ecx, 2
jmp 0x1801d01bd
mov byte [rbp - 0x30], 0
call fcn.180213e9c
mov dword [rax], 0x273f
call fcn.180213e9c
mov rbx, rax
call fcn.180213e9c
mov ecx, dword [rbx]
lea rdx, [rbp]
mov r8d, 0x100
mov rdi, rax
call fcn.1801b6a30
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1801cd9c0
mov r8, qword [rsp + 0x30]
mov rdx, r14
mov rcx, rsi
call fcn.1801ce8a0
xor eax, eax
jmp 0x1801d04c7
cmp dword [rsp + 0x4c], 2
jle 0x1801d0270
lea r9, [rsp + 0x52]
mov edx, reloc.WLDAP32.dll_Ordinal_46
lea r8, [0x18046c200]
lea rcx, [rbp - 0x30]
call sym.gcm64.dll_curl_msnprintf
jmp 0x1801d0274
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.1801cdb50
mov eax, dword [rsp + 0x40]
cmp eax, 2
je 0x1801d02b0
cmp eax, 0x17
jne 0x1801d02bc
cmp dword [rsp + 0x44], 1
jne 0x1801d02bc
mov r15b, 1
jmp 0x1801d02bf
xor r15b, r15b
mov rbx, qword [rsp + 0x30]
test r15b, r15b
je 0x1801d02dd
cmp byte [rsi + 0xad4], 0
je 0x1801d02dd
mov rdx, rbx
mov rcx, rsi
call fcn.1801d0610
mov rcx, rbx
call fcn.1801cf1e0
test r15b, r15b
je 0x1801d02fe
cmp byte [rsi + 0xada], 0
je 0x1801d02fe
mov rdx, rbx
mov rcx, rsi
call fcn.1801d04f0
cmp qword [rsi + 0x278], 0
je 0x1801d033b
mov dl, 1
mov rcx, rsi
call fcn.1801bb800
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.1801bb800
cmp r15d, 2
jne 0x1801d0390
mov r13b, 1
mov eax, dword [rsp + 0x40]
cmp eax, 2
je 0x1801d0349
cmp eax, 0x17
jne 0x1801d03ad
lea rcx, [rsp + 0x50]
call fcn.1801febf0
mov r9d, dword [rsp + 0x40]
mov r8, rbx
mov rdx, r14
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.1801cf6f0
mov edi, eax
test eax, eax
je 0x1801d03ad
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call fcn.1801ce8a0
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x1801d04bf
test r15d, r15d
je 0x1801d033b
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call fcn.1801ce8a0
mov eax, Ordinal_46
jmp 0x1801d04bf
mov edx, 1
mov rcx, rbx
call fcn.1801fec80
lea rcx, [rsp + 0x30]
call fcn.1801d5590
cmp dword [r14 + 0x544], 1
movups xmm0, xmmword [rax]
movups xmmword [r14 + 0x350], xmm0
jle 0x1801d0403
mov rdx, qword [r14 + 0x360]
mov r8d, 3
mov rcx, rsi
call fcn.1801bb230
mov rdx, qword [r14 + 0x368]
mov r8d, 4
mov rcx, rsi
call fcn.1801bb230
test r13b, r13b
jne 0x1801d04b5
cmp byte [r14 + 0x55d], 4
je 0x1801d04b5
cmp byte [r14 + 0x348], r13b
jne 0x1801d044b
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1801d044b
test edi, edi
jne 0x1801d04b1
mov qword [r12 + 0x1c8], rbx
mov eax, edi
jmp 0x1801d04bf
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0xb
je 0x1801d04a7
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x1801d04a7
mov r8d, 0x100
lea rdx, [rbp]
mov ecx, eax
call fcn.1801b6a30
mov r9, rax
lea r8, [rbp - 0x30]
lea rdx, str.Immediate_connect_fail_for__s:__s
mov rcx, rsi
call fcn.1801cdb50
mov r8, rbx
mov dword [rsi + 0xd8c], edi
mov rdx, r14
mov rcx, rsi
call fcn.1801ce8a0
mov edi, 7
mov eax, edi
jmp 0x1801d04bf
xor edi, edi
mov qword [r12 + 0x1c8], rbx
mov eax, edi
jmp 0x1801d04bf
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.1800b7d20
add rsp, 0x228
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret