Function at 0x1400203d0
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x4d0
mov rax, qword [0x1400e6470]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
cmp qword [rcx + 0x10], 0
mov rsi, rcx
je 0x1400205ff
mov rcx, qword [rsi + 0x10]
mov edx, dword [rcx + 4]
sub edx, 1
je 0x14002046a
sub edx, 1
je 0x14002041c
cmp edx, 0x15
jne 0x1400205ea
mov edx, dword [rcx + 0x10]
lea rax, [rsp + 0x40]
mov rcx, qword [rcx + 0x20]
lea r8, [rsp + 0xb0]
mov dword [rsp + 0x30], 0xa
mov r9d, 0x401
mov dword [rsp + 0x28], WSAGetLastError
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x1400204fb
lea rcx, str.connect_next:_getnameinfo_failed
call fcn.140002d00
jmp 0x1400205ea
mov r9, qword [rcx + 0x20]
lea rdx, [rsp + 0xb0]
lea rcx, str.unix
mov r8d, 0x400
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx]
inc rcx
mov byte [rdx], al
lea rdx, [rdx + 1]
test al, al
je 0x1400204a8
sub r8, 1
jne 0x140020490
jmp 0x1400204ad
test r8, r8
jne 0x1400204bb
mov byte [rdx], 0
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
test al, al
jne 0x1400204b0
lea rdx, [rsp + 0x40]
mov r8d, WSAGetLastError
lea rax, [r9 + 2]
nop word [rax + rax]
movzx ecx, byte [rax]
inc rax
mov byte [rdx], cl
lea rdx, [rdx + 1]
test cl, cl
je 0x1400204e8
sub r8, 1
jne 0x1400204d0
jmp 0x1400204ed
test r8, r8
jne 0x1400204fb
mov byte [rdx], 0
movzx ecx, byte [rax]
lea rax, [rax + 1]
test cl, cl
jne 0x1400204f0
mov rax, qword [rsi + 0x10]
mov r8d, dword [rax + 0xc]
mov edx, dword [rax + 8]
mov ecx, dword [rax + 4]
call fcn.140065d30
mov edi, eax
cmp eax, 0xffffffff
jne 0x140020560
mov rax, qword [rsi + 0x10]
cmp qword [rax + 0x28], 0
jne 0x140020540
call fcn.1400825b0
mov ecx, dword [rax]
call fcn.14005f2e0
mov rdx, rax
lea rcx, [0x1400c9d68]
call fcn.140002d00
jmp 0x1400205ea
call fcn.1400825b0
mov ecx, dword [rax]
call fcn.14005f2e0
mov rdx, rax
lea rcx, [0x1400c9d68]
call fcn.140002dc0
jmp 0x1400205ea
mov ecx, edi
call fcn.140003370
cmp eax, 0xffffffff
jne 0x140020582
mov r8d, edi
lea rdx, str.connect_next
lea rcx, str._s:_set_nonblock__d_
call fcn.14000c3a0
mov rdx, qword [rsi + 0x10]
mov ecx, edi
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
call fcn.140063c60
cmp eax, 0xffffffff
jne 0x140020627
call fcn.1400825b0
cmp dword [rax], 0x70
je 0x140020627
call fcn.1400825b0
mov ecx, dword [rax]
call fcn.14005f2e0
mov rdx, qword [rsi]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0xb0]
mov qword [rsp + 0x20], rax
lea rcx, str.connect_next:_host__.100s____.100s_:_s_:__.100s
call fcn.140002df0
call fcn.1400825b0
mov ecx, edi
mov ebx, dword [rax]
call fcn.140063bc0
call fcn.1400825b0
mov dword [rax], ebx
mov rax, qword [rsi + 0x10]
mov rcx, qword [rax + 0x28]
mov qword [rsi + 0x10], rcx
test rcx, rcx
jne 0x140020402
or eax, 0xffffffff
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.140075860
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov rax, qword [rsi + 0x10]
cmp dword [rax + 4], 1
je 0x140020638
mov ecx, edi
call fcn.140003570
mov rdx, qword [rsi]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0xb0]
mov dword [rsp + 0x20], edi
lea rcx, str.connect_next:_host__.100s____.100s_:_s__in_progress__fd_d
call fcn.140002df0
mov rax, qword [rsi + 0x10]
mov rcx, qword [rax + 0x28]
mov eax, edi
mov qword [rsi + 0x10], rcx
jmp 0x140020602