Function at 0x467500
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x4d1008]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov edi, ecx
push 0x26598
push 0
lea eax, [edi + 0x30]
mov dword [edi], 0
push eax
call fcn.00470a00
push 0x164
lea eax, [edi + 0x26600]
mov dword [edi + 0x265d4], 0
push 0
push eax
call fcn.00470a00
push 0x851788
lea eax, [edi + 0x26768]
push 0
push eax
call fcn.00470a00
mov dword [edi + 4], 0
mov dword [edi + 0x10], 1
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 0x14], 1
mov dword [edi + 0x20], 0x32
mov dword [edi + 0x1c], 0x32
mov dword [edi + 0x24], 0
mov dword [edi + 0x18], 0xffffffff
mov dword [edi + 0x28], 0xffffffff
mov dword [edi + 0x2c], 0xffffffff
mov dword [edi + 0x265c8], 0x1388
mov dword [edi + 0x265cc], 0x1388
mov dword [edi + 0x265d8], 0x1388
mov dword [edi + 0x265dc], 0x1388
mov dword [edi + 0x265e0], 0x1388
mov dword [edi + 0x265d0], 0x1388
mov dword [edi + 0x26764], 0x1388
mov dword [edi + 0x265e4], 1
mov dword [edi + 0x265e8], 1
mov dword [edi + 0x265ec], 1
mov dword [edi + 0x265f0], 1
mov dword [edi + 0x265f4], 1
mov dword [edi + 0x265f8], 1
mov dword [edi + 0x265fc], 1
push dword [edi + 0x265c8]
call dword [sym.imp.PAL.dll_PalSoundSetPrimaryVolume]
mov esi, dword [sym.imp.PAL.dll_PalSoundSetVolume]
push 1
push dword [edi + 0x265d0]
call esi
push 3
push dword [edi + 0x265cc]
call esi
push 5
push dword [edi + 0x265d8]
call esi
add esp, 0x40
push 4
push dword [edi + 0x265dc]
call esi
push 6
push dword [edi + 0x265e0]
call esi
lea eax, [esp + 0x28]
push eax
push str.Script.src
call dword [sym.imp.PAL.dll_PalFileCreate]
mov esi, eax
add esp, 0x18
cmp esi, 0xffffffff
jne 0x4676bb
push 0x4c2b44
call dword [sym.imp.PAL.dll_PalErrorLogPrintf]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0046e94e
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
mov ebx, dword [sym.imp.PAL.dll_PalFileSetFilePointer]
add eax, 4
push 0
push 0
push 0
push eax
push esi
call ebx
add esp, 0x14
lea eax, [esp + 0x14]
push 0
push eax
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
push eax
push str.Text.dat
call dword [sym.imp.PAL.dll_PalFileCreate]
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x467729
push 0x4c2bf0
call dword [sym.imp.PAL.dll_PalErrorLogPrintf]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0046e94e
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
push 0
push 0
add eax, 0xc
push 0
push eax
push esi
call ebx
add esp, 0x14
lea eax, [esp + 0x14]
push 0
push eax
push 4
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
cmp eax, 0x30d40
jbe 0x467784
push 0x40030
push 0x4bcf1c
push 0x4c2ba8
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x10]
shr eax, 3
inc eax
push 1
push eax
mov dword [edi + 0x877ee8], eax
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
add esp, 8
mov dword [edi + 0x877ee0], eax
test eax, eax
jne 0x4677c6
push 0x4c2c48
call dword [sym.imp.PAL.dll_PalErrorLogPrintf]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0046e94e
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
push eax
push str.File.dat
call dword [sym.imp.PAL.dll_PalFileCreate]
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x467802
push 0x4c2c1c
call dword [sym.imp.PAL.dll_PalErrorLogPrintf]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0046e94e
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x18]
push 0
push 0
add eax, 0xc
push 0
push eax
push esi
call ebx
add esp, 0x14
lea eax, [esp + 0x14]
push 0
push eax
push 4
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
cmp eax, 0x10000
jb 0x46785d
push 0x40030
push 0x4bcf1c
push 0x4c2cb0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x10]
shr eax, 2
inc eax
push 1
push eax
mov dword [edi + 0x877ee4], eax
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
add esp, 8
mov dword [edi + 0x877edc], eax
test eax, eax
jne 0x46789f
push 0x4c2c7c
call dword [sym.imp.PAL.dll_PalErrorLogPrintf]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0046e94e
mov esp, ebp
pop ebp
ret
mov ecx, edi
call fcn.00467250
push 0x4c2cf8
call dword [sym.imp.PAL.dll_PalErrorLogPrintf]
mov ecx, dword [esp + 0x28]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0046e94e
mov esp, ebp
pop ebp
ret