Function at 0x413050
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43407e
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x100], 0
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jne 0x413141
push str.Softwareleidianldplayer
lea ecx, [ebp - 0x2c0]
call fcn.00412c90
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x2c0]
cmp dword [ebp - 0x2ac], 8
cmovae eax, dword [ebp - 0x2c0]
push eax
push str.read_player32_path_from_ldplayer__s
push 0x26a
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00423230
add esp, 0x10
lea ecx, [ebp - 0x2c0]
mov dl, 1
call fcn.00412de0
test al, al
je 0x413126
lea ebx, [esi + 0xf0]
lea eax, [ebp - 0x2c0]
cmp ebx, eax
je 0x413106
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.004079f0
cmp dword [ebx + 0x14], 8
jb 0x41310e
mov ebx, dword [ebx]
push ebx
push str.32_player_path__s
push 0x26d
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00423230
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2ac], 8
jb 0x413141
push dword [ebp - 0x2c0]
call edi
add esp, 4
cmp dword [esi + 0x118], 0
jne 0x4131fc
push str.Softwareleidianldplayer64
lea ecx, [ebp - 0x2a8]
call fcn.00412c90
add esp, 4
mov dword [ebp - 4], 1
lea eax, [ebp - 0x2a8]
cmp dword [ebp - 0x294], 8
cmovae eax, dword [ebp - 0x2a8]
push eax
push str.read_player64_path_from_ldplayer__s
push 0x273
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00423230
add esp, 0x10
lea ecx, [ebp - 0x2a8]
xor dl, dl
call fcn.00412de0
test al, al
je 0x4131e1
lea ebx, [esi + 0x108]
lea eax, [ebp - 0x2a8]
cmp ebx, eax
je 0x4131c1
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.004079f0
cmp dword [ebx + 0x14], 8
jb 0x4131c9
mov ebx, dword [ebx]
push ebx
push str.64_player_path__s
push 0x276
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00423230
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x294], 8
jb 0x4131fc
push dword [ebp - 0x2a8]
call edi
add esp, 4
cmp dword [esi + 0xe8], 0
jne 0x4132bf
push str.Softwareleidianldplayer9
lea ecx, [ebp - 0x278]
call fcn.00412c90
add esp, 4
mov dword [ebp - 4], 2
lea eax, [ebp - 0x278]
cmp dword [ebp - 0x264], 8
cmovae eax, dword [ebp - 0x278]
push eax
push str.read_player9_path_from_ldplayer__s
push 0x27c
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00423230
add esp, 0x10
lea ecx, [ebp - 0x278]
call fcn.00412f20
test al, al
je 0x4132a4
lea ecx, [esi + 0xd8]
lea eax, [ebp - 0x278]
cmp ecx, eax
je 0x413278
push 0xffffffffffffffff
push 0
push eax
call fcn.004079f0
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
cmovae eax, dword [ebp - 0x278]
push eax
push str.9_player_path__s
push 0x27f
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00423230
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x264], 8
jb 0x4132bf
push dword [ebp - 0x278]
call edi
add esp, 4
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x2c4]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x413305
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x2c4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
xor eax, eax
mov dword [ebp - 0x27c], 7
mov dword [ebp - 0x280], 0
mov word [ebp - 0x290], ax
cmp word [ebp - 0x218], ax
jne 0x41332f
xor ecx, ecx
jmp 0x41334f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x413340
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413340
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x290]
call fcn.00407d70
mov dword [ebp - 4], 3
cmp dword [ebp - 0x280], 0
je 0x41375b
cmp dword [esi + 0xe8], 0
jne 0x4134c1
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
push 0x43e4f4
lea edx, [ebp - 0x290]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2dc]
call fcn.0040ac60
add esp, 4
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 5
push ecx
push eax
call fcn.0042ba80
add esp, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x2c8], 8
jb 0x4133e9
push dword [ebp - 0x2dc]
call edi
add esp, 4
cmp dword [ebp - 0x220], 0
je 0x413428
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.0042ab10
add esp, 8
lea ecx, [ebp - 0x230]
push eax
call fcn.0040b160
cmp dword [ebp - 0x2c8], 8
jb 0x413428
push dword [ebp - 0x2dc]
call edi
add esp, 4
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push str.read_player9_path_from_shortcut__s
push 0x291
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00423230
add esp, 0x10
lea ecx, [ebp - 0x230]
call fcn.00412f20
test al, al
je 0x4134a9
lea ecx, [esi + 0xd8]
lea eax, [ebp - 0x230]
cmp ecx, eax
je 0x41347d
push 0xffffffffffffffff
push 0
push eax
call fcn.004079f0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push str.9_player_path__s
push 0x294
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00423230
add esp, 0x10
mov byte [ebp - 4], 3
cmp dword [ebp - 0x21c], 8
jb 0x4134c1
push dword [ebp - 0x230]
call edi
add esp, 4
cmp dword [esi + 0x100], 0
jne 0x41360e
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
push 0x43e558
lea edx, [ebp - 0x290]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2dc]
call fcn.0040ac60
add esp, 4
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 7
push ecx
push eax
call fcn.0042ba80
add esp, 8
mov byte [ebp - 4], 6
cmp dword [ebp - 0x2c8], 8
jb 0x413534
push dword [ebp - 0x2dc]
call edi
add esp, 4
cmp dword [ebp - 0x238], 0
je 0x413573
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.0042ab10
add esp, 8
lea ecx, [ebp - 0x248]
push eax
call fcn.0040b160
cmp dword [ebp - 0x2c8], 8
jb 0x413573
push dword [ebp - 0x2dc]
call edi
add esp, 4
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
push str.read_player32_path_from_shortcut__s
push 0x29e
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00423230
add esp, 0x10
lea ecx, [ebp - 0x248]
mov dl, 1
call fcn.00412de0
test al, al
je 0x4135f6
lea ecx, [esi + 0xf0]
lea eax, [ebp - 0x248]
cmp ecx, eax
je 0x4135ca
push 0xffffffffffffffff
push 0
push eax
call fcn.004079f0
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
push str.32_player_path__s
push 0x2a1
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00423230
add esp, 0x10
mov byte [ebp - 4], 3
cmp dword [ebp - 0x234], 8
jb 0x41360e
push dword [ebp - 0x248]
call edi
add esp, 4
cmp dword [esi + 0x118], 0
jne 0x41375b
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
push 0x43e5b8
lea edx, [ebp - 0x290]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2dc]
call fcn.0040ac60
add esp, 4
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 9
push ecx
push eax
call fcn.0042ba80
add esp, 8
mov byte [ebp - 4], 8
cmp dword [ebp - 0x2c8], 8
jb 0x413681
push dword [ebp - 0x2dc]
call edi
add esp, 4
cmp dword [ebp - 0x250], 0
je 0x4136c0
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.0042ab10
add esp, 8
lea ecx, [ebp - 0x260]
push eax
call fcn.0040b160
cmp dword [ebp - 0x2c8], 8
jb 0x4136c0
push dword [ebp - 0x2dc]
call edi
add esp, 4
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
push str.read_player64_path_from_shortcut__s
push 0x2ab
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00423230
add esp, 0x10
lea ecx, [ebp - 0x260]
xor dl, dl
call fcn.00412de0
test al, al
je 0x413743
lea ecx, [esi + 0x108]
lea eax, [ebp - 0x260]
cmp ecx, eax
je 0x413717
push 0xffffffffffffffff
push 0
push eax
call fcn.004079f0
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
push str.64_player_path__s
push 0x2ae
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00423230
add esp, 0x10
mov byte [ebp - 4], 3
cmp dword [ebp - 0x24c], 8
jb 0x41375b
push dword [ebp - 0x260]
call edi
add esp, 4
cmp dword [esi + 0x11c], 8
lea eax, [esi + 0x108]
jb 0x41376c
mov eax, dword [eax]
cmp dword [esi + 0x104], 8
lea ecx, [esi + 0xf0]
jb 0x41377d
mov ecx, dword [ecx]
add esi, 0xd8
cmp dword [esi + 0x14], 8
jb 0x41378b
mov esi, dword [esi]
push eax
push ecx
push esi
push str.player9:__s_player5_32:_s_player5_64:_s
push 0x2b3
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00423230
add esp, 0x18
cmp dword [ebp - 0x27c], 8
jb 0x4137b9
push dword [ebp - 0x290]
call edi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00431ce8
mov esp, ebp
pop ebp
ret