Function at 0x1000cca0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebp
push esi
push 0
push 0
push 3
push 0
push 1
push 1
push eax
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000cccb
pop esi
xor al, al
pop ebp
pop ecx
ret 4
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x1000ccf2
lea ecx, [edi + 0xa]
push ecx
call fcn.1001f3e6
add esp, 4
test eax, eax
mov dword [ebp + 0x1280], eax
jne 0x1000cd03
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
xor al, al
pop ebp
pop ecx
ret 4
push 0
lea edx, [esp + 0x14]
push edx
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
push esi
je 0x1000ccf3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x1280]
push eax
mov ecx, ebp
call fcn.100083c0
cmp byte [eax], 0
je 0x1000ce7c
mov ecx, dword [str._script]
push ecx
push eax
call fcn.1001ffd0
add esp, 8
test eax, eax
je 0x1000ce7c
mov ecx, dword [str._script]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x1000cd56
sub ecx, esi
add ecx, eax
push ecx
mov ecx, ebp
call fcn.100083c0
mov ebx, eax
push 0x3e
push ebx
call fcn.1001fde0
mov esi, eax
add esp, 8
test esi, esi
je 0x1000ce94
mov edx, dword [str.type]
push edx
mov byte [esi], 0
push ebx
mov ecx, ebp
inc esi
call fcn.10008040
mov edi, eax
test edi, edi
jne 0x1000cda3
mov dword [esp + 0x18], 1
jmp 0x1000ce0b
mov edx, dword [str.statement]
mov eax, edx
lea ecx, [eax + 1]
mov dword [esp + 0x18], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000cdb2
sub eax, dword [esp + 0x18]
push eax
push edx
push edi
call fcn.1002ab3e
add esp, 0xc
test eax, eax
jne 0x1000cdd6
mov dword [esp + 0x18], 1
jmp 0x1000ce0b
mov edx, dword [0x1005b8c4]
mov eax, edx
lea ecx, [eax + 1]
mov dword [esp + 0x18], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000cde5
sub eax, dword [esp + 0x18]
push eax
push edx
push edi
call fcn.1002ab3e
add esp, 0xc
test eax, eax
jne 0x1000ced9
mov dword [esp + 0x18], 2
mov edx, dword [str.name]
push edx
push ebx
mov ecx, ebp
call fcn.10008040
mov ebx, eax
test ebx, ebx
je 0x1000ceab
mov eax, dword [str.__script_]
push eax
push esi
call fcn.1001ffd0
mov edi, eax
add esp, 8
test edi, edi
je 0x1000cec2
mov ecx, dword [esp + 0x18]
push esi
push ebx
push ecx
mov ecx, ebp
mov byte [edi], 0
call fcn.10009170
test al, al
je 0x1000cee7
mov eax, dword [str.__script_]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000ce60
sub eax, edx
add eax, edi
push eax
mov ecx, ebp
call fcn.100083c0
cmp byte [eax], 0
jne 0x1000cd35
push 1
push str.initial_settings
mov ecx, ebp
call fcn.1000c380
pop edi
pop ebx
pop esi
mov al, 1
pop ebp
pop ecx
ret 4
push str.Warning:_unterminated__script_tag__n
call fcn.10020198
add esp, 4
pop edi
pop ebx
pop esi
xor al, al
pop ebp
pop ecx
ret 4
push str.Warning:_script_missing_name__n
call fcn.10020198
add esp, 4
pop edi
pop ebx
pop esi
xor al, al
pop ebp
pop ecx
ret 4
push str.Warning:_script_missing_closing___script__n
call fcn.10020198
add esp, 4
pop edi
pop ebx
pop esi
xor al, al
pop ebp
pop ecx
ret 4
push edi
push str.Warning:_unknown_script_type__s_n
call fcn.10020198
add esp, 8
pop edi
pop ebx
pop esi
xor al, al
pop ebp
pop ecx
ret 4