Function at 0x140017d30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x14005b0e8]
xor rax, rsp
mov qword [rbp + 0x170], rax
xor edi, edi
lea rax, [rsp + 0x38]
mov r15, rcx
mov qword [rsp + 0x38], rdi
xor r8d, r8d
mov dword [rsp + 0x58], edi
lea rdx, str.SYSTEMCurrentControlSetControl
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 1]
mov rcx, 0xffffffff80000002
mov ebx, edi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140017e1c
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.FirmwareBootDevice
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140017e1c
mov eax, dword [rsp + 0x58]
test eax, eax
je 0x140017e1c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_malloc]
mov rbx, rax
test rax, rax
je 0x140017e1c
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str.FirmwareBootDevice
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140017e1c
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140017e3d
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140017e2c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rbx, rbx
je 0x140017e3a
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
mov rbx, rdi
lea rax, [rsp + 0x40]
mov qword [rsp + 0x40], rdi
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x54], edi
lea rdx, str.SYSTEMCurrentControlSetControl
mov rcx, 0xffffffff80000002
mov r14, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140017ef3
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.SystemBootDevice
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140017ef3
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x140017ef3
mov ecx, eax
call qword [sym.imp.msvcrt.dll_malloc]
mov r14, rax
test rax, rax
je 0x140017ef3
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], r14
lea rdx, str.SystemBootDevice
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140017ef3
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140017f14
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140017f03
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test r14, r14
je 0x140017f11
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
mov r14, rdi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x30], rdi
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x4c], edi
lea rdx, str.SYSTEMCurrentControlSetControl
mov rcx, 0xffffffff80000002
mov rsi, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140017fca
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
lea rdx, str.SystemStartOptions
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140017fca
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x140017fca
mov ecx, eax
call qword [sym.imp.msvcrt.dll_malloc]
mov rsi, rax
test rax, rax
je 0x140017fca
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, str.SystemStartOptions
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140017fca
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140017feb
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140017fda
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test rsi, rsi
je 0x140017fe8
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rsi, rdi
test rbx, rbx
je 0x140018045
mov r9, rbx
lea r8, str.ArcName_s
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140003ca0
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
lea rcx, [rsp + 0x60]
call fcn.14000c0d0
mov rcx, rax
mov rbx, rax
call fcn.14000c340
mov r8, rax
lea rdx, str.Boot_Device
xor r9d, r9d
mov rcx, r15
call fcn.1400118b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test r14, r14
je 0x14001809f
mov r9, r14
lea r8, str.ArcName_s
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.140003ca0
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
lea rcx, [rsp + 0x60]
call fcn.14000c0d0
mov rcx, rax
mov rbx, rax
call fcn.14000c340
mov r8, rax
lea rdx, str.System_Device
xor r9d, r9d
mov rcx, r15
call fcn.1400118b0
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test rsi, rsi
je 0x1400180cd
mov rcx, rsi
call fcn.140004890
mov r8, rax
lea rdx, str.Start_Options
mov r9d, 0x400
mov rcx, r15
call fcn.1400118b0
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x4c], edi
mov r9d, 1
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlBitlockerStatus
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140018141
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x4c]
mov dword [rsp + 0x54], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.BootStatus
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x30]
mov edi, dword [rsp + 0x4c]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rbx, [0x14003a8dc]
test edi, edi
mov r8, rbx
lea rsi, [0x14003a8d8]
cmovne r8, rsi
lea rdx, str.BitLocker_Boot
mov r9d, 0x100
mov rcx, r15
call fcn.1400118b0
lea rcx, [rsp + 0x48]
call qword [0x140038a78]
test eax, eax
je 0x14001819d
cmp dword [rsp + 0x48], 0
lea rdx, str.VHD_Boot
mov r9d, 0x100
mov rcx, r15
cmovne rbx, rsi
mov r8, rbx
call fcn.1400118b0
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140029990
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret