Function at 0x140032370
Capabilities:
Get common file path
Get program files directory

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1f70]
mov eax, 0x2070
call fcn.140282780
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x20c0], rbx
mov rax, qword [0x1403b88b0]
xor rax, rsp
mov qword [rbp + 0x1f60], rax
mov r14, rdx
mov r15, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdx
call fcn.1400f5f94
mov rcx, rax
test rax, rax
je 0x14003278d
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rbx, [0x140328530]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140014ab0
mov rdi, 0xffffffffffffffff
test al, al
jne 0x140032420
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x140032405
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140010390
nop
xor r13d, r13d
mov esi, r13d
mov edx, 0x1000
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r12, [0x14032b758]
test eax, eax
je 0x140032604
lea rcx, [rsp + 0x60]
mov rax, rdi
nop dword [rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], r13w
jne 0x140032450
cmp word [rsp + rax*2 + 0x5e], 0x5c
jne 0x14003247d
lea rax, [rax*2 - 2]
cmp rax, 0x2000
jae 0x140032798
mov word [rsp + rax + 0x60], r13w
lea rcx, [rsp + 0x60]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140032485
mov r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140010390
lea rdx, [0x140329108]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], r13w
jne 0x1400324b0
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.14001bf50
mov rdx, qword [r15]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.14001bf50
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx - 0x18]
call fcn.140014810
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
call fcn.140031de0
test eax, eax
je 0x140032609
mov rax, rdi
inc rax
cmp word [r12 + rax*2], r13w
jne 0x140032504
mov r8d, eax
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.14001bf50
mov rdx, qword [r14]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.14001bf50
mov rbx, qword [rsp + 0x30]
cmp dword [rbx - 8], 1
jle 0x14003254c
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.14000da70
mov rbx, qword [rsp + 0x30]
xor edx, edx
mov rcx, rbx
call fcn.14007f080
mov esi, eax
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.140289b40
test eax, eax
js 0x14003279e
cmp eax, dword [rbx - 0xc]
jg 0x14003279e
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r13w
test esi, esi
je 0x140032609
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400325a1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r15]
sub rdx, 0x18
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400325be
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x1400325d8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, esi
mov rcx, qword [rbp + 0x1f60]
xor rcx, rsp
call fcn.140281bf0
mov rbx, qword [rsp + 0x20c0]
add rsp, 0x2070
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [rsp + 0x30]
xor edx, edx
mov r8d, 0x2000
lea rcx, [rsp + 0x60]
call fcn.1402841a0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0x26]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x140032587
lea rcx, [rsp + 0x60]
mov rax, rdi
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], r13w
jne 0x140032650
cmp word [rsp + rax*2 + 0x5e], 0x5c
jne 0x14003267d
lea rax, [rax*2 - 2]
cmp rax, 0x2000
jae 0x14003277c
mov word [rsp + rax + 0x60], r13w
lea rcx, [rsp + 0x60]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140032685
mov r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.140010390
lea rdx, str.RealtekAudioAP_
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], r13w
jne 0x1400326b0
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.14001bf50
mov rdx, qword [r15]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.14001bf50
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx - 0x18]
call fcn.140014810
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
call fcn.140031de0
test eax, eax
je 0x140032587
mov rax, rdi
inc rax
cmp word [r12 + rax*2], r13w
jne 0x140032704
mov r8d, eax
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.14001bf50
mov rdx, qword [r14]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.14001bf50
mov rbx, qword [rsp + 0x30]
cmp dword [rbx - 8], 1
jle 0x14003274c
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.14000da70
mov rbx, qword [rsp + 0x30]
xor edx, edx
mov rcx, rbx
call fcn.14007f080
mov esi, eax
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.140289b40
test eax, eax
js 0x140032782
cmp eax, dword [rbx - 0xc]
jg 0x140032782
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r13w
jmp 0x140032587
call fcn.140281ffc
int3
mov ecx, 0x80070057
call fcn.14000dc70
nop
mov ecx, 0x80004005
call fcn.14000dc70
nop
call fcn.140281ffc
int3
mov ecx, 0x80070057
call fcn.14000dc70
int3