Function at 0x40b4d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45ba51
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x164
mov eax, dword [0x482888]
push ebx
push esi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x164], eax
mov dword [esp + 0x2c], 0
call fcn.00432ac0
lea ecx, [esp + 0x10]
mov dword [esp + 0x174], 0
call fcn.00432ac0
lea ecx, [esp + 0x24]
mov byte [esp + 0x174], 1
call fcn.00432ac0
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.004082b0
add esp, 0xc
push reloc.DSOUND.dll_DirectSoundEnumerateA
lea ecx, [esp + 0x28]
call fcn.00432ad0
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.004082b0
add esp, 0xc
push reloc.DSOUND.dll_DirectSoundCreate
lea ecx, [esp + 0x1c]
call fcn.00432ad0
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.00432ad0
mov eax, dword [ebp + 8]
dec eax
cmp eax, 7
ja case.default.0x40b609
jmp dword [eax*4 + 0x40bc18]
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push 0x464770
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.00432b60
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 0x40b6dc
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.00432b60
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.0040b4a0
add esp, 4
test eax, eax
jne 0x40baed
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x464770
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.00432b60
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 0x40bae0
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x464770
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.00432b60
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 0x40b814
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.00432b60
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.0040b4a0
add esp, 4
test eax, eax
jne 0x40bb7d
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x464770
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.00432b60
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 0x40bb7d
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.00432b60
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 0x40bb7d
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.00432b60
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 0x40bb7d
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 0x40b9c8
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.00432b60
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 0x40bb7d
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x464770
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.00432b60
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 0x40bae0
push ecx
mov ecx, esp
mov dword [esp + 0x10], esp
push 0x464770
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.00432b60
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 0x464770
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
jne 0x40bb7d
lea ecx, [esp + 0x24]
mov byte [esp + 0x174], 1
call fcn.00432e00
lea ecx, [esp + 0x10]
mov byte [esp + 0x174], 0
call fcn.00432e00
lea ecx, [esp + 0x1c]
mov dword [esp + 0x174], 0xffffffff
call fcn.00432e00
xor al, al
mov ecx, dword [esp + 0x16c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x164]
call fcn.0045a0a1
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.0x40b609
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 0x40bbb5
push 1
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Right]
push 0x4671bc
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [sym.imp.MFC71.DLL_ATL::CStringT::Compare]
test eax, eax
je 0x40bbb5
mov bl, 1
jmp 0x40bbb7
xor bl, bl
test byte [esp + 0x2c], 1
je 0x40bbc8
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
test bl, bl
je 0x40bbd9
push 0x4671bc
mov ecx, esi
call dword [0x463b2c]
lea ecx, [esp + 0x24]
mov byte [esp + 0x174], 1
call fcn.00432e00
lea ecx, [esp + 0x10]
mov byte [esp + 0x174], 0
call fcn.00432e00
lea ecx, [esp + 0x1c]
mov dword [esp + 0x174], 0xffffffff
call fcn.00432e00
mov al, 1
jmp 0x40bb36