Function at 0x140061740
Capabilities:
Resolve dns

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0xb0
xor ebx, ebx
mov eax, ecx
and eax, 2
mov dword [rsp + 0xe0], ebx
mov r14d, ecx
mov qword [rsp + 0x58], rbx
mov rcx, qword [rsp + 0x110]
mov r12d, 0x4000021
mov r13d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x60], rbx
cmovne r12d, r13d
mov r15d, r9d
mov r11, r8
mov r10, rdx
test rcx, rcx
je 0x140061c16
test rdx, rdx
jne 0x1400617ad
test r8, r8
je 0x140061c2f
test r14b, 4
jne 0x140061c48
test r11, r11
mov qword [rsp + 0xf8], rbp
lea r8, [0x14008b699]
mov qword [rsp + 0xa8], rsi
mov rdx, r11
cmove rdx, r8
mov qword [rsp + 0x50], rdx
test r14b, 0x40
je 0x1400617f4
test eax, eax
mov edx, 0x4010
mov r12d, 0x4004021
cmovne r12d, edx
mov qword [rsp + 0xa0], rdi
test r14b, 0x30
je 0x14006181b
mov rax, qword [rsp + 0x100]
lea rdi, [rsp + 0xe0]
test rax, rax
cmovne rdi, rax
jmp 0x140061823
mov rdi, qword [rsp + 0x100]
mov eax, dword [rsp + 0x108]
lea r8, [rsp + 0x68]
mov dword [rsp + 0x6c], eax
bt r14d, 0xa
mov eax, 4
mov dword [rsp + 0x94], ebx
mov edx, 5
xorps xmm0, xmm0
cmovb eax, edx
xorps xmm1, xmm1
mov dword [rsp + 0x68], eax
mov r9, rcx
mov eax, ebx
bt r14d, 0xb
mov rdx, r11
mov rcx, r10
setb al
inc eax
mov dword [rsp + 0x70], eax
movdqu xmmword [rsp + 0x74], xmm0
movdqu xmmword [rsp + 0x84], xmm1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
mov esi, 0x40
test eax, eax
je 0x140061b3a
test r14b, r14b
jns 0x14006189f
mov esi, 1
jmp 0x1400618b5
lea ecx, [r15 + 4]
mov eax, 0x66666667
imul ecx
mov esi, edx
sar esi, 1
mov eax, esi
shr eax, 0x1f
add esi, eax
mov rax, qword [rsp + 0xe8]
test rax, rax
je 0x1400618e3
bt r14d, 9
jae 0x1400618ea
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140028d70
mov qword [rsp + 0xe8], rax
test rax, rax
jne 0x1400618ea
lea rax, str.undefined
mov qword [rsp + 0x40], rax
lea rcx, str.RESOLVE:_Cannot_resolve_host_address:__s:_s___s_
mov qword [rsp + 0x48], rcx
test r14b, 8
je 0x140061914
test r15d, r15d
lea rax, str.RESOLVE:_Cannot_resolve_host_address:__s:_s___s___I_would_have_retried_this_name_query_if_you_had_specified_the___resolv_retry_option._
cmovne rax, rcx
mov qword [rsp + 0x48], rax
test r14b, 1
je 0x140061acc
cmp ebp, 0x2afb
je 0x140061acc
bt r14d, 8
jae 0x140061959
cmp qword [0x1400cfe58], rbx
je 0x140061959
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x30], rax
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
lea edx, [rax + 0xa]
call fcn.140025e50
mov r15, qword [rsp + 0xe8]
mov r9, qword [rsp + 0x110]
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0xf0]
mov rcx, r15
and dword [rsp + 0x68], 0xfffffffb
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test rdi, rdi
je 0x1400619d8
call fcn.140084ad0
mov dword [rdi], eax
mov eax, dword [rdi]
test eax, eax
je 0x1400619d8
mov eax, dword [rdi]
cmp eax, 0xa
jne 0x140061a96
mov eax, ebx
and eax, 0xf
cmp eax, dword [0x1400cfe94]
ja 0x1400619c9
mov ecx, ebx
call fcn.14000e3d0
test al, al
je 0x1400619c9
lea rdx, str.RESOLVE:_Ignored_SIGUSR1_signal_received_during_DNS_resolution_attempt
mov ecx, ebx
call fcn.14000e000
test r13b, bl
jne 0x140061b9e
mov dword [rdi], 0
test ebp, ebp
je 0x140061b5a
test esi, esi
mov eax, 0x4000021
mov ebx, r12d
cmovg ebx, eax
mov eax, ebx
and eax, 0xf
cmp eax, dword [0x1400cfe94]
ja 0x140061a5a
mov ecx, ebx
call fcn.14000e3d0
test al, al
je 0x140061a5a
mov qword [rsp + 0x30], 0
lea rax, [0x1400d0040]
mov dword [rsp + 0x28], 0x400
mov r9d, 0x400
mov r8d, ebp
mov qword [rsp + 0x20], rax
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov r9, qword [rsp + 0x50]
lea rax, [0x1400d0040]
mov r8, qword [rsp + 0x40]
mov ecx, ebx
mov rdx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
call fcn.14000e000
test r13b, bl
jne 0x140061b9e
dec esi
test esi, esi
jle 0x140061b5a
cmp qword [0x1400cfe58], 0
je 0x140061a86
mov edx, 5
call fcn.140026d50
jmp 0x140061961
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140061961
test ebp, ebp
jne 0x140061b5f
mov rbx, qword [rsp + 0x110]
mov rcx, qword [rbx]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov qword [rbx], 0
mov ebp, 0x2afa
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 4
jmp 0x140061b5f
mov eax, r12d
and eax, 0xf
cmp eax, dword [0x1400cfe94]
ja 0x140061b33
mov ecx, r12d
call fcn.14000e3d0
test al, al
je 0x140061b33
mov qword [rsp + 0x30], rbx
mov r9d, 0x400
lea rbx, [0x1400d0040]
mov dword [rsp + 0x28], 0x400
mov r8d, ebp
mov qword [rsp + 0x20], rbx
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov r9, qword [rsp + 0x50]
lea rdx, str.RESOLVE:_Cannot_parse_IP_address:__s:_s___s_
mov r8, qword [rsp + 0x40]
mov ecx, r12d
mov qword [rsp + 0x20], rbx
call fcn.14000e000
test r13b, r12b
je 0x140061b5a
jmp 0x140061b9e
bt r14d, 9
jae 0x140061b5a
mov ecx, esi
call fcn.14000e3d0
test al, al
je 0x140061b5a
lea rdx, str.WARNING:_ignoring___remote_random_hostname_because_the_hostname_is_an_IP_address
mov ecx, esi
call fcn.14000e000
test rdi, rdi
je 0x140061baa
mov eax, dword [rdi]
test eax, eax
je 0x140061baa
test r13b, r14b
jne 0x140061b7d
test r14b, 0x20
mov eax, 0x40
mov r13d, 0
cmovne r13d, eax
mov ecx, r13d
call fcn.14000e3d0
test al, al
je 0x140061b98
lea rdx, str.RESOLVE:_signal_received_during_DNS_resolution_attempt
mov ecx, r13d
call fcn.14000e000
test r13b, 0x10
je 0x140061baa
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
int3
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140061bc5
mov rbx, qword [rcx]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rbx
test rbx, rbx
jne 0x140061bb4
mov rdi, qword [rsp + 0x60]
test rdi, rdi
je 0x140061beb
nop
mov rcx, qword [rdi + 0x10]
mov rbx, qword [rdi]
call qword [rdi + reloc.WS2_32.dll_htonl]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
test rbx, rbx
jne 0x140061bd0
mov rdi, qword [rsp + 0xa0]
mov eax, ebp
mov rbp, qword [rsp + 0xf8]
mov rsi, qword [rsp + 0xa8]
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
lea r8, [0x1400ae654]
mov edx, 0x1ca
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3
lea r8, str.hostname__servname
mov edx, 0x1cc
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3
lea r8, str.__flags__GETADDR_HOST_ORDER_
mov edx, 0x1cd
lea rcx, str.C:Users_vagrant_buildopenvpn_srcopenvpn_socket.c
call fcn.14000e4c0
int3