Function at 0x140024ad0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4c8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x440], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x58]
call fcn.14002f3b0
mov r15, qword [rbp - 0x50]
test r15, r15
je 0x140024c87
mov qword [rbp + 0x420], rsi
mov rcx, qword [rbp - 0x58]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 0x428], rcx
mov qword [rbp + 0x3c8], rcx
mov qword [rbp + 0x3d0], r15
mov qword [rbp + 0x3d8], rax
mov qword [rbp + 0x408], 0
mov qword [rbp + 0x410], 2
mov qword [rbp + 0x418], 0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x430], rax
xor eax, eax
mov qword [rbp + 0x438], rax
xor r14d, r14d
xor r13d, r13d
cmp r8, 0x201
jae 0x140024bb0
jmp 0x140024ba2
mov r15, rdi
jae 0x140024c99
cmp r8, 0x201
jae 0x140024bb0
lea r12, [rbp - 0x58]
mov ebx, 0x200
mov rsi, r8
jmp 0x140024c16
sub r8, r13
sub r14, r13
cmp r14, r8
mov r14, qword [rbp + 0x438]
jae 0x140024be6
lea rcx, [rbp + 0x408]
mov rdx, r13
call fcn.14004c9f0
mov r14, qword [rbp + 0x408]
mov rax, qword [rbp + 0x410]
mov qword [rbp + 0x430], rax
mov eax, 0xffffffff
cmp r14, rax
mov r13d, 0xffffffff
cmovb r13, r14
mov qword [rbp + 0x418], r13
mov rax, r14
mov qword [rbp + 0x438], r14
mov r12, qword [rbp + 0x430]
mov rbx, r13
mov rsi, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, r15
mov rcx, r15
mov rdx, r12
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r15d, eax
test eax, eax
jne 0x140024c45
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140024d6c
mov r8d, r15d
cmp rsi, r8
jne 0x140024b90
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140024da0
mov r15, rdi
add rsi, rsi
mov eax, 0xffffffff
cmp rsi, rax
cmovae rsi, rax
mov r8, rsi
cmp r8, 0x201
jb 0x140024ba2
jmp 0x140024bb0
lea rcx, [rbp - 0x58]
call fcn.1400223b0
mov byte [rsi + 0x18], 2
jmp 0x140024d2b
cmp rbx, r8
jb 0x140024dba
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.140027d70
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
movaps xmmword [rbp + 0x3f0], xmm1
movaps xmmword [rbp + 0x3e0], xmm0
mov rdx, qword [rbp + 0x438]
test rdx, rdx
je 0x140024cee
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x430]
call fcn.140001e80
cmp byte [rbp + 0x3f8], 2
jne 0x140024d42
mov rsi, qword [rbp + 0x420]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3e0]
call fcn.1400223b0
mov rdx, qword [rbp + 0x428]
test rdx, rdx
je 0x140024d2b
add rdx, rdx
mov r8d, 2
mov rcx, r15
call fcn.140001e80
mov rax, rsi
add rsp, 0x4c8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3e0]
movaps xmm1, xmmword [rbp + 0x3f0]
mov rsi, qword [rbp + 0x420]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x428]
test rdx, rdx
jne 0x140024d1a
jmp 0x140024d2b
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3e0], rax
mov byte [rbp + 0x3f8], 2
mov r15, rdi
mov rdx, qword [rbp + 0x438]
test rdx, rdx
jne 0x140024cd9
jmp 0x140024cee
lea rcx, [0x14007d37b]
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14004d5a0
jmp 0x140024dcf
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rbx
mov r8, rax
call fcn.14004d990
ud2