Function at 0x140017460
Capabilities:
Get common file path
Read file on windows
Set registry value

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x12c0]
mov eax, 0x13c0
call fcn.1401e4170
sub rsp, rax
mov qword [rbp + 0x140], 0xfffffffffffffffe
mov qword [rsp + 0x13f0], rbx
mov qword [rsp + 0x13f8], rsi
mov qword [rsp + 0x1400], rdi
movaps xmmword [rsp + 0x13b0], xmm6
movaps xmmword [rsp + 0x13a0], xmm7
movaps xmmword [rsp + 0x1390], xmm8
movaps xmmword [rsp + 0x1380], xmm9
movaps xmmword [rsp + 0x1370], xmm10
movaps xmmword [rsp + 0x1360], xmm11
mov rax, qword [0x1402da8d8]
xor rax, rsp
mov qword [rbp + 0x1258], rax
call fcn.14004aa80
mov rcx, rax
test rax, rax
je 0x140018628
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rbp - 0x60], rax
call fcn.14004aa80
mov rcx, rax
test rax, rax
je 0x140018633
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x40], rax
xor r12d, r12d
mov qword [rbp - 0x18], r12
mov dword [rbp - 0x10], r12d
mov qword [rbp - 8], r12
mov qword [rsp + 0x58], r12
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x68], r12
lea rax, [0x140280ba0]
mov qword [rbp + 0x1240], rax
lea rax, str.Music
mov qword [rbp + 0x1248], rax
lea rax, str.Game
mov qword [rbp + 0x1250], rax
call fcn.14004aa80
mov rcx, rax
test rax, rax
je 0x14001863e
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rbx, [0x140282684]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140014120
lea r14, [r12 - 1]
test al, al
jne 0x1400175ca
mov rax, r14
nop
inc rax
cmp byte [rbx + rax], 0
jne 0x1400175b0
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140014370
nop
mov qword [rbp - 0x70], r12
mov edi, r12d
xor edx, edx
mov r8d, 0xbc0
lea rcx, [rbp + 0x680]
call fcn.1401e67e0
lea rcx, [rbp + 0xc0]
call fcn.140012de0
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov rbx, qword [rsp + 0x48]
add rbx, 0xffffffffffffffe8
cmp rcx, rbx
je 0x140017651
cmp dword [rbx + 0x10], 0
jl 0x140017642
mov rax, qword [rbx]
cmp qword [rcx], rax
jne 0x140017642
call fcn.140014260
mov rsi, rax
mov ecx, r14d
lock xadd dword [rbx + 0x10], ecx
sub ecx, 1
jg 0x140017637
mov rcx, qword [rbx]
mov r8, qword [rcx]
mov rdx, rbx
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rsi + 0x18]
mov qword [rsp + 0x48], rax
jmp 0x140017651
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.140014370
nop
mov rdx, qword [rbp + 0xc0]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140017672
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, str.Drivers_
mov rax, r14
nop dword [rax]
inc rax
cmp byte [rdx + rax], 0
jne 0x140017680
mov r8d, eax
lea rcx, [rsp + 0x48]
call fcn.14001ae30
lea rdx, str.DTSU2P.DAT
mov rax, r14
inc rax
cmp byte [rdx + rax], 0
jne 0x1400176a0
mov r8d, eax
lea rcx, [rsp + 0x48]
call fcn.14001ae30
lea r8, [0x140282e4c]
mov rdx, qword [rsp + 0x48]
lea rcx, [rbp - 0x70]
call fcn.1401edea0
mov r13d, 1
test eax, eax
jne 0x140017987
mov r9, qword [rbp - 0x70]
mov r8d, r13d
cmp dword [0x1402e9c90], eax
je 0x140017708
mov edx, 0xbc0
lea rcx, [rbp + 0x680]
call fcn.1401f036c
mov edi, r12d
cmp rax, r13
setb dil
jmp 0x140017987
mov edx, 0x530
lea rcx, [rbp + 0x150]
call fcn.1401f036c
mov edi, r12d
cmp rax, r13
setb dil
mov eax, dword [rbp + 0x150]
mov dword [rbp + 0x680], eax
movaps xmm0, xmmword [rbp + 0x640]
movaps xmmword [rbp + 0x1200], xmm0
movaps xmm1, xmmword [rbp + 0x650]
movaps xmmword [rbp + 0x1210], xmm1
movaps xmm0, xmmword [rbp + 0x660]
movaps xmmword [rbp + 0x1220], xmm0
movaps xmm1, xmmword [rbp + 0x670]
movaps xmmword [rbp + 0x1230], xmm1
mov r8, r12
nop word [rax + rax]
mov edx, r12d
mov rcx, r8
nop word [rax + rax]
movups xmm0, xmmword [rbp + rcx + 0x154]
movups xmmword [rbp + rcx + 0x684], xmm0
movups xmm1, xmmword [rbp + rcx + 0x164]
movups xmmword [rbp + rcx + 0x694], xmm1
movups xmm0, xmmword [rbp + rcx + 0x174]
movups xmmword [rbp + rcx + 0x6a4], xmm0
movups xmm1, xmmword [rbp + rcx + 0x184]
movups xmmword [rbp + rcx + 0x6b4], xmm1
movups xmm0, xmmword [rbp + rcx + 0x194]
movups xmmword [rbp + rcx + 0x6c4], xmm0
movups xmm1, xmmword [rbp + rcx + reloc.OLEAUT32.dll_OleTranslateColor]
movups xmmword [rbp + rcx + 0x6d4], xmm1
movups xmm0, xmmword [rbp + rcx + 0x1b4]
movups xmmword [rbp + rcx + 0x6e4], xmm0
movups xmm1, xmmword [rbp + rcx + 0x1c4]
movups xmmword [rbp + rcx + 0x6f4], xmm1
movsd xmm0, qword [rbp + rcx + 0x1d4]
movsd qword [rbp + rcx + 0x704], xmm0
mov eax, dword [rbp + rcx + 0x1dc]
mov dword [rbp + rcx + 0x70c], eax
movups xmm0, xmmword [rbp + rcx + 0x1e0]
movups xmmword [rbp + rcx + 0x710], xmm0
movups xmm1, xmmword [rbp + rcx + 0x1f0]
movups xmmword [rbp + rcx + 0x720], xmm1
movups xmm0, xmmword [rbp + rcx + 0x200]
movups xmmword [rbp + rcx + 0x730], xmm0
movups xmm1, xmmword [rbp + rcx + 0x210]
movups xmmword [rbp + rcx + 0x740], xmm1
movups xmm0, xmmword [rbp + rcx + 0x220]
movups xmmword [rbp + rcx + 0x750], xmm0
movups xmm1, xmmword [rbp + rcx + 0x230]
movups xmmword [rbp + rcx + 0x760], xmm1
movups xmm0, xmmword [rbp + rcx + 0x240]
movups xmmword [rbp + rcx + 0x770], xmm0
movups xmm1, xmmword [rbp + rcx + 0x250]
movups xmmword [rbp + rcx + 0x780], xmm1
movsd xmm0, qword [rbp + rcx + 0x260]
movsd qword [rbp + rcx + 0x790], xmm0
mov eax, dword [rbp + rcx + 0x268]
mov dword [rbp + rcx + 0x798], eax
movups xmm0, xmmword [rbp + rcx + 0x26c]
movups xmmword [rbp + rcx + 0x79c], xmm0
movups xmm1, xmmword [rbp + rcx + 0x27c]
movups xmmword [rbp + rcx + 0x7ac], xmm1
movups xmm0, xmmword [rbp + rcx + 0x28c]
movups xmmword [rbp + rcx + 0x7bc], xmm0
movups xmm1, xmmword [rbp + rcx + 0x29c]
movups xmmword [rbp + rcx + 0x7cc], xmm1
movups xmm0, xmmword [rbp + rcx + 0x2ac]
movups xmmword [rbp + rcx + 0x7dc], xmm0
movups xmm1, xmmword [rbp + rcx + 0x2bc]
movups xmmword [rbp + rcx + 0x7ec], xmm1
movups xmm0, xmmword [rbp + rcx + 0x2cc]
movups xmmword [rbp + rcx + 0x7fc], xmm0
movups xmm1, xmmword [rbp + rcx + 0x2dc]
movups xmmword [rbp + rcx + 0x80c], xmm1
movsd xmm0, qword [rbp + rcx + 0x2ec]
movsd qword [rbp + rcx + 0x81c], xmm0
mov eax, dword [rbp + rcx + 0x2f4]
mov dword [rbp + rcx + 0x824], eax
add edx, 3
lea rcx, [rcx + reloc.OLEAUT32.dll_OleTranslateColor]
cmp edx, 3
jb 0x140017780
add r8, reloc.OLEAUT32.dll_OleTranslateColor
cmp r8, 0x4ec
jl 0x140017770
mov ebx, 7
mov rdx, qword [rbp - 0x70]
test rdx, rdx
je 0x14001799d
test edi, edi
je 0x140017c10
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], 0x3f800000
mov qword [rbp + 0x40], r12
mov dword [rbp + 0x48], SafeArrayGetDim
mov dword [rbp + 0x4c], r13d
mov qword [rbp + 0x50], r13
mov qword [rbp + 0x58], r12
mov dword [rbp + 0x60], 0x64
mov qword [rbp + 0x64], r13
mov dword [rbp + 0x6c], 0xfffffff5
mov dword [rbp + 0x70], r12d
mov dword [rbp + 0x74], 4
mov dword [rbp + 0x78], 0x3f800000
mov qword [rbp + 0x7c], 0xa
mov qword [rbp + 0x84], 0x3f000000
mov dword [rbp + 0x8c], 0x46
mov dword [rbp + 0x90], 0x55
mov dword [rbp + 0x94], 0x3f000000
mov qword [rbp + 0x98], 0x3f000000
mov qword [rbp + 0xa0], r12
movss xmm0, dword [0x14028c52c]
movss dword [rbp + 0xa8], xmm0
movss xmm1, dword [0x14028c4f0]
movss dword [rbp + 0xac], xmm1
mov qword [rbp + 0xb0], r12
movdqa xmm10, xmmword [0x14028c560]
mov dword [rbp + 0x110], r13d
mov dword [rbp + 0x114], 0xffffffe7
mov dword [rbp + 0x118], SafeArrayGetElement
mov dword [rbp + 0x11c], r13d
movss xmm0, dword [0x14028c4e0]
movss dword [rbp + 0x120], xmm0
mov dword [rbp + 0x124], 0xfffffff6
mov dword [rbp + 0x128], 0xffffffc4
mov dword [rbp + 0x12c], 0x78
movdqa xmm11, xmmword [0x14028c570]
mov dword [rbp + 0x680], r12d
mov r8d, r12d
lea rcx, [rbp + 0x694]
mov r9, rbx
movsd xmm1, qword [rbp + 0xb0]
movaps xmm2, xmmword [rbp + 0xa0]
movaps xmm3, xmmword [rbp + 0x90]
movaps xmm4, xmmword [rbp + 0x80]
movaps xmm5, xmmword [rbp + 0x70]
movaps xmm6, xmmword [rbp + 0x60]
movaps xmm7, xmmword [rbp + 0x50]
movaps xmm8, xmmword [rbp + 0x40]
movaps xmm9, xmmword [rbp + 0x30]
nop word [rax + rax]
mov eax, r12d
cmp r8d, 2
sete al
movups xmmword [rcx - 0x10], xmm9
movups xmmword [rcx], xmm8
movups xmmword [rcx + 0x10], xmm7
movups xmmword [rcx + 0x20], xmm6
movups xmmword [rcx + 0x30], xmm5
movups xmmword [rcx + 0x40], xmm4
movups xmmword [rcx + 0x50], xmm3
movups xmmword [rcx + 0x60], xmm2
movsd qword [rcx + 0x70], xmm1
mov dword [rcx + 0x78], r12d
mov dword [rcx], eax
movups xmmword [rcx + 0x7c], xmm9
movups xmmword [rcx + 0x8c], xmm8
movups xmmword [rcx + 0x9c], xmm7
movups xmmword [rcx + 0xac], xmm6
movups xmmword [rcx + 0xbc], xmm5
movups xmmword [rcx + 0xcc], xmm4
movups xmmword [rcx + 0xdc], xmm3
movups xmmword [rcx + 0xec], xmm2
movsd qword [rcx + 0xfc], xmm1
mov dword [rcx + 0x104], r12d
mov dword [rcx + 0x8c], eax
movups xmmword [rcx + 0x108], xmm9
movups xmmword [rcx + 0x118], xmm8
movups xmmword [rcx + 0x128], xmm7
movups xmmword [rcx + 0x138], xmm6
movups xmmword [rcx + 0x148], xmm5
movups xmmword [rcx + 0x158], xmm4
movups xmmword [rcx + 0x168], xmm3
movups xmmword [rcx + 0x178], xmm2
movsd qword [rcx + 0x188], xmm1
mov dword [rcx + 0x190], r12d
mov dword [rcx + 0x118], eax
inc r8d
lea rcx, [rcx + reloc.OLEAUT32.dll_OleTranslateColor]
sub r9, r13
jne 0x140017b00
movaps xmmword [rbp + 0x1200], xmm10
movaps xmm0, xmmword [rbp + 0x110]
movaps xmmword [rbp + 0x1210], xmm0
movaps xmm1, xmmword [rbp + 0x120]
movaps xmmword [rbp + 0x1220], xmm1
movaps xmmword [rbp + 0x1230], xmm11
test rdx, rdx
je 0x140017c1d
mov rcx, rdx
call fcn.1401ee2d0
mov eax, dword [0x1402e9c90]
lea rdx, str.__n__
lea rcx, str.Internal
test eax, eax
cmovne rcx, rdx
mov qword [rbp - 0x28], rcx
lea rcx, [0x1402dbbc0]
lea r15, [0x1402dbbe0]
cmovne r15, rcx
mov esi, 3
cmovne esi, ebx
lea rcx, str.SOFTWAREDTSU2PPresets
mov rax, r14
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x140017c60
mov r8d, eax
mov rdx, rcx
lea rcx, [rbp - 0x60]
call fcn.1400054e0
lea rcx, [0x140281050]
mov rax, r14
inc rax
cmp word [rcx + rax*2], 0
jne 0x140017c83
mov r8d, eax
mov rdx, rcx
lea rcx, [rbp - 0x60]
call fcn.140004b30
mov r9d, 0x20006
mov rbx, qword [rbp - 0x60]
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x18]
call fcn.14000ddf0
test eax, eax
je 0x140017cf2
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r12d
xor r9d, r9d
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rbp - 0x18]
call fcn.1400147b0
test eax, eax
jne 0x140018551
movups xmm0, xmmword [0x1402816d8]
movups xmmword [rsp + 0x78], xmm0
mov eax, dword [0x1402816e8]
mov dword [rbp - 0x78], eax
mov ebx, r12d
cmp dword [rbp + 0x680], r12d
setne bl
mov qword [rbp + 0x18], r12
mov edi, r12d
mov r14, qword [rbp - 0x18]
test r14, r14
je 0x14001854a
lea rdx, [rbp + 0x18]
lea rcx, [rsp + 0x78]
call fcn.140011a50
test eax, eax
js 0x140017d74
mov dword [rbp - 0x58], ebx
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbp + 0x18]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmove edi, r13d
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
test edi, edi
je 0x14001854a
mov ebx, esi
mov qword [rbp - 0x20], rbx
mov rsi, r12
nop word [rax + rax]
movups xmm0, xmmword [0x140282138]
movups xmmword [rsp + 0x78], xmm0
mov ecx, dword [reloc.OLEAUT32.dll_SysReAllocString]
imul eax, dword [r15 + rsi*4], 0x2710
add ecx, 0x2710
add ecx, eax
mov dword [rbp - 0x78], ecx
mov qword [rbp + 0x20], r12
mov edi, r12d
lea rdx, [rbp + 0x20]
lea rcx, [rsp + 0x78]
call fcn.140011a50
test eax, eax
js 0x140017e0d
mov dword [rbp - 0x50], r12d
mov dword [rsp + 0x28], 4
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rbp + 0x20]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
cmove edi, r13d
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov rbx, qword [rbp - 0x20]
test edi, edi
je 0x14001854a
inc rsi
cmp rsi, rbx
jl 0x140017d90
call fcn.14004aa80
mov rcx, rax
test rax, rax
je 0x140018649
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], r12
lea r9, [rbp - 0x40]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140276578]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
mov r14, 0xffffffffffffffff
test eax, eax
js 0x140017ed5
mov rdx, qword [rbp - 0x40]
test rdx, rdx
jne 0x140017e73
mov eax, r12d
jmp 0x140017e80
mov rax, r14
inc rax
cmp word [rdx + rax*2], 0
jne 0x140017e76
mov r8d, eax
lea rcx, [rbp - 0x48]
call fcn.1400054e0
lea rdx, str.driversDTSU2PClearAudio.DAT
mov rax, r14
inc rax
cmp word [rdx + rax*2], 0
jne 0x140017e96
mov r8d, eax
lea rcx, [rbp - 0x48]
call fcn.140004b30
mov rbx, qword [rbp - 0x48]
lea rcx, [rbx - 0x18]
call fcn.140004c20
add rax, 0x18
mov qword [rbp + 0x28], rax
lea r8, [rbp + 0x28]
lea rdx, [0x140281e38]
lea rcx, [rbp - 0x18]
call fcn.140011df0
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x140017ee5
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140017eff
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.14004aa80
mov rcx, rax
test rax, rax
je 0x14001861d
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x30], r12
lea r9, [rbp - 0x30]
xor r8d, r8d
xor edx, edx
lea rcx, [0x140276578]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x140017faf
mov rdx, qword [rbp - 0x30]
test rdx, rdx
jne 0x140017f4a
mov eax, r12d
jmp 0x140017f5a
mov rax, r14
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140017f50
mov r8d, eax
lea rcx, [rbp - 0x38]
call fcn.1400054e0
lea rdx, str.driversDTSU2PParamEQ.DAT
mov rax, r14
inc rax
cmp word [rdx + rax*2], 0
jne 0x140017f70
mov r8d, eax
lea rcx, [rbp - 0x38]
call fcn.140004b30
mov rbx, qword [rbp - 0x38]
lea rcx, [rbx - 0x18]
call fcn.140004c20
add rax, 0x18
mov qword [rbp], rax
lea r8, [rbp]
lea rdx, [0x140281dc0]
lea rcx, [rbp - 0x18]
call fcn.140011df0
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140017fbf
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
lea rdx, [rbx - 0x18]
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140017fd9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebx, ebx
mov qword [rbp - 0x18], rbx
mov dword [rbp - 0x10], ebx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x70], rbx
mov r13, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rbp - 0x28]
mov r12d, ebx
mov r15, rbx
nop dword [rax]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetElement
lea rdx, str.SOFTWAREDTSU2PPresets
lea rcx, [rsp + 0x40]
call fcn.1400054e0
mov r8d, 1
lea rdx, [0x140281050]
lea rcx, [rsp + 0x40]
call fcn.140004b30
mov rdx, qword [rdi]
test rdx, rdx
jne 0x14001804a
mov eax, ebx
jmp 0x14001805a
mov rax, r14
nop dword [rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140018050
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.140004b30
mov rdx, qword [rbp + r15*8 + 0x1240]
test rdx, rdx
jne 0x140018078
mov eax, ebx
jmp 0x14001808a
mov rax, r14
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140018080
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.140004b30
mov r8d, 7
lea rdx, str.Default
lea rcx, [rsp + 0x40]
call fcn.140004b30
mov qword [rbp - 0x68], rbx
mov rbx, qword [rsp + 0x40]
test r13, r13
je 0x140018131
cmp qword [r13], 0
je 0x140018123
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1400180dc
mov eax, 1
jmp 0x140018153
lea rdx, str.RegOpenKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001812a
mov qword [rsp + 0x30], 0
mov rcx, qword [r13]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp - 0x68]
mov qword [rsp + 0x20], rcx
mov r9d, 0x20006
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call rax
jmp 0x140018153
cmp dword [r13 + 8], 0
jne 0x140018131
mov eax, 1
jmp 0x140018153
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20006
xor r8d, r8d
mov rdx, rbx
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001817a
test rsi, rsi
je 0x140018165
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, qword [rbp - 0x68]
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x60], 0
test eax, eax
je 0x1400181b6
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], eax
xor r9d, r9d
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x58]
call fcn.1400147b0
mov rsi, qword [rsp + 0x58]
test eax, eax
jne 0x1400182fe
xor ebx, ebx
mov r14d, ebx
lea rdi, [0x1402db77c]
mov r13, qword [rsp + 0x70]
nop word [rax + rax]
mov rax, qword [rdi - 0x14]
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
mov eax, dword [rax + 0x10]
mov dword [rbp - 0x78], eax
mov r8d, dword [rdi - 0x1c]
cmp r8d, 0xb
je 0x140018226
movsxd rax, dword [rsp + 0x50]
lea rcx, [rax + rax*2]
movsxd rax, r12d
add rcx, rax
imul rdx, rcx, 0x8c
movsxd rax, dword [rdi]
lea r9, [rbp + 0x684]
add r9, rax
add r9, rdx
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x58]
call fcn.140011bd0
jmp 0x1400182c1
lea rax, [r15 + r13]
imul rcx, rax, 0x8c
movsxd rax, dword [rdi]
lea rdx, [rbp + 0x684]
add rdx, rax
xor eax, eax
mov qword [rbp + 0xc8], rax
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rax
mov eax, VariantTimeToDosDateTime
mov word [rbp + 0xc8], ax
mov eax, dword [rdx + rcx]
neg eax
sbb cx, cx
mov word [rbp + 0xd0], cx
mov qword [rbp + 8], rbx
test rsi, rsi
je 0x1400182c1
lea rdx, [rbp + 8]
lea rcx, [rsp + 0x78]
call fcn.140011a50
test eax, eax
js 0x1400182c1
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayGetElement
lea rax, [rbp + 0xc8]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rbp + 8]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 8]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor ebx, ebx
inc r14d
add rdi, 0x20
cmp r14d, 0x23
jb 0x1400181d0
test rsi, rsi
mov r13, qword [rsp + 0x68]
je 0x1400182ed
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rsi, rbx
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x60], ebx
mov r14, 0xffffffffffffffff
mov rdi, qword [rbp - 0x28]
jmp 0x140018305
mov r13, qword [rsp + 0x68]
xor ebx, ebx
inc r12d
inc r15
cmp r12d, 3
jb 0x140018010
inc dword [rsp + 0x50]
add rdi, 8
mov qword [rbp - 0x28], rdi
add qword [rsp + 0x70], 3
sub qword [rbp - 0x20], 1
jne 0x140018003
mov rax, r14
lea rcx, str.SOFTWAREDTSU2PPresets
nop dword [rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140018340
mov r8d, eax
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.1400054e0
mov rax, r14
lea rcx, [0x140281050]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140018364
mov r8d, eax
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.140004b30
lea rdx, str.Microphone
mov rax, r14
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], 0
jne 0x140018390
mov r8d, eax
lea rcx, [rsp + 0x40]
call fcn.140004b30
mov rax, r14
lea rcx, str.Default
inc rax
cmp word [rcx + rax*2], 0
jne 0x1400183b1
mov r8d, eax
mov rdx, rcx
lea rcx, [rsp + 0x40]
call fcn.140004b30
mov r9d, 0x20006
mov rbx, qword [rsp + 0x40]
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x58]
call fcn.14000ddf0
xor r15d, r15d
test eax, eax
je 0x140018427
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], r15d
xor r9d, r9d
mov r8, rbx
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x58]
call fcn.1400147b0
test eax, eax
jne 0x140018551
mov esi, r15d
lea rdi, [0x1402db57c]
mov r14, qword [rsp + 0x58]
mov r12d, VariantTimeToDosDateTime
nop dword [rax]
mov rax, qword [rdi - 0x14]
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x78], xmm0
mov eax, dword [rax + 0x10]
mov dword [rbp - 0x78], eax
mov r8d, dword [rdi - 0x1c]
movsxd rax, dword [rdi]
cmp r8d, r12d
je 0x14001847c
lea r9, [rbp + 0x1200]
add r9, rax
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x58]
call fcn.140011bd0
jmp 0x1400184fd
xor ecx, ecx
mov qword [rbp + 0xe0], rcx
mov qword [rbp + 0xe8], rcx
mov qword [rbp + 0xf0], rcx
mov word [rbp + 0xe0], r12w
mov eax, dword [rbp + rax + 0x1200]
neg eax
sbb cx, cx
mov word [rbp + 0xe8], cx
mov qword [rbp + 0x10], r15
test r14, r14
je 0x1400184fd
lea rdx, [rbp + 0x10]
lea rcx, [rsp + 0x78]
call fcn.140011a50
test eax, eax
js 0x1400184fd
mov dword [rsp + 0x28], reloc.OLEAUT32.dll_SafeArrayGetElement
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
mov rdx, qword [rbp + 0x10]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
inc esi
add rdi, 0x20
cmp esi, 0x10
jb 0x140018440
test r14, r14
je 0x14001851f
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], r15d
call fcn.14005aa58
mov rcx, qword [rax + 8]
mov rax, qword [rcx]
mov r9d, 1
lea r8, str.DtsPresetInited
lea rdx, str.General
call qword [rax + 0x100]
mov r14, 0xffffffffffffffff
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140018571
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140018582
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x140018592
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400185b2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r14d
sub r14d, 1
jg 0x1400185cf
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rbp + 0x1258]
xor rcx, rsp
call fcn.1401e35b0
lea r11, [rsp + 0x13c0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov ecx, 0x80004005
call fcn.140005680
nop
mov ecx, 0x80004005
call fcn.140005680
nop
mov ecx, 0x80004005
call fcn.140005680
nop
mov ecx, 0x80004005
call fcn.140005680
nop
mov ecx, 0x80004005
call fcn.140005680
int3