Function at 0x140009500
Capabilities:
Query environment variable
Resolve dns

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
movapd xmmword [rsp + 0x70], xmm6
mov rsi, rdx
mov r14, rcx
mov rcx, rdx
call sub.msvcrt.dll__strdup
mov r15, rax
lea rcx, str.WG_ENDPOINT_RESOLUTION_RETRIES
call sub.msvcrt.dll_getenv
test rax, rax
je 0x14000959b
mov rdi, rax
lea rdx, str.infinity
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x1400095a2
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov r8d, 0xa
call sub.msvcrt.dll_strtoul
test eax, eax
js 0x140009574
mov ebp, eax
mov rax, qword [rsp + 0x40]
cmp byte [rax], 0
je 0x1400095a7
mov ecx, 2
call qword [fcn.140002320]
lea rdx, str.Unable_to_parse_WG_ENDPOINT_RESOLUTION_RETRIES:___s_n
mov rcx, rax
mov r8, rdi
call fcn.1400094d0
mov ecx, 1
call sub.msvcrt.dll_exit
mov ebp, 0xf
jmp 0x1400095a7
mov ebp, 0xffffffff
xorpd xmm0, xmm0
movapd xmmword [rsp + 0x40], xmm0
movapd xmmword [rsp + 0x60], xmm0
movapd xmmword [rsp + 0x50], xmm0
movabs rax, 0x1100000002
mov qword [rsp + 0x48], rax
test r15, r15
je 0x140009804
cmp byte [rsi], 0
je 0x140009621
cmp byte [r15], 0x5b
jne 0x140009648
mov rcx, r15
mov edx, 0x5d
call sub.msvcrt.dll_strchr
test rax, rax
je 0x1400097be
mov rbx, rax
mov byte [rax], 0
cmp byte [rax + 1], 0x3a
jne 0x140009777
add rbx, 2
cmp byte [rbx], 0
je 0x140009777
mov qword [rsp + 0x30], r14
mov rdi, r15
add rdi, 1
jmp 0x14000967a
mov rcx, r15
call sub.msvcrt.dll_free
mov ecx, 2
call qword [fcn.140002320]
lea rdx, str.Unable_to_parse_empty_endpoint_n
mov rcx, rax
call fcn.1400094d0
jmp 0x140009810
mov rcx, r15
mov edx, 0x3a
call sub.msvcrt.dll_strrchr
test rax, rax
je 0x140009777
cmp byte [rax + 1], 0
je 0x140009777
mov qword [rsp + 0x30], r14
mov rbx, rax
add rbx, 1
mov byte [rax], 0
mov rdi, r15
mov r14d, 0xf4240
movsd xmm6, qword [0x14001d540]
nop dword [rax + rax]
mov rcx, rdi
mov rdx, rbx
lea r8, [rsp + 0x40]
lea r9, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
lea eax, [r12 - 0x2af9]
cmp eax, 3
ja 0x1400096bf
cmp eax, 1
jne 0x140009793
test r12d, r12d
je 0x14000982b
test ebp, ebp
js 0x1400096e0
sub ebp, 1
jae 0x1400096e5
jmp 0x140009793
mov ebp, 0xffffffff
mov ecx, 2
call qword [fcn.140002320]
mov r13, rax
cmp r12d, 0xffffff9d
jne 0x140009710
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
jmp 0x140009718
mov ecx, r12d
call fcn.140001480
mov ecx, r14d
xorps xmm0, xmm0
cvtsi2sd xmm0, rcx
divsd xmm0, xmm6
movsd qword [rsp + 0x20], xmm0
mov rcx, r13
lea rdx, str._s:___s._Trying_again_in__.2f_seconds..._n
mov r8, rax
mov r9, rsi
call fcn.1400094d0
mov ecx, r14d
call fcn.140001dd0
add r14d, r14d
lea eax, [r14 + r14*2]
mov r14d, 0x1312d00
cmp eax, 0x5f5e104
ja 0x140009690
mov r14d, eax
mov eax, 0xcccccccd
imul r14, rax
shr r14, 0x22
jmp 0x140009690
mov rcx, r15
call sub.msvcrt.dll_free
mov ecx, 2
call qword [fcn.140002320]
lea rdx, str.Unable_to_find_port_of_endpoint:___s_n
jmp 0x1400097d8
mov rcx, r15
call sub.msvcrt.dll_free
mov ecx, 2
call qword [fcn.140002320]
mov rdi, rax
cmp r12d, 0xffffff9d
jne 0x1400097e5
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
jmp 0x1400097ed
mov rcx, r15
call sub.msvcrt.dll_free
mov ecx, 2
call qword [fcn.140002320]
lea rdx, str.Unable_to_find_matching_brace_of_endpoint:___s_n
mov rcx, rax
mov r8, rsi
call fcn.1400094d0
jmp 0x140009810
mov ecx, r12d
call fcn.140001480
lea rdx, str._s:___s_n
mov rcx, rdi
mov r8, rax
mov r9, rsi
call fcn.1400094d0
jmp 0x140009810
lea rcx, str.strdup
call sub.msvcrt.dll_perror
xor eax, eax
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdi, qword [rsp + 0x38]
mov eax, dword [rdi + 4]
cmp eax, 0x17
je 0x140009877
cmp eax, 2
mov rcx, qword [rsp + 0x30]
jne 0x14000984f
mov r8d, 0x10
cmp qword [rdi + 0x10], 0x10
je 0x140009889
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, r15
call sub.msvcrt.dll_free
mov ecx, 2
call qword [fcn.140002320]
lea rdx, str.Neither_IPv4_nor_IPv6_address_found:___s_n
jmp 0x1400097d8
mov r8d, 0x1c
cmp qword [rdi + 0x10], 0x1c
mov rcx, qword [rsp + 0x30]
jne 0x14000984f
mov rdx, qword [rdi + 0x20]
call sub.msvcrt.dll_memcpy
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, r15
call sub.msvcrt.dll_free
mov al, 1
jmp 0x140009812