Function at 0x140003fb0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x498
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x410], 0xfffffffffffffffe
mov qword [rbp + 0x3c8], rcx
mov qword [rbp + 0x3b8], rdx
mov qword [rbp + 0x3c0], r8
lea rsi, [rbp - 0x60]
mov rcx, rsi
call fcn.14000d490
cmp dword [rbp - 0x60], 1
mov r14, qword [rbp - 0x50]
mov rbx, qword [rbp - 0x58]
je 0x140004232
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x3a0], rbx
mov qword [rbp + 0x3f0], r14
mov qword [rbp + 0x3a8], r14
mov qword [rbp + 0x3b0], rax
xor r14d, r14d
mov r8d, 0x400
mov rcx, rsi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rdi, qword [0x14001c9a0]
mov qword [rbp + 0x3f8], rdi
xorps xmm0, xmm0
movups xmmword [rbp + 0x400], xmm0
mov r12d, 0x200
cmp r12, 0x201
jae 0x140004085
jmp 0x1400040d0
cmp r12, rsi
mov r12, rsi
ja 0x140004130
cmp r12, 0x201
jb 0x1400040d0
mov r8, r12
sub r8, r14
mov rax, qword [rbp + 0x400]
sub rax, r14
cmp rax, r8
jae 0x1400040b0
lea rcx, [rbp + 0x3f8]
mov rdx, r14
call fcn.14001a7e0
mov rdi, qword [rbp + 0x3f8]
mov qword [rbp + 0x408], r12
mov r14, r12
mov r13, rdi
mov r15, r12
mov rsi, rdi
jmp 0x1400040dd
lea rsi, [rbp - 0x60]
mov r13, rsi
mov r15d, 0x200
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbx
mov rdx, rsi
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x140004104
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140004171
mov esi, esi
cmp r12, rsi
jne 0x140004070
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140004070
add r12, r12
cmp r12, 0x201
jae 0x140004085
jmp 0x1400040d0
cmp r15, rsi
jb 0x1400042bb
lea rcx, [rbp + 0x3d0]
mov rdx, r13
mov r8, rsi
call fcn.140006ba0
mov rsi, qword [rbp + 0x3d0]
mov r14, qword [rbp + 0x3d8]
mov r15, qword [rbp + 0x3e0]
xor r12d, r12d
mov rdx, qword [rbp + 0x400]
test rdx, rdx
jne 0x14000418f
jmp 0x1400041a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
shl rsi, 0x20
mov r12b, 1
xor r14d, r14d
mov rdx, qword [rbp + 0x400]
test rdx, rdx
je 0x1400041a7
test rdi, rdi
je 0x1400041a7
add rdx, rdx
je 0x1400041a7
mov r8d, 2
mov rcx, rdi
call fcn.1400018f0
test r12b, r12b
je 0x1400041e1
test sil, sil
sete al
mov rcx, rsi
shr rcx, 0x20
cmp ecx, 0xcb
sete cl
and cl, al
mov eax, ecx
xor al, 1
movzx edi, al
xor eax, eax
test cl, cl
cmovne rsi, rax
mov rdx, qword [rbp + 0x3f0]
test rdx, rdx
jne 0x1400041ef
jmp 0x140004207
xor edi, edi
mov rdx, qword [rbp + 0x3f0]
test rdx, rdx
je 0x140004207
test rbx, rbx
je 0x140004207
add rdx, rdx
je 0x140004207
mov r8d, 2
mov rcx, rbx
call fcn.1400018f0
test rdi, rdi
jne 0x140004235
mov rax, qword [rbp + 0x3c8]
mov qword [rax + 8], r14
mov qword [rax], rsi
mov qword [rax + 0x10], r15
add rsp, 0x498
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov rsi, rbx
mov qword [rbp + 0x400], r14
mov qword [rbp + 0x3f8], rsi
lea rax, [rbp + 0x3b8]
mov qword [rbp + 0x3d0], rax
lea rax, [0x140008200]
mov qword [rbp + 0x3d8], rax
lea rax, [rbp + 0x3f8]
mov qword [rbp + 0x3e0], rax
lea rax, [0x140005820]
mov qword [rbp + 0x3e8], rax
lea rax, [0x14001cd48]
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 2
mov qword [rbp - 0x50], 0
lea rax, [rbp + 0x3d0]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], 2
lea rdx, [0x14001cd68]
lea rcx, [rbp - 0x60]
call fcn.14001ac70
jmp 0x1400042cd
lea r8, str.library_std_src_syswindowsmod.rsstrings_passed_to_WinAPI_cannot_contain_NULs
mov rcx, rsi
mov rdx, r15
call fcn.14001b030
ud2