Function at 0x418e90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x84
mov eax, dword [0x434004]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x88]
push ebp
push esi
push edi
mov dword [esp + 0x14], eax
mov edi, ecx
call dword [sym.imp.PAL.dll_PalTaskGetGroundData]
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
push edi
push ebx
mov dword [esp + 0x24], eax
call ebp
cmp dword [edi], 0
je 0x419194
push 0
lea edx, [esp + 0x10]
push edx
push 0x28
lea eax, [edi + 0x60]
push eax
push ebx
call ebp
movzx eax, word [edi + 0x84]
push 0
call fcn.00409480
mov edx, dword [edi + 0x68]
mov ecx, dword [edi + 0x64]
mov eax, dword [edi + 0x78]
push edx
push ecx
push eax
mov eax, dword [edi + 0x74]
lea esi, [edi + 0x1c8]
add eax, ecx
call fcn.004188d0
mov eax, dword [edi + 0x78]
lea edx, [eax - 1]
add esp, 0x10
xor ecx, ecx
test eax, edx
je 0x418f3a
test eax, eax
je 0x418f30
sar eax, 1
add ecx, 1
test eax, eax
jne 0x418f27
add ecx, 0xffffffff
mov eax, 2
shl eax, cl
mov edx, dword [edi + 0x74]
add edx, dword [edi + 0x64]
mov dword [esp + 0x18], 0
lea ecx, [edx - 1]
test edx, ecx
je 0x418f6a
test edx, edx
mov ecx, dword [esp + 0x18]
je 0x418f60
sar edx, 1
add ecx, 1
test edx, edx
jne 0x418f57
add ecx, 0xffffffff
mov edx, 2
shl edx, cl
mov esi, dword [sym.imp.PAL.dll_PalRenderGetActive]
push 0
push eax
push edx
call esi
push eax
call dword [sym.imp.PAL.dll_PalSpriteCreate]
add esp, 0x10
push 0
push 0x20
push 0x200
mov dword [edi + 8], eax
call esi
push eax
call dword [sym.imp.PAL.dll_PalSpriteCreate]
fild dword [edi + 0x70]
mov edx, dword [edi + 8]
mov esi, dword [sym.imp.PAL.dll_PalSpriteSetPos]
add esp, 8
fstp dword [esp + 4]
mov dword [edi + 4], eax
fild dword [edi + 0x6c]
fstp dword [esp]
push edx
call esi
fild dword [edi + 0x80]
mov eax, dword [edi + 4]
add esp, 4
fstp dword [esp + 4]
fild dword [edi + 0x7c]
fstp dword [esp]
push eax
call esi
add esp, 0xc
push 0
lea ecx, [esp + 0x10]
push ecx
push 4
lea esi, [edi + 0x1a0]
push esi
push ebx
call ebp
cmp dword [esi], 0
je 0x4190d1
push 0
lea edx, [esp + 0x10]
push edx
push 0x48
lea eax, [esp + 0x2c]
push eax
push ebx
call ebp
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x1c]
cmp eax, 0xffffffff
je 0x41900b
mov dword [esi], eax
mov edx, dword [esp + 0x14]
mov eax, dword [esi]
push 1
push edx
lea ecx, [esp + 0x74]
call fcn.00403330
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x14]
push eax
push ecx
lea esi, [edi + 0x88]
lea edx, [esi + 4]
push edx
lea eax, [esp + 0x80]
push eax
push esi
call fcn.0040e880
add esp, 0x1c
test eax, eax
jne 0x419091
mov ecx, dword [esp + 0x50]
push ecx
push eax
push eax
lea ecx, [esp + 0x78]
call fcn.0040e6a0
add esp, 0xc
test eax, eax
mov dword [esi], eax
jne 0x419091
lea edx, [esp + 0x6c]
push edx
push 0x42dec4
call dword [sym.imp.PAL.dll_PalErrorLogPrintf]
add esp, 8
neg eax
sbb eax, eax
add eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0041eaa8
add esp, 0x84
ret
mov ecx, dword [esi]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.PAL.dll_PalSpriteSetInfo]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x20]
add esp, 8
cmp eax, 0xffffffff
je 0x4190c3
shl eax, 0x18
or eax, 0xffffff
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.PAL.dll_PalSpriteSetColor]
add esp, 8
mov ecx, dword [esi]
push 1
push ecx
call dword [sym.imp.PAL.dll_PalSpriteViewCtrl]
add esp, 8
lea esi, [edi + 0x1ac]
mov edi, dword [sym.imp.PAL.dll_PalAnimation]
mov dword [esp + 0x10], 0
push 0
lea edx, [esp + 0x10]
push edx
push 4
push esi
push ebx
call ebp
cmp dword [esi], 0
je 0x41917d
push 0
lea eax, [esp + 0x10]
push eax
push 0x48
lea ecx, [esp + 0x2c]
push ecx
push ebx
call ebp
push 0
lea edx, [esp + 0x10]
push edx
push 4
lea eax, [esp + 0x28]
push eax
push ebx
call ebp
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
push 1
push ecx
lea ecx, [esp + 0x74]
call fcn.00403330
mov edx, dword [esp + 0x58]
push edx
push 0
push 0
lea ecx, [esp + 0x80]
call fcn.0040e6a0
add esp, 0x14
test eax, eax
mov dword [esi - 8], eax
je 0x41905f
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.PAL.dll_PalSpriteSetInfo]
mov edx, dword [esi - 8]
push 0
push edx
call dword [sym.imp.PAL.dll_PalSpriteViewCtrl]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esi - 8]
push eax
push 1
push ecx
call edi
add esp, 0x1c
mov dword [esi - 4], eax
mov eax, dword [esp + 0x10]
add eax, 1
add esi, 0xc
cmp eax, 3
mov dword [esp + 0x10], eax
jl 0x4190e5
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.0041eaa8
add esp, 0x84
ret