Function at 0x445d90
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x643004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x110]
mov edi, ecx
push eax
push str.Script.src
mov dword [ebp - 0x11c], edi
call dword [sym.imp.PAL.dll_PalFileCreate]
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
je 0x445e06
mov ecx, dword [ebp - 0x108]
push 0
push ecx
mov dword [edi + 0x499c0], 0
mov dword [edi + 0x499c8], 0
mov dword [edi + 0x499bc], ecx
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
add esp, 8
mov dword [edi + 0x499b8], eax
test eax, eax
jne 0x445e33
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.script_load_error
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0xc
call dword [sym.imp.PAL.dll_PalEnd]
pop edi
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482be9
mov esp, ebp
pop ebp
ret
push 0
lea ecx, [ebp - 0x114]
push ecx
push dword [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [ebp - 0x108]
cmp eax, dword [ebp - 0x114]
jne 0x445e06
mov ecx, dword [edi + 0x499b8]
cmp dword [ecx], 0x30327653
jne 0x445e06
add dword [edi + 0x499c0], 8
mov eax, dword [edi + 0x499c0]
mov ecx, dword [eax + ecx]
add eax, 4
mov dword [edi + 0x499c4], eax
lea eax, [ebp - 0x110]
push eax
push str.File.dat
mov dword [edi + 0x499c8], ecx
mov dword [edi + 0x499c0], ecx
call dword [sym.imp.PAL.dll_PalFileCreate]
add esp, 8
mov dword [ebp - 0x114], eax
cmp eax, 0xffffffff
je 0x445ede
mov ecx, dword [ebp - 0x108]
push 0
push ecx
mov dword [edi + 0x32c88], ecx
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
add esp, 8
mov dword [edi + 0x32c78], eax
test eax, eax
jne 0x445ee8
push dword [ebp - 0x114]
call esi
push str.filelist_load_error
jmp 0x445e0b
push 0
lea ecx, [ebp - 0x120]
push ecx
push dword [edi + 0x32c88]
push eax
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x114]
call esi
mov eax, dword [edi + 0x32c78]
cmp byte [eax], 0x24
jne 0x445f70
mov ecx, dword [edi + 0x32c88]
add eax, 0x10
sub ecx, 0x10
mov dword [ebp - 0x118], eax
mov eax, ecx
mov dword [ebp - 0x114], ecx
and eax, 3
je 0x445f3e
sub ecx, eax
mov dword [ebp - 0x114], ecx
mov edi, dword [ebp - 0x118]
mov cl, 4
mov edx, dword [ebp - 0x114]
rol byte [edi], cl
add cl, 1
and cl, 0xff
mov eax, 0x84df873
xor dword [edi], eax
mov eax, 0xff987dee
xor dword [edi], eax
add edi, 4
sub edx, 4
jne 0x445f4c
mov edi, dword [ebp - 0x11c]
lea eax, [ebp - 0x110]
push eax
push str.Text.dat
call dword [sym.imp.PAL.dll_PalFileCreate]
add esp, 8
mov dword [ebp - 0x114], eax
cmp eax, 0xffffffff
je 0x445fba
mov ecx, dword [ebp - 0x108]
push 0
push ecx
mov dword [edi + 0x32c8c], ecx
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
add esp, 8
mov dword [edi + 0x32c7c], eax
test eax, eax
jne 0x445fc4
push dword [ebp - 0x114]
call esi
push str.textlist_load_error
jmp 0x445e0b
push 0
lea ecx, [ebp - 0x120]
push ecx
push dword [edi + 0x32c8c]
push eax
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x114]
call esi
mov eax, dword [edi + 0x32c7c]
cmp byte [eax], 0x24
jne 0x44604c
mov ecx, dword [edi + 0x32c8c]
add eax, 0x10
sub ecx, 0x10
mov dword [ebp - 0x118], eax
mov eax, ecx
mov dword [ebp - 0x114], ecx
and eax, 3
je 0x44601a
sub ecx, eax
mov dword [ebp - 0x114], ecx
mov edi, dword [ebp - 0x118]
mov cl, 4
mov edx, dword [ebp - 0x114]
rol byte [edi], cl
add cl, 1
and cl, 0xff
mov eax, 0x84df873
xor dword [edi], eax
mov eax, 0xff987dee
xor dword [edi], eax
add edi, 4
sub edx, 4
jne 0x446028
mov edi, dword [ebp - 0x11c]
lea eax, [ebp - 0x110]
push eax
push str.Mem.dat
call dword [sym.imp.PAL.dll_PalFileCreate]
add esp, 8
mov dword [ebp - 0x114], eax
cmp eax, 0xffffffff
je 0x446096
mov ecx, dword [ebp - 0x108]
push 0
push ecx
mov dword [edi + 0x32c90], ecx
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
add esp, 8
mov dword [edi + 0x32c80], eax
test eax, eax
jne 0x4460a0
push dword [ebp - 0x114]
call esi
push str.tablelist_load_error
jmp 0x445e0b
push 0
lea ecx, [ebp - 0x120]
push ecx
push dword [edi + 0x32c90]
push eax
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x114]
call esi
mov eax, dword [edi + 0x32c80]
cmp byte [eax], 0x24
jne 0x446128
mov ecx, dword [edi + 0x32c90]
add eax, 0x10
sub ecx, 0x10
mov dword [ebp - 0x118], eax
mov eax, ecx
mov dword [ebp - 0x114], ecx
and eax, 3
je 0x4460f6
sub ecx, eax
mov dword [ebp - 0x114], ecx
mov edi, dword [ebp - 0x118]
mov cl, 4
mov edx, dword [ebp - 0x114]
rol byte [edi], cl
add cl, 1
and cl, 0xff
mov eax, 0x84df873
xor dword [edi], eax
mov eax, 0xff987dee
xor dword [edi], eax
add edi, 4
sub edx, 4
jne 0x446104
mov edi, dword [ebp - 0x11c]
lea eax, [ebp - 0x110]
push eax
push str.Point.dat
call dword [sym.imp.PAL.dll_PalFileCreate]
add esp, 8
mov dword [ebp - 0x114], eax
cmp eax, 0xffffffff
je 0x446172
mov ecx, dword [ebp - 0x108]
push 0
push ecx
mov dword [edi + 0x32c94], ecx
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
add esp, 8
mov dword [edi + 0x32c84], eax
test eax, eax
jne 0x44617c
push dword [ebp - 0x114]
call esi
push str.pointlist_load_error
jmp 0x445e0b
push 0
lea ecx, [ebp - 0x120]
push ecx
push dword [edi + 0x32c94]
push eax
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x114]
call esi
mov eax, dword [edi + 0x32c84]
cmp byte [eax], 0x24
jne 0x446204
mov ecx, dword [edi + 0x32c94]
add eax, 0x10
sub ecx, 0x10
mov dword [ebp - 0x118], eax
mov eax, ecx
mov dword [ebp - 0x114], ecx
and eax, 3
je 0x4461d2
sub ecx, eax
mov dword [ebp - 0x114], ecx
mov edi, dword [ebp - 0x118]
mov cl, 4
mov edx, dword [ebp - 0x114]
rol byte [edi], cl
add cl, 1
and cl, 0xff
mov eax, 0x84df873
xor dword [edi], eax
mov eax, 0xff987dee
xor dword [edi], eax
add edi, 4
sub edx, 4
jne 0x4461e0
mov edi, dword [ebp - 0x11c]
push 1
push 0x200000
mov dword [edi + 0x2240], 0
mov dword [edi + 0x2274], 0
mov dword [edi + 0x225c], 0
mov dword [edi + 0x2260], 0
mov dword [edi + 0x222c], 1
mov dword [edi + 0x2224], 0x80
mov dword [edi + 0x2228], 0x48
mov dword [edi + 0x2234], 0x9000
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
add esp, 8
mov dword [edi + 0x2264], eax
test eax, eax
jne 0x446276
push dword [edi + 0x2230]
jmp 0x4462ac
push 1
push 0x200000
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
add esp, 8
mov dword [edi + 0x2270], eax
test eax, eax
je 0x44626e
push 0
push dword [edi + 0x2234]
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
add esp, 8
mov dword [edi + 0x2230], eax
test eax, eax
jne 0x4462d9
push eax
mov esi, dword [sym.imp.PAL.dll_PalMemoryFree]
call esi
push dword [edi + 0x2270]
call esi
push dword [edi + 0x2264]
call esi
push dword [0x833598]
call esi
add esp, 0x10
push str.saveload_initialize_error
jmp 0x445e0b
mov ecx, edi
call fcn.0044abf0
lea eax, [ebp - 0x110]
push eax
push str.graphic.dat
call dword [sym.imp.PAL.dll_PalFileCreate]
add esp, 8
mov dword [ebp - 0x114], eax
cmp eax, 0xffffffff
je 0x4463e8
mov ecx, dword [ebp - 0x108]
inc ecx
push 0
push ecx
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
mov ecx, dword [ebp - 0x108]
add esp, 8
mov dword [0x7a46c4], eax
mov byte [ecx + eax], 0
lea eax, [ebp - 0x120]
push 0
push eax
push dword [ebp - 0x108]
push dword [0x7a46c4]
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x114]
call esi
mov edx, dword [0x7a46c4]
cmp byte [edx], 0x24
jne 0x4463b9
mov ecx, dword [ebp - 0x108]
lea eax, [edx + 0x10]
add ecx, 0xfffffff0
mov dword [ebp - 0x118], eax
mov eax, ecx
mov dword [ebp - 0x114], ecx
and eax, 3
je 0x446381
sub ecx, eax
mov dword [ebp - 0x114], ecx
mov edi, dword [ebp - 0x118]
mov cl, 4
mov edx, dword [ebp - 0x114]
rol byte [edi], cl
add cl, 1
and cl, 0xff
mov eax, 0x84df873
xor dword [edi], eax
mov eax, 0xff987dee
xor dword [edi], eax
add edi, 4
sub edx, 4
jne 0x44638f
mov edx, dword [0x7a46c4]
mov edi, dword [ebp - 0x11c]
push 0x7f8
lea eax, [edx + 0x10]
push eax
push 0x7a46cc
call fcn.0048cb50
mov eax, dword [0x7a46c4]
add esp, 0xc
add eax, 0x808
mov dword [0x7a46c0], 1
mov dword [0x7a46c8], eax
call dword [sym.imp.PAL.dll_PalRenderInit]
mov dword [edi], eax
test eax, eax
jne 0x4463fe
push str.render_init_error
jmp 0x445e0b
push eax
call dword [sym.imp.PAL.dll_PalRenderSetActive]
mov esi, dword [sym.imp.PAL.dll_PalListCreate]
add esp, 4
call esi
mov dword [edi + 0x49a68], eax
test eax, eax
jne 0x446424
push str.list_create_error
jmp 0x445e0b
call esi
mov dword [edi + 0x499b4], eax
test eax, eax
je 0x4462cf
mov eax, dword [str..ogg]
xor esi, esi
test eax, eax
je 0x446484
nop
push eax
push str.VO_MITSUYOSHI0001
lea eax, [ebp - 0x104]
push 0x625b34
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.PAL.dll_PalFileCreate]
add esp, 0x18
cmp eax, 0xffffffff
jne 0x446597
mov eax, dword [esi*4 + 0x625b64]
inc esi
test eax, eax
jne 0x446440
xor eax, eax
push str.VO_MITSUYOSHI
mov dword [0x652eb8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [edi + 0x25b58]
mov dword [0x652eb4], eax
mov edi, 8
push 0x5c
push 0
push esi
call fcn.00484a00
mov dword [esi + 0x30], 1
add esp, 0xc
add esi, 0x5c
sub edi, 1
jne 0x4464a6
push edi
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
mov edi, dword [ebp - 0x11c]
mov esi, dword [sym.imp.PAL.dll_PalDebugSetData]
lea ecx, [edi + 0x399a0]
push 0x400
push ecx
lea eax, [edi + 0x33198]
push 0xb
mov dword [ecx], eax
call esi
lea ecx, [edi + 0x399a4]
push 0x100
push ecx
lea eax, [edi + 0x34198]
push 0xd
mov dword [ecx], eax
call esi
lea ecx, [edi + 0x399a8]
push 0x400
push ecx
lea eax, [edi + 0x38198]
push 0xc
mov dword [ecx], eax
call esi
lea ecx, [edi + 0x399ac]
push 1
push ecx
lea eax, [edi + 0x39198]
push 0x11
mov dword [ecx], eax
call esi
lea ecx, [edi + 0x399b0]
push 1
push ecx
lea eax, [edi + 0x3919c]
push 0x12
mov dword [ecx], eax
call esi
add esp, 0x40
lea ecx, [edi + 0x25424]
lea eax, [edi + 0x2543c]
mov dword [ecx], eax
push 0x170
push ecx
push 0xe
call esi
lea ecx, [edi + 0x25428]
push 0x2e
push ecx
lea eax, [edi + 0x2583c]
push 0xf
mov dword [ecx], eax
call esi
add esp, 0x18
call dword [sym.imp.PAL.dll_Pal3DIs]
mov ecx, dword [ebp - 4]
pop edi
mov dword [0x652ebc], eax
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00482be9
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x446486