Function at 0x4175e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43936e
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 0x4176d1
push str.Softwareleidianldplayer
lea ecx, [ebp - 0x2c0]
call fcn.00417220
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 0x276
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00427290
add esp, 0x10
lea ecx, [ebp - 0x2c0]
mov dl, 1
call fcn.00417370
test al, al
je 0x4176b6
lea ebx, [esi + 0xf0]
lea eax, [ebp - 0x2c0]
cmp ebx, eax
je 0x417696
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00408440
cmp dword [ebx + 0x14], 8
jb 0x41769e
mov ebx, dword [ebx]
push ebx
push str.32_player_path__s
push 0x279
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00427290
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x2ac], 8
jb 0x4176d1
push dword [ebp - 0x2c0]
call edi
add esp, 4
cmp dword [esi + 0x118], 0
jne 0x41778c
push str.Softwareleidianldplayer64
lea ecx, [ebp - 0x2a8]
call fcn.00417220
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 0x27f
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00427290
add esp, 0x10
lea ecx, [ebp - 0x2a8]
xor dl, dl
call fcn.00417370
test al, al
je 0x417771
lea ebx, [esi + 0x108]
lea eax, [ebp - 0x2a8]
cmp ebx, eax
je 0x417751
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.00408440
cmp dword [ebx + 0x14], 8
jb 0x417759
mov ebx, dword [ebx]
push ebx
push str.64_player_path__s
push 0x282
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00427290
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x294], 8
jb 0x41778c
push dword [ebp - 0x2a8]
call edi
add esp, 4
cmp dword [esi + 0xe8], 0
jne 0x41784f
push str.Softwareleidianldplayer9
lea ecx, [ebp - 0x278]
call fcn.00417220
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 0x288
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00427290
add esp, 0x10
lea ecx, [ebp - 0x278]
call fcn.004174b0
test al, al
je 0x417834
lea ecx, [esi + 0xd8]
lea eax, [ebp - 0x278]
cmp ecx, eax
je 0x417808
push 0xffffffffffffffff
push 0
push eax
call fcn.00408440
cmp dword [ebp - 0x264], 8
lea eax, [ebp - 0x278]
cmovae eax, dword [ebp - 0x278]
push eax
push str.9_player_path__s
push 0x28b
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00427290
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x264], 8
jb 0x41784f
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 0x417895
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 0x4178bf
xor ecx, ecx
jmp 0x4178df
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
jmp 0x4178d0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4178d0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x290]
call fcn.004087c0
mov dword [ebp - 4], 3
cmp dword [ebp - 0x280], 0
je 0x417ceb
cmp dword [esi + 0xe8], 0
jne 0x417a51
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
push 0x443994
lea edx, [ebp - 0x290]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2dc]
call fcn.0040f240
add esp, 4
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 5
push ecx
push eax
call fcn.004308a0
add esp, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x2c8], 8
jb 0x417979
push dword [ebp - 0x2dc]
call edi
add esp, 4
cmp dword [ebp - 0x220], 0
je 0x4179b8
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.0042f5e0
add esp, 8
lea ecx, [ebp - 0x230]
push eax
call fcn.0040b9d0
cmp dword [ebp - 0x2c8], 8
jb 0x4179b8
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 0x29d
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00427290
add esp, 0x10
lea ecx, [ebp - 0x230]
call fcn.004174b0
test al, al
je 0x417a39
lea ecx, [esi + 0xd8]
lea eax, [ebp - 0x230]
cmp ecx, eax
je 0x417a0d
push 0xffffffffffffffff
push 0
push eax
call fcn.00408440
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push str.9_player_path__s
push 0x2a0
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00427290
add esp, 0x10
mov byte [ebp - 4], 3
cmp dword [ebp - 0x21c], 8
jb 0x417a51
push dword [ebp - 0x230]
call edi
add esp, 4
cmp dword [esi + 0x100], 0
jne 0x417b9e
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
push 0x4439f8
lea edx, [ebp - 0x290]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2dc]
call fcn.0040f240
add esp, 4
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 7
push ecx
push eax
call fcn.004308a0
add esp, 8
mov byte [ebp - 4], 6
cmp dword [ebp - 0x2c8], 8
jb 0x417ac4
push dword [ebp - 0x2dc]
call edi
add esp, 4
cmp dword [ebp - 0x238], 0
je 0x417b03
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.0042f5e0
add esp, 8
lea ecx, [ebp - 0x248]
push eax
call fcn.0040b9d0
cmp dword [ebp - 0x2c8], 8
jb 0x417b03
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 0x2aa
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00427290
add esp, 0x10
lea ecx, [ebp - 0x248]
mov dl, 1
call fcn.00417370
test al, al
je 0x417b86
lea ecx, [esi + 0xf0]
lea eax, [ebp - 0x248]
cmp ecx, eax
je 0x417b5a
push 0xffffffffffffffff
push 0
push eax
call fcn.00408440
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
push str.32_player_path__s
push 0x2ad
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00427290
add esp, 0x10
mov byte [ebp - 4], 3
cmp dword [ebp - 0x234], 8
jb 0x417b9e
push dword [ebp - 0x248]
call edi
add esp, 4
cmp dword [esi + 0x118], 0
jne 0x417ceb
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
push 0x443a58
lea edx, [ebp - 0x290]
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x2dc]
call fcn.0040f240
add esp, 4
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 9
push ecx
push eax
call fcn.004308a0
add esp, 8
mov byte [ebp - 4], 8
cmp dword [ebp - 0x2c8], 8
jb 0x417c11
push dword [ebp - 0x2dc]
call edi
add esp, 4
cmp dword [ebp - 0x250], 0
je 0x417c50
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.0042f5e0
add esp, 8
lea ecx, [ebp - 0x260]
push eax
call fcn.0040b9d0
cmp dword [ebp - 0x2c8], 8
jb 0x417c50
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 0x2b7
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00427290
add esp, 0x10
lea ecx, [ebp - 0x260]
xor dl, dl
call fcn.00417370
test al, al
je 0x417cd3
lea ecx, [esi + 0x108]
lea eax, [ebp - 0x260]
cmp ecx, eax
je 0x417ca7
push 0xffffffffffffffff
push 0
push eax
call fcn.00408440
cmp dword [ebp - 0x24c], 8
lea eax, [ebp - 0x260]
cmovae eax, dword [ebp - 0x260]
push eax
push str.64_player_path__s
push 0x2ba
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00427290
add esp, 0x10
mov byte [ebp - 4], 3
cmp dword [ebp - 0x24c], 8
jb 0x417ceb
push dword [ebp - 0x260]
call edi
add esp, 4
cmp dword [esi + 0x11c], 8
lea eax, [esi + 0x108]
jb 0x417cfc
mov eax, dword [eax]
cmp dword [esi + 0x104], 8
lea ecx, [esi + 0xf0]
jb 0x417d0d
mov ecx, dword [ecx]
add esi, 0xd8
cmp dword [esi + 0x14], 8
jb 0x417d1b
mov esi, dword [esi]
push eax
push ecx
push esi
push str.player9:__s_player5_32:_s_player5_64:_s
push 0x2bf
push str.LDPlayerHelperModel::_calcPlayerPath
call fcn.00427290
add esp, 0x18
cmp dword [ebp - 0x27c], 8
jb 0x417d49
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.00436c68
mov esp, ebp
pop ebp
ret