Function at 0x10013990
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a987
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x100a21a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x368], ecx
mov dword [ebp - 0x364], 0
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.10054b00
add esp, 0xc
push 0
push 0x1c
lea ecx, [ebp - 0x218]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.gamecdn_common.json
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10013a1c
jmp 0x10013c42
lea ecx, [ebp - 0x234]
call fcn.10008750
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x218]
push edx
call fcn.10004890
add esp, 8
test eax, eax
je 0x10013a5a
lea ecx, [ebp - 0x234]
call fcn.10008e30
movzx eax, al
test eax, eax
je 0x10013a71
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.10008120
jmp 0x10013c42
lea ecx, [ebp - 0x234]
call fcn.100083a0
push eax
call fcn.1003ba40
add esp, 4
mov dword [ebp - 0x360], eax
cmp dword [ebp - 0x360], 0
je 0x10013c1e
push str.game_process
mov ecx, dword [ebp - 0x360]
push ecx
call fcn.1003b980
add esp, 8
mov dword [ebp - 0x35c], eax
cmp dword [ebp - 0x35c], 0
je 0x10013c0f
mov edx, dword [ebp - 0x35c]
push edx
call fcn.1003b960
add esp, 4
mov dword [ebp - 0x358], eax
cmp dword [ebp - 0x358], 0
jle 0x10013aec
mov eax, dword [ebp - 0x358]
push eax
mov ecx, dword [ebp + 8]
call fcn.10016520
mov dword [ebp - 0x354], 0
jmp 0x10013b07
mov ecx, dword [ebp - 0x354]
add ecx, 1
mov dword [ebp - 0x354], ecx
mov edx, dword [ebp - 0x354]
cmp edx, dword [ebp - 0x358]
jge 0x10013c0f
push 0x1008394d
lea ecx, [ebp - 0x380]
call fcn.100080b0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x380]
push eax
mov ecx, dword [ebp - 0x354]
push ecx
mov edx, dword [ebp - 0x35c]
push edx
lea eax, [ebp - 0x24c]
push eax
call fcn.1003c170
add esp, 0x10
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x380]
call fcn.10008120
lea ecx, [ebp - 0x24c]
call fcn.10008e30
movzx ecx, al
test ecx, ecx
jne 0x10013bfb
push 0x104
lea ecx, [ebp - 0x350]
call fcn.100062d0
push 0xfde9
lea ecx, [ebp - 0x24c]
call fcn.100083a0
push eax
lea ecx, [ebp - 0x350]
call fcn.100086f0
mov byte [ebp - 4], 4
push 4
lea ecx, [ebp - 0x21c]
call fcn.100062d0
lea ecx, [ebp - 0x350]
call fcn.100034b0
push eax
lea ecx, [ebp - 0x21c]
call fcn.10002cc0
mov byte [ebp - 4], 5
lea edx, [ebp - 0x21c]
push edx
mov ecx, dword [ebp + 8]
call fcn.100164e0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x21c]
call fcn.10003140
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x350]
call fcn.100087a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.10008120
jmp 0x10013af8
mov eax, dword [ebp - 0x360]
push eax
call fcn.1003b8d0
add esp, 4
mov dword [ebp - 0x364], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.10008120
xor ecx, ecx
jne 0x100139cb
mov eax, dword [ebp - 0x364]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10037e81
mov esp, ebp
pop ebp
ret 4