Function at 0x14003d950
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 0x14003d9ce
mov edi, r12d
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14003d9ce
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 0x14003d9e5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x14003ddcf
lea rcx, [r14 + 0x8b8]
call fcn.140030850
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 0x14003da3e
mov edi, r12d
mov rbx, qword [rsp + 0x78]
test edi, edi
jne 0x14003da95
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 0x14003da95
mov edi, r12d
mov eax, SafeArrayGetDim
cmp dword [rsp + 0x4c], 4
cmovne edi, eax
test rbx, rbx
je 0x14003daa6
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 0x14003dabe
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [r14 + 0x860]
xor edi, edi
mov r13d, edi
test r15d, r15d
je 0x14003ddc2
mov rcx, rdi
cmp r13d, dword [r14 + 0x860]
jae 0x14003dafb
mov edx, r13d
lea rcx, [r14 + 0x848]
call fcn.140056e3c
test rax, rax
je 0x14003ddb2
mov rcx, qword [rax + 0x10]
bt dword [rcx + 0x16c], 8
jae 0x14003dda4
cmp dword [rsp + 0xe8], 3
je 0x14003dda4
mov r12d, edi
lea rdx, [rsp + 0x88]
call fcn.140035450
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 0x14003db54
cmp rax, qword [rsi - 0x18]
jne 0x14003db54
lea rbx, [rsi - 0x18]
lock add dword [rsi - 8], 1
jmp 0x14003db90
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rsi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
je 0x14003ddb8
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.140082af0
lea rax, [rbx + 0x18]
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.140051ff0
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 0x14003dd56
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0xf0], edi
mov qword [rsp + 0x80], rdi
test rbx, rbx
je 0x14003dd54
lea rdx, [rsp + 0x80]
lea rcx, [0x1400b6290]
call fcn.1400132b0
test eax, eax
js 0x14003dc8f
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 0x14003dc6f
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 0x14003dc93
xor edi, edi
mov r12d, edi
cmp dword [rsp + 0xf0], 1
sete r12b
jmp 0x14003dc95
xor edi, edi
jmp 0x14003dc95
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 0x14003dd56
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 0x14003dd56
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x68], rdi
test rbx, rbx
je 0x14003dd56
lea rdx, [rsp + 0x68]
lea rcx, [0x1400b6290]
call fcn.1400132b0
test eax, eax
js 0x14003dd41
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 0x14003dd56
xor edi, edi
test rbx, rbx
je 0x14003dd65
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 0x14003dd87
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 0x14003dda4
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 0x14003ddbe
jmp 0x14003dad3
call fcn.140057a80
nop
call fcn.1400158c0
nop
mov ebp, dword [rsp + 0x40]
lea rcx, [r14 + 0x8b8]
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