Function at 0x1400632a0
Capabilities:
Resolve dns

Disassembly:
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x1400cb008]
xor rax, rsp
mov qword [rsp + 0xb8], rax
xor ebx, ebx
mov qword [rsp + 0x68], r8
mov r14d, ecx
mov qword [rsp + 0x40], rdx
mov rcx, qword [rsp + 0x130]
mov eax, r14d
and eax, 2
mov qword [rsp + 0x58], rcx
mov r12d, 0x4000021
mov dword [rsp + 0x70], ebx
mov r13d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x78], rbx
cmovne r12d, r13d
mov qword [rsp + 0x80], rbx
mov r15d, r9d
mov r11, r8
mov r10, rdx
test rcx, rcx
je 0x1400637bd
test rdx, rdx
jne 0x140063326
test r8, r8
je 0x1400637d6
test r14b, 4
jne 0x1400637ef
test r11, r11
mov qword [rsp + 0x118], rbp
lea r8, [0x14008d9d9]
mov qword [rsp + 0xc8], rsi
mov rdx, r11
cmove rdx, r8
mov qword [rsp + 0x60], rdx
test r14b, 0x40
je 0x14006336d
test eax, eax
mov edx, 0x4010
mov r12d, 0x4004021
cmovne r12d, edx
mov qword [rsp + 0xc0], rdi
test r14b, 0x30
je 0x140063391
mov rax, qword [rsp + 0x120]
lea rdi, [rsp + 0x70]
test rax, rax
cmovne rdi, rax
jmp 0x140063399
mov rdi, qword [rsp + 0x120]
mov eax, dword [rsp + 0x128]
lea r8, [rsp + 0x88]
mov dword [rsp + 0x8c], eax
bt r14d, 0xa
mov eax, 4
mov dword [rsp + 0xb4], ebx
mov edx, 5
xorps xmm0, xmm0
cmovb eax, edx
xorps xmm1, xmm1
mov dword [rsp + 0x88], eax
mov r9, rcx
mov eax, ebx
bt r14d, 0xb
mov rdx, r11
mov rcx, r10
setb al
inc eax
mov dword [rsp + 0x90], eax
movdqu xmmword [rsp + 0x94], xmm0
movdqu xmmword [rsp + 0xa4], xmm1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
mov esi, 0x40
test eax, eax
je 0x1400636bf
test r14b, r14b
jns 0x140063424
mov esi, 1
jmp 0x14006343a
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 + 0x40]
test rax, rax
je 0x140063462
bt r14d, 9
jae 0x140063469
lea rdx, [rsp + 0x78]
mov rcx, rax
call fcn.140029540
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140063469
lea rax, str.undefined
mov qword [rsp + 0x48], rax
lea rcx, str.RESOLVE:_Cannot_resolve_host_address:__s:_s___s_
mov qword [rsp + 0x50], rcx
test r14b, 8
je 0x140063493
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 + 0x50], rax
test r14b, 1
je 0x14006364e
cmp ebp, 0x2afb
je 0x14006364e
bt r14d, 8
jae 0x1400634d8
cmp qword [0x1400d3e98], rbx
je 0x1400634d8
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.140026490
mov r15, qword [rsp + 0x40]
nop dword [rax]
mov r9, qword [rsp + 0x58]
lea r8, [rsp + 0x88]
mov rdx, qword [rsp + 0x68]
mov rcx, r15
and dword [rsp + 0x88], 0xfffffffb
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov ebp, eax
test rdi, rdi
je 0x140063557
call fcn.140086800
mov dword [rdi], eax
mov eax, dword [rdi]
test eax, eax
je 0x140063557
mov eax, dword [rdi]
cmp eax, 0xa
jne 0x14006361b
mov eax, ebx
and eax, 0xf
cmp eax, dword [0x1400d3ed4]
ja 0x140063548
mov ecx, ebx
call fcn.14000ec70
test al, al
je 0x140063548
lea rdx, str.RESOLVE:_Ignored_SIGUSR1_signal_received_during_DNS_resolution_attempt
mov ecx, ebx
call fcn.14000e820
test r13b, bl
jne 0x140063726
mov dword [rdi], 0
test ebp, ebp
je 0x1400636df
test esi, esi
mov eax, 0x4000021
mov ebx, r12d
cmovg ebx, eax
mov eax, ebx
and eax, 0xf
cmp eax, dword [0x1400d3ed4]
ja 0x1400635dc
lfence
mov ecx, ebx
call fcn.14000ec70
test al, al
je 0x1400635dc
mov qword [rsp + 0x30], 0
lea rax, [0x1400d4080]
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 + 0x60]
lea rax, [0x1400d4080]
mov r8, qword [rsp + 0x48]
mov ecx, ebx
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
call fcn.14000e820
test r13b, bl
jne 0x140063726
dec esi
test esi, esi
jle 0x1400636df
cmp qword [0x1400d3e98], 0
lfence
je 0x14006360b
mov edx, 5
call fcn.140027440
jmp 0x1400634e0
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400634e0
test ebp, ebp
jne 0x1400636e4
mov rbx, qword [rsp + 0x58]
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 0x1400636e4
mov eax, r12d
and eax, 0xf
cmp eax, dword [0x1400d3ed4]
ja 0x1400636b8
lfence
mov ecx, r12d
call fcn.14000ec70
test al, al
je 0x1400636b8
mov qword [rsp + 0x30], rbx
mov r9d, 0x400
lea rbx, [0x1400d4080]
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 + 0x60]
lea rdx, str.RESOLVE:_Cannot_parse_IP_address:__s:_s___s_
mov r8, qword [rsp + 0x48]
mov ecx, r12d
mov qword [rsp + 0x20], rbx
call fcn.14000e820
test r13b, r12b
je 0x1400636df
jmp 0x140063726
bt r14d, 9
jae 0x1400636df
mov ecx, esi
call fcn.14000ec70
test al, al
je 0x1400636df
lea rdx, str.WARNING:_ignoring___remote_random_hostname_because_the_hostname_is_an_IP_address
mov ecx, esi
call fcn.14000e820
test rdi, rdi
je 0x140063732
mov eax, dword [rdi]
test eax, eax
je 0x140063732
test r13b, r14b
jne 0x140063702
test r14b, 0x20
mov eax, 0x40
mov r13d, 0
cmovne r13d, eax
lfence
mov ecx, r13d
call fcn.14000ec70
test al, al
je 0x140063720
lea rdx, str.RESOLVE:_signal_received_during_DNS_resolution_attempt
mov ecx, r13d
call fcn.14000e820
test r13b, 0x10
je 0x140063732
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
int3
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140063751
nop dword [rax]
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 0x140063740
mov rdi, qword [rsp + 0x80]
test rdi, rdi
je 0x140063782
nop
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 8]
mov rbx, qword [rdi]
call qword [0x14008d1f0]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rdi, rbx
test rbx, rbx
jne 0x140063760
mov rdi, qword [rsp + 0xc0]
mov eax, ebp
mov rbp, qword [rsp + 0x118]
mov rsi, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14008aca0
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
lea r8, [0x1400b1714]
mov edx, 0x1ca
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_socket.c
call fcn.14000ed60
int3
lea r8, str.hostname__servname
mov edx, 0x1cc
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_socket.c
call fcn.14000ed60
int3
lea r8, str.__flags__GETADDR_HOST_ORDER_
mov edx, 0x1cd
lea rcx, str.C:Users_vagrant_buildbotwindows_server_2019_static_msbuildopenvpn_srcopenvpn_socket.c
call fcn.14000ed60
int3