Function at 0x140066b10
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x3b0]
sub rsp, 0x4b0
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rbp + 0x3a0], rax
xor ebx, ebx
mov qword [rsp + 0x58], 0x80
mov dword [rsp + 0x60], ebx
mov r14, r9
mov esi, r8d
mov r15, rdx
mov rdi, rcx
test r9, r9
je 0x140066bd5
mov ecx, 0x88
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140066d94
mov rcx, qword [r14]
lea rdx, [rax + 8]
mov qword [rax], rcx
mov qword [r14], rax
movups xmm0, xmmword [rsp + 0x58]
mov qword [rsp + 0x68], rdx
lea rcx, [rbp - 0x70]
movsd xmm1, qword [rsp + 0x68]
mov r8d, 0x401
mov byte [rdx], bl
xor edx, edx
movups xmmword [rsp + 0x40], xmm0
movsd qword [rsp + 0x50], xmm1
call sub.VCRUNTIME140.dll_memset
movzx eax, word [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
test ax, ax
je 0x140066d41
cmp ax, 2
je 0x140066c44
cmp ax, 0x17
jne 0x140066d7b
jmp 0x140066bee
mov ecx, 0x80
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, rax
test rax, rax
je 0x140066d94
jmp 0x140066b7d
test sil, 0x10
jne 0x140066c05
lea rdx, str._AF_INET6_
lea rcx, [rsp + 0x40]
call fcn.140003170
mov edx, 0x1c
cmp word [rdi + 8], bx
jne 0x140066c3f
cmp word [rdi + 0xa], bx
jne 0x140066c3f
cmp word [rdi + 0xc], bx
jne 0x140066c3f
cmp word [rdi + 0xe], bx
jne 0x140066c3f
cmp word [rdi + 0x10], bx
jne 0x140066c3f
cmp word [rdi + 0x12], bx
jne 0x140066c3f
cmp word [rdi + 0x14], bx
jne 0x140066c3f
cmp word [rdi + 0x16], bx
jne 0x140066c3f
xor r14b, r14b
jmp 0x140066c67
mov r14b, 1
jmp 0x140066c67
test sil, 0x10
jne 0x140066c5b
lea rdx, str._AF_INET_
lea rcx, [rsp + 0x40]
call fcn.140003170
cmp dword [rdi + 4], ebx
mov edx, reloc.WS2_32.dll_recv
setne r14b
mov dword [rsp + 0x30], 0xa
lea rax, [rsp + 0x70]
mov dword [rsp + 0x28], 0x20
lea r8, [rbp - 0x70]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x140066cf8
mov qword [rsp + 0x30], rbx
lea rdi, [0x1400d4080]
mov dword [rsp + 0x28], 0x400
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x20], rdi
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov r8, rdi
lea rdx, str._nameinfo___err:__s_
lea rcx, [rsp + 0x40]
call fcn.140003080
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x140066cf3
cmp dword [rsp + 0x48], ebx
jl 0x140066cf3
movsxd rbx, dword [rsp + 0x44]
add rbx, rax
mov rax, rbx
jmp 0x140066d55
test sil, 8
jne 0x140066d18
lea rcx, [rsp + 0x40]
lea rdx, [rbp - 0x70]
test r14b, r14b
jne 0x140066d13
lea rdx, str._undef_
call fcn.140003170
test sil, 3
je 0x140066cdb
test r15, r15
je 0x140066d30
mov rdx, r15
lea rcx, [rsp + 0x40]
call fcn.140003170
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.140003170
jmp 0x140066cdb
lea rax, str._AF_UNSPEC_
test sil, 0x10
je 0x140066d55
lea rax, [0x14008d9d9]
mov rcx, qword [rbp + 0x3a0]
xor rcx, rsp
call fcn.14008aca0
mov rbx, qword [rsp + 0x4f0]
add rsp, 0x4b0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14008d704]
mov edx, 0xb43
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_socket.c
call fcn.14000ed60
int3
call fcn.14000ede0
int3