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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov qword [rsp + 0x98], 0xfffffffffffffffe
mov qword [rsp + 0xe0], rbx
mov r14, rcx
xor r12d, r12d
mov ebp, r12d
mov rbx, r12
mov qword [rsp + 0x58], r12
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareRealtekSBCoexist
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x140043f1e
mov edi, r12d
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x140043f1e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r12
mov esi, r12d
test edi, edi
sete sil
test rbx, rbx
je 0x140043f35
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x14004431f
lea rcx, [r14 + 0x9f8]
call fcn.140034400
mov dword [rsp + 0xe8], r12d
mov rbx, r12
mov qword [rsp + 0x78], r12
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SoftwareRealtekSBCoexist
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x140043f8e
mov edi, r12d
mov rbx, qword [rsp + 0x78]
test edi, edi
jne 0x140043fe5
mov dword [rsp + 0xf8], 4
lea rax, [rsp + 0xf8]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xe8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x4c]
xor r8d, r8d
lea rdx, str.Technology
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140043fe5
mov edi, r12d
mov eax, SafeArrayGetDim
cmp dword [rsp + 0x4c], 4
cmovne edi, eax
test rbx, rbx
je 0x140043ff6
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, r12
test edi, edi
sete bpl
mov dword [rsp + 0x40], ebp
test rbx, rbx
je 0x14004400e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [r14 + 0x9a0]
xor edi, edi
mov r13d, edi
test r15d, r15d
je 0x140044312
mov rcx, rdi
cmp r13d, dword [r14 + 0x9a0]
jae 0x14004404b
mov edx, r13d
lea rcx, [r14 + 0x988]
call fcn.140062f5c
test rax, rax
je 0x140044302
mov rcx, qword [rax + 0x10]
bt dword [rcx + 0x16c], 8
jae 0x1400442f4
cmp dword [rsp + 0xe8], 3
je 0x1400442f4
mov r12d, edi
lea rdx, [rsp + 0x88]
call fcn.14003a360
nop
mov rsi, qword [rsp + 0x88]
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rsi - 8], 0
jl 0x1400440a4
cmp rax, qword [rsi - 0x18]
jne 0x1400440a4
lea rbx, [rsi - 0x18]
lock add dword [rsi - 8], 1
jmp 0x1400440e0
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rsi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
je 0x140044308
mov eax, dword [rsi - 0x10]
mov dword [rbx + 8], eax
mov eax, dword [rsi - 0x10]
add eax, 1
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rsi
add rdx, rdx
lea rcx, [rbx + 0x18]
call fcn.14008e4d0
lea rax, [rbx + 0x18]
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.14005d840
nop
mov rbx, rdi
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x70], rdi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400442a6
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0xf0], edi
mov qword [rsp + 0x80], rdi
test rbx, rbx
je 0x1400442a4
lea rdx, [rsp + 0x80]
lea rcx, [0x1400c1448]
call fcn.1400153e0
test eax, eax
js 0x1400441df
mov dword [rsp + 0x48], 4
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
mov rbp, qword [rsp + 0x80]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400441bf
cmp dword [rsp + 0x44], 4
mov eax, 1
cmove edi, eax
mov rcx, rbp
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
je 0x1400441e3
xor edi, edi
mov r12d, edi
cmp dword [rsp + 0xf0], 1
sete r12b
jmp 0x1400441e5
xor edi, edi
jmp 0x1400441e5
xor edi, edi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rdi
mov qword [rsp + 0x30], rbx
test r12d, r12d
je 0x1400442a6
mov qword [rsp + 0x60], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, qword [rsp + 0x50]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400442a6
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x68], rdi
test rbx, rbx
je 0x1400442a6
lea rdx, [rsp + 0x68]
lea rcx, [0x1400c1448]
call fcn.1400153e0
test eax, eax
js 0x140044291
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdi, qword [rsp + 0x68]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rdi
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor edi, edi
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, rdi
mov qword [rsp + 0x30], rbx
jmp 0x1400442a6
xor edi, edi
test rbx, rbx
je 0x1400442b5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400442d7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
or eax, 0xffffffff
lock xadd dword [rsi - 8], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400442f4
mov rcx, qword [rsi - 0x18]
mov rax, qword [rcx]
lea rdx, [rsi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
add r13d, 1
cmp r13d, r15d
jae 0x14004430e
jmp 0x140044023
call fcn.140062504
nop
call fcn.140001a80
nop
mov ebp, dword [rsp + 0x40]
lea rcx, [r14 + 0x9f8]
mov rdx, qword [rcx]
call qword [rdx + 0x28]
mov eax, ebp
mov rbx, qword [rsp + 0xe0]
add rsp, 0xa0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret