Function at 0x1004060e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x2a0
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x100420010]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rbx, rcx
xor r15d, r15d
mov r14d, r15d
mov qword [rsp + 0x40], r15
mov dword [rsp + 0x48], r15d
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x68], r15
mov dword [rcx + 8], r15d
mov dword [rcx + 0x1088], r15d
mov qword [rsp + 0x38], r15
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMSetup
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004061eb
mov dword [rsp + 0x48], r15d
mov r14, qword [rsp + 0x38]
mov qword [rsp + 0x40], r14
mov dword [rsp + 0x48], r15d
mov edi, r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x34], 4
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.SystemSetupInProgress
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004061dc
cmp dword [rsp + 0x38], 4
cmove edi, dword [rsp + 0x30]
mov eax, r15d
cmp edi, 1
sete al
mov dword [rbx + 0x1088], eax
lea rcx, [rsp + 0x58]
cmp dword [rbx + 0x58], 0
lea r8, str.SYSTEMCurrentControlSetServicesWIDWRITERDebugTracing
jne 0x100406204
lea r8, str.SYSTEMCurrentControlSetServicesSQLWRITERDebugTracing
call fcn.100404fe0
mov rsi, qword [rsp + 0x58]
test eax, eax
jne 0x1004064f4
mov dword [rsp + 0x30], 0x208
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.TraceFile
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004062b0
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
ja 0x1004062b0
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x100406271
test al, 1
jne 0x1004062b0
shr rax, 1
cmp word [rsp + rax*2 + 0x7e], 0
je 0x100406276
jmp 0x1004062b0
mov word [rbp - 0x80], r15w
lea rax, [rbp - 0x80]
mov rdi, 0xffffffffffffffff
inc rdi
cmp word [rax + rdi*2], 0
jne 0x100406281
inc rdi
lea rcx, [rdi + rdi]
call qword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x1004062b0
lea r8, [rbp - 0x80]
mov rdx, rdi
mov rcx, rax
call fcn.100401180
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.TraceLevel
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004062fb
cmp dword [rsp + 0x34], 4
jne 0x1004062fb
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x38], eax
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.TraceEnterExit
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10040634c
cmp dword [rsp + 0x34], 4
jne 0x10040634c
mov eax, r15d
cmp dword [rsp + 0x30], eax
setne al
mov dword [rbx + 0x28], eax
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.TraceToFile
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10040639d
cmp dword [rsp + 0x34], 4
jne 0x10040639d
mov eax, r15d
cmp dword [rsp + 0x30], eax
setne al
mov dword [rbx + 0x20], eax
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.TraceToDebugger
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004063ee
cmp dword [rsp + 0x34], 4
jne 0x1004063ee
mov eax, r15d
cmp dword [rsp + 0x30], eax
setne al
mov dword [rbx + 0x24], eax
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.TraceTimestamp
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10040643f
cmp dword [rsp + 0x34], 4
jne 0x10040643f
mov eax, r15d
cmp dword [rsp + 0x30], eax
setne al
mov dword [rbx + 0x30], eax
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.TraceFileLineInfo
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100406490
cmp dword [rsp + 0x34], 4
jne 0x100406490
mov eax, r15d
cmp dword [rsp + 0x30], eax
setne al
mov dword [rbx + 0x2c], eax
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x38], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.TraceForceFlush
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1004064e1
cmp dword [rsp + 0x34], 4
jne 0x1004064e1
mov eax, r15d
cmp dword [rsp + 0x30], eax
setne al
mov dword [rbx + 0x34], eax
cmp dword [rbx + 0x24], 0
jne 0x1004064ed
cmp dword [rbx + 0x20], 0
je 0x1004064f4
mov dword [rbx + 8], 1
test rsi, rsi
je 0x100406507
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], r15d
test r14, r14
je 0x10040651f
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r15
xor eax, eax
mov dword [rsp + 0x48], r15d
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.10040fdf0
lea r11, [rsp + 0x2a0]
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