Function at 0x10079dc0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rbp, rcx
lea rcx, [rsp + 0xa8]
call fcn.100a6a40
mov rsi, qword [rsp + 0xa8]
test rsi, rsi
je 0x10079f42
mov qword [rsp + 0x38], rbp
movups xmm0, xmmword [rsp + 0xb0]
movups xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x40], 2
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor eax, eax
mov qword [rsp + 0x20], rax
xor r13d, r13d
xor ebp, ebp
cmp r8, 0x201
jae 0x10079e80
jmp 0x10079e62
mov rsi, rdi
jae 0x10079f97
cmp r8, 0x201
jae 0x10079e80
mov r12d, 0x200
lea r15, [rsp + 0xa8]
mov rbx, r8
jmp 0x10079ed5
sub r8, rbp
sub r13, rbp
cmp r13, r8
mov r13, qword [rsp + 0x20]
jae 0x10079eac
lea rcx, [rsp + 0x40]
mov rdx, rbp
call fcn.100676d0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov r13, qword [rsp + 0x48]
mov eax, 0xffffffff
cmp r13, rax
mov ebp, 0xffffffff
cmovb rbp, r13
mov qword [rsp + 0x50], rbp
mov rax, r13
mov qword [rsp + 0x20], r13
mov r12, rbp
mov r15, qword [rsp + 0x28]
mov rbx, rbp
xor ecx, ecx
call sub.kernel32.dll_SetLastError
mov rdi, rsi
mov rcx, rsi
mov rdx, r15
mov r8d, ebx
call sub.kernel32.dll_GetEnvironmentVariableW
mov r14d, eax
test eax, eax
jne 0x10079f01
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x1007a0a1
mov r8d, r14d
cmp rbx, r8
jne 0x10079e50
call sub.kernel32.dll_GetLastError
cmp eax, 0x7a
jne 0x1007a0ce
mov rsi, rdi
add rbx, rbx
mov eax, 0xffffffff
cmp rbx, rax
cmovae rbx, rax
mov r8, rbx
cmp r8, 0x201
jb 0x10079e62
jmp 0x10079e80
mov rdi, qword [rsp + 0xb0]
mov eax, edi
and eax, 3
cmp eax, 1
jne 0x10079f8e
lea rsi, [rdi - 1]
mov rcx, qword [rdi - 1]
mov rax, qword [rdi + 7]
call qword [rax]
mov rax, qword [rdi + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x10079f7b
mov r8, qword [rax + 0x10]
mov rcx, qword [rsi]
call fcn.100028e0
mov edx, 0x18
mov r8d, 8
mov rcx, rsi
call fcn.100028e0
mov byte [rbp + 0x18], 2
jmp 0x1007a08a
cmp r12, r8
jb 0x1007a0e8
lea rcx, [rsp + 0x58]
mov rdx, r15
mov rdi, qword [rsp + 0x20]
call fcn.100898c0
mov rbx, qword [rsp + 0x58]
movups xmm0, xmmword [rsp + 0x60]
movaps xmmword [rsp + 0x90], xmm0
movzx r14d, byte [rsp + 0x70]
mov eax, dword [rsp + 0x71]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x33], eax
mov rbp, qword [rsp + 0x38]
test rdi, rdi
je 0x10079ffa
add rdi, rdi
mov r8d, 2
mov rcx, qword [rsp + 0x28]
mov rdx, rdi
call fcn.100028e0
cmp r14b, 2
jne 0x1007a04a
mov byte [rbp + 0x18], 2
mov eax, ebx
and eax, 3
cmp eax, 1
jne 0x1007a06c
lea rdi, [rbx - 1]
mov rcx, qword [rbx - 1]
mov rax, qword [rbx + 7]
call qword [rax]
mov rax, qword [rbx + 7]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1007a035
mov r8, qword [rax + 0x10]
mov rcx, qword [rdi]
call fcn.100028e0
mov edx, 0x18
mov r8d, 8
mov rcx, rdi
call fcn.100028e0
jmp 0x1007a06c
movaps xmm0, xmmword [rsp + 0x90]
movups xmmword [rbp + 8], xmm0
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x33]
mov dword [rbp + 0x19], eax
mov dword [rbp + 0x1c], ecx
mov qword [rbp], rbx
mov byte [rbp + 0x18], r14b
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x1007a08a
add rdx, rdx
mov r8d, 2
mov rcx, rsi
call fcn.100028e0
mov rax, rbp
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
shl rbx, 0x20
or rbx, 2
mov r14b, 2
mov rbp, qword [rsp + 0x38]
mov rsi, rdi
mov rdi, qword [rsp + 0x20]
test rdi, rdi
jne 0x10079fe4
jmp 0x10079ffa
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.100e76b0
jmp 0x1007a0fd
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r12
mov r8, rax
call fcn.100ee380
ud2