Function at 0x14003b790
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov rax, qword [0x140221f78]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov dword [rbp + 7], ecx
xor r12d, r12d
mov qword [rbp - 0x49], r12
lea rdx, [rbp - 0x49]
lea rcx, str.SoftwareDolbyDAX
call fcn.140039860
mov r14d, eax
test eax, eax
jns 0x14003b9dd
lea rdi, vtable._com_error.0
mov qword [rbp - 0x29], rdi
mov dword [rbp - 0x21], eax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x19], xmm0
lea rcx, [rbp - 0x29]
call fcn.140039b30
mov r15, rax
lea rcx, str.WriteDolbyLidCloseRegistry
mov qword [rbp - 0x49], rcx
mov qword [rbp - 0x41], reloc.OLEAUT32.dll_SafeArrayCopy
lea rcx, str.c:DAX35dax3APIDAXAPIApiRelatedFunctions.cpp
mov qword [rbp - 0x79], rcx
mov qword [rbp - 0x71], 0x30
mov ecx, 0x200
call fcn.1401353e0
mov rsi, rax
test rax, rax
je 0x14003b9b5
mov rcx, qword [rax]
mov r8, qword [rcx + 8]
mov dl, 2
mov rcx, rax
call r8
test al, al
je 0x14003b9b5
mov qword [rbp + 0xf], r12
mov qword [rbp + 0x1f], r12
mov qword [rbp + 0x27], 7
mov word [rbp + 0xf], r12w
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r14d
lea r9, str.SoftwareDolbyDAX
lea r8, str.Cannot_create_reg_key___s_.__0x_.8x__s
xor edx, edx
xor ecx, ecx
call fcn.140040940
inc eax
movsxd rbx, eax
xor r8d, r8d
mov rdx, rbx
lea rcx, [rbp - 0x69]
call fcn.1400387e0
lea rcx, [rbp - 0x69]
cmp qword [rbp - 0x51], 8
cmovae rcx, qword [rbp - 0x69]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r14d
lea r9, str.SoftwareDolbyDAX
lea r8, str.Cannot_create_reg_key___s_.__0x_.8x__s
mov rdx, rbx
call fcn.140040940
mov rax, qword [rbp - 0x59]
dec rax
lea rcx, [rbp - 0x69]
cmp qword [rbp - 0x51], 8
cmovae rcx, qword [rbp - 0x69]
mov qword [rbp - 0x59], rax
mov word [rcx + rax*2], r12w
lea rcx, [rbp + 0xf]
call fcn.14002dd80
movups xmm0, xmmword [rbp - 0x69]
movups xmmword [rbp + 0xf], xmm0
movups xmm1, xmmword [rbp - 0x59]
movups xmmword [rbp + 0x1f], xmm1
mov rax, qword [rsi]
mov r10, qword [rax + 0x10]
lea rdx, [rbp + 0xf]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 8
cmovae rdx, rcx
mov qword [rbp - 9], rdx
movq qword [rbp - 1], xmm1
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp - 0x69], xmm0
movaps xmm1, xmmword [rbp - 0x49]
movdqa xmmword [rbp - 0x39], xmm1
movaps xmm0, xmmword [rbp - 0x79]
movdqa xmmword [rbp - 0x79], xmm0
lea rax, [rbp - 0x69]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x20], rax
mov r9d, 0x1b7
lea r8, [rbp - 0x79]
mov dl, 2
mov rcx, rsi
call r10
nop
mov rdx, qword [rbp + 0x27]
cmp rdx, 8
jb 0x14003b9b5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003b9af
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003bb24
call fcn.14015ea50
nop
mov qword [rbp - 0x29], rdi
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14003b9c8
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x14003b9d8
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop
jmp 0x14003bafc
mov dword [rsp + 0x28], 4
lea rax, [rbp + 7]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
lea rdx, str.LidClose
mov rbx, qword [rbp - 0x49]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
mov dword [rbp - 0x49], eax
test eax, eax
jns 0x14003baf3
lea rdi, vtable._com_error.0
mov qword [rbp - 0x29], rdi
mov dword [rbp - 0x21], eax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x19], xmm0
lea rcx, [rbp - 0x29]
call fcn.140039b30
mov qword [rbp - 9], rax
lea rax, str.RegSetValueEx_for_LidClose_failed.__0x_.8x__s
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x71], 0x2d
lea rcx, str.WriteDolbyLidCloseRegistry
mov qword [rbp - 0x39], rcx
mov qword [rbp - 0x31], reloc.OLEAUT32.dll_SafeArrayCopy
lea rcx, str.c:DAX35dax3APIDAXAPIApiRelatedFunctions.cpp
mov qword [rbp - 0x69], rcx
mov qword [rbp - 0x61], 0x30
mov ecx, 0x200
call fcn.1401353e0
movaps xmm0, xmmword [rbp - 0x79]
movdqa xmmword [rbp - 0x79], xmm0
movaps xmm1, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 0x39], xmm1
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x69], xmm0
lea rcx, [rbp - 9]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp - 0x49]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp - 0x79]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x39]
mov qword [rsp + 0x20], rcx
mov r9d, 0x1be
lea r8, [rbp - 0x69]
mov dl, 2
mov rcx, rax
call fcn.140036640
nop
mov qword [rbp - 0x29], rdi
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14003bae3
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x14003baf3
call qword [sym.imp.api_ms_win_core_heap_l2_1_0.dll_LocalFree]
nop
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14015eb70
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1401660e8
nop
int3