Function at 0x18005a350
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f]
sub rsp, 0x100
mov rax, qword [0x1800fd750]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, r9
mov r14, rdx
mov qword [rbp + 0xf], rdx
mov r15, qword [rbp + 0x7f]
xor eax, eax
mov dword [rsp + 0x30], eax
mov qword [rbp + 7], rax
lea rdx, [r9 + 0x50]
lea rcx, [rbp - 0x51]
call fcn.18003c4d0
nop
lea rbx, [rbp - 0x51]
cmp qword [rbp - 0x39], 0x10
cmovae rbx, qword [rbp - 0x51]
lea rdx, [rsi + 0x30]
lea rcx, [rsp + 0x38]
call fcn.18003c4d0
mov dword [rsp + 0x30], 0x60
lea rdi, [rsp + 0x38]
cmp qword [rsp + 0x50], 0x10
cmovae rdi, qword [rsp + 0x38]
test rdi, rdi
je 0x18005a3df
cmp byte [rdi], 0
jne 0x18005a3e1
xor edi, edi
test rbx, rbx
je 0x18005a3eb
cmp byte [rbx], 0
jne 0x18005a3ed
xor ebx, ebx
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r9, [rbp + 7]
mov r8, rsi
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ecx, eax
cmp eax, 0x273f
jg 0x18005a478
je 0x18005a46e
test eax, eax
je 0x18005a450
sub ecx, 8
je 0x18005a443
sub ecx, 0x271e
je 0x18005a436
cmp ecx, 0x16
jne 0x18005a492
mov dword [rsp + 0x20], 0x273c
jmp 0x18005a4d7
mov dword [rsp + 0x20], 0x2726
jmp 0x18005a4d7
mov dword [rsp + 0x20], setsockopt
jmp 0x18005a4d7
mov dword [rsp + 0x20], 0
mov byte [rsp + 0x24], 0
lea rax, [0x1800e6c50]
mov qword [rsp + 0x28], rax
jmp 0x18005a4f3
mov dword [rsp + 0x20], 0x273f
jmp 0x18005a4d7
sub ecx, 0x277d
je 0x18005a4cf
sub ecx, 0x37c
je 0x18005a4c5
sub ecx, 1
je 0x18005a4bb
cmp ecx, 1
je 0x18005a4b1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x20], eax
test eax, eax
setne byte [rsp + 0x24]
lea rax, [0x1800e6c50]
mov qword [rsp + 0x28], rax
jmp 0x18005a4f3
mov dword [rsp + 0x20], 0x2afb
jmp 0x18005a4d7
mov dword [rsp + 0x20], 0x2afa
jmp 0x18005a4d7
mov dword [rsp + 0x20], 0x2af9
jmp 0x18005a4d7
mov dword [rsp + 0x20], 0x277d
lea rax, [0x1800e6c50]
mov byte [rsp + 0x24], 1
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
movaps xmm0, xmmword [rsp + 0x20]
movups xmmword [r15], xmm0
mov rdx, qword [rsp + 0x50]
cmp rdx, 0x10
jb 0x18005a53c
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005a537
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005a537
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c557c
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x38], 0
mov rdx, qword [rbp - 0x39]
cmp rdx, 0x10
jb 0x18005a591
inc rdx
mov rcx, qword [rbp - 0x51]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005a58c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005a58c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c557c
mov rax, qword [rbp + 7]
mov qword [rbp + 0xf], rax
cmp dword [r15], 0
je 0x18005a5bc
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rbp - 0x79], 0
lea rcx, [rsp + 0x58]
mov ebx, 0x61
jmp 0x18005a605
lea rdx, [rsi + 0x50]
lea rcx, [rbp - 0x71]
call fcn.18003c4d0
nop
mov dword [rsp + 0x30], 0xe2
lea rdx, [rsi + 0x30]
lea rcx, [rbp - 0x31]
call fcn.18003c4d0
nop
mov dword [rsp + 0x30], 0x1e6
lea r9, [rbp - 0x71]
lea r8, [rbp - 0x31]
mov rdx, qword [rbp + 7]
lea rcx, [rbp - 0x11]
call fcn.18005a800
mov rcx, rax
mov ebx, 0x1ee
mov qword [r14], 0
mov qword [r14 + 8], 0
mov rax, qword [rcx]
mov qword [r14], rax
mov rax, qword [rcx + 8]
mov qword [r14 + 8], rax
mov qword [rcx], 0
mov qword [rcx + 8], 0
mov rax, qword [rcx + 0x10]
mov qword [r14 + 0x10], rax
mov qword [rcx + 0x10], 0
or ebx, 0x10
mov dword [rsp + 0x30], ebx
mov esi, 0xffffffff
test bl, 8
je 0x18005a68f
and ebx, 0xfffffff7
mov dword [rsp + 0x30], ebx
mov rdi, qword [rbp - 9]
test rdi, rdi
je 0x18005a68f
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x18005a68b
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, esi
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x18005a68b
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov ebx, dword [rsp + 0x30]
test bl, 4
je 0x18005a6da
and ebx, 0xfffffffb
mov dword [rsp + 0x30], ebx
mov rdx, qword [rbp - 0x19]
cmp rdx, 0x10
jb 0x18005a6da
inc rdx
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005a6d4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005a6d4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c557c
nop
test bl, 2
je 0x18005a738
and ebx, 0xfffffffd
mov dword [rsp + 0x30], ebx
mov rdx, qword [rbp - 0x59]
cmp rdx, 0x10
jb 0x18005a724
inc rdx
mov rcx, qword [rbp - 0x71]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18005a71f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18005a71f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800c557c
mov qword [rbp - 0x61], 0
mov qword [rbp - 0x59], reloc.WS2_32.dll_ntohs
mov byte [rbp - 0x71], 0
test bl, 1
je 0x18005a776
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18005a776
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18005a776
mov rbx, qword [rsp + 0x60]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x18005a776
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rcx]
call qword [rdx + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x18005a785
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rax, r14
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1800c52c0
mov rbx, qword [rsp + 0x140]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret