Function at 0x14002e82b
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rdi, rdx
mov rbx, rcx
call fcn.140001066
mov rsi, rax
lea rbp, [rsp + 0x78]
mov rcx, rbp
call fcn.140014482
lea rcx, [rsp + 0x40]
call fcn.140014482
lea rcx, [rsp + 0x20]
call fcn.140014482
movups xmm0, xmmword [rbx]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
mov rcx, rbp
call fcn.14001756e
xor r13d, r13d
cmp byte [rsi], 0
je 0x14002e8e6
xor r15d, r15d
mov byte [rsi], 0
mov rcx, qword [rsp + 0x28]
call fcn.1400175ac
cmp byte [rsi], 0
jne 0x14002eb6b
mov rcx, qword [rsp + 0x48]
call fcn.1400175ac
cmp byte [rsi], 0
jne 0x14002eb6b
test r15, r15
je 0x14002e8c8
test byte [r15 + 7], 0x40
jne 0x14002e8c8
mov rcx, r15
call fcn.1400011e0
mov rcx, qword [rsp + 0x80]
call fcn.1400175ac
cmp byte [rsi], 0
jne 0x14002eb6b
mov byte [rsi], 1
jmp 0x14002eb6b
mov r14, qword [rsp + 0x80]
cmp qword [rdi], 0
je 0x14002e9c3
lea r15, [rsp + 0x50]
mov rcx, r15
call fcn.140014482
mov rax, qword [rbx]
mov rcx, qword [rdi]
lea rdx, [rax + rcx]
inc rdx
lea rbp, [rsp + 0x30]
mov rcx, rbp
call fcn.14001053f
movups xmm0, xmmword [rbx]
lea rbx, [rsp + 0x60]
movaps xmmword [rbx], xmm0
mov rcx, rbp
mov rdx, rbx
call fcn.1400102ba
movups xmm0, xmmword [0x140093ad8]
movaps xmmword [rbx], xmm0
lea rbx, [rsp + 0x60]
mov rcx, rbp
mov rdx, rbx
call fcn.1400102ba
movups xmm0, xmmword [rdi]
movaps xmmword [rbx], xmm0
lea rbx, [rsp + 0x60]
mov rcx, rbp
mov rdx, rbx
call fcn.1400102ba
mov rax, qword [rbp]
mov rdi, qword [rbp + 8]
mov qword [rbx], rax
mov qword [rbx + 8], rdi
lea rdx, [rsp + 0x60]
mov rcx, r15
call fcn.14001756e
cmp byte [rsi], 0
je 0x14002ea99
mov byte [rsi], 0
mov rcx, qword [rsp + 0x58]
call fcn.1400175ac
xor r13d, r13d
cmp byte [rsi], 0
jne 0x14002e888
test rdi, rdi
je 0x14002e888
test byte [rdi + 7], 0x40
jne 0x14002e888
mov rcx, rdi
call fcn.1400011e0
jmp 0x14002e888
mov rdx, qword [rbx]
add rdx, 3
lea rbp, [rsp + 0x50]
mov rcx, rbp
call fcn.14001053f
movups xmm0, xmmword [rbx]
lea rbx, [rsp + 0x30]
movaps xmmword [rbx], xmm0
mov rcx, rbp
mov rdx, rbx
call fcn.1400102ba
movups xmm0, xmmword [0x140093ae8]
movaps xmmword [rbx], xmm0
lea rbx, [rsp + 0x30]
mov rcx, rbp
mov rdx, rbx
call fcn.1400102ba
mov rax, qword [rbp]
mov r15, qword [rbp + 8]
mov qword [rbx], rax
mov qword [rbx + 8], r15
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x30]
call fcn.14001756e
cmp byte [rsi], 0
jne 0x14002e88b
mov r12, qword [rsp + 0x48]
mov rcx, r12
call sub.api_ms_win_crt_environment_l1_1_0.dll__wputenv
test eax, eax
je 0x14002eb82
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], 0x16
mov rcx, qword [rsp + 0x28]
call fcn.1400175ac
mov r13d, 0xffffffff
cmp byte [rsi], 0
jne 0x14002eb6b
mov rcx, r12
call fcn.1400175ac
cmp byte [rsi], 0
jne 0x14002eb6b
test r15, r15
je 0x14002ea8c
test byte [r15 + 7], 0x40
jne 0x14002ea8c
mov rcx, r15
call fcn.1400011e0
mov rcx, r14
call fcn.1400175ac
jmp 0x14002eb6b
mov rbx, qword [rsp + 0x58]
mov rcx, rbx
call sub.api_ms_win_crt_environment_l1_1_0.dll__wputenv
test eax, eax
je 0x14002eb10
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], 0x16
mov rcx, rbx
call fcn.1400175ac
mov r13d, 0xffffffff
cmp byte [rsi], 0
jne 0x14002e888
test rdi, rdi
je 0x14002eadf
test byte [rdi + 7], 0x40
jne 0x14002eadf
mov rcx, rdi
call fcn.1400011e0
mov rcx, qword [rsp + 0x28]
call fcn.1400175ac
mov r13d, 0xffffffff
cmp byte [rsi], 0
jne 0x14002eb6b
mov rcx, qword [rsp + 0x48]
call fcn.1400175ac
mov edi, 0xffffffff
cmp byte [rsi], 0
mov r13d, 0xffffffff
jne 0x14002eb6b
jmp 0x14002eb60
mov rcx, rbx
call fcn.1400175ac
xor r13d, r13d
cmp byte [rsi], 0
jne 0x14002e888
test rdi, rdi
je 0x14002eb37
test byte [rdi + 7], 0x40
jne 0x14002eb37
mov rcx, rdi
call fcn.1400011e0
mov rcx, qword [rsp + 0x28]
call fcn.1400175ac
xor r13d, r13d
cmp byte [rsi], 0
jne 0x14002eb6b
mov rcx, qword [rsp + 0x48]
call fcn.1400175ac
xor edi, edi
cmp byte [rsi], 0
mov r13d, 0
jne 0x14002eb6b
mov rcx, r14
call fcn.1400175ac
mov r13d, edi
mov eax, r13d
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r14
call sub.api_ms_win_crt_environment_l1_1_0.dll__wgetenv
mov word [rax], 0
mov rcx, r14
call sub.api_ms_win_crt_environment_l1_1_0.dll__wgetenv
mov word [rax + 2], 0x3d
call sub.api_ms_win_crt_environment_l1_1_0.dll___p__environ
cmp qword [rax], 0
je 0x14002ec13
xor ecx, ecx
mov rdx, r14
xor r8d, r8d
call sub.api_ms_win_crt_convert_l1_1_0.dll_wcstombs
cmp rax, 0xffffffffffffffff
je 0x14002ec13
mov rbx, rax
inc rbx
lea rbp, [rsp + 0x30]
mov rcx, rbp
mov rdx, rbx
call fcn.14001b698
mov rax, qword [rbp + 8]
mov qword [rsp + 0x70], rax
lea rbp, [rax + 8]
mov rcx, rbp
mov rdx, r14
mov r8, rbx
call sub.api_ms_win_crt_convert_l1_1_0.dll_wcstombs
cmp rax, 0xffffffffffffffff
je 0x14002ec09
mov rcx, rbp
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov byte [rax], 0
mov rcx, rbp
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
mov byte [rax + 1], 0x3d
mov rcx, qword [rsp + 0x70]
call fcn.140003cbb
movups xmm0, xmmword [rdi]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
lea rcx, [rsp + 0x20]
call fcn.14001756e
cmp byte [rsi], 0
jne 0x14002e88b
mov rdi, qword [rsp + 0x28]
mov rcx, r14
mov rdx, rdi
call qword [0x1400fdd50]
test eax, eax
je 0x14002ec56
mov rcx, rdi
call fcn.1400175ac
xor r13d, r13d
jmp 0x14002ea5e
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
mov dword [rax], 0x16
mov rcx, rdi
jmp 0x14002ea53