Function at 0x1400c5210
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
sub esp, 0x498
movaps xmmword [rsp + 0x480], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x80]
and al, 0x80
add byte [rax], al
add al, ch
in eax, 0x35
invalid
dec dword [rax - 0x75]
test byte [rax + rax*4], ah
add byte [rax], 0
add byte [rax - 0x77], cl
and al, 0x30
and al, 0x30
test rax, rax
je 0x1400c5379
sub byte [rcx], al
add byte [rax], al
mov qword [rsp + 0x38], rsi
mov rax, qword [rsp + 0x88]
mov byte [rax], al
add byte [rax], al
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor r14d, r14d
mov esi, 0xffffffff
xor r15d, r15d
xor edi, edi
cmp r8, 0x201
add al, byte [rax]
add byte [rbx + 0x36], dh
jmp 0x1400c52af
jae 0x1400c538f
cmp r8, 0x201
jae case.0x14006f17f.2077
mov r13d, 0x200
lea r12, [rsp + 0x80]
add byte [rax], al
add byte [rcx + rcx*4 - 0x3b], cl
jmp 0x1400c5316
sub r8, rdi
sub r15, rdi
cmp r15, r8
jae case.0x14009eaf0.1554
lea rcx, [rsp + 0x48]
mov rdx, rdi
mov edx, edi
call fcn.1400a8ce0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x20], eax
mov r14, qword [rsp + 0x50]
cmp r14, rsi
mov edi, 0xffffffff
cmovb rdi, r14
mov qword [rsp + 0x58], rdi
mov r15, r14
test dword [rcx - 0x77], 0x648b4cfd
and al, 0x20
mov rbp, rdi
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x30]
mov rdx, r12
mov r8d, ebp
mov eax, ebp
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov ebx, eax
test eax, eax
jne 0x1400c5340
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1400c5481
mov r8d, ebx
cmp rbp, r8
jne 0x1400c52a0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jp 0x1400c5364
test dword [rdi + 1], eax
add byte [rax], al
invalid
add rbp, rbp
cmp rbp, rsi
cmovae rbp, rsi
mov r8, rbp
cmp r8, 0x201
add byte [rdi], cl
invalid
cmp edi, edi
invalid
invalid
jmp case.0x14006f17f.2077
lea rcx, [rsp + 0x80]
call fcn.1400a8af0
mov byte [rsi + 0x18], 2
sbb byte [rdx], al
jmp 0x1400c5465
cmp r13, r8
jb 0x1400c54bb
lea rcx, [rsp + 0x60]
mov rdx, r12
call fcn.1400aa970
mov r12, qword [rsp + 0x60]
movups xmm6, xmmword [rsp + 0x68]
movzx ebx, byte [rsp + 0x78]
mov eax, dword [rsp + 0x79]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x7c]
mov dword [rsp + 0x2b], eax
and al, 0x2b
test r14, r14
je 0x1400c53d8
mov edx, 2
mov rcx, qword [rsp + 0x20]
call fcn.14002fa00
cmp bl, 2
jne 0x1400c5431
mov rax, qword [rsp + 0x38]
mov byte [rax + 0x18], 2
mov eax, r12d
and eax, 3
lea rcx, [rax - 2]
cmp rcx, 2
jb 0x1400c544e
test rax, rax
je 0x1400c544e
lea rbx, [r12 - 1]
mov r14, qword [r12 - 1]
mov rsi, qword [r12 + 7]
mov rcx, r14
call qword [rsi]
cmp qword [rsi + 8], 0
je 0x1400c5422
mov rdx, qword [rsi + 0x10]
mov rcx, r14
call fcn.14002fa00
mov edx, 8
mov rcx, rbx
call fcn.14002fa00
jmp 0x1400c544e
mov eax, dword [rsp + 0x28]
mov ecx, dword [rsp + 0x2b]
mov rdx, qword [rsp + 0x38]
mov dword [rdx + 0x1c], ecx
mov dword [rdx + 0x19], eax
mov qword [rdx], r12
movups xmmword [rdx + 8], xmm6
mov byte [rdx + 0x18], bl
cmp qword [rsp + 0x40], 0
je 0x1400c5465
mov edx, 2
mov rcx, qword [rsp + 0x30]
call fcn.14002fa00
movaps xmm6, xmmword [rsp + 0x480]
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
mov r12d, eax
shl r12, 0x20
or r12, 2
mov bl, 2
test r14, r14
jne 0x1400c53c9
invalid
invalid
jmp 0x1400c53d8
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
sub byte [rax], al
add byte [rax], al
call fcn.1400266a0
jmp 0x1400c54d0
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r13
mov r8, rax
mov eax, eax
call fcn.140026300
ud2