Function at 0x1400b7010
Capabilities:
Get common file path

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x350
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x3a0], rbx
mov rax, qword [0x1401ea158]
xor rax, rsp
mov qword [rsp + 0x340], rax
mov r14, r9
mov r15, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0xc8
lea rcx, [rsp + 0x60]
call fcn.1401489d0
cmp dword [0x140206e14], 0
jne 0x1400b70b2
cmp dword [0x140206e38], 0
jne 0x1400b70b2
mov rax, qword [rdi + 0x20]
xor ebp, ebp
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0xc7
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
or rsi, 0xffffffffffffffff
mov r9d, esi
mov r8, qword [rax + 0x118]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x1400b72d5
call fcn.140129a50
mov rdx, rax
xor ebp, ebp
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x1400b70d3
mov ecx, 0x80004005
call fcn.140002d80
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rdx, [0x14017f438]
or rsi, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x1400b711f
movzx edi, dx
mov ecx, edi
call fcn.140138984
test rax, rax
je 0x1400b7140
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140004d70
mov rbx, qword [rsp + 0x40]
jmp 0x1400b7140
xor eax, eax
mov rcx, rsi
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x40]
call fcn.1400032e0
mov rbx, qword [rsp + 0x40]
mov edx, 0x104
lea rcx, [rsp + 0x130]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov rcx, rsi
lea rdi, [rsp + 0x130]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x1400b71cf
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x1400b725b
cmp dword [rdx + 0x10], eax
jge 0x1400b71a1
cmp dword [rbx - 0xc], eax
jge 0x1400b7196
mov ecx, 0x80070057
call fcn.140002d80
int3
mov dword [rbx - 0x10], ebp
mov word [rbx], ax
jmp 0x1400b725b
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400b71b8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x40], rax
jmp 0x1400b725b
mov r12d, dword [rbx - 0x10]
lea r13, [rsp + 0x130]
sub r13, rbx
sar r13, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x1400b7203
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140002da0
mov rbx, qword [rsp + 0x40]
cmp r13, r12
ja 0x1400b7223
movsxd rax, edi
lea r12, [rax + rax]
lea r8, [rbx + r13*2]
mov r9, r12
mov rdx, r12
mov rcx, rbx
call fcn.140144840
jmp 0x1400b7240
movsxd rax, edi
lea r12, [rax + rax]
mov r9, r12
lea r8, [rsp + 0x130]
mov rdx, r12
mov rcx, rbx
call fcn.1401448d0
test edi, edi
js 0x1400b735b
cmp edi, dword [rbx - 0xc]
jg 0x1400b735b
mov dword [rbx - 0x10], edi
mov word [r12 + rbx], 0
cmp dword [0x140206e38], 0
je 0x1400b7277
lea rdx, str.MaxxAudioIntelSkylake64.dll
lea rcx, [rsp + 0x40]
call fcn.1400b7400
jmp 0x1400b7288
lea rdx, str.MaxxAudioVienna264.dll
lea rcx, [rsp + 0x40]
call fcn.1400b7400
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], 0xc7
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, esi
mov rdi, qword [rsp + 0x40]
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
nop
lea rdx, [rdi - 0x18]
mov eax, esi
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x1400b72d5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
call fcn.140129a50
mov rdx, rax
mov ecx, ebp
test rax, rax
setne cl
test ecx, ecx
jne 0x1400b72f4
mov ecx, 0x80004005
call fcn.140002d80
int3
mov rax, qword [rax]
mov rcx, rdx
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x60]
mov r8, r15
lea rdx, str._s__s
lea rcx, [rsp + 0x48]
call fcn.1400b7a80
mov rdi, qword [rsp + 0x48]
mov rax, qword [0x140206b60]
test rax, rax
je 0x1400b733d
mov r8, r14
xor edx, edx
mov rcx, rdi
call rax
mov rbp, rax
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], esi
add esi, 0xffffffff
test esi, esi
jg 0x1400b7356
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, rbp
jmp 0x1400b7366
mov ecx, 0x80070057
call fcn.140002d80
nop
mov rcx, qword [rsp + 0x340]
xor rcx, rsp
call fcn.1401447b0
mov rbx, qword [rsp + 0x3a0]
add rsp, 0x350
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret