Function at 0x140034410
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.14029e430
sub rsp, rax
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x20c0], rbx
mov rax, qword [0x1403d88e8]
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.1400f9930
mov rcx, rax
test rax, rax
je 0x14003481c
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rbx, [0x140345b70]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140015a40
or rdi, 0xffffffffffffffff
test al, al
jne 0x1400344bd
mov rax, rdi
inc rax
cmp word [rbx + rax*2], 0
jne 0x1400344a2
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400105e0
nop
xor r13d, r13d
mov esi, r13d
mov edx, 0x1000
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r12, [0x1403489c0]
test eax, eax
je 0x1400346a4
lea rcx, [rsp + 0x60]
mov rax, rdi
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], r13w
jne 0x1400344f0
cmp word [rsp + rax*2 + 0x5e], 0x5c
jne 0x14003451d
lea rax, [rax*2 - 2]
cmp rax, 0x2000
jae 0x140034827
mov word [rsp + rax + 0x60], r13w
lea rcx, [rsp + 0x60]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140034525
mov r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.1400105e0
lea rdx, [0x1403466e8]
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], r13w
jne 0x140034550
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.14001cfc0
mov rdx, qword [r15]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.14001cfc0
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx - 0x18]
call fcn.140015740
add rax, 0x18
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x40]
call fcn.140033e80
test eax, eax
je 0x1400346a9
mov rax, rdi
inc rax
cmp word [r12 + rax*2], r13w
jne 0x1400345a4
mov r8d, eax
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.14001cfc0
mov rdx, qword [r14]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.14001cfc0
mov rbx, qword [rsp + 0x30]
cmp dword [rbx - 8], 1
jle 0x1400345ec
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.14000dc90
mov rbx, qword [rsp + 0x30]
xor edx, edx
mov rcx, rbx
call fcn.140081d70
mov esi, eax
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1402a58a8
test eax, eax
js 0x14003482d
cmp eax, dword [rbx - 0xc]
jg 0x14003482d
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r13w
test esi, esi
je 0x1400346a9
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140034641
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 0x14003465e
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 0x140034678
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.14029d880
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.14029ff20
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 0x140034627
lea rcx, [rsp + 0x60]
mov rax, rdi
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], r13w
jne 0x1400346f0
cmp word [rsp + rax*2 + 0x5e], 0x5c
jne 0x14003471d
lea rax, [rax*2 - 2]
cmp rax, 0x2000
jae 0x140034838
mov word [rsp + rax + 0x60], r13w
lea rcx, [rsp + 0x60]
mov rax, rdi
inc rax
cmp word [rcx + rax*2], r13w
jne 0x140034725
mov r8d, eax
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x30]
call fcn.1400105e0
lea rdx, str.RealtekAudioAP_
mov rax, rdi
nop dword [rax + rax]
inc rax
cmp word [rdx + rax*2], r13w
jne 0x140034750
mov r8d, eax
lea rcx, [rsp + 0x30]
call fcn.14001cfc0
mov rdx, qword [r15]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.14001cfc0
mov rbx, qword [rsp + 0x30]
lea rcx, [rbx - 0x18]
call fcn.140015740
add rax, 0x18
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
call fcn.140033e80
test eax, eax
je 0x140034627
mov rax, rdi
inc rax
cmp word [r12 + rax*2], r13w
jne 0x1400347a4
mov r8d, eax
mov rdx, r12
lea rcx, [rsp + 0x30]
call fcn.14001cfc0
mov rdx, qword [r14]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.14001cfc0
mov rbx, qword [rsp + 0x30]
cmp dword [rbx - 8], 1
jle 0x1400347ec
mov edx, dword [rbx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.14000dc90
mov rbx, qword [rsp + 0x30]
xor edx, edx
mov rcx, rbx
call fcn.140081d70
mov esi, eax
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1402a58a8
test eax, eax
js 0x14003483e
cmp eax, dword [rbx - 0xc]
jg 0x14003483e
mov dword [rbx - 0x10], eax
cdqe
mov word [rbx + rax*2], r13w
jmp 0x140034627
mov ecx, 0x80004005
call fcn.14000de90
nop
call fcn.14029dc94
int3
mov ecx, 0x80070057
call fcn.14000de90
int3
call fcn.14029dc94
int3
mov ecx, 0x80070057
call fcn.14000de90
int3