Function at 0x14003b210
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 0x14003b28e
mov edi, r12d
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14003b28e
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 0x14003b2a5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x14003b68f
lea rcx, [r14 + 0x8b0]
call fcn.14002f030
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 0x14003b2fe
mov edi, r12d
mov rbx, qword [rsp + 0x78]
test edi, edi
jne 0x14003b355
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 0x14003b355
mov edi, r12d
mov eax, SafeArrayGetDim
cmp dword [rsp + 0x4c], 4
cmovne edi, eax
test rbx, rbx
je 0x14003b366
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 0x14003b37e
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r15, qword [r14 + 0x858]
xor edi, edi
mov r13d, edi
test r15d, r15d
je 0x14003b682
mov rcx, rdi
cmp r13d, dword [r14 + 0x858]
jae 0x14003b3bb
mov edx, r13d
lea rcx, [r14 + 0x840]
call fcn.140053840
test rax, rax
je 0x14003b672
mov rcx, qword [rax + 0x10]
bt dword [rcx + 0x16c], 8
jae 0x14003b664
cmp dword [rsp + 0xe8], 3
je 0x14003b664
mov r12d, edi
lea rdx, [rsp + 0x88]
call fcn.140004900
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 0x14003b414
cmp rax, qword [rsi - 0x18]
jne 0x14003b414
lea rbx, [rsi - 0x18]
lock add dword [rsi - 8], 1
jmp 0x14003b450
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rsi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
je 0x14003b678
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.14007f790
lea rax, [rbx + 0x18]
mov qword [rsp + 0x90], rax
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x50]
call fcn.14004ec00
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 0x14003b616
mov rbx, qword [rsp + 0x70]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0xf0], edi
mov qword [rsp + 0x80], rdi
test rbx, rbx
je 0x14003b614
lea rdx, [rsp + 0x80]
lea rcx, [0x1400b32c0]
call fcn.140013340
test eax, eax
js 0x14003b54f
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 0x14003b52f
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 0x14003b553
xor edi, edi
mov r12d, edi
cmp dword [rsp + 0xf0], 1
sete r12b
jmp 0x14003b555
xor edi, edi
jmp 0x14003b555
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 0x14003b616
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 0x14003b616
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x68], rdi
test rbx, rbx
je 0x14003b616
lea rdx, [rsp + 0x68]
lea rcx, [0x1400b32c0]
call fcn.140013340
test eax, eax
js 0x14003b601
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 0x14003b616
xor edi, edi
test rbx, rbx
je 0x14003b625
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 0x14003b647
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 0x14003b664
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 0x14003b67e
jmp 0x14003b393
call fcn.140054698
nop
call fcn.140011890
nop
mov ebp, dword [rsp + 0x40]
lea rcx, [r14 + 0x8b0]
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