Function at 0x140042890
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, [0x1402cb728]
mov rsi, rdx
call fcn.1401b9380
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x1400428bf
call fcn.1400af340
call fcn.1400abed0
mov rbx, rax
mov qword [rdi + 8], rax
test rax, rax
jne 0x1400428fc
lea rdx, str.CURL_initialization_failed
xor ecx, ecx
call fcn.140040950
lea rcx, [0x1402cb728]
call fcn.1401b9960
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp qword [rdi + 0x128], 0
jne 0x140042928
mov edx, 1
mov ecx, 0x800
call qword [sym.imp.MSVCR120.dll_calloc]
mov qword [rdi + 0x120], 0x800
mov qword [rdi + 0x128], rax
mov rax, qword [rdi + 0x128]
lea rcx, [0x1402cb728]
mov byte [rax], 0
call fcn.1401b9960
mov rcx, qword [rdi]
cmp rsi, rcx
je 0x140042958
call qword [sym.imp.MSVCR120.dll_free]
mov rcx, rsi
call qword [sym.imp.MSVCR120.dll__strdup]
mov qword [rdi], rax
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.MSVCR120.dll_free]
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rsi + rcx], 0
jne 0x140042966
inc rcx
call qword [sym.imp.MSVCR120.dll_malloc]
lea rdx, [0x14023ed8c]
mov rcx, rsi
mov qword [rdi + 0x10], rax
call qword [sym.imp.MSVCR120.dll_strstr]
mov rcx, qword [rdi + 0x10]
lea rdx, str.http_s
mov r8, rax
call qword [sym.imp.MSVCR120.dll_sprintf]
cmp dword [0x1402c7ad4], 0
je 0x1400429ba
mov edx, 0x29
mov rcx, rbx
lea r8d, [rdx - 0x28]
call fcn.1400abfb0
mov r8, qword [rdi + 0x10]
mov edx, 0x2712
mov rcx, rbx
call fcn.1400abfb0
mov edx, 0x4a
mov rcx, rbx
lea r8d, [rdx - 0x49]
call fcn.1400abfb0
mov r8d, dword [0x140258b78]
mov edx, 0x4e
mov rcx, rbx
call fcn.1400abfb0
lea r8, [rdi + 0x18]
mov edx, 0x271a
mov rcx, rbx
call fcn.1400abfb0
mov edx, 0x63
mov rcx, rbx
lea r8d, [rdx - 0x62]
call fcn.1400abfb0
mov edx, 0x79
mov rcx, rbx
lea r8d, [rdx - 0x78]
call fcn.1400abfb0
mov r8, qword [0x1402c7eb8]
test r8, r8
je 0x140042a5b
cmp dword [0x1402cb7d0], 0
je 0x140042a5b
mov edx, 0x2714
mov rcx, rbx
call fcn.1400abfb0
mov r8d, dword [0x1402cb7d0]
mov edx, 0x65
mov rcx, rbx
call fcn.1400abfb0
jmp 0x140042ac9
lea rcx, [0x14023ebc8]
call qword [sym.imp.MSVCR120.dll_getenv]
test rax, rax
je 0x140042ac9
lea rcx, [0x14023ebd8]
call qword [sym.imp.MSVCR120.dll_getenv]
test rax, rax
je 0x140042a91
lea rcx, [0x14023ebd8]
call qword [sym.imp.MSVCR120.dll_getenv]
mov r8, rax
jmp 0x140042abc
lea rcx, [0x14023ebe8]
call qword [sym.imp.MSVCR120.dll_getenv]
test rax, rax
je 0x140042ab5
lea rcx, [0x14023ebe8]
call qword [sym.imp.MSVCR120.dll_getenv]
mov r8, rax
jmp 0x140042abc
lea r8, [0x1401d3072]
mov edx, 0x2714
mov rcx, rbx
call fcn.1400abfb0
lea r8, [0x140041130]
mov edx, 0x4eb4
mov rcx, rbx
call fcn.1400abfb0
lea r8, [0x140042860]
mov edx, 0x4ec3
mov rcx, rbx
call fcn.1400abfb0
lea r8, [rdi + 0x118]
mov edx, 0x27b4
mov rcx, rbx
call fcn.1400abfb0
mov edx, 0x8d
mov r8d, 1
mov rcx, rbx
call fcn.1400abfb0
mov rcx, rbx
call fcn.1400ac190
test eax, eax
je 0x140042b58
lea r8, [rdi + 0x18]
lea rdx, str.Stratum_connection_failed:__s
xor ecx, ecx
call fcn.140040950
mov rcx, rbx
call fcn.1400af340
mov qword [rdi + 8], 0
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov eax, 1
add rsp, 0x20
pop rdi
ret