Function at 0x406c80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x491882
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc8
mov eax, dword [0x4b5320]
push ebx
mov dword [esp + 0xcc4], eax
mov eax, dword [ecx + 0x4c]
push esi
mov esi, dword [0x4b71c0]
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], esi
jne 0x406cd4
call fcn.0048a070
test eax, eax
je 0x407242
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.00436b50
push 0x20
call fcn.0048c300
add esp, 0xc
mov dword [esp + 0x18], eax
cmp eax, ebx
mov dword [esp + 0xcdc], ebx
je 0x406d1a
lea ecx, [esp + 0x38]
push ecx
mov ecx, eax
call fcn.00410420
jmp 0x406d1c
xor eax, eax
cmp eax, ebx
mov dword [esp + 0xcdc], 0xffffffff
mov dword [0x4b55b8], eax
je 0x407208
cmp dword [eax + 0x14], ebx
je 0x407208
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx]
mov dword [eax + 0x18], ecx
mov eax, dword [0x4b55b8]
mov ecx, dword [eax + 0x14]
xor edi, edi
cmp ecx, ebx
jbe 0x406d8f
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x18]
cmp ecx, edx
je 0x406d6c
mov edx, dword [eax + 0x18]
mov ecx, dword [ecx + 8]
mov edx, dword [edx]
mov dword [eax + 0x18], edx
mov esi, ecx
jmp 0x406d6e
xor esi, esi
mov ebx, dword [esi]
call fcn.0043b3e0
push eax
push esi
call dword [ebx + 0x60]
mov eax, dword [esi]
push esi
call dword [eax + 0x64]
mov eax, dword [0x4b55b8]
mov ecx, dword [eax + 0x14]
inc edi
xor ebx, ebx
cmp edi, ecx
jb 0x406d53
mov dword [esp + 0x10], ebx
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx]
mov dword [eax + 0x18], ecx
jmp 0x406da0
mov eax, dword [0x4b55b8]
mov edx, dword [eax + 0x10]
mov ecx, dword [eax + 0x18]
cmp ecx, edx
je 0x406e63
mov esi, dword [ecx + 8]
cmp esi, ebx
mov ecx, dword [ecx]
mov dword [eax + 0x18], ecx
je 0x406e63
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 0x406da0
jmp 0x406de0
mov edx, dword [esp + 0x10]
push edx
mov ecx, 0x4b5634
call fcn.0043e8f0
call fcn.0042d760
test eax, eax
je 0x406e40
mov eax, dword [esi]
push esi
call dword [eax + 0x28]
cmp eax, 3
jne 0x406e40
push ebx
lea ecx, [esp + 0x18]
push ecx
push str.ACDDEFAULTPLAY
mov dword [esp + 0x20], ebx
call fcn.0043acd0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jne 0x406e40
push 1
push str.Audio_CD
push str.AudioCD
mov dword [0x4b55b4], 1
call fcn.00428730
add esp, 0xc
mov edx, dword [esi]
push esi
call dword [edx + 0x28]
push eax
call fcn.0043c9f0
mov eax, dword [esi]
add esp, 4
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [eax + 0x20]
test eax, eax
jge 0x406de0
jmp 0x406da0
push 0x497f10
push 0x208
lea edx, [esp + 0x40]
push edx
push str.UIListName
call fcn.0043aeb0
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 [0x4b5464]
test eax, eax
jne 0x407019
lea edx, [esp + 0x18]
push edx
push str.PlayListShellPath
mov dword [esp + 0x20], 5
call fcn.0043ae10
add esp, 8
test eax, eax
je 0x406f19
push str.PlayListCustomPath
lea eax, [esp + 0x3c]
push str.PlayListShellPath
push eax
call fcn.004393d0
add esp, 0xc
push 0x498534
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 0x407019
push ebx
push 0x80
push 4
push ebx
push 2
push 0x40000000
lea ecx, [esp + 0x50]
push ecx
jmp 0x406ff6
lea edx, [esp + 0x38]
push edx
call fcn.00438dc0
add esp, 4
test eax, eax
lea eax, [esp + 0x38]
je 0x406f3f
push 0x498534
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x406fd0
push 1
push 5
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x407019
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 0x406f85
cmp word [esp + eax*2 + 0x36], 0x5c
je 0x406f85
lea edx, [esp + 0x38]
push 0x498530
push edx
call esi
add esp, 8
call fcn.00437780
push eax
lea eax, [esp + 0x3c]
push eax
call esi
mov esi, dword [0x4b53f4]
add esp, 8
push ebx
lea ecx, [esp + 0x3c]
push ecx
call esi
call fcn.00437750
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push eax
lea edx, [esp + 0x3c]
push edx
mov eax, edx
push eax
call edi
push ebx
lea ecx, [esp + 0x3c]
push ecx
call esi
push 0x498534
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 0x407019
push ebx
push 0x80
push 4
push ebx
push 2
lea edx, [esp + 0x4c]
push 0x40000000
push edx
call dword [0x4b53fc]
cmp eax, 0xffffffff
jne 0x407012
push ebx
push ebx
call fcn.00438e70
add esp, 8
mov word [esp + 0x38], bx
jmp 0x407019
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x43c
call fcn.0048c300
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0xcdc], 1
je 0x407047
lea ecx, [esp + 0x38]
push ecx
mov ecx, eax
call fcn.00440650
jmp 0x407049
xor eax, eax
mov ecx, eax
mov dword [esp + 0xcdc], 0xffffffff
mov dword [0x4b55bc], eax
call fcn.0043f2f0
call fcn.0042dc10
dec eax
je 0x407072
dec eax
je 0x4070f8
dec eax
jne 0x40707f
call fcn.0048a070
test eax, eax
je 0x407242
push 1
call fcn.004362c0
mov esi, dword [esp + 0x28]
push 2
mov dword [esi + 0x64], eax
call fcn.004362c0
add esp, 8
cmp eax, ebx
mov dword [esi + 0x68], eax
je 0x4070a3
cmp dword [esi + 0x64], ebx
jne 0x4070ae
push 3
push ebx
call fcn.004361a0
add esp, 8
push ebx
add esi, 0x6c
push 1
push esi
call fcn.00436520
mov edi, dword [esp + 0x30]
push ebx
add edi, 0x70
push 2
push edi
call fcn.00436520
mov dword [esp + 0x38], 3
call fcn.00435990
push eax
lea edx, [esp + 0x3c]
push edx
push str.UIVolumeSwitch
call fcn.0043acd0
mov al, byte [esp + 0x44]
add esp, 0x24
test al, 1
push ebx
push 3
je 0x40710a
push esi
jmp 0x40710b
call fcn.0048a1d0
test eax, eax
jne 0x40707f
jmp 0x407242
push edi
call fcn.004363c0
add esp, 0xc
lea ecx, [esp + 0x28]
call fcn.00431b00
lea ecx, [esp + 0x28]
mov dword [esp + 0xcdc], 2
call fcn.0042e9a0
push ebx
lea eax, [esp + 0x20]
push eax
push str.FSVMMode
mov dword [esp + 0x28], ebx
call fcn.0043acd0
mov eax, dword [esp + 0x28]
add esp, 0xc
dec eax
je 0x40715c
dec eax
je 0x407158
dec eax
jne 0x407166
push 8
jmp 0x40715d
push 1
jmp 0x40715d
push ebx
lea ecx, [esp + 0x2c]
call fcn.0042e970
lea ecx, [esp + 0x28]
call fcn.0042ea20
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x38]
push ecx
push edx
call fcn.00436b50
call fcn.00437750
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x8c8]
push str._s_s.exe
push ecx
call dword [0x4b5554]
add esp, 0x18
push 1
push str.SoftwareMicrosoftWindowsShellNoRoamMUICache
push SysReAllocString
lea ecx, [esp + 0x454]
call fcn.0043b3f0
mov byte [esp + 0xcdc], 3
call fcn.00437750
push eax
lea edx, [esp + 0x8bc]
push edx
lea ecx, [esp + 0x450]
call fcn.0043b690
lea ecx, [esp + 0x448]
mov byte [esp + 0xcdc], 2
call fcn.0043b4e0
lea ecx, [esp + 0x28]
mov dword [esp + 0xcdc], 0xffffffff
call fcn.0042e950
mov eax, 1
jmp 0x407244
push str..IMP
push 0x2711
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push esi
call fcn.00427760
mov ecx, dword [0x4b55b8]
add esp, 0x10
cmp ecx, ebx
je 0x40723c
mov esi, ecx
call fcn.0040f7d0
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [0x4b55b8], ebx
xor eax, eax
mov ecx, dword [esp + 0xcd4]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xccc]
call fcn.0048c3c7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret