Function at 0x4d1900
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x128]
sub esp, 0x128
push 0xffffffffffffffff
push 0x5598f8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5bc9cc]
xor eax, ebp
mov dword [ebp + 0x124], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x138]
mov dword [ebp - 0x20], eax
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [eax], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
mov ebx, 1
mov byte [ebp - 0x11], bl
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], esi
mov byte [ebp + 4], 0
mov byte [ebp - 4], bl
mov edi, dword [ebp + 0x134]
cmp edi, 0xd
ja case.0x4d1981.8
movzx eax, byte [edi + 0x4d1c14]
jmp dword [eax*4 + 0x4d1bf4]
mov esi, 0x25
mov dword [ebp - 0x1c], esi
jmp 0x4d1add
mov eax, dword [ebp + 0x130]
cmp eax, ebx
jne 0x4d19ac
mov esi, 0x19
mov dword [ebp - 0x1c], esi
jmp 0x4d1add
cmp eax, 2
jne 0x4d19be
mov esi, 0x10
mov dword [ebp - 0x1c], esi
jmp 0x4d1add
mov eax, 0xfffffc08
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], eax
push 0x596ea0
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00530358
mov eax, dword [ebp + 0x130]
cmp eax, ebx
jne 0x4d19ee
mov esi, 0x8023
mov dword [ebp - 0x1c], esi
jmp 0x4d1add
cmp eax, 2
jne 0x4d1a00
mov esi, 0x801a
mov dword [ebp - 0x1c], esi
jmp 0x4d1add
mov eax, 0xfffffc08
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x44], eax
push 0x596ea0
lea edx, [ebp - 0x44]
push edx
call fcn.00530358
lea eax, [ebp + 0x1c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
ja 0x4d1ad8
mov eax, 0xfffffc08
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x40], eax
push 0x596ea0
lea ecx, [ebp - 0x40]
push ecx
jmp 0x4d1ad3
mov eax, 0xfffffc08
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x24], eax
push 0x596ea0
lea edx, [ebp - 0x24]
push edx
call fcn.00530358
push 0x104
lea eax, [ebp + 0x1c]
push eax
call fcn.0052cbd8
add esp, 8
test eax, eax
jne 0x4d1ad8
mov eax, 0xfffffc08
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x3c], eax
push 0x596ea0
lea ecx, [ebp - 0x3c]
push ecx
jmp 0x4d1ad3
push 0x104
push str.SystemDrive
call fcn.0052cca2
add esp, 4
push eax
lea edx, [ebp + 0x1c]
push edx
call fcn.0052c7a0
add esp, 0xc
lea eax, [ebp + 0x1c]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4d1ab2
sub eax, edx
jne 0x4d1ad8
mov eax, 0xfffffc08
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x34], eax
push 0x596ea0
lea eax, [ebp - 0x34]
push eax
call fcn.00530358
xor bl, bl
mov byte [ebp - 0x11], bl
mov eax, edi
sub eax, 3
je 0x4d1afc
sub eax, 8
je 0x4d1af5
sub eax, 2
jne 0x4d1b09
push str.Waves_Audio
jmp 0x4d1b01
push str.Waves_Audio_Caches
jmp 0x4d1b01
push str.Waves_Audio_Preferences
lea ecx, [ebp]
call fcn.0049cc60
test bl, bl
je 0x4d1b3b
lea ecx, [ebp + 0x1c]
push ecx
push 0
push 0
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
je 0x4d1b3b
mov eax, 0xfffffc08
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x38], eax
push 0x596ea0
lea edx, [ebp - 0x38]
push edx
call fcn.00530358
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp + 0x1c]
push ecx
call sym.RtHDVCpl.exe_long_int___cdecl_wvFM::CreatePathRefFromString_char_const___class_WTPathType___
add esp, 8
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x4d1b65
mov dword [ebp - 0x28], esi
push 0x596ea0
lea edx, [ebp - 0x28]
push edx
call fcn.00530358
cmp dword [ebp + 0x14], 0
je 0x4d1b8c
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x4d1b77
lea eax, [ebp + 4]
mov ecx, dword [ebp - 0x20]
push ecx
push eax
mov eax, dword [ecx]
push eax
call sym.RtHDVCpl.exe_long_int___cdecl_wvFM::CreatePathRef_class_WTPathType__const__char_const___class_WTPathType___
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.0049cc30
mov dword [ebp - 4], 0xffffffff
jmp 0x4d1bca
mov eax, 0xfffffc08
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x30], eax
push 0x596ea0
lea ecx, [ebp - 0x30]
push ecx
call fcn.00530358
mov dword [ebp - 4], 0xffffffff
mov eax, 0x4d1bc7
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x124]
xor ecx, ebp
call fcn.0052944d
add ebp, 0x128
mov esp, ebp
pop ebp
ret