Function at 0x40a430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51b525
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x568910]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [0x572e44]
test eax, eax
jne 0x40a499
push 0x38
call fcn.004e0885
add esp, 4
mov dword [ebp - 0x264], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x40a48b
mov ecx, eax
call fcn.00401f00
jmp 0x40a48d
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x572e44], eax
lea ecx, [ebp - 0x294]
push ecx
mov ecx, eax
call fcn.004028a0
mov edx, eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x248]
call fcn.0040a1d0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x280], 8
jb 0x40a4d6
push dword [ebp - 0x294]
call fcn.00488180
add esp, 4
xor eax, eax
mov dword [ebp - 0x280], 7
cmp dword [ebp - 0x234], 8
mov word [ebp - 0x294], ax
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
push str.read_from_reg:_path_is__s
push 0x147
push str.DownloaderModel::_calcLDPlayerPath
mov dword [ebp - 0x284], 0
call fcn.00436000
mov eax, dword [ebp - 0x238]
add esp, 0x10
test eax, eax
jne 0x40a6fc
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004eb650
add esp, 0xc
lea eax, [ebp - 0x264]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x40a571
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x264]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
cmp word [ebp - 0x218], ax
jne 0x40a59b
xor ecx, ecx
jmp 0x40a5b3
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a5a4
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.004047a0
cmp dword [ebp - 0x250], 0
je 0x40a6d7
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
push str.LDPlayer9.lnk
lea edx, [ebp - 0x260]
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x27c]
call fcn.004123c0
add esp, 4
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 6
push ecx
push eax
call fcn.0043f020
add esp, 8
mov byte [ebp - 4], 5
cmp dword [ebp - 0x268], 8
jb 0x40a63c
push dword [ebp - 0x27c]
call fcn.00488180
add esp, 4
cmp dword [ebp - 0x220], 0
je 0x40a694
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x27c]
push eax
call fcn.00439f40
add esp, 8
lea ecx, [ebp - 0x230]
push eax
call fcn.00411340
cmp dword [ebp - 0x268], 8
jb 0x40a67e
push dword [ebp - 0x27c]
call fcn.00488180
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x248]
call fcn.004043e0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push str.read_player_path_from_shortcut__s
push 0x158
push str.DownloaderModel::_calcLDPlayerPath
call fcn.00436000
add esp, 0x10
cmp dword [ebp - 0x21c], 8
jb 0x40a6d7
push dword [ebp - 0x230]
call fcn.00488180
add esp, 4
mov byte [ebp - 4], 3
cmp dword [ebp - 0x24c], 8
jb 0x40a6f2
push dword [ebp - 0x260]
call fcn.00488180
add esp, 4
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x40a71f
mov byte [esi + 0x217], 0
test eax, eax
je 0x40a71f
lea ecx, [ebp - 0x248]
call fcn.0040a2e0
test al, al
je 0x40a71f
mov byte [esi + 0x216], 1
jmp 0x40a726
mov byte [esi + 0x216], 0
cmp dword [ebp - 0x234], 8
jb 0x40a73d
push dword [ebp - 0x248]
call fcn.00488180
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e0876
mov esp, ebp
pop ebp
ret