Function at 0x140044000
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 0x14004407e
mov edi, r12d
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14004407e
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 0x140044095
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x14004447f
lea rcx, [r14 + 0x9f8]
call fcn.140034610
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 0x1400440ee
mov edi, r12d
mov rbx, qword [rsp + 0x78]
test edi, edi
jne 0x140044145
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 0x140044145
mov edi, r12d
mov eax, SafeArrayGetDim
cmp dword [rsp + 0x4c], 4
cmovne edi, eax
test rbx, rbx
je 0x140044156
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 0x14004416e
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 0x140044472
mov rcx, rdi
cmp r13d, dword [r14 + 0x9a0]
jae 0x1400441ab
mov edx, r13d
lea rcx, [r14 + 0x988]
call fcn.140063ef8
test rax, rax
je 0x140044462
mov rcx, qword [rax + 0x10]
bt dword [rcx + 0x16c], 8
jae 0x140044454
cmp dword [rsp + 0xe8], 3
je 0x140044454
mov r12d, edi
lea rdx, [rsp + 0x88]
call fcn.14003a580
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 0x140044204
cmp rax, qword [rsi - 0x18]
jne 0x140044204
lea rbx, [rsi - 0x18]
lock add dword [rsi - 8], 1
jmp 0x140044240
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rsi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
je 0x140044468
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.14008f260
lea rax, [rbx + 0x18]
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.14005e600
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 0x140044406
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0xf0], edi
mov qword [rsp + 0x80], rdi
test rbx, rbx
je 0x140044404
lea rdx, [rsp + 0x80]
lea rcx, [0x1400c2448]
call fcn.140015590
test eax, eax
js 0x14004433f
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 0x14004431f
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 0x140044343
xor edi, edi
mov r12d, edi
cmp dword [rsp + 0xf0], 1
sete r12b
jmp 0x140044345
xor edi, edi
jmp 0x140044345
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 0x140044406
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 0x140044406
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x68], rdi
test rbx, rbx
je 0x140044406
lea rdx, [rsp + 0x68]
lea rcx, [0x1400c2448]
call fcn.140015590
test eax, eax
js 0x1400443f1
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 0x140044406
xor edi, edi
test rbx, rbx
je 0x140044415
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 0x140044437
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 0x140044454
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 0x14004446e
jmp 0x140044183
call fcn.140063294
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