Function at 0x140013280
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
mov rsi, rdx
add rcx, 0x130
call fcn.140016a80
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400132b4
call fcn.14001a080
call fcn.14001a090
mov qword [rbx + 8], rax
mov rdi, rax
test rax, rax
jne 0x1400132e6
lea rdx, str.CURL_initialization_failed
xor ecx, ecx
call fcn.140012120
lea rcx, [rbx + 0x130]
call fcn.140017060
xor eax, eax
jmp 0x140013532
cmp qword [rbx + 0x128], 0
jne 0x140013312
mov edx, 1
mov ecx, 0x800
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [rbx + 0x128], rax
mov qword [rbx + 0x120], 0x800
mov rax, qword [rbx + 0x128]
lea rcx, [rbx + 0x130]
mov byte [rax], 0
call fcn.140017060
mov rcx, qword [rbx]
cmp rsi, rcx
je 0x140013342
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [rbx], rax
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rsi + rcx], 0
jne 0x140013350
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
lea rdx, [0x14006e884]
mov rcx, rsi
mov qword [rbx + 0x10], rax
call qword [sym.imp.VCRUNTIME140.dll_strstr]
mov rcx, qword [rbx + 0x10]
lea rdx, str.http_s
mov r8, rax
call fcn.1400019d0
mov edx, 0x77
mov rcx, rdi
lea r8d, [rdx - 0x76]
call fcn.14001a220
cmp dword [0x14007ee84], 0
je 0x1400133b1
mov edx, reloc.WLDAP32.dll_Ordinal_41
mov rcx, rdi
lea r8d, [rdx - 0x28]
call fcn.14001a220
mov r8, qword [rbx + 0x10]
mov edx, 0x2712
mov rcx, rdi
call fcn.14001a220
mov edx, Ordinal_79
mov rcx, rdi
lea r8d, [rdx - 0x30]
call fcn.14001a220
lea r8, [rbx + 0x18]
mov edx, 0x271a
mov rcx, rdi
call fcn.14001a220
mov edx, 0x63
mov rcx, rdi
lea r8d, [rdx - 0x62]
call fcn.14001a220
mov edx, 0x79
mov rcx, rdi
lea r8d, [rdx - 0x78]
call fcn.14001a220
mov r8, qword [0x14007ece0]
test r8, r8
je 0x14001343e
cmp dword [0x14007ece8], 0
je 0x14001343e
mov edx, 0x2714
mov rcx, rdi
call fcn.14001a220
mov r8d, dword [0x14007ece8]
mov edx, 0x65
mov rcx, rdi
call fcn.14001a220
jmp 0x1400134ac
lea rcx, str.http_proxy
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x1400134ac
lea rcx, [0x140073580]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140013474
lea rcx, str.all_proxy
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r8, rax
jmp 0x14001349f
lea rcx, [0x1400735a0]
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140013498
lea rcx, str.ALL_PROXY
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov r8, rax
jmp 0x14001349f
lea r8, [0x14006e2d9]
mov edx, 0x2714
mov rcx, rdi
call fcn.14001a220
lea r8, [0x1400125d0]
mov edx, 0x4eb4
mov rcx, rdi
call fcn.14001a220
lea r8, [0x140013250]
mov edx, 0x4ec3
mov rcx, rdi
call fcn.14001a220
lea r8, [rbx + 0x118]
mov edx, 0x27b4
mov rcx, rdi
call fcn.14001a220
mov edx, Ordinal_143
mov r8d, 1
mov rcx, rdi
call fcn.14001a220
mov rcx, rdi
call fcn.14001a150
test eax, eax
je 0x14001352d
lea r8, [rbx + 0x18]
xor ecx, ecx
lea rdx, str.Stratum_connection_failed:__s
call fcn.140012120
mov rcx, rdi
call fcn.14001a080
xor eax, eax
mov qword [rbx + 8], 0
jmp 0x140013532
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret