Function at 0x140045880
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 0x1400458fe
mov edi, r12d
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x1400458fe
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 0x140045915
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x140045cff
lea rcx, [r14 + 0xa00]
call fcn.140035280
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 0x14004596e
mov edi, r12d
mov rbx, qword [rsp + 0x78]
test edi, edi
jne 0x1400459c5
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 0x1400459c5
mov edi, r12d
mov eax, SafeArrayGetDim
cmp dword [rsp + 0x4c], 4
cmovne edi, eax
test rbx, rbx
je 0x1400459d6
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 0x1400459ee
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [r14 + 0x9a8]
xor edi, edi
mov r13d, edi
test r15d, r15d
je 0x140045cf2
mov rcx, rdi
cmp r13d, dword [r14 + 0x9a8]
jae 0x140045a2b
mov edx, r13d
lea rcx, [r14 + 0x990]
call fcn.140066870
test rax, rax
je 0x140045ce2
mov rcx, qword [rax + 0x10]
bt dword [rcx + 0x174], 8
jae 0x140045cd4
cmp dword [rsp + 0xe8], 3
je 0x140045cd4
mov r12d, edi
lea rdx, [rsp + 0x88]
call fcn.14003be30
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 0x140045a84
cmp rax, qword [rsi - 0x18]
jne 0x140045a84
lea rbx, [rsi - 0x18]
lock add dword [rsi - 8], 1
jmp 0x140045ac0
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rsi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
je 0x140045ce8
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.140091de0
lea rax, [rbx + 0x18]
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.140061060
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 0x140045c86
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0xf0], edi
mov qword [rsp + 0x80], rdi
test rbx, rbx
je 0x140045c84
lea rdx, [rsp + 0x80]
lea rcx, [0x1400c5468]
call fcn.140015850
test eax, eax
js 0x140045bbf
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 0x140045b9f
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 0x140045bc3
xor edi, edi
mov r12d, edi
cmp dword [rsp + 0xf0], 1
sete r12b
jmp 0x140045bc5
xor edi, edi
jmp 0x140045bc5
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 0x140045c86
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 0x140045c86
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x68], rdi
test rbx, rbx
je 0x140045c86
lea rdx, [rsp + 0x68]
lea rcx, [0x1400c5468]
call fcn.140015850
test eax, eax
js 0x140045c71
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 0x140045c86
xor edi, edi
test rbx, rbx
je 0x140045c95
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 0x140045cb7
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 0x140045cd4
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 0x140045cee
jmp 0x140045a03
call fcn.140065e18
nop
call fcn.140018f80
nop
mov ebp, dword [rsp + 0x40]
lea rcx, [r14 + 0xa00]
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