Function at 0x418a70
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5417
mov eax, dword fs:[0]
push eax
mov eax, 0x1290
call fcn.004a22e0
mov eax, dword [0x4fd43c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
lea esi, [edi + 0xa8]
push 0
push 0x4e2908
mov ecx, esi
mov dword [ebp - 0x129c], eax
mov dword [ebp - 0x1298], eax
call fcn.00403dd0
push 0
lea ebx, [edi + 0xc0]
push 0x4e2908
mov ecx, ebx
call fcn.00403dd0
xor eax, eax
mov dword [ebp - 0x1264], 0
mov dword [ebp - 0x1254], 0
mov dword [ebp - 0x1250], 7
mov word [ebp - 0x1264], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1264]
push eax
push ecx
lea ecx, [ebp - 0x124c]
call fcn.004187e0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x124c]
cmp dword [ebp - 0x1238], 8
cmovae eax, dword [ebp - 0x124c]
push eax
push str.read_player9_path_from_ldplayer__s
push 0x161
push str.LDAssistantModel::calcPlayerPath
call fcn.00436bb0
add esp, 0x18
lea ecx, [ebp - 0x124c]
call fcn.00418600
test al, al
je 0x418ca8
lea eax, [ebp - 0x124c]
cmp esi, eax
je 0x418b81
cmp dword [ebp - 0x1238], 8
mov ecx, esi
push dword [ebp - 0x123c]
cmovae eax, dword [ebp - 0x124c]
push eax
call fcn.00403dd0
lea eax, [ebp - 0x1264]
cmp ebx, eax
je 0x418ba7
cmp dword [ebp - 0x1250], 8
mov ecx, ebx
push dword [ebp - 0x1254]
cmovae eax, dword [ebp - 0x1264]
push eax
call fcn.00403dd0
cmp dword [ebp - 0x1238], 8
lea eax, [ebp - 0x124c]
cmovae eax, dword [ebp - 0x124c]
push eax
push str.9_player_path__s
push 0x165
push str.LDAssistantModel::calcPlayerPath
call fcn.00436bb0
add esp, 0x10
mov dword [edi + 0x128], 2
push esi
mov esi, dword [ebp - 0x129c]
mov ecx, esi
call fcn.00404840
mov edx, dword [ebp - 0x1238]
cmp edx, 8
jb 0x418c2b
mov ecx, dword [ebp - 0x124c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418c21
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4191e0
push edx
push ecx
call fcn.004a1afe
add esp, 8
mov edx, dword [ebp - 0x1250]
xor eax, eax
mov dword [ebp - 0x123c], 0
mov dword [ebp - 0x1238], 7
mov word [ebp - 0x124c], ax
cmp edx, 8
jb 0x418c88
mov ecx, dword [ebp - 0x1264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418c7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4191e0
push edx
push ecx
call fcn.004a1afe
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a186f
mov esp, ebp
pop ebp
ret 4
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.004a3c10
add esp, 0xc
lea eax, [ebp - 0x1298]
push eax
push 0x10
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x418ce6
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x1298]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
xor eax, eax
mov dword [ebp - 0x1294], 0
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x1284], 0
mov dword [ebp - 0x1280], 7
lea edx, [ecx + 2]
mov word [ebp - 0x1294], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x418d16
sub ecx, edx
lea eax, [ebp - 0x21c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1294]
call fcn.00403dd0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x1284]
test ecx, ecx
je 0x418f5c
xor eax, eax
mov dword [ebp - 0x1234], 0
mov dword [ebp - 0x1224], 0
mov dword [ebp - 0x1220], 7
mov word [ebp - 0x1234], ax
mov eax, SysReAllocString
mov byte [ebp - 4], 3
sub eax, ecx
cmp eax, 0xe
jb 0x4191e5
cmp dword [ebp - 0x1280], 8
lea eax, [ebp - 0x1294]
push 0xe
cmovae eax, dword [ebp - 0x1294]
push str.LDPlayer9.lnk
push ecx
push eax
push ecx
push dword [ebp - 0x1298]
lea ecx, [ebp - 0x127c]
call fcn.004049b0
lea eax, [ebp - 0x1234]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x127c]
push eax
call fcn.0043fcf0
mov byte [ebp - 4], 3
add esp, 8
mov edx, dword [ebp - 0x1268]
cmp edx, 8
jb 0x418e12
mov ecx, dword [ebp - 0x127c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418e08
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4191ea
push edx
push ecx
call fcn.004a1afe
add esp, 8
cmp dword [ebp - 0x1224], 0
je 0x418e7d
lea eax, [ebp - 0x1234]
push eax
lea eax, [ebp - 0x127c]
push eax
call fcn.0043a850
add esp, 8
lea ecx, [ebp - 0x1234]
push eax
call fcn.00403c90
mov edx, dword [ebp - 0x1268]
cmp edx, 8
jb 0x418e7d
mov ecx, dword [ebp - 0x127c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418e73
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4191ef
push edx
push ecx
call fcn.004a1afe
add esp, 8
cmp dword [ebp - 0x1220], 8
lea eax, [ebp - 0x1234]
cmovae eax, dword [ebp - 0x1234]
push eax
push str.read_player9_path_from_shortcut__s
push 0x178
push str.LDAssistantModel::calcPlayerPath
call fcn.00436bb0
add esp, 0x10
lea ecx, [ebp - 0x1234]
call fcn.00418600
test al, al
je 0x418f18
lea eax, [ebp - 0x1234]
cmp esi, eax
je 0x418ede
cmp dword [ebp - 0x1220], 8
mov ecx, esi
push dword [ebp - 0x1224]
cmovae eax, dword [ebp - 0x1234]
push eax
call fcn.00403dd0
push 0xa
push str.0900006800
mov ecx, ebx
call fcn.00403dd0
cmp dword [ebp - 0x1220], 8
lea eax, [ebp - 0x1234]
cmovae eax, dword [ebp - 0x1234]
push eax
push str.9_player_path__s
push 0x17c
push str.LDAssistantModel::calcPlayerPath
call fcn.00436bb0
add esp, 0x10
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1220]
cmp edx, 8
jb 0x418f5c
mov ecx, dword [ebp - 0x1234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418f52
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4191f4
push edx
push ecx
call fcn.004a1afe
add esp, 8
mov eax, dword [edi + 0xb8]
test eax, eax
jne 0x4190f1
lea eax, [ebp - 0x127c]
push eax
call fcn.0043aec0
add esp, 4
push 0xe
push str.pathconfig.ini
lea ecx, [ebp - 0x127c]
mov byte [ebp - 4], 5
call fcn.00403ef0
push 0x1000
lea eax, [ebp - 0x121c]
push 0
push eax
call fcn.004a3c10
add esp, 0xc
lea eax, [ebp - 0x127c]
cmp dword [ebp - 0x1268], 8
cmovae eax, dword [ebp - 0x127c]
push eax
push 0x800
lea eax, [ebp - 0x121c]
push eax
push 0x4e2908
push str.player9
push 0x4e6820
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x121c]
push eax
push str.pathconfig:__s
push 0x186
push str.LDAssistantModel::calcPlayerPath
call fcn.00436bb0
add esp, 0x10
lea ecx, [ebp - 0x124c]
call fcn.00418600
test al, al
je 0x4190a3
lea ecx, [ebp - 0x121c]
mov dword [ebp - 0x1234], 0
mov dword [ebp - 0x1224], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x1220], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419033
sub ecx, edx
lea eax, [ebp - 0x121c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1234]
call fcn.00403dd0
lea eax, [ebp - 0x1234]
mov ecx, esi
push eax
call fcn.00403c90
mov edx, dword [ebp - 0x1220]
cmp edx, 8
jb 0x4190a3
mov ecx, dword [ebp - 0x1234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x419099
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4191f9
push edx
push ecx
call fcn.004a1afe
add esp, 8
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x1268]
cmp edx, 8
jb 0x4190e7
mov ecx, dword [ebp - 0x127c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4190dd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4191f9
push edx
push ecx
call fcn.004a1afe
add esp, 8
mov eax, dword [edi + 0xb8]
test eax, eax
je 0x4190fb
mov dword [edi + 0x128], 2
push esi
mov esi, dword [ebp - 0x129c]
mov ecx, esi
call fcn.00404840
mov edx, dword [ebp - 0x1280]
cmp edx, 8
jb 0x419149
mov ecx, dword [ebp - 0x1294]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41913f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4191e0
push edx
push ecx
call fcn.004a1afe
add esp, 8
mov edx, dword [ebp - 0x1238]
cmp edx, 8
jb 0x419185
mov ecx, dword [ebp - 0x124c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41917b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4191e0
push edx
push ecx
call fcn.004a1afe
add esp, 8
mov edx, dword [ebp - 0x1250]
xor eax, eax
mov dword [ebp - 0x123c], 0
mov dword [ebp - 0x1238], 7
mov word [ebp - 0x124c], ax
cmp edx, 8
jb 0x418c88
mov ecx, dword [ebp - 0x1264]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x418c7e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x418c7e
call fcn.004a670d
call fcn.00402c90
call fcn.004a670d
call fcn.004a670d
call fcn.004a670d
call fcn.004a670d
int3