Function at 0x140052c00
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rdi
push r12
push r13
lea rbp, [rsp - 0x398]
sub rsp, 0x498
mov rax, qword [0x140164030]
xor rax, rsp
mov qword [rbp + 0x380], rax
xorps xmm0, xmm0
mov dword [rsp + 0x58], 4
mov rdi, rcx
mov dword [rsp + 0x5c], 4
xor r13d, r13d
lea rcx, [rbp - 0x80]
xor edx, edx
mov qword [rsp + 0x48], r13
mov r8d, 0x400
mov dword [rsp + 0x50], r13d
movups xmmword [rsp + 0x60], xmm0
xor r12b, r12b
movups xmmword [rsp + 0x70], xmm0
call fcn.1400c5120
mov rax, qword [rdi + 0x48]
test rax, rax
je 0x140052f97
cmp qword [rdi + 0x50], r13
je 0x140052f97
cmp qword [rdi + 0x70], r13
je 0x140052f97
cmp qword [rdi + 0x40], r13
je 0x140052f97
mov qword [rsp + 0x30], r13
lea r9d, [r13 + 0x12]
mov qword [rsp + 0x28], r13
lea rcx, str.0P_bD
xor r8d, r8d
mov qword [rsp + 0x20], r13
xor edx, edx
mov qword [rsp + 0x4d0], rsi
mov dword [rsp + 0x60], 0x20
call qword [0x1400fac68]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140052f89
mov qword [rsp + 0x4d8], r14
lea r8, [rsp + 0x60]
mov rcx, rax
mov qword [rsp + 0x490], r15
mov rax, qword [rdi + 0x50]
xor edx, edx
mov r15d, r13d
mov dword [rsp + 0x40], r13d
xor r14b, r14b
call qword [0x1400fac68]
test eax, eax
je 0x140052f6c
mov qword [rsp + 0x4c8], rbx
test r14b, r14b
jne 0x140052f64
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x54]
mov rax, qword [rdi + 0x70]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x28], r13d
mov r8d, 1
mov rcx, rsi
mov qword [rsp + 0x20], r13
mov rbx, r13
call qword [0x1400fac68]
test eax, eax
jne 0x140052f44
nop
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x7a
jne 0x140052daf
mov ecx, dword [rsp + 0x40]
call fcn.1400c26fc
mov rbx, rax
lea r9, [rsp + 0x54]
lea rax, [rsp + 0x40]
mov r8d, 1
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x60]
mov eax, dword [rsp + 0x40]
mov rcx, rsi
mov dword [rsp + 0x28], eax
mov rax, qword [rdi + 0x70]
mov qword [rsp + 0x20], rbx
call qword [0x1400fac68]
test eax, eax
je 0x140052d60
test rbx, rbx
je 0x140052f44
lea rdx, [0x140127ef0]
mov rcx, rbx
call fcn.1400c476c
test rax, rax
je 0x140052f3c
lea rdx, str.VID_8087
mov rcx, rbx
call fcn.1400c476c
test rax, rax
je 0x140052f3c
mov rcx, rbx
call fcn.1400c2470
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x60]
mov rax, qword [rdi + 0x78]
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
mov rbx, r13
call qword [0x1400fac68]
test eax, eax
jne 0x140052f34
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 0x7a
jne 0x140052e64
mov ecx, dword [rsp + 0x40]
add rcx, rcx
call fcn.1400c26fc
mov r9d, dword [rsp + 0x40]
lea rdx, [rsp + 0x60]
mov rbx, rax
mov rcx, rsi
lea rax, [rsp + 0x40]
mov r8, rbx
mov qword [rsp + 0x20], rax
mov rax, qword [rdi + 0x78]
call qword [0x1400fac68]
test eax, eax
je 0x140052e22
test rbx, rbx
je 0x140052f34
mov r9, rbx
lea r8, str.SYSTEMCurrentControlSetEnum_sDevice_Parameters
mov edx, 0x200
lea rcx, [rbp - 0x80]
call fcn.140017d20
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x80]
mov rcx, 0xffffffff80000002
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140052f19
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x5c]
lea rax, [rsp + 0x50]
xor r8d, r8d
lea rdx, str.Sco_Support_Type
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x140052efb
cmp dword [rsp + 0x50], 2
jne 0x140052f07
mov rcx, qword [rsp + 0x48]
mov r12b, 1
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x48], r13
jmp 0x140052f29
lea rcx, str._AsusSync_DriverHelper__IsIntelBTOffloadEnable_Cant_find__Sco_Support_Type__n
call fcn.140095ab0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov qword [rsp + 0x48], r13
jmp 0x140052f29
lea rdx, [rbp - 0x80]
lea rcx, str._AsusSync_DriverHelper__IsIntelBTOffloadEnable_Cant_find_path:_s_n
call fcn.140095ab0
mov rcx, rbx
call fcn.1400c2470
mov rbx, r13
mov r14b, 1
test rbx, rbx
je 0x140052f44
mov rcx, rbx
call fcn.1400c2470
mov rax, qword [rdi + 0x50]
lea r8, [rsp + 0x60]
inc r15d
mov rcx, rsi
mov edx, r15d
call qword [0x1400fac68]
test eax, eax
jne 0x140052d14
mov rbx, qword [rsp + 0x4c8]
mov rax, qword [rdi + 0x40]
mov rcx, rsi
call qword [0x1400fac68]
mov r15, qword [rsp + 0x490]
mov r14, qword [rsp + 0x4d8]
mov rsi, qword [rsp + 0x4d0]
movzx eax, r12b
jmp 0x140052f99
xor al, al
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.1400c2450
add rsp, 0x498
pop r13
pop r12
pop rdi
pop rbp
ret