Function at 0x140094298
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
xor esi, esi
xor r12b, r12b
and dword [rax + 8], esi
xor r15b, r15b
mov qword [rax + 0x10], rsi
mov r14, rcx
test rcx, rcx
jne 0x1400942de
lea r8, str.pbIsDsrmMode
mov edx, 0x70d
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008ac24
mov ecx, 0x12
mov byte [r14], sil
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
nop dword [rax + rax]
mov rbp, rax
test rax, rax
jne 0x140094304
mov ebx, 0x8007000e
jmp 0x14009452c
xor eax, eax
lea rcx, str.SAFEBOOT_OPTION
xorps xmm0, xmm0
mov rdx, rbp
movups xmmword [rbp], xmm0
mov word [rbp + 0x10], ax
lea r8d, [rax + 9]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
nop dword [rax + rax]
test eax, eax
je 0x140094470
lea rdx, str.DSREPAIR
mov rcx, rbp
call sub.msvcrt.dll_wcscmp
lea rdi, [0x14017a048]
test eax, eax
jne 0x14009437b
mov r15b, 1
mov rcx, qword [0x14017a048]
cmp rcx, rdi
je 0x14009437b
test byte [rcx + 0x1c], r15b
je 0x14009437b
cmp byte [rcx + 0x19], 4
jb 0x14009437b
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x5a]
lea r8, [0x14015e7f8]
call fcn.140006b98
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r8, str.ProductType
lea rdx, str.SystemCurrentControlSetControlProductOptions
call fcn.1400945f4
mov rsi, qword [rsp + 0x68]
mov ebx, eax
test eax, eax
js 0x140094509
lea rdx, str.ServerNt
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
je 0x1400943e0
lea rdx, str.LanmanNt
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x1400943e3
mov r12b, 1
mov rcx, qword [0x14017a048]
cmp rcx, rdi
je 0x140094423
test byte [rcx + 0x1c], 1
je 0x140094423
cmp byte [rcx + 0x19], 4
jb 0x140094423
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015e7f8]
movzx eax, r12b
mov edx, 0x5d
movzx r9d, r15b
mov dword [rsp + 0x20], eax
call fcn.14003dbf0
mov rcx, qword [0x14017a048]
test r15b, r15b
je 0x140094509
test r12b, r12b
je 0x140094509
mov byte [r14], 1
cmp rcx, rdi
je 0x140094509
test byte [rcx + 0x1c], 1
je 0x140094509
cmp byte [rcx + 0x19], 4
jb 0x140094509
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015e7f8]
mov edx, 0x5e
call fcn.140006b98
jmp 0x140094509
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jle 0x14009448b
movzx ebx, ax
or ebx, 0x80070000
cmp ebx, 0x800700cb
je 0x1400944cc
mov rcx, qword [0x14017a048]
lea rdi, [0x14017a048]
cmp rcx, rdi
je 0x14009451d
test byte [rcx + 0x1c], 1
je 0x14009451d
cmp byte [rcx + 0x19], 2
jb 0x14009451d
mov rcx, qword [rcx + 0x10]
lea r8, [0x14015e7f8]
mov edx, 0x5c
mov r9d, ebx
call fcn.140006bc4
jmp 0x14009451d
mov rcx, qword [0x14017a048]
lea rdi, [0x14017a048]
cmp rcx, rdi
je 0x140094507
test byte [rcx + 0x1c], 1
je 0x140094507
cmp byte [rcx + 0x19], 4
jb 0x140094507
mov rcx, qword [rcx + 0x10]
lea r9, str.SAFEBOOT_OPTION
mov edx, 0x5b
lea r8, [0x14015e7f8]
call fcn.1400112c8
xor ebx, ebx
test rsi, rsi
je 0x14009451d
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
mov rbp, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret