Function at 0x14001ec30
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x14143b040]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov rbx, rcx
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x58], xmm0
mov r15d, 2
mov word [rsp + 0x58], r15w
movzx ecx, word [rcx + 0xb8]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x5a], ax
lea rsi, [rbx + 8]
mov qword [rsp + 0x40], rsi
mov byte [rsp + 0x48], 0
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x14001ee84
xor r14d, r14d
nop dword [rax + rax]
cmp dword [rsi + 0x4c], 0x7fffffff
je 0x14001eed2
mov byte [rsp + 0x48], 1
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0xa8]
cmp qword [rbx + 0xa0], rax
jne 0x14001ecf8
movzx eax, byte [rbx]
test al, al
jne 0x14001ecf8
mov rdx, qword [rsp + 0x40]
lea rcx, [rbx + 0x58]
call qword [sym.imp.MSVCP140.dll__Cnd_wait]
jmp 0x14001ecd0
movzx eax, byte [rbx]
test al, al
jne 0x14001ee9e
mov rcx, qword [rbx + 0xa8]
mov eax, dword [rcx - 0x48]
mov dword [rbp - 0x70], eax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x50], rax
mov qword [rbp - 0x30], r14
mov rcx, qword [rcx - 8]
test rcx, rcx
je 0x14001ed33
mov rax, qword [rcx]
lea rdx, [rbp - 0x68]
call qword [rax]
mov qword [rbp - 0x30], rax
mov rdi, qword [rbx + 0xa8]
sub rdi, 0x40
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x14001ed57
mov rax, qword [rcx]
cmp rcx, rdi
setne dl
call qword [rax + 0x20]
mov qword [rdi + 0x38], r14
add qword [rbx + 0xa8], 0xffffffffffffffb8
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14001eee5
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov byte [rsp + 0x48], 0
mov eax, dword [rbp - 0x70]
mov dword [rsp + 0x5c], eax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
mov r9d, 0x80
lea r8, [rbp - 0x20]
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x14001edc6
mov r9d, reloc.WS2_32.dll_recvfrom
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x70]
mov ecx, r15d
call qword [sym.imp.WS2_32.dll_inet_ntop]
vpxor xmm0, xmm0, xmm0
vmovups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r14
mov qword [rbp - 0x80], r14
lea rax, [rbp - 0x20]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x14001ede4
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x68]
call fcn.140004000
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14001ee97
mov rax, qword [rcx]
lea rdx, [rsp + 0x68]
call qword [rax + reloc.WS2_32.dll_recv]
nop
mov rdx, qword [rbp - 0x80]
cmp rdx, 0xf
jbe 0x14001ee4f
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001ee49
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14001ee90
call fcn.1403f4db4
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x14001ee69
mov rax, qword [rcx]
lea rdx, [rbp - 0x68]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
mov qword [rsp + 0x40], rsi
mov byte [rsp + 0x48], 0
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14001ecb0
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
nop
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1403f4b10
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov dword [rsi + 0x4c], 0x7ffffffe
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 1
call fcn.140006dd0
int3