Function at 0x140064eb0
Capabilities:
Resolve dns

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
lea rbp, [rsp - 0x3c8]
sub rsp, 0x4c8
mov rax, qword [0x1400c7008]
xor rax, rsp
mov qword [rbp + 0x3b0], rax
xor esi, esi
mov dword [rsp + 0x58], r8d
mov qword [rsp + 0x60], rdx
mov rdi, r9
mov qword [rsp + 0x68], 0x80
mov r14d, r8d
mov dword [rsp + 0x70], esi
mov r12, rdx
mov rbx, rcx
test r9, r9
je 0x140064f7c
mov ecx, 0x88
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
test rax, rax
je 0x140065281
mov rcx, qword [rdi]
lea rdx, [rax + 8]
mov qword [rax], rcx
mov qword [rdi], rax
movups xmm0, xmmword [rsp + 0x68]
mov qword [rsp + 0x78], rdx
lea rcx, [rbp - 0x60]
movsd xmm1, qword [rsp + 0x78]
mov r8d, 0x401
mov byte [rdx], sil
xor edx, edx
movups xmmword [rsp + 0x40], xmm0
movsd qword [rsp + 0x50], xmm1
call sub.VCRUNTIME140.dll_memset
movzx eax, word [rbx]
xorps xmm0, xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
test ax, ax
je 0x140065235
cmp ax, 2
je 0x140064feb
cmp ax, 0x17
jne 0x140065268
jmp 0x140064f95
mov ecx, 0x80
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdx, rax
test rax, rax
je 0x140065281
jmp 0x140064f24
test r14b, 0x10
jne 0x140064fac
lea rdx, str._AF_INET6_
lea rcx, [rsp + 0x40]
call fcn.140002f30
mov edx, 0x1c
cmp word [rbx + 8], si
jne 0x140064fe6
cmp word [rbx + 0xa], si
jne 0x140064fe6
cmp word [rbx + 0xc], si
jne 0x140064fe6
cmp word [rbx + 0xe], si
jne 0x140064fe6
cmp word [rbx + 0x10], si
jne 0x140064fe6
cmp word [rbx + 0x12], si
jne 0x140064fe6
cmp word [rbx + 0x14], si
jne 0x140064fe6
cmp word [rbx + 0x16], si
jne 0x140064fe6
xor dil, dil
jmp 0x14006500e
mov dil, 1
jmp 0x14006500e
test r14b, 0x10
jne 0x140065002
lea rdx, str._AF_INET_
lea rcx, [rsp + 0x40]
call fcn.140002f30
cmp dword [rbx + 4], esi
mov edx, reloc.WS2_32.dll_recv
setne dil
mov dword [rsp + 0x30], 0xa
lea rax, [rbp - 0x80]
mov dword [rsp + 0x28], 0x20
lea r8, [rbp - 0x60]
mov r9d, 0x401
mov qword [rsp + 0x20], rax
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x1400650a1
mov qword [rsp + 0x30], rsi
lea rbx, [0x1400d0040]
mov dword [rsp + 0x28], 0x400
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x20], rbx
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov r8, rbx
lea rdx, str._nameinfo___err:__s_
lea rcx, [rsp + 0x40]
call fcn.140002e40
mov rax, qword [rsp + 0x50]
test rax, rax
je 0x140065099
cmp dword [rsp + 0x48], esi
jl 0x140065099
movsxd rsi, dword [rsp + 0x44]
add rsi, rax
mov rax, rsi
jmp 0x140065249
mov qword [rsp + 0x510], r13
mov qword [rsp + 0x4c0], r15
mov r15, 0xffffffffffffffff
test r14b, 8
jne 0x1400651a1
test dil, dil
je 0x140065190
mov r14, qword [rsp + 0x50]
movsxd r13, dword [rsp + 0x44]
mov edi, dword [rsp + 0x48]
test r14, r14
je 0x1400650e6
lea rax, [r14 + r13]
test edi, edi
jns 0x1400650e9
mov rax, rsi
test r14, r14
je 0x1400650f4
mov ecx, edi
test edi, edi
jns 0x1400650f6
mov ecx, esi
movsxd r12, ecx
add r12, rax
test r14, r14
je 0x14006514f
test edi, edi
js 0x14006514f
mov eax, dword [rsp + 0x40]
mov ecx, esi
sub eax, r13d
sub eax, edi
cmovns ecx, eax
test ecx, ecx
jle 0x14006514f
movsxd rbx, ecx
lea rdx, [rbp - 0x60]
mov rcx, r12
lea r8, [rbx - 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
movsxd rax, dword [rsp + 0x40]
mov byte [rbx + r12 - 1], sil
mov byte [rax + r14 - 1], sil
mov rax, r15
nop dword [rax]
inc rax
cmp byte [r12 + rax], sil
jne 0x140065140
add edi, eax
mov dword [rsp + 0x48], edi
mov r12, qword [rsp + 0x60]
test byte [rsp + 0x58], 3
je 0x140065211
test r12, r12
je 0x14006517f
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.140002f30
mov r14, qword [rsp + 0x50]
mov edi, dword [rsp + 0x48]
mov r13d, dword [rsp + 0x44]
test r14, r14
je 0x1400651b1
test edi, edi
js 0x1400651b1
movsxd rax, r13d
add rax, r14
jmp 0x1400651b4
lea rdx, str._undef_
lea rcx, [rsp + 0x40]
call fcn.140002f30
mov r14, qword [rsp + 0x50]
mov edi, dword [rsp + 0x48]
mov r13d, dword [rsp + 0x44]
jmp 0x140065154
mov rax, rsi
test r14, r14
je 0x1400651bf
mov ecx, edi
test edi, edi
jns 0x1400651c1
mov ecx, esi
movsxd r12, ecx
add r12, rax
test r14, r14
je 0x140065211
test edi, edi
js 0x140065211
mov eax, dword [rsp + 0x40]
mov ecx, esi
sub eax, r13d
sub eax, edi
cmovns ecx, eax
test ecx, ecx
jle 0x140065211
movsxd rbx, ecx
lea rdx, [rbp - 0x80]
mov rcx, r12
lea r8, [rbx - 1]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
movsxd rax, dword [rsp + 0x40]
mov byte [rbx + r12 - 1], sil
mov byte [rax + r14 - 1], sil
inc r15
cmp byte [r12 + r15], sil
jne 0x140065205
add edi, r15d
mov r15, qword [rsp + 0x4c0]
test r14, r14
je 0x140065228
test edi, edi
js 0x140065228
movsxd rsi, r13d
add rsi, r14
mov r13, qword [rsp + 0x510]
mov rax, rsi
jmp 0x140065249
lea rax, str._AF_UNSPEC_
test r14b, 0x10
je 0x140065249
lea rax, [0x14008b699]
mov rcx, qword [rbp + 0x3b0]
xor rcx, rsp
call fcn.140088150
add rsp, 0x4c8
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea r8, [0x14008b3f4]
mov edx, 0xb43
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3
call fcn.14000e540
int3