Function at 0x406c50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x489f52
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa68
mov eax, dword [0x4abf20]
push ebx
mov dword [esp + 0xa64], eax
mov eax, dword [ecx + 0x4c]
push esi
mov esi, dword [0x4adb4c]
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], esi
jne 0x406ca4
call fcn.00482290
test eax, eax
je 0x4071fe
xor eax, eax
mov word [esp + 0x40], bx
mov ecx, 0x103
lea edi, [esp + 0x42]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x40]
push eax
push esi
call fcn.00432d20
push 0x20
call fcn.00484484
add esp, 0xc
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0xa7c], ebx
je 0x406cea
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
call fcn.00410240
jmp 0x406cec
xor eax, eax
cmp eax, ebx
mov dword [esp + 0xa7c], 0xffffffff
mov dword [0x4ac1b0], eax
je 0x4071c4
cmp dword [eax + 0x14], ebx
je 0x4071c4
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx]
mov dword [eax + 0x18], ecx
mov eax, dword [0x4ac1b0]
mov ecx, dword [eax + 0x14]
xor edi, edi
cmp ecx, ebx
jbe 0x406d59
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x18]
cmp ecx, edx
je 0x406d3c
mov edx, dword [eax + 0x18]
mov ecx, dword [ecx + 8]
mov edx, dword [edx]
mov dword [eax + 0x18], edx
mov esi, ecx
jmp 0x406d3e
xor esi, esi
mov ebx, dword [esi]
call fcn.00436e80
push eax
push esi
call dword [ebx + 0x60]
mov eax, dword [0x4ac1b0]
mov ecx, dword [eax + 0x14]
inc edi
xor ebx, ebx
cmp edi, ecx
jb 0x406d23
mov dword [esp + 0xc], ebx
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx]
mov dword [eax + 0x18], ecx
mov eax, dword [0x4ac1b0]
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x18]
cmp ecx, edx
je 0x406e24
mov esi, dword [ecx + 8]
cmp esi, ebx
mov ecx, dword [ecx]
mov dword [eax + 0x18], ecx
je 0x406e24
mov edx, dword [esi]
push esi
call dword [edx + 0x1c]
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [eax + 0x20]
test eax, eax
jl 0x406d65
lea ecx, [ecx]
mov edx, dword [esp + 0xc]
push edx
mov ecx, 0x4ac22c
call fcn.00438d20
call fcn.0042a7c0
test eax, eax
je 0x406e00
mov eax, dword [esi]
push esi
call dword [eax + 0x28]
cmp eax, 3
jne 0x406e00
push ebx
lea ecx, [esp + 0x14]
push ecx
push str.ACDDEFAULTPLAY
mov dword [esp + 0x1c], ebx
call fcn.00436820
mov eax, dword [esp + 0x1c]
add esp, 0xc
cmp eax, ebx
jne 0x406e00
push 1
push str.Audio_CD
push str.AudioCD
mov dword [0x4ac1ac], 1
call fcn.00425720
add esp, 0xc
mov edx, dword [esi]
push esi
call dword [edx + 0x28]
cmp eax, 3
jne 0x406e10
call fcn.004378d0
mov eax, dword [esi]
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [eax + 0x20]
test eax, eax
jge 0x406da0
jmp 0x406d65
push 0x490310
push 0x208
lea edx, [esp + 0x48]
push edx
push str.UIListName
call fcn.004369d0
add esp, 0x10
push ebx
lea eax, [esp + 0x454]
push eax
push 0x104
push ebx
lea ecx, [esp + 0x50]
push ecx
push ebx
call dword [0x4ac058]
test eax, eax
mov ebx, 2
jne 0x406fd8
lea edx, [esp + 0x18]
push edx
push str.PlayListShellPath
mov dword [esp + 0x20], 5
call fcn.00436960
add esp, 8
test eax, eax
je 0x406ede
push str.PlayListCustomPath
lea eax, [esp + 0x44]
push str.PlayListShellPath
push eax
call fcn.004352f0
add esp, 0xc
push 0x490414
lea ecx, [esp + 0x44]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x40]
push eax
call fcn.00401cc0
add esp, 4
test eax, eax
jne 0x406fd8
push eax
push 0x80
push 4
push eax
push ebx
push 0x40000000
lea ecx, [esp + 0x58]
push ecx
jmp 0x406fbd
lea edx, [esp + 0x40]
push edx
call fcn.00434d50
add esp, 4
test eax, eax
lea eax, [esp + 0x40]
je 0x406f04
push 0x490414
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x406f98
push 1
push 5
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x406fd8
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.MSVCR71.dll_wcslen]
mov esi, dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 4
cmp eax, 0x208
jge 0x406f4b
cmp word [esp + eax*2 + 0x3e], 0x5c
je 0x406f4b
lea edx, [esp + 0x40]
push 0x490410
push edx
call esi
add esp, 8
call fcn.004338e0
push eax
lea eax, [esp + 0x44]
push eax
call esi
mov esi, dword [0x4abff4]
add esp, 8
push 0
lea ecx, [esp + 0x44]
push ecx
call esi
call fcn.004338b0
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
lea edx, [esp + 0x44]
push edx
mov eax, edx
push eax
call edi
push 0
lea ecx, [esp + 0x44]
push ecx
call esi
push 0x490414
lea edx, [esp + 0x44]
push edx
mov eax, edx
push eax
call edi
lea ecx, [esp + 0x40]
push ecx
call fcn.00401cc0
add esp, 4
test eax, eax
jne 0x406fd8
push eax
push 0x80
push 4
push eax
push ebx
lea edx, [esp + 0x54]
push 0x40000000
push edx
call dword [0x4abffc]
cmp eax, 0xffffffff
jne 0x406fd1
mov word [esp + 0x40], 0
jmp 0x406fd8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x43c
call fcn.00484484
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0xa7c], 1
je 0x407006
lea ecx, [esp + 0x40]
push ecx
mov ecx, eax
call fcn.0043aa40
jmp 0x407008
xor eax, eax
mov ecx, eax
mov dword [esp + 0xa7c], 0xffffffff
mov dword [0x4ac1b4], eax
call fcn.00439710
call fcn.0042acc0
dec eax
je 0x407031
dec eax
je 0x4070bc
dec eax
jne 0x40703e
call fcn.00482290
test eax, eax
je 0x4071fe
call fcn.00437990
push 1
call fcn.00432400
mov edi, dword [esp + 0x30]
push ebx
mov dword [edi + 0x64], eax
call fcn.00432400
add esp, 8
test eax, eax
mov dword [edi + 0x68], eax
je 0x407068
mov eax, dword [edi + 0x64]
test eax, eax
jne 0x407074
push 3
push 0
call fcn.004322e0
add esp, 8
push 0
lea esi, [edi + 0x6c]
push 1
push esi
call fcn.00432660
push 0
add edi, 0x70
push ebx
push edi
call fcn.00432660
mov dword [esp + 0x2c], 3
call fcn.00431ad0
push eax
lea edx, [esp + 0x30]
push edx
push str.UIVolumeSwitch
call fcn.00436820
mov al, byte [esp + 0x38]
add esp, 0x24
test al, 1
push 0
push 3
je 0x4070ce
push esi
jmp 0x4070cf
call fcn.004823d0
test eax, eax
jne 0x40703e
jmp 0x4071fe
push edi
call fcn.00432500
add esp, 0xc
lea ecx, [esp + 0x20]
call fcn.0042e050
lea ecx, [esp + 0x20]
mov dword [esp + 0xa7c], ebx
call fcn.0042b6c0
push 0
lea eax, [esp + 0x20]
push eax
push str.FSVMMode
mov dword [esp + 0x28], 0
call fcn.00436820
mov eax, dword [esp + 0x28]
add esp, 0xc
dec eax
je 0x407121
dec eax
je 0x40711d
dec eax
jne 0x40712c
push 8
jmp 0x407123
push 1
jmp 0x407123
push 0
lea ecx, [esp + 0x24]
call fcn.0042b690
lea ecx, [esp + 0x20]
call fcn.0042b740
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x40]
push ecx
push edx
call fcn.00432d20
call fcn.004338b0
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x668]
push str._s_s.exe
push ecx
call dword [0x4ac148]
add esp, 0x18
push 1
push str.SoftwareMicrosoftWindowsShellNoRoamMUICache
push SysReAllocStringLen
lea ecx, [esp + 0x40]
call fcn.00436e90
mov byte [esp + 0xa7c], 3
call fcn.004338b0
push eax
lea edx, [esp + 0x65c]
push edx
lea ecx, [esp + 0x3c]
call fcn.00437140
lea ecx, [esp + 0x34]
mov byte [esp + 0xa7c], bl
call fcn.00437000
lea ecx, [esp + 0x20]
mov dword [esp + 0xa7c], 0xffffffff
call fcn.0042b670
mov eax, 1
jmp 0x407200
push str..IMP
push 0x2711
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push esi
call fcn.004247b0
mov ecx, dword [0x4ac1b0]
add esp, 0x10
cmp ecx, ebx
je 0x4071f8
mov esi, ecx
call fcn.0040f5e0
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [0x4ac1b0], ebx
xor eax, eax
mov ecx, dword [esp + 0xa74]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xa6c]
call fcn.00484547
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret