Function at 0x100116d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10087068
mov eax, dword fs:[0]
push eax
sub esp, 0x840
mov eax, dword [0x100b52f8]
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 ebx, ecx
cmp dword [ebx + 0x48], 0
jne 0x1001194b
mov dword [ebx + 0x48], 1
mov ecx, dword [0x100b8c30]
test ecx, ecx
jne 0x10011784
push 0x100b504c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x100b8c30], 0
jne 0x10011773
push 4
call fcn.10052ca6
mov esi, eax
add esp, 4
mov dword [ebp - 0x84c], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x10011759
mov ecx, esi
call fcn.1003dbb0
mov byte [ebp - 4], 0
jmp 0x1001175b
xor esi, esi
mov dword [ebp - 4], 0xffffffff
xor ecx, ecx
lea eax, [ebp - 0x84c]
lock or dword [eax], ecx
mov dword [0x100b8c30], esi
push 0x100b504c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x100b8c30]
push 0
lea eax, [ebp - 0x848]
push eax
call fcn.1003f6e0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.1005fb60
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x848]
add esp, 0xc
cmp dword [ebp - 0x834], 8
cmovae eax, dword [ebp - 0x848]
push 0x100904fc
push eax
lea eax, [ebp - 0x218]
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100117f8
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1005fb60
add esp, 0xc
lea eax, [ebp - 0x218]
push str.ver.json
push eax
lea eax, [ebp - 0x420]
push eax
call esi
lea eax, [ebp - 0x420]
lea ecx, [ebx + 0x68]
push eax
call fcn.100110a0
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.10023640
push 0x208
mov edi, eax
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.1005fb60
add esp, 0x14
lea eax, [ebp - 0x218]
push str.cfg.json
push eax
lea eax, [ebp - 0x628]
push eax
call esi
lea eax, [ebp - 0x628]
lea ecx, [ebx + 0x6c]
push eax
call fcn.100110a0
lea eax, [ebx + 0x18]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.10023640
push 0x208
mov esi, eax
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.1005fb60
add esp, 0x14
lea eax, [ebp - 0x218]
push str.slowcfg.json
push eax
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x830]
lea ecx, [ebx + 0x70]
push eax
call fcn.100110a0
lea eax, [ebx + 0x30]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.10023640
push eax
push esi
push edi
push str.Load_local_cache_cfg__ver_d__allraw_d__slowcfg_d
call fcn.1001f5a0
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x834]
cmp edx, 8
jb 0x1001192e
mov ecx, dword [ebp - 0x848]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10011924
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1001196c
push edx
push ecx
call fcn.10052cd6
add esp, 8
xor eax, eax
mov dword [ebp - 0x838], 0
mov dword [ebp - 0x834], 7
mov word [ebp - 0x848], ax
mov eax, 1
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.10053047
mov esp, ebp
pop ebp
ret
call fcn.10062c39
int3