Function at 0x18000c9a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2f8
mov qword [rsp + 0x80], 0xfffffffffffffffe
mov rax, qword [0x18002a090]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov r13, r9
mov r12, r8
mov rbp, rdx
mov rbx, rcx
mov r14, qword [rsp + 0x360]
mov r15, qword [rsp + 0x368]
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x70]
mov rcx, rbx
call fcn.18000d130
nop
mov r8, qword [rax]
lea rdx, str._sParametersRamDisk
lea rcx, [rsp + 0x60]
call fcn.180004730
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
or edi, 0xffffffff
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000ca4d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rbx, qword [rsp + 0x60]
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test eax, eax
jne 0x18000ccb3
mov rsi, qword [rsp + 0x58]
xor eax, eax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x4c], 4
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, str.Enable
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor r11d, r11d
mov qword [rsp + 0x90], r11
mov qword [rsp + 0x98], r11
mov qword [rsp + 0xa0], r11
mov qword [rsp + 0xa8], r11
mov qword [rsp + 0xb0], r11
mov qword [rsp + 0xb8], r11
mov qword [rsp + 0xc0], r11
mov qword [rsp + 0xc8], r11
mov dword [rsp + 0x34], 0x40
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
xor r8d, r8d
lea rdx, str.DriveLetter
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000cb6c
mov eax, dword [rsp + 0x54]
cmp eax, 1
je 0x18000cb51
cmp eax, 2
jne 0x18000cb68
cmp dword [rsp + 0x34], 0
jne 0x18000cb64
xor eax, eax
mov word [rsp + 0x90], ax
jmp 0x18000cb6e
xor eax, eax
jmp 0x18000cb6e
xor eax, eax
jmp 0x18000cb6e
xor eax, eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x50], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x7c]
xor r8d, r8d
lea rdx, str.Size
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor eax, eax
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x48], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.WriteBack
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0xd0]
call fcn.180014980
mov dword [rsp + 0x3c], 0x208
lea rax, [rsp + 0x3c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
lea rdx, str.FilePath
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x18000cc4f
mov eax, dword [rsp + 0x44]
cmp eax, 1
je 0x18000cc3e
cmp eax, 2
jne 0x18000cc4f
cmp dword [rsp + 0x3c], 0
jne 0x18000cc4f
xor eax, eax
mov word [rsp + 0xd0], ax
mov eax, dword [rsp + 0x30]
mov dword [rbp], eax
mov eax, dword [rsp + 0x38]
mov dword [r12], eax
lea rcx, [rsp + 0x90]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [r13], rax
mov eax, dword [rsp + 0x40]
mov dword [r14], eax
lea rcx, [rsp + 0xd0]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [r15], rax
test rsi, rsi
je 0x18000cc97
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x18000ccaf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
xor eax, eax
jmp 0x18000ccdb
test eax, eax
jle 0x18000ccc0
movzx esi, ax
or esi, 0x80070000
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x18000ccd9
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, esi
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.180013990
add rsp, 0x2f8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret