Function at 0x40b560
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45d0c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
mov eax, dword [0x484894]
push ebx
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x164], eax
mov dword [esp + 0x2c], 0
call fcn.00433210
lea ecx, [esp + 0x10]
mov dword [esp + 0x174], 0
call fcn.00433210
lea ecx, [esp + 0x24]
mov byte [esp + 0x174], 1
call fcn.00433210
push 1
mov bl, 2
push str.SoftwareAheadNero_WaveEditor_
lea ecx, [esp + 0x20]
mov byte [esp + 0x17c], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.Directories
push eax
push ecx
mov byte [esp + 0x188], 3
call fcn.00408320
add esp, 0xc
push reloc.DSOUND.dll_DirectSoundEnumerateA
lea ecx, [esp + 0x28]
call fcn.00433220
lea ecx, [esp + 0x18]
mov byte [esp + 0x174], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 1
push str.SoftwareAheadNero_WaveEditor_
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push ecx
mov edx, esp
mov dword [esp + 0x10], esp
push str.Directories
push eax
push edx
mov byte [esp + 0x188], 4
call fcn.00408320
add esp, 0xc
push reloc.DSOUND.dll_DirectSoundCreate
lea ecx, [esp + 0x1c]
call fcn.00433220
lea ecx, [esp + 0x18]
mov byte [esp + 0x174], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.SoftwareAheadShared_
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push reloc.DSOUND.dll_DirectSoundEnumerateA
lea ecx, [esp + 0x30]
call fcn.00433220
mov eax, dword [ebp + 8]
dec eax
cmp eax, 7
ja case.default.0x40b699
jmp dword [eax*4 + 0x40bca8]
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push 0x465798
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.Presets
mov byte [esp + 0x180], 5
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x180], bl
call fcn.004332b0
mov esi, dword [ebp + 0xc]
push eax
mov ecx, esi
mov byte [esp + 0x178], 6
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0x18]
mov byte [esp + 0x174], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x40b76c
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.Presets
mov byte [esp + 0x180], 7
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea ecx, [esp + 0x5c]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x180], bl
call fcn.004332b0
push eax
mov ecx, esi
mov byte [esp + 0x178], 8
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0x54]
mov byte [esp + 0x174], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push esi
call fcn.0040b530
add esp, 4
test eax, eax
jne 0x40bb7d
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x465798
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.Presets
mov byte [esp + 0x180], 9
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea edx, [esp + 0x3c]
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x180], bl
call fcn.004332b0
push eax
mov ecx, esi
mov byte [esp + 0x178], 0xa
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0x34]
jmp 0x40bb70
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x465798
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.Plugin
mov byte [esp + 0x180], 0xb
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x180], bl
call fcn.004332b0
mov esi, dword [ebp + 0xc]
push eax
mov ecx, esi
mov byte [esp + 0x178], 0xc
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0x38]
mov byte [esp + 0x174], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x40b8a4
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.Plugin
mov byte [esp + 0x180], 0xd
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea ecx, [esp + 0x48]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x180], bl
call fcn.004332b0
push eax
mov ecx, esi
mov byte [esp + 0x178], 0xe
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0x40]
mov byte [esp + 0x174], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push esi
call fcn.0040b530
add esp, 4
test eax, eax
jne 0x40bc0d
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x465798
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.Plugin
mov byte [esp + 0x180], 0xf
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x180], bl
call fcn.004332b0
push eax
mov ecx, esi
mov byte [esp + 0x178], 0x10
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0x48]
mov byte [esp + 0x174], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x40bc0d
mov esi, dword [ebp + 0xc]
push 0x104
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.Peakfiles
mov byte [esp + 0x180], 0x11
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x180], bl
call fcn.004332b0
push eax
mov ecx, esi
mov byte [esp + 0x178], 0x12
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0x50]
mov byte [esp + 0x174], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x40bc0d
mov esi, dword [ebp + 0xc]
push 0x104
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::ReleaseBuffer]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.Temporary
mov byte [esp + 0x180], 0x13
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x180], bl
call fcn.004332b0
push eax
mov ecx, esi
mov byte [esp + 0x178], 0x14
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0x30]
mov byte [esp + 0x174], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x40bc0d
lea edx, [esp + 0x58]
push edx
push 0
push 0
push 5
push 0
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
test eax, eax
mov esi, dword [ebp + 0xc]
jne 0x40ba58
lea eax, [esp + 0x58]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_3]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.MyMusic
mov byte [esp + 0x180], 0x15
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x180], bl
call fcn.004332b0
push eax
mov ecx, esi
mov byte [esp + 0x178], 0x16
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x174], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
jmp 0x40bc0d
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x465798
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.AudioPluginManager
mov byte [esp + 0x180], 0x17
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x30]
mov byte [esp + 0x180], bl
call fcn.004332b0
mov esi, dword [ebp + 0xc]
push eax
mov ecx, esi
mov byte [esp + 0x178], 0x18
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0x4c]
jmp 0x40bb70
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x465798
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push str.AudioPlugin
mov byte [esp + 0x180], 0x19
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x180], bl
call fcn.004332b0
mov esi, dword [ebp + 0xc]
push eax
mov ecx, esi
mov byte [esp + 0x178], 0x1a
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_2]
lea ecx, [esp + 0x44]
mov byte [esp + 0x174], bl
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 0x465798
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
jne 0x40bc0d
lea ecx, [esp + 0x24]
mov byte [esp + 0x174], 1
call fcn.00433550
lea ecx, [esp + 0x10]
mov byte [esp + 0x174], 0
call fcn.00433550
lea ecx, [esp + 0x1c]
mov dword [esp + 0x174], 0xffffffff
call fcn.00433550
xor al, al
mov ecx, dword [esp + 0x16c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x164]
call fcn.0045b711
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x58]
push ecx
push 0
push 0
push 0x15
push 0
call dword [sym.imp.SHFOLDER.dll_SHGetFolderPathA]
test eax, eax
jne case.default.0x40b699
mov esi, dword [ebp + 0xc]
lea edx, [esp + 0x58]
push edx
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::operator_3]
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetLength]
test eax, eax
jle 0x40bc45
push 1
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Right]
push 0x4681e4
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x40bc45
mov bl, 1
jmp 0x40bc47
xor bl, bl
test byte [esp + 0x2c], 1
je 0x40bc58
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test bl, bl
je 0x40bc69
push 0x4681e4
mov ecx, esi
call dword [0x464b38]
lea ecx, [esp + 0x24]
mov byte [esp + 0x174], 1
call fcn.00433550
lea ecx, [esp + 0x10]
mov byte [esp + 0x174], 0
call fcn.00433550
lea ecx, [esp + 0x1c]
mov dword [esp + 0x174], 0xffffffff
call fcn.00433550
mov al, 1
jmp 0x40bbc6