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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069897
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x100891f4]
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, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor edi, edi
mov dword [ebp - 0x37c], esi
push edi
push eax
call fcn.10043b10
add esp, 0xc
lea eax, [ebp - 0x218]
push edi
push 0x1c
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.gamecdn_common.json
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1000cfc7
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
lea eax, [ebp - 0x230]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10002ee0
add esp, 8
test eax, eax
je 0x1000cf91
cmp dword [ebp - 0x220], edi
je 0x1000cf91
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.1002a470
add esp, 4
mov dword [ebp - 0x380], eax
test eax, eax
je 0x1000cf8c
push str.game_process
push eax
call fcn.1002a3b0
add esp, 8
mov dword [ebp - 0x374], eax
test eax, eax
je 0x1000cf7e
push eax
call fcn.1002a390
mov edi, eax
add esp, 4
mov dword [ebp - 0x36c], edi
test edi, edi
jle 0x1000cce6
mov eax, dword [esi + 8]
sub eax, dword [esi]
sar eax, 2
cmp edi, eax
jbe 0x1000cce6
cmp edi, 0x3fffffff
ja 0x1000cfe7
push edi
mov ecx, esi
call fcn.1000ddd0
xor ebx, ebx
mov dword [ebp - 0x370], ebx
test edi, edi
jle 0x1000cf7e
nop word [eax + eax]
push 0
push 0x1006cb48
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.10004f40
lea eax, [ebp - 0x248]
mov byte [ebp - 4], 1
push eax
push ebx
push dword [ebp - 0x374]
lea eax, [ebp - 0x260]
push eax
call fcn.1002aba0
add esp, 0x10
mov edx, dword [ebp - 0x234]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x1000cd8c
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000cd82
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000cfec
push edx
push ecx
call fcn.1002615b
add esp, 8
cmp dword [ebp - 0x250], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
je 0x1000cf31
cmp dword [ebp - 0x24c], 0x10
lea edi, [ebp - 0x260]
lea eax, [ebp - 0x360]
cmovae edi, dword [ebp - 0x260]
mov dword [ebp - 0x364], eax
test edi, edi
jne 0x1000cde5
xor eax, eax
mov dword [ebp - 0x364], eax
jmp 0x1000ceb8
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000cdf0
sub ecx, edx
lea eax, [ebp - 0x360]
push 0x80
push eax
lea eax, [ebp - 0x364]
lea ebx, [ecx + 1]
push ebx
push eax
mov dword [ebp - 0x378], ebx
call fcn.100050b0
add esp, 0x10
push ebx
push dword [ebp - 0x364]
push ebx
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
jne 0x1000cea4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000cea4
mov ebx, dword [ebp - 0x378]
push 0
push 0
push ebx
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
lea eax, [ebp - 0x360]
push 0x80
push eax
lea eax, [ebp - 0x364]
push esi
push eax
call fcn.100050b0
add esp, 0x10
push esi
push dword [ebp - 0x364]
push ebx
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp - 0x37c]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x1000cff1
mov eax, dword [ebp - 0x364]
mov ebx, dword [ebp - 0x370]
push eax
lea ecx, [ebp - 0x368]
mov byte [ebp - 4], 4
call fcn.100023e0
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x368]
mov byte [ebp - 4], 5
push ecx
cmp dword [esi + 8], eax
je 0x1000cee8
mov ecx, eax
call fcn.10002350
add dword [esi + 4], 4
jmp 0x1000cef0
push eax
mov ecx, esi
call fcn.1000b820
mov edx, dword [ebp - 0x368]
or eax, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1000cf12
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x364]
lea ecx, [ebp - 0x360]
cmp eax, ecx
je 0x1000cf2b
push eax
call fcn.10046fa0
add esp, 4
mov edi, dword [ebp - 0x36c]
mov edx, dword [ebp - 0x24c]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x1000cf6f
mov ecx, dword [ebp - 0x260]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000cf65
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000cfec
push edx
push ecx
call fcn.1002615b
add esp, 8
inc ebx
mov dword [ebp - 0x370], ebx
cmp ebx, edi
jl 0x1000cd00
push dword [ebp - 0x380]
call fcn.1002a300
add esp, 4
mov edi, 1
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x1000cfc7
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1000cfbd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000cfec
push edx
push ecx
call fcn.1002615b
add esp, 8
mov eax, edi
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.100264cc
mov esp, ebp
pop ebp
ret 4
call fcn.10008ad0
call fcn.10046ec3
push 0x80
lea eax, [ebp - 0x360]
push eax
push dword [ebp - 0x364]
call fcn.10005130
add esp, 0xc
call fcn.10005330
int3