Function at 0x140029dd0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r12d, 1
mov r15, rcx
mov edx, r12d
lea ecx, [r12 + 5]
call fcn.140008a70
xor edi, edi
mov dword [rbp + 0x48], 4
xor bl, bl
mov dword [rbp + 0x58], edi
mov esi, 2
mov r14d, esi
test al, al
je 0x140029f60
nop word [rax + rax]
lea rax, [rbp - 0x10]
mov r9d, r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionDriverSearching
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140029e8a
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x48]
lea rax, [rbp + 0x50]
xor r8d, r8d
lea rdx, str.SearchOrderConfig
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140029e80
cmp dword [rbp + 0x48], 4
movzx ebx, bl
cmove ebx, r12d
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub r14, r12
jne 0x140029e20
test bl, bl
je 0x14002a0a0
mov dword [rbp + 0x48], edi
cmp dword [rbp + 0x50], edi
je 0x14002a0a0
xor bl, bl
mov qword [rbp + 0x58], rdi
nop dword [rax]
mov qword [rsp + 0x40], rdi
lea rax, [rbp + 0x58]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionDriverSearching
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x140029f2b
mov rcx, qword [rbp + 0x58]
lea rax, [rbp + 0x48]
mov dword [rsp + 0x28], 4
lea rdx, str.SearchOrderConfig
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x58]
test eax, eax
movzx ebx, bl
cmove ebx, r12d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub rsi, r12
jne 0x140029eb0
test bl, bl
je 0x14002a074
mov eax, dword [rbp + 0x50]
mov dword [r15 + 0x458], eax
mov byte [r15 + 0x45c], r12b
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rax, [rbp - 0x10]
mov r9d, r12d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionDriverSearching
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140029fca
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x48]
lea rax, [rbp + 0x50]
xor r8d, r8d
lea rdx, str.DontSearchWindowsUpdate
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140029fc0
cmp dword [rbp + 0x48], 4
movzx ebx, bl
cmove ebx, r12d
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub r14, r12
jne 0x140029f60
test bl, bl
je 0x14002a0a0
mov dword [rbp + 0x48], r12d
cmp dword [rbp + 0x50], r12d
je 0x14002a0a0
xor bl, bl
mov qword [rbp + 0x58], rdi
nop dword [rax + rax]
mov qword [rsp + 0x40], rdi
lea rax, [rbp + 0x58]
mov qword [rsp + 0x38], rax
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionDriverSearching
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14002a06b
mov rcx, qword [rbp + 0x58]
lea rax, [rbp + 0x48]
mov dword [rsp + 0x28], 4
lea rdx, str.SearchOrderConfig
mov r9d, 4
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x58]
test eax, eax
movzx ebx, bl
cmove ebx, r12d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub rsi, r12
jne 0x140029ff0
test bl, bl
jne 0x14002a08f
lea rcx, str.PrecheckSystem_:_Failed_to_set_key
call fcn.1400262b0
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov eax, dword [rbp + 0x50]
mov dword [r15 + 0x460], eax
mov byte [r15 + 0x464], r12b
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret