Function at 0x1400ba6c0
Capabilities:
Get common file path

Disassembly:
mov r11, rsp
push r12
push r14
push r15
sub rsp, 0x460
mov qword [r11 - 0x3e0], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x20], rdi
mov rax, qword [0x1404716f0]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov r15, r8
movsxd rsi, edx
xor edi, edi
mov dword [rsp + 0x34], edi
mov qword [r8], rdi
mov dword [rsp + 0x38], edi
mov r14b, 1
mov byte [rsp + 0x30], r14b
lea rax, [r11 - 0x3c0]
mov qword [r11 - 0x3d8], rax
mov ebx, 0x3f
mov qword [r11 - 0x3d0], rbx
lea rax, [r11 - 0x3c0]
mov qword [r11 - 0x3c8], rax
mov byte [rsp + 0xb8], dil
cmp esi, 0x13
ja case.0x1400ba75f.8
lea r12, [0x140000000]
mov eax, dword [r12 + rsi*4 + 0xbade8]
add rax, r12
jmp rax
mov edi, 0x25
mov dword [rsp + 0x38], edi
jmp 0x1400ba85e
cmp ecx, 1
jne 0x1400ba782
mov edi, 0x19
mov dword [rsp + 0x38], edi
jmp 0x1400ba85e
cmp ecx, 2
jne 0x1400bacca
mov edi, reloc.OLEAUT32.dll_SafeArrayGetDim
mov dword [rsp + 0x38], edi
jmp 0x1400ba85e
cmp ecx, 1
jne 0x1400ba7ac
mov edi, 0x8023
mov dword [rsp + 0x38], edi
jmp 0x1400ba85e
cmp ecx, 2
jne 0x1400ba7bf
mov edi, 0x801a
mov dword [rsp + 0x38], edi
jmp 0x1400ba85e
cmp ecx, 3
jne 0x1400baceb
mov edi, 0x801c
mov dword [rsp + 0x38], edi
jmp 0x1400ba85e
lea rdx, [rsp + 0x340]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x1400bad0c
jmp 0x1400ba856
mov edx, 0x104
lea rcx, [rsp + 0x340]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__getcwd]
test rax, rax
je 0x1400bad4e
jmp 0x1400ba856
lea rcx, str.SystemDrive
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
mov rdx, rax
mov r8d, 0x104
lea rcx, [rsp + 0x340]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
lea rcx, [rsp + 0x340]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1400ba844
test rax, rax
je 0x1400bad6f
xor r14b, r14b
mov byte [rsp + 0x30], r14b
lea eax, [rsi - 3]
cmp eax, 0x10
ja case.0x1400ba877.4
cdqe
mov ecx, dword [r12 + rax*4 + 0xbae38]
add rcx, r12
jmp rcx
lea rax, [rsp + 0x118]
mov qword [rsp + 0x100], rax
mov qword [rsp + 0x108], rbx
lea rdx, [rsp + 0x118]
mov qword [rsp + 0x110], rdx
mov byte [rsp + 0x118], 0
lea rcx, str.Waves_Audio
mov qword [rsp + 0x68], rcx
movzx r8d, byte [rcx]
test r8b, r8b
je 0x1400ba8f6
add rax, rbx
cmp rdx, rax
jae 0x1400ba8f6
inc rcx
mov qword [rsp + 0x68], rcx
mov byte [rdx], r8b
mov rdx, qword [rsp + 0x110]
inc rdx
mov qword [rsp + 0x110], rdx
mov rbx, qword [rsp + 0x108]
mov rax, qword [rsp + 0x100]
jmp 0x1400ba8b5
mov byte [rdx], 0
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0xa0]
call sym.WavesHeadTracker.exe_public:_class_WCFixedString_63_____ptr64___cdecl_WCFixedString_63_::operator_class_WCFixedString_63__const____ptr64____ptr64
jmp case.0x1400ba877.4
lea rax, [rsp + 0x178]
mov qword [rsp + 0x160], rax
mov qword [rsp + 0x168], rbx
lea rdx, [rsp + 0x178]
mov qword [rsp + 0x170], rdx
mov byte [rsp + 0x178], 0
lea rcx, str.Waves_Audio_Caches
mov qword [rsp + 0x70], rcx
nop
movzx r8d, byte [rcx]
test r8b, r8b
je 0x1400ba991
add rax, rbx
cmp rdx, rax
jae 0x1400ba991
inc rcx
mov qword [rsp + 0x70], rcx
mov byte [rdx], r8b
mov rdx, qword [rsp + 0x170]
inc rdx
mov qword [rsp + 0x170], rdx
mov rbx, qword [rsp + 0x168]
mov rax, qword [rsp + 0x160]
jmp 0x1400ba950
mov byte [rdx], 0
lea rdx, [rsp + 0x160]
lea rcx, [rsp + 0xa0]
call sym.WavesHeadTracker.exe_public:_class_WCFixedString_63_____ptr64___cdecl_WCFixedString_63_::operator_class_WCFixedString_63__const____ptr64____ptr64
jmp case.0x1400ba877.4
lea rax, [rsp + 0x1d8]
mov qword [rsp + 0x1c0], rax
mov qword [rsp + 0x1c8], rbx
lea rdx, [rsp + 0x1d8]
mov qword [rsp + 0x1d0], rdx
mov byte [rsp + 0x1d8], 0
lea rcx, str.Waves_Audio_Preferences
mov qword [rsp + 0x78], rcx
nop word [rax + rax]
movzx r8d, byte [rcx]
test r8b, r8b
je 0x1400baa31
add rax, rbx
cmp rdx, rax
jae 0x1400baa31
inc rcx
mov qword [rsp + 0x78], rcx
mov byte [rdx], r8b
mov rdx, qword [rsp + 0x1d0]
inc rdx
mov qword [rsp + 0x1d0], rdx
mov rbx, qword [rsp + 0x1c8]
mov rax, qword [rsp + 0x1c0]
jmp 0x1400ba9f0
mov byte [rdx], 0
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0xa0]
call sym.WavesHeadTracker.exe_public:_class_WCFixedString_63_____ptr64___cdecl_WCFixedString_63_::operator_class_WCFixedString_63__const____ptr64____ptr64
jmp case.0x1400ba877.4
lea rax, [rsp + 0x238]
mov qword [rsp + 0x220], rax
mov qword [rsp + 0x228], rbx
lea rdx, [rsp + 0x238]
mov qword [rsp + 0x230], rdx
mov byte [rsp + 0x238], 0
lea rcx, str.Waves_Audio_ScanView
mov qword [rsp + 0x80], rcx
nop dword [rax]
movzx r8d, byte [rcx]
test r8b, r8b
je 0x1400baad4
add rax, rbx
cmp rdx, rax
jae 0x1400baad4
inc rcx
mov qword [rsp + 0x80], rcx
mov byte [rdx], r8b
mov rdx, qword [rsp + 0x230]
inc rdx
mov qword [rsp + 0x230], rdx
mov rbx, qword [rsp + 0x228]
mov rax, qword [rsp + 0x220]
jmp 0x1400baa90
mov byte [rdx], 0
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0xa0]
call sym.WavesHeadTracker.exe_public:_class_WCFixedString_63_____ptr64___cdecl_WCFixedString_63_::operator_class_WCFixedString_63__const____ptr64____ptr64
jmp case.0x1400ba877.4
lea rax, [rsp + 0x298]
mov qword [rsp + 0x280], rax
mov qword [rsp + 0x288], rbx
lea rdx, [rsp + 0x298]
mov qword [rsp + 0x290], rdx
mov byte [rsp + 0x298], 0
lea rcx, str.Waves_Audio_Waves_Local_Server
mov qword [rsp + 0x88], rcx
movzx r8d, byte [rcx]
test r8b, r8b
je 0x1400bab74
add rax, rbx
cmp rdx, rax
jae 0x1400bab74
inc rcx
mov qword [rsp + 0x88], rcx
mov byte [rdx], r8b
mov rdx, qword [rsp + 0x290]
inc rdx
mov qword [rsp + 0x290], rdx
mov rbx, qword [rsp + 0x288]
mov rax, qword [rsp + 0x280]
jmp 0x1400bab30
mov byte [rdx], 0
lea rdx, [rsp + 0x280]
lea rcx, [rsp + 0xa0]
call sym.WavesHeadTracker.exe_public:_class_WCFixedString_63_____ptr64___cdecl_WCFixedString_63_::operator_class_WCFixedString_63__const____ptr64____ptr64
jmp case.0x1400ba877.4
lea rax, [rsp + 0x2f8]
mov qword [rsp + 0x2e0], rax
mov qword [rsp + 0x2e8], rbx
lea rdx, [rsp + 0x2f8]
mov qword [rsp + 0x2f0], rdx
mov byte [rsp + 0x2f8], 0
lea rcx, str.Waves_Audio_Logs
mov qword [rsp + 0x90], rcx
movzx r8d, byte [rcx]
test r8b, r8b
je 0x1400bac14
add rax, rbx
cmp rdx, rax
jae 0x1400bac14
inc rcx
mov qword [rsp + 0x90], rcx
mov byte [rdx], r8b
mov rdx, qword [rsp + 0x2f0]
inc rdx
mov qword [rsp + 0x2f0], rdx
mov rbx, qword [rsp + 0x2e8]
mov rax, qword [rsp + 0x2e0]
jmp 0x1400babd0
mov byte [rdx], 0
lea rdx, [rsp + 0x2e0]
lea rcx, [rsp + 0xa0]
call sym.WavesHeadTracker.exe_public:_class_WCFixedString_63_____ptr64___cdecl_WCFixedString_63_::operator_class_WCFixedString_63__const____ptr64____ptr64
test r14b, r14b
je 0x1400bac56
lea rax, [rsp + 0x340]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, edi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x1400bad90
mov r8b, 1
mov rdx, r15
lea rcx, [rsp + 0x340]
call sym.WavesHeadTracker.exe_int___cdecl_wvWavesV11_0_1_1::FM::CreatePathRefFromString_char_const____ptr64__struct_WTPathType____ptr64____ptr64__bool_
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x1400badb1
mov rdx, qword [rsp + 0xa0]
cmp rdx, qword [rsp + 0xb0]
je 0x1400bac96
mov r8, r15
mov rcx, qword [r15]
call sym.WavesHeadTracker.exe_int___cdecl_wvWavesV11_0_1_1::FM::CreatePathRef_struct_WTPathType__const___ptr64__char_const____ptr64__struct_WTPathType____ptr64____ptr64_
mov dword [rsp + 0x34], eax
jmp 0x1400bac9c
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.14010a310
lea r11, [rsp + 0x460]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov dword [rsp + 0x34], 0xfffffc08
mov dword [rsp + 0x3c], 0xfffffc08
lea rdx, [0x140456c10]
lea rcx, [rsp + 0x3c]
call sub.VCRUNTIME140.dll__CxxThrowException
mov dword [rsp + 0x34], 0xfffffc08
mov dword [rsp + 0x40], 0xfffffc08
lea rdx, [0x140456c10]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
mov dword [rsp + 0x34], 0xfffffc08
mov dword [rsp + 0x44], 0xfffffc08
lea rdx, [0x140456c10]
lea rcx, [rsp + 0x44]
call sub.VCRUNTIME140.dll__CxxThrowException
mov dword [rsp + 0x34], 0xfffffc08
mov dword [rsp + 0x48], 0xfffffc08
lea rdx, [0x140456c10]
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll__CxxThrowException
mov dword [rsp + 0x34], 0xfffffc08
mov dword [rsp + 0x4c], 0xfffffc08
lea rdx, [0x140456c10]
lea rcx, [rsp + 0x4c]
call sub.VCRUNTIME140.dll__CxxThrowException
mov dword [rsp + 0x34], 0xfffffc08
mov dword [rsp + 0x50], 0xfffffc08
lea rdx, [0x140456c10]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
mov dword [rsp + 0x34], 0xfffffc08
mov dword [rsp + 0x54], 0xfffffc08
lea rdx, [0x140456c10]
lea rcx, [rsp + 0x54]
call sub.VCRUNTIME140.dll__CxxThrowException
mov dword [rsp + 0x58], eax
lea rdx, [0x140456c10]
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll__CxxThrowException
mov dword [rsp + 0x34], 0xfffffc08
mov dword [rsp + 0x5c], 0xfffffc08
lea rdx, [0x140456c10]
lea rcx, [rsp + 0x5c]
call sub.VCRUNTIME140.dll__CxxThrowException
int3