Function at 0x406c20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48cda2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc8
mov eax, dword [0x4aff10]
push ebx
mov dword [esp + 0xcc4], eax
mov eax, dword [ecx + 0x4c]
push esi
mov esi, dword [0x4b1da8]
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], esi
jne 0x406c74
call fcn.00485490
test eax, eax
je 0x4071e3
xor eax, eax
mov word [esp + 0x38], bx
mov ecx, 0x103
lea edi, [esp + 0x3a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x38]
push eax
push esi
call fcn.00433810
push 0x20
call fcn.004876fc
add esp, 0xc
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov dword [esp + 0xcdc], ebx
je 0x406cba
lea ecx, [esp + 0x38]
push ecx
mov ecx, eax
call fcn.004101f0
jmp 0x406cbc
xor eax, eax
cmp eax, ebx
mov dword [esp + 0xcdc], 0xffffffff
mov dword [0x4b01a8], eax
je 0x4071a9
cmp dword [eax + 0x14], ebx
je 0x4071a9
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx]
mov dword [eax + 0x18], ecx
mov eax, dword [0x4b01a8]
mov ecx, dword [eax + 0x14]
xor edi, edi
cmp ecx, ebx
jbe 0x406d29
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x18]
cmp ecx, edx
je 0x406d0c
mov edx, dword [eax + 0x18]
mov ecx, dword [ecx + 8]
mov edx, dword [edx]
mov dword [eax + 0x18], edx
mov esi, ecx
jmp 0x406d0e
xor esi, esi
mov ebx, dword [esi]
call fcn.00438020
push eax
push esi
call dword [ebx + 0x60]
mov eax, dword [0x4b01a8]
mov ecx, dword [eax + 0x14]
inc edi
xor ebx, ebx
cmp edi, ecx
jb 0x406cf3
mov dword [esp + 0x10], ebx
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx]
mov dword [eax + 0x18], ecx
mov eax, dword [0x4b01a8]
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x18]
cmp ecx, edx
je 0x406df4
mov esi, dword [ecx + 8]
cmp esi, ebx
mov ecx, dword [ecx]
mov dword [eax + 0x18], ecx
je 0x406df4
mov edx, dword [esi]
push esi
call dword [edx + 0x1c]
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [eax + 0x20]
test eax, eax
jl 0x406d35
lea ecx, [ecx]
mov edx, dword [esp + 0x10]
push edx
mov ecx, 0x4b0224
call fcn.0043b710
call fcn.0042b1b0
test eax, eax
je 0x406dd0
mov eax, dword [esi]
push esi
call dword [eax + 0x28]
cmp eax, 3
jne 0x406dd0
push ebx
lea ecx, [esp + 0x18]
push ecx
push str.ACDDEFAULTPLAY
mov dword [esp + 0x20], ebx
call fcn.00437910
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jne 0x406dd0
push 1
push str.Audio_CD
push str.AudioCD
mov dword [0x4b01a4], 1
call fcn.00426180
add esp, 0xc
mov edx, dword [esi]
push esi
call dword [edx + 0x28]
cmp eax, 3
jne 0x406de0
call fcn.00439690
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [eax + 0x20]
test eax, eax
jge 0x406d70
jmp 0x406d35
push 0x492eb4
push 0x208
lea edx, [esp + 0x40]
push edx
push str.UIListName
call fcn.00437af0
add esp, 0x10
push ebx
lea eax, [esp + 0x6b4]
push eax
push 0x104
push ebx
lea ecx, [esp + 0x48]
push ecx
push ebx
call dword [0x4b0050]
test eax, eax
mov ebx, 2
jne 0x406fb4
lea edx, [esp + 0x1c]
push edx
push str.PlayListShellPath
mov dword [esp + 0x24], 5
call fcn.00437a50
add esp, 8
test eax, eax
je 0x406eae
push str.PlayListCustomPath
lea eax, [esp + 0x3c]
push str.PlayListShellPath
push eax
call fcn.00436010
add esp, 0xc
push 0x493524
lea ecx, [esp + 0x3c]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [esp + 0x38]
push eax
call fcn.00401cc0
add esp, 4
test eax, eax
jne 0x406fb4
push eax
push 0x80
push 4
push eax
push ebx
push 0x40000000
lea ecx, [esp + 0x50]
push ecx
jmp 0x406f8d
lea edx, [esp + 0x38]
push edx
call fcn.00435a20
add esp, 4
test eax, eax
lea eax, [esp + 0x38]
je 0x406ed4
push 0x493524
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x406f68
push 1
push 5
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x406fb4
lea ecx, [esp + 0x38]
push ecx
call dword [sym.imp.MSVCR71.dll_wcslen]
mov esi, dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 4
cmp eax, 0x208
jge 0x406f1b
cmp word [esp + eax*2 + 0x36], 0x5c
je 0x406f1b
lea edx, [esp + 0x38]
push 0x493520
push edx
call esi
add esp, 8
call fcn.00434440
push eax
lea eax, [esp + 0x3c]
push eax
call esi
mov esi, dword [0x4affe4]
add esp, 8
push 0
lea ecx, [esp + 0x3c]
push ecx
call esi
call fcn.00434410
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
lea edx, [esp + 0x3c]
push edx
mov eax, edx
push eax
call edi
push 0
lea ecx, [esp + 0x3c]
push ecx
call esi
push 0x493524
lea edx, [esp + 0x3c]
push edx
mov eax, edx
push eax
call edi
lea ecx, [esp + 0x38]
push ecx
call fcn.00401cc0
add esp, 4
test eax, eax
jne 0x406fb4
push eax
push 0x80
push 4
push eax
push ebx
lea edx, [esp + 0x4c]
push 0x40000000
push edx
call dword [0x4affec]
cmp eax, 0xffffffff
jne 0x406fad
push 0
push 0
call fcn.00435ab0
add esp, 8
mov word [esp + 0x38], 0
jmp 0x406fb4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x43c
call fcn.004876fc
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
mov dword [esp + 0xcdc], 1
je 0x406fe2
lea ecx, [esp + 0x38]
push ecx
mov ecx, eax
call fcn.0043d470
jmp 0x406fe4
xor eax, eax
mov ecx, eax
mov dword [esp + 0xcdc], 0xffffffff
mov dword [0x4b01ac], eax
call fcn.0043c0f0
call fcn.0042b6b0
dec eax
je 0x40700d
dec eax
je 0x407098
dec eax
jne 0x40701a
call fcn.00485490
test eax, eax
je 0x4071e3
call fcn.00439750
push 1
call fcn.00432f40
mov edi, dword [esp + 0x34]
push ebx
mov dword [edi + 0x64], eax
call fcn.00432f40
add esp, 8
test eax, eax
mov dword [edi + 0x68], eax
je 0x407044
mov eax, dword [edi + 0x64]
test eax, eax
jne 0x407050
push 3
push 0
call fcn.00432e20
add esp, 8
push 0
lea esi, [edi + 0x6c]
push 1
push esi
call fcn.004331a0
push 0
add edi, 0x70
push ebx
push edi
call fcn.004331a0
mov dword [esp + 0x30], 3
call fcn.00432610
push eax
lea edx, [esp + 0x34]
push edx
push str.UIVolumeSwitch
call fcn.00437910
mov al, byte [esp + 0x3c]
add esp, 0x24
test al, 1
push 0
push 3
je 0x4070aa
push esi
jmp 0x4070ab
call fcn.004855f0
test eax, eax
jne 0x40701a
jmp 0x4071e3
push edi
call fcn.00433040
add esp, 0xc
lea ecx, [esp + 0x24]
call fcn.0042eb20
lea ecx, [esp + 0x24]
mov dword [esp + 0xcdc], ebx
call fcn.0042c0b0
push 0
lea eax, [esp + 0x24]
push eax
push str.FSVMMode
mov dword [esp + 0x2c], 0
call fcn.00437910
mov eax, dword [esp + 0x2c]
add esp, 0xc
dec eax
je 0x4070fd
dec eax
je 0x4070f9
dec eax
jne 0x407108
push 8
jmp 0x4070ff
push 1
jmp 0x4070ff
push 0
lea ecx, [esp + 0x28]
call fcn.0042c080
lea ecx, [esp + 0x24]
call fcn.0042c130
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x38]
push ecx
push edx
call fcn.00433810
call fcn.00434410
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x8c8]
push str._s_s.exe
push ecx
call dword [0x4b0140]
add esp, 0x18
push 1
push str.SoftwareMicrosoftWindowsShellNoRoamMUICache
push SysReAllocString
lea ecx, [esp + 0x454]
call fcn.00438030
mov byte [esp + 0xcdc], 3
call fcn.00434410
push eax
lea edx, [esp + 0x8bc]
push edx
lea ecx, [esp + 0x450]
call fcn.004382d0
lea ecx, [esp + 0x448]
mov byte [esp + 0xcdc], bl
call fcn.00438120
lea ecx, [esp + 0x24]
mov dword [esp + 0xcdc], 0xffffffff
call fcn.0042c060
mov eax, 1
jmp 0x4071e5
push str..IMP
push 0x2711
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push esi
call fcn.004251e0
mov ecx, dword [0x4b01a8]
add esp, 0x10
cmp ecx, ebx
je 0x4071dd
mov esi, ecx
call fcn.0040f5a0
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [0x4b01a8], ebx
xor eax, eax
mov ecx, dword [esp + 0xcd4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xccc]
call fcn.004877c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret