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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100795d7
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x100a11a4]
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.10053860
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 0x1001390c
jmp 0x10013b32
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 0x1001394a
lea ecx, [ebp - 0x234]
call fcn.10008e30
movzx eax, al
test eax, eax
je 0x10013961
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.10008120
jmp 0x10013b32
lea ecx, [ebp - 0x234]
call fcn.100083a0
push eax
call fcn.1003a760
add esp, 4
mov dword [ebp - 0x360], eax
cmp dword [ebp - 0x360], 0
je 0x10013b0e
push str.game_process
mov ecx, dword [ebp - 0x360]
push ecx
call fcn.1003a6a0
add esp, 8
mov dword [ebp - 0x35c], eax
cmp dword [ebp - 0x35c], 0
je 0x10013aff
mov edx, dword [ebp - 0x35c]
push edx
call fcn.1003a680
add esp, 4
mov dword [ebp - 0x358], eax
cmp dword [ebp - 0x358], 0
jle 0x100139dc
mov eax, dword [ebp - 0x358]
push eax
mov ecx, dword [ebp + 8]
call fcn.10016410
mov dword [ebp - 0x354], 0
jmp 0x100139f7
mov ecx, dword [ebp - 0x354]
add ecx, 1
mov dword [ebp - 0x354], ecx
mov edx, dword [ebp - 0x354]
cmp edx, dword [ebp - 0x358]
jge 0x10013aff
push 0x1008292d
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.1003ae90
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 0x10013aeb
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.100163d0
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 0x100139e8
mov eax, dword [ebp - 0x360]
push eax
call fcn.1003a5f0
add esp, 4
mov dword [ebp - 0x364], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.10008120
xor ecx, ecx
jne 0x100138bb
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.10036c51
mov esp, ebp
pop ebp
ret 4