Function at 0x1400acef0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov qword [rbp + 0x3d0], rcx
mov qword [rbp + 0x3c0], rdx
mov qword [rbp + 0x3c8], r8
lea rbx, [rbp - 0x58]
mov rcx, rbx
call fcn.1400b4600
mov r15, qword [rbp - 0x48]
mov rsi, qword [rbp - 0x50]
cmp qword [rbp - 0x58], 1
je 0x1400ad16e
mov rax, qword [rbp - 0x40]
mov qword [rbp + 0x3f8], rsi
mov qword [rbp + 0x3a8], rsi
mov qword [rbp + 0x400], r15
mov qword [rbp + 0x3b0], r15
mov qword [rbp + 0x3b8], rax
xor edi, edi
mov r8d, 0x400
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov r13, qword [0x14014efc8]
mov qword [rbp + 0x408], r13
xorps xmm0, xmm0
movups xmmword [rbp + 0x410], xmm0
mov esi, 0x200
cmp rsi, 0x201
jae 0x1400acfc5
jmp 0x1400ad010
cmp rsi, r14
mov rsi, r14
ja 0x1400ad071
cmp rsi, 0x201
jb 0x1400ad010
mov r8, rsi
sub r8, rdi
mov rax, qword [rbp + 0x410]
sub rax, rdi
cmp rax, r8
jae 0x1400acff0
lea rcx, [rbp + 0x408]
mov rdx, rdi
call fcn.14011a6b0
mov r13, qword [rbp + 0x408]
mov qword [rbp + 0x418], rsi
mov rdi, rsi
mov r12, r13
mov r15, rsi
mov rbx, r13
jmp 0x1400ad01d
lea rbx, [rbp - 0x58]
mov r12, rbx
mov r15d, 0x200
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rbp + 0x3f8]
mov rdx, rbx
mov r8d, esi
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov ebx, eax
test eax, eax
jne 0x1400ad045
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1400ad0a5
mov r14d, ebx
cmp rsi, r14
jne 0x1400acfb0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1400acfb0
add rsi, rsi
cmp rsi, 0x201
jae 0x1400acfc5
jmp 0x1400ad010
cmp r15, r14
jb 0x1400ad1f4
lea rcx, [rbp + 0x3d8]
mov rdx, r12
mov r8, r14
call fcn.1400b2260
mov rsi, qword [rbp + 0x3d8]
mov r15, qword [rbp + 0x3e0]
mov r14, qword [rbp + 0x3e8]
xor ebx, ebx
jmp 0x1400ad0b5
call sub.KERNEL32.dll_GetLastError
mov esi, eax
shl rsi, 0x20
mov bl, 1
xor r15d, r15d
mov rax, qword [rbp + 0x410]
test rax, rax
mov rdi, qword [rbp + 0x3f8]
je 0x1400ad0ed
test r13, r13
je 0x1400ad0ed
movabs rcx, 0x7fffffffffffffff
and rax, rcx
je 0x1400ad0ed
mov rcx, qword [0x1401ece28]
xor edx, edx
mov r8, r13
call fcn.140116425
test bl, bl
je 0x1400ad11a
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 ebx, al
xor eax, eax
test cl, cl
cmovne rsi, rax
jmp 0x1400ad11c
xor ebx, ebx
mov rax, qword [rbp + 0x400]
test rax, rax
je 0x1400ad143
test rdi, rdi
je 0x1400ad143
add rax, rax
je 0x1400ad143
mov rcx, qword [0x1401ece28]
xor edx, edx
mov r8, rdi
call fcn.140116425
test rbx, rbx
jne 0x1400ad16e
mov rax, qword [rbp + 0x3d0]
mov qword [rax + 8], r15
mov qword [rax], rsi
mov qword [rax + 0x10], r14
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov qword [rbp + 0x410], r15
mov qword [rbp + 0x408], rsi
lea rax, [rbp + 0x3c0]
mov qword [rbp + 0x3d8], rax
lea rax, [0x1400b4760]
mov qword [rbp + 0x3e0], rax
lea rax, [rbp + 0x408]
mov qword [rbp + 0x3e8], rax
lea rax, [0x1400b4780]
mov qword [rbp + 0x3f0], rax
lea rax, [0x14014f150]
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], 2
mov qword [rbp - 0x48], 0
lea rax, [rbp + 0x3d8]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], 2
lea rdx, str.library_std_srcenv.rsfailed_to_get_environment_variable___:
lea rcx, [rbp - 0x58]
call fcn.14011a820
jmp 0x1400ad206
lea r8, str.library_std_src_syswindowsmod.rsthread__panicked_at__
mov rcx, r14
mov rdx, r15
call fcn.140117810
ud2