Function at 0x140016070
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
add rcx, 0x130
mov rsi, rdx
call fcn.14001a0a0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400160a4
call fcn.14001d540
call fcn.14001d550
mov rdi, rax
mov qword [rbx + 8], rax
test rax, rax
jne 0x1400160d6
lea rdx, str.CURL_initialization_failed
xor ecx, ecx
call fcn.140014db0
lea rcx, [rbx + 0x130]
call fcn.14001a680
xor eax, eax
jmp 0x140016312
cmp qword [rbx + 0x128], 0
jne 0x140016102
mov edx, 1
mov ecx, 0x800
call qword [sym.imp.MSVCR120.dll_calloc]
mov qword [rbx + 0x120], 0x800
mov qword [rbx + 0x128], rax
mov rax, qword [rbx + 0x128]
lea rcx, [rbx + 0x130]
mov byte [rax], 0
call fcn.14001a680
mov rcx, qword [rbx]
cmp rsi, rcx
je 0x140016132
call qword [sym.imp.MSVCR120.dll_free]
mov rcx, rsi
call qword [sym.imp.MSVCR120.dll__strdup]
mov qword [rbx], rax
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.MSVCR120.dll_free]
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rsi + rcx], 0
jne 0x140016140
call qword [sym.imp.MSVCR120.dll_malloc]
lea rdx, [0x140065d4c]
mov rcx, rsi
mov qword [rbx + 0x10], rax
call qword [sym.imp.MSVCR120.dll_strstr]
mov rcx, qword [rbx + 0x10]
lea rdx, str.http_s
mov r8, rax
call qword [sym.imp.MSVCR120.dll_sprintf]
cmp dword [0x140075210], 0
je 0x140016191
mov edx, reloc.WLDAP32.dll_Ordinal_41
mov rcx, rdi
lea r8d, [rdx - 0x28]
call fcn.14001d640
mov r8, qword [rbx + 0x10]
mov edx, 0x2712
mov rcx, rdi
call fcn.14001d640
mov edx, Ordinal_79
mov rcx, rdi
lea r8d, [rdx - 0x30]
call fcn.14001d640
lea r8, [rbx + 0x18]
mov edx, 0x271a
mov rcx, rdi
call fcn.14001d640
mov edx, 0x63
mov rcx, rdi
lea r8d, [rdx - 0x62]
call fcn.14001d640
mov edx, 0x79
mov rcx, rdi
lea r8d, [rdx - 0x78]
call fcn.14001d640
mov r8, qword [0x140075390]
test r8, r8
je 0x14001621e
cmp dword [0x1400753ac], 0
je 0x14001621e
mov edx, 0x2714
mov rcx, rdi
call fcn.14001d640
mov r8d, dword [0x1400753ac]
mov edx, 0x65
mov rcx, rdi
call fcn.14001d640
jmp 0x14001628c
lea rcx, str.http_proxy
call qword [sym.imp.MSVCR120.dll_getenv]
test rax, rax
je 0x14001628c
lea rcx, [0x14006acc8]
call qword [sym.imp.MSVCR120.dll_getenv]
test rax, rax
je 0x140016254
lea rcx, str.all_proxy
call qword [sym.imp.MSVCR120.dll_getenv]
mov r8, rax
jmp 0x14001627f
lea rcx, [0x14006ace8]
call qword [sym.imp.MSVCR120.dll_getenv]
test rax, rax
je 0x140016278
lea rcx, str.ALL_PROXY
call qword [sym.imp.MSVCR120.dll_getenv]
mov r8, rax
jmp 0x14001627f
lea r8, [0x140065793]
mov edx, 0x2714
mov rcx, rdi
call fcn.14001d640
lea r8, [0x1400151e0]
mov edx, 0x4eb4
mov rcx, rdi
call fcn.14001d640
lea r8, [0x140016040]
mov edx, 0x4ec3
mov rcx, rdi
call fcn.14001d640
lea r8, [rbx + 0x118]
mov edx, 0x27b4
mov rcx, rdi
call fcn.14001d640
mov edx, Ordinal_143
mov r8d, 1
mov rcx, rdi
call fcn.14001d640
mov rcx, rdi
call fcn.14001d5a0
test eax, eax
je 0x14001630d
lea r8, [rbx + 0x18]
lea rdx, str.Stratum_connection_failed:__s
xor ecx, ecx
call fcn.140014db0
mov rcx, rdi
call fcn.14001d540
mov qword [rbx + 8], 0
xor eax, eax
jmp 0x140016312
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret