Function at 0x40cca0
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x583648
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x60b9b0]
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
lea ecx, [ebp - 0x74]
call fcn.00420830
mov dword [ebp - 4], 0
mov edx, dword [eax]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x40ccf9
xor ecx, ecx
jmp 0x40cd0f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cd00
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00406f20
mov byte [ebp - 4], 2
or edi, 0xffffffff
mov edx, dword [ebp - 0x74]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cd3a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
movzx ebx, bl
mov ecx, 1
mov dword [ebp - 0x44], 7
cmove ebx, ecx
mov dword [ebp - 0x48], 0
push 0xb
xor eax, eax
lea ecx, [ebp - 0x58]
push str.assCtl.json
mov word [ebp - 0x58], ax
call fcn.00406f20
mov byte [ebp - 4], 3
call fcn.00402f30
mov edx, dword [eax + 0x354]
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
cmp word [edx], ax
jne 0x40cdaa
xor ecx, ecx
jmp 0x40cdbf
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40cdb0
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.00406f20
mov byte [ebp - 4], 4
call fcn.00402a90
mov ecx, eax
test ecx, ecx
jne 0x40cde2
push 0x80004005
call fcn.00402b10
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [ebp - 0x74]
push 0x5e7208
push eax
call fcn.00406520
add esp, 0xc
lea eax, [ebp - 0x74]
mov edx, 0x5e7a14
lea ecx, [ebp - 0x7c]
push eax
call fcn.0040dc00
add esp, 4
mov byte [ebp - 4], 6
mov edx, dword [eax]
cmp word [edx], 0
jne 0x40ce2d
xor ecx, ecx
jmp 0x40ce41
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ce32
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x40]
call fcn.0040dcd0
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0x7c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40ce69
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, str.UserData_
lea ecx, [ebp - 0x78]
call fcn.00420480
mov byte [ebp - 4], 7
call fcn.0040bb10
test bl, bl
jne 0x40cefd
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ceb2
xor ebx, ebx
jmp 0x40cec4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
lea ecx, [ebp - 0x40]
call fcn.0043a8d0
movsd xmm1, qword [0x5f3618]
comisd xmm1, xmm0
jae 0x40cfd3
call fcn.00554a51
cmp ebx, eax
je 0x40cfd3
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
call fcn.0043c9a0
push dword [ebp - 0x78]
lea ecx, [ebp - 0x70]
call fcn.004059f0
sub esp, 0x28
mov byte [ebp - 4], 8
mov eax, esp
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x70]
push 1
mov dword [eax], 0x5e7dd8
mov dword [eax + 0x24], eax
lea eax, [ebp - 0x58]
push eax
call fcn.00439cc0
mov byte [ebp - 4], 7
add esp, 0x30
mov ecx, dword [ebp - 0x5c]
mov dword [0x612728], eax
cmp ecx, 8
jb 0x40cf53
lea eax, [ecx + 1]
push eax
push dword [ebp - 0x70]
lea ecx, [ebp - 0x70]
call fcn.00407ad0
mov eax, dword [0x612728]
test eax, eax
je 0x40cfbf
push dword [ebp - 0x78]
lea ecx, [ebp - 0x70]
call fcn.004059f0
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x70]
call fcn.0040de00
cmp dword [0x612724], 0
jne 0x40cf95
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xbb8
call esi
cmp dword [0x612724], 0
je 0x40cf85
cmp dword [ebp - 0x5c], 8
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [ebp - 0x70]
test eax, eax
je 0x40cfba
call fcn.00407ba0
mov esi, 1
jmp 0x40cfd5
call fcn.00407ba0
mov dword [0x612728], 0
mov dword [0x612724], 0
xor esi, esi
mov byte [ebp - 4], 5
mov eax, edi
mov edx, dword [ebp - 0x78]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40cff3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x74]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x40d00f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x40d024
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00407ad0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x30], 0
cmp eax, 8
jb 0x40d04d
inc eax
lea ecx, [ebp - 0x58]
push eax
push dword [ebp - 0x58]
call fcn.00407ad0
mov ecx, dword [ebp - 0x14]
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
cmp ecx, 8
jb 0x40d076
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00407ad0
mov eax, esi
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.00553c8d
mov esp, ebp
pop ebp
ret