Function at 0x40a760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51b587
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x568910]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x568910]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov edi, ecx
push 0x1a
xor eax, eax
mov dword [esp + 0x44], 7
push str.SoftwareXuanZhiLDPlayerX
lea ecx, [esp + 0x34]
mov dword [esp + 0x44], 0
mov word [esp + 0x34], ax
call fcn.004047a0
lea edx, [esp + 0x2c]
mov dword [esp + 0x290], 0
lea ecx, [esp + 0x10]
call fcn.0040a1d0
mov ebx, eax
lea esi, [edi + 0x1fc]
cmp esi, ebx
je 0x40a818
cmp dword [esi + 0x14], 8
jb 0x40a7fd
push dword [esi]
call fcn.00488180
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push ebx
mov word [esi], ax
call fcn.00404180
cmp dword [esp + 0x24], 8
jb 0x40a82b
push dword [esp + 0x10]
call fcn.00488180
add esp, 4
xor eax, eax
mov dword [esp + 0x290], 0xffffffff
cmp dword [esp + 0x40], 8
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], 0
mov word [esp + 0x10], ax
jb 0x40a860
push dword [esp + 0x2c]
call fcn.00488180
add esp, 4
cmp dword [edi + 0x20c], 0
jne 0x40aaa2
xor eax, eax
push 0x206
push eax
mov word [esp + 0x7c], ax
lea eax, [esp + 0x7e]
push eax
call fcn.004eb650
add esp, 0xc
lea eax, [esp + 0x28]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x40a8a9
lea eax, [esp + 0x74]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
xor eax, eax
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
cmp word [esp + 0x74], ax
jne 0x40a8cb
xor ecx, ecx
jmp 0x40a8e1
lea ecx, [esp + 0x74]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a8d2
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x34]
call fcn.004047a0
mov dword [esp + 0x290], 1
cmp dword [esp + 0x3c], 0
je 0x40a9ee
xor eax, eax
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
push str.LDPlayerX.lnk
lea edx, [esp + 0x30]
mov byte [esp + 0x294], 2
lea ecx, [esp + 0x14]
call fcn.004123c0
add esp, 4
lea ecx, [esp + 0x44]
mov byte [esp + 0x290], 3
push ecx
push eax
call fcn.0043f020
add esp, 8
mov byte [esp + 0x290], 2
cmp dword [esp + 0x24], 8
jb 0x40a96b
push dword [esp + 0x10]
call fcn.00488180
add esp, 4
cmp dword [esp + 0x54], 0
je 0x40a9b5
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00439f40
add esp, 8
lea ecx, [esp + 0x44]
push eax
call fcn.00411340
cmp dword [esp + 0x24], 8
jb 0x40a9a1
push dword [esp + 0x10]
call fcn.00488180
add esp, 4
lea eax, [esp + 0x44]
cmp esi, eax
je 0x40a9b5
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004043e0
cmp dword [esp + 0x58], 8
lea eax, [esp + 0x44]
cmovae eax, dword [esp + 0x44]
push eax
push str.read_playerX_path_from_shortcut__s
push 0x17c
push str.DownloaderModel::_calcPlayerXPath
call fcn.00436000
add esp, 0x10
cmp dword [esp + 0x58], 8
jb 0x40a9ee
push dword [esp + 0x44]
call fcn.00488180
add esp, 4
mov dword [esp + 0x290], 0xffffffff
cmp dword [esp + 0x40], 8
jb 0x40aa0c
push dword [esp + 0x2c]
call fcn.00488180
add esp, 4
cmp dword [edi + 0x20c], 0
jne 0x40aaa2
lea edx, [edi + 0x514]
lea ecx, [esp + 0x5c]
call fcn.00434a90
push 0x13
push str.LDPlayerLDPlayerX_
lea ecx, [esp + 0x64]
mov dword [esp + 0x298], 4
call fcn.00403fd0
lea eax, [esp + 0x5c]
cmp esi, eax
je 0x40aa57
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.004043e0
lea ecx, [edi + 0x4fc]
lea eax, [esp + 0x5c]
cmp ecx, eax
je 0x40aa6f
push 0xffffffffffffffff
push 0
push eax
call fcn.004043e0
cmp dword [esi + 0x14], 8
jb 0x40aa77
mov esi, dword [esi]
push esi
push str.get_install_path_from_MaxFreeSpace:__s
push 0x186
push str.DownloaderModel::_calcPlayerXPath
call fcn.00436000
add esp, 0x10
cmp dword [esp + 0x70], 8
jb 0x40aaa2
push dword [esp + 0x5c]
call fcn.00488180
add esp, 4
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.004e0876
mov esp, ebp
pop ebp
ret