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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100805c7
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x100a6250]
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 - 0x364], esi
push edi
push eax
call fcn.100456c0
add esp, 0xc
lea eax, [ebp - 0x218]
push edi
push 0x1c
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.Halowpgamecdn_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 0x100149e1
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.100090f0
add esp, 8
test eax, eax
je 0x100149ab
cmp dword [ebp - 0x220], edi
je 0x100149ab
cmp dword [ebp - 0x21c], 0x10
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.1002c840
add esp, 4
mov dword [ebp - 0x368], eax
test eax, eax
je 0x100149a6
push str.game_process
push eax
call fcn.1002c780
add esp, 8
mov dword [ebp - 0x35c], eax
test eax, eax
je 0x10014998
push eax
call fcn.1002c760
mov edi, eax
add esp, 4
mov dword [ebp - 0x354], edi
test edi, edi
jle 0x100146e6
mov eax, dword [esi + 8]
sub eax, dword [esi]
sar eax, 2
cmp edi, eax
jbe 0x100146e6
cmp edi, 0x3fffffff
ja 0x10014a01
push edi
mov ecx, esi
call fcn.10015730
xor ebx, ebx
mov dword [ebp - 0x358], ebx
test edi, edi
jle 0x10014998
nop word [eax + eax]
push 0
push 0x10086a34
lea ecx, [ebp - 0x380]
mov dword [ebp - 0x370], 0
mov dword [ebp - 0x36c], 0xf
mov byte [ebp - 0x380], 0
call fcn.10006820
lea eax, [ebp - 0x380]
mov byte [ebp - 4], 1
push eax
push ebx
push dword [ebp - 0x35c]
lea eax, [ebp - 0x248]
push eax
call fcn.1002d810
add esp, 0x10
mov edx, dword [ebp - 0x36c]
mov byte [ebp - 4], 3
cmp edx, 0x10
jb 0x1001478c
mov ecx, dword [ebp - 0x380]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10014782
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10014a06
push edx
push ecx
call fcn.1001a759
add esp, 8
cmp dword [ebp - 0x238], 0
mov dword [ebp - 0x370], 0
mov dword [ebp - 0x36c], 0xf
mov byte [ebp - 0x380], 0
je 0x1001494b
push 0x104
lea eax, [ebp - 0x34c]
push 0
push eax
call fcn.100456c0
add esp, 0xc
lea edi, [ebp - 0x248]
cmp dword [ebp - 0x234], 0x10
lea eax, [ebp - 0x348]
mov dword [ebp - 0x34c], eax
cmovae edi, dword [ebp - 0x248]
test edi, edi
jne 0x100147fb
xor eax, eax
mov dword [ebp - 0x34c], eax
jmp 0x100148c8
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10014800
sub ecx, edx
lea eax, [ebp - 0x348]
push 0x80
push eax
lea eax, [ebp - 0x34c]
lea ebx, [ecx + 1]
push ebx
push eax
mov dword [ebp - 0x360], ebx
call fcn.10006ab0
add esp, 0x10
push ebx
push dword [ebp - 0x34c]
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 0x100148b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100148b4
mov ebx, dword [ebp - 0x360]
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 - 0x348]
push 0x80
push eax
lea eax, [ebp - 0x34c]
push esi
push eax
call fcn.10006ab0
add esp, 0x10
push esi
push dword [ebp - 0x34c]
push ebx
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, dword [ebp - 0x364]
mov ebx, eax
neg ebx
sbb ebx, ebx
inc ebx
test ebx, ebx
jne 0x10014a0b
mov eax, dword [ebp - 0x34c]
mov ebx, dword [ebp - 0x358]
push eax
lea ecx, [ebp - 0x350]
mov byte [ebp - 4], 4
mov dword [ebp - 0x350], 0
call fcn.10008b60
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x350]
mov byte [ebp - 4], 5
push ecx
cmp dword [esi + 8], eax
je 0x10014902
mov ecx, eax
call fcn.10008ad0
add dword [esi + 4], 4
jmp 0x1001490a
push eax
mov ecx, esi
call fcn.100141c0
mov edx, dword [ebp - 0x350]
or eax, 0xffffffff
mov byte [ebp - 4], 4
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1001492c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x34c]
lea ecx, [ebp - 0x348]
cmp eax, ecx
je 0x10014945
push eax
call fcn.100492e8
add esp, 4
mov edi, dword [ebp - 0x354]
mov edx, dword [ebp - 0x234]
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x10014989
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1001497f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10014a06
push edx
push ecx
call fcn.1001a759
add esp, 8
inc ebx
mov dword [ebp - 0x358], ebx
cmp ebx, edi
jl 0x10014700
push dword [ebp - 0x368]
call fcn.1002c6d0
add esp, 4
mov edi, 1
mov edx, dword [ebp - 0x21c]
cmp edx, 0x10
jb 0x100149e1
mov ecx, dword [ebp - 0x230]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100149d7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10014a06
push edx
push ecx
call fcn.1001a759
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.1001a767
mov esp, ebp
pop ebp
ret 4
call fcn.10013f30
call fcn.1004906c
push 0x80
lea eax, [ebp - 0x348]
push eax
push dword [ebp - 0x34c]
call fcn.10006b30
add esp, 0xc
call fcn.10006e70
int3