Function at 0x1801d02e0
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.1801cf460
mov edi, eax
test eax, eax
jne 0x1801d067f
movzx ecx, word [rsp + 0x50]
mov qword [rsp + 0x220], rbx
sub ecx, 1
je 0x1801d03fd
sub ecx, 1
je 0x1801d0395
cmp ecx, 0x15
jne 0x1801d03a1
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 0x1801d03a1
movzx ecx, word [rsp + 0x52]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx r9d, ax
jmp 0x1801d0427
lea rdx, [rsp + 0x54]
mov ecx, 2
jmp 0x1801d036d
mov byte [rbp - 0x30], 0
call fcn.180213f9c
mov dword [rax], 0x273f
call fcn.180213f9c
mov rbx, rax
call fcn.180213f9c
mov ecx, dword [rbx]
lea rdx, [rbp]
mov r8d, 0x100
mov rdi, rax
call fcn.1801b6bd0
mov r8d, dword [rdi]
lea rdx, str.sa_addr_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1801cdb70
mov r8, qword [rsp + 0x30]
mov rdx, r14
mov rcx, rsi
call fcn.1801cea50
xor eax, eax
jmp 0x1801d0677
cmp dword [rsp + 0x4c], 2
jle 0x1801d0420
lea r9, [rsp + 0x52]
mov edx, reloc.WLDAP32.dll_Ordinal_46
lea r8, [0x18046c008]
lea rcx, [rbp - 0x30]
call sym.gcm64.dll_curl_msnprintf
jmp 0x1801d0424
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.1801cdd00
mov eax, dword [rsp + 0x40]
cmp eax, 2
je 0x1801d0460
cmp eax, 0x17
jne 0x1801d046c
cmp dword [rsp + 0x44], 1
jne 0x1801d046c
mov r15b, 1
jmp 0x1801d046f
xor r15b, r15b
mov rbx, qword [rsp + 0x30]
test r15b, r15b
je 0x1801d048d
cmp byte [rsi + 0xad4], 0
je 0x1801d048d
mov rdx, rbx
mov rcx, rsi
call fcn.1801d07c0
mov rcx, rbx
call fcn.1801cf390
test r15b, r15b
je 0x1801d04ae
cmp byte [rsi + 0xada], 0
je 0x1801d04ae
mov rdx, rbx
mov rcx, rsi
call fcn.1801d06a0
cmp qword [rsi + 0x278], 0
je 0x1801d04eb
mov dl, 1
mov rcx, rsi
call fcn.1801bb9a0
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.1801bb9a0
cmp r15d, 2
jne 0x1801d0540
mov r13b, 1
mov eax, dword [rsp + 0x40]
cmp eax, 2
je 0x1801d04f9
cmp eax, 0x17
jne 0x1801d055d
lea rcx, [rsp + 0x50]
call fcn.1801fedb0
mov r9d, dword [rsp + 0x40]
mov r8, rbx
mov rdx, r14
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.1801cf8a0
mov edi, eax
test eax, eax
je 0x1801d055d
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call fcn.1801cea50
mov eax, 7
cmp edi, 1
cmove edi, eax
mov eax, edi
jmp 0x1801d066f
test r15d, r15d
je 0x1801d04eb
mov r8, rbx
mov rdx, r14
mov rcx, rsi
call fcn.1801cea50
mov eax, Ordinal_46
jmp 0x1801d066f
mov edx, 1
mov rcx, rbx
call fcn.1801fee40
lea rcx, [rsp + 0x30]
call fcn.1801d5750
cmp dword [r14 + 0x544], 1
movups xmm0, xmmword [rax]
movups xmmword [r14 + 0x350], xmm0
jle 0x1801d05b3
mov rdx, qword [r14 + 0x360]
mov r8d, 3
mov rcx, rsi
call fcn.1801bb3d0
mov rdx, qword [r14 + 0x368]
mov r8d, 4
mov rcx, rsi
call fcn.1801bb3d0
test r13b, r13b
jne 0x1801d0665
cmp byte [r14 + 0x55d], 4
je 0x1801d0665
cmp byte [r14 + 0x348], r13b
jne 0x1801d05fb
mov r8d, dword [rsp + 0x4c]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1801d05fb
test edi, edi
jne 0x1801d0661
mov qword [r12 + 0x1c8], rbx
mov eax, edi
jmp 0x1801d066f
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp eax, 0xb
je 0x1801d0657
lea ecx, [rax - 0x2733]
cmp ecx, 1
jbe 0x1801d0657
mov r8d, 0x100
lea rdx, [rbp]
mov ecx, eax
call fcn.1801b6bd0
mov r9, rax
lea r8, [rbp - 0x30]
lea rdx, str.Immediate_connect_fail_for__s:__s
mov rcx, rsi
call fcn.1801cdd00
mov r8, rbx
mov dword [rsi + 0xd8c], edi
mov rdx, r14
mov rcx, rsi
call fcn.1801cea50
mov edi, 7
mov eax, edi
jmp 0x1801d066f
xor edi, edi
mov qword [r12 + 0x1c8], rbx
mov eax, edi
jmp 0x1801d066f
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.1800b80c0
add rsp, 0x228
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret