Function at 0x140023930
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x14022b800]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rbx, rdx
mov rsi, rcx
mov qword [rbp - 0x48], rdx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
mov rdi, qword [rcx + 0x18]
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
test rdi, rdi
je 0x1400239c9
mov qword [rsp + 0x58], rdi
mov eax, 1
lock xadd dword [rdi], eax
inc eax
cmp eax, 1
jle 0x1400239b7
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
cmp dword [rdi + 4], ecx
je 0x1400239c6
mov edx, 0xffffffff
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rax, qword gs:[0x30]
mov ecx, dword [rax + 0x48]
mov dword [rdi + 4], ecx
inc dword [rdi + 8]
mov qword [rbx], r14
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], 7
mov word [rbx], r14w
xor r8d, r8d
lea rdx, [0x1401c16d8]
mov rcx, rbx
call fcn.140005060
mov dword [rsp + 0x30], 1
mov rdi, 0xffffffffffffffff
cmp byte [rsi + 0x998], 0
jne 0x140023a56
lea rdx, [rsi + 0x978]
lea rcx, [rbp - 0x68]
call fcn.140006b00
lea rax, [rbp - 0x68]
cmp rbx, rax
je 0x140023a48
mov rcx, rbx
call fcn.140004ff0
movups xmm0, xmmword [rbp - 0x68]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rbp - 0x58]
movups xmmword [rbx + 0x10], xmm1
movdqa xmm0, xmmword [0x1401f9dd0]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], r14w
lea rcx, [rbp - 0x68]
call fcn.140004ff0
jmp 0x140023c06
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp]
call fcn.140152140
mov dword [rbp - 8], 0x208
mov dword [rbp - 0x10], 1
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SOFTWAREAMDCN
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140023c06
lea rax, [rbp - 8]
mov qword [rsp + 0x28], rax
lea rax, [rbp]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x10]
xor r8d, r8d
lea rdx, str.CNBrandingInstallDir
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140023bfb
mov eax, dword [rbp - 0x10]
dec eax
cmp eax, 1
ja 0x140023bfb
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp]
mov r8, rdi
inc r8
cmp word [rax + r8*2], 0
jne 0x140023af4
test r8, r8
je 0x140023c06
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], 7
lea rdx, [rbp]
lea rcx, [rsp + 0x38]
call fcn.140005060
lea rax, [rsp + 0x38]
mov qword [rbp - 0x70], rax
mov qword [rsp + 0x68], r14
movdqa xmm0, xmmword [0x1401f9dd0]
movdqu xmmword [rsp + 0x78], xmm0
mov word [rsp + 0x68], r14w
lea rdx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rdx, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.140005060
mov byte [rbp - 0x78], 0
lea rcx, [rsp + 0x38]
call fcn.140004ff0
nop
add rsi, 0x978
mov byte [rsi + 0x20], 0
lea rax, [rsp + 0x68]
cmp rsi, rax
je 0x140023bac
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 8
cmovae rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x78]
mov rcx, rsi
call fcn.140005060
mov rdx, rsi
lea rcx, [rbp - 0x40]
call fcn.140006b00
movzx eax, byte [rsi + 0x20]
mov byte [rbp - 0x20], al
mov dword [rsp + 0x30], 5
lea rcx, [rbp - 0x40]
call fcn.140004ff0
nop
lea rcx, [rsp + 0x68]
call fcn.140004ff0
lea rax, [rbp]
mov r8, rdi
inc r8
cmp word [rax + r8*2], 0
jne 0x140023be2
lea rdx, [rbp]
mov rcx, rbx
call fcn.140005060
jmp 0x140023c06
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140023c3f
add dword [rax + 8], 0xffffffff
mov ecx, dword [rax + 8]
jne 0x140023c1d
mov dword [rax + 4], r14d
lock xadd dword [rax], edi
cmp edi, 1
je 0x140023c3f
test ecx, ecx
jne 0x140023c3f
xor r8d, r8d
lea edx, [rcx + 1]
mov rcx, qword [rsp + 0x58]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov rax, rbx
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.14014f2f0
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret