Function at 0x14008d3c4
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 bpl, bpl
mov qword [rax + 0x10], rsi
mov r15, rcx
test rcx, rcx
jne 0x14008d40a
lea r8, str.pbIsDsrmMode
mov edx, 0x70d
lea rcx, str.base_stor_blbutil_systemutils.cpp
call fcn.14008410c
mov ecx, 0x12
mov byte [r15], sil
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov r14, rax
test rax, rax
jne 0x14008d42a
mov ebx, 0x8007000e
jmp 0x14008d62e
xor eax, eax
lea rcx, str.SAFEBOOT_OPTION
mov qword [r14], rax
mov rdx, r14
mov qword [r14 + 8], rax
mov word [r14 + 0x10], ax
lea r8d, [rax + 9]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14008d585
lea rdx, str.DSREPAIR
mov rcx, r14
call sub.msvcrt.dll_wcscmp
lea rdi, [0x1401720a0]
test eax, eax
jne 0x14008d49c
mov bpl, 1
mov rcx, qword [0x1401720a0]
cmp rcx, rdi
je 0x14008d49c
test byte [rcx + 0x1c], bpl
je 0x14008d49c
cmp byte [rcx + 0x19], 4
jb 0x14008d49c
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x5a]
lea r8, [0x140150128]
call fcn.140004b74
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x20], rax
lea r8, str.ProductType
lea rdx, str.SystemCurrentControlSetControlProductOptions
call fcn.14008c740
mov rsi, qword [rsp + 0x68]
mov ebx, eax
test eax, eax
js 0x14008d617
lea rdx, str.ServerNt
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x14008d4f5
lea rdx, str.LanmanNt
mov rcx, rsi
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
jne 0x14008d4f8
mov r12b, 1
mov rcx, qword [0x1401720a0]
cmp rcx, rdi
je 0x14008d538
test byte [rcx + 0x1c], 1
je 0x14008d538
cmp byte [rcx + 0x19], 4
jb 0x14008d538
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
movzx eax, r12b
mov edx, 0x5d
movzx r9d, bpl
mov dword [rsp + 0x20], eax
call fcn.14000ffdc
mov rcx, qword [0x1401720a0]
test bpl, bpl
je 0x14008d617
test r12b, r12b
je 0x14008d617
mov byte [r15], 1
cmp rcx, rdi
je 0x14008d617
test byte [rcx + 0x1c], 1
je 0x14008d617
cmp byte [rcx + 0x19], 4
jb 0x14008d617
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x5e
call fcn.140004b74
jmp 0x14008d617
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
cmp ebx, 0x800700cb
je 0x14008d5da
mov rcx, qword [0x1401720a0]
lea rdi, [0x1401720a0]
cmp rcx, rdi
je 0x14008d625
test byte [rcx + 0x1c], 1
je 0x14008d625
cmp byte [rcx + 0x19], 2
jb 0x14008d625
mov rcx, qword [rcx + 0x10]
lea r8, [0x140150128]
mov edx, 0x5c
mov r9d, ebx
call fcn.140004b98
jmp 0x14008d625
mov rcx, qword [0x1401720a0]
lea rdi, [0x1401720a0]
cmp rcx, rdi
je 0x14008d615
test byte [rcx + 0x1c], 1
je 0x14008d615
cmp byte [rcx + 0x19], 4
jb 0x14008d615
mov rcx, qword [rcx + 0x10]
lea r9, str.SAFEBOOT_OPTION
mov edx, 0x5b
lea r8, [0x140150128]
call fcn.140005afc
xor ebx, ebx
test rsi, rsi
je 0x14008d625
mov rcx, rsi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rcx, r14
call qword [sym.imp.ole32.dll_CoTaskMemFree]
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