Function at 0x459fe0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [0x6ae154]
push esi
mov esi, ecx
test eax, eax
je 0x459fef
pop esi
jmp eax
cmp dword [esi + 0x55cb4], 0
jne 0x45a0ae
push ebx
push edi
push 0
mov dword [0x6ae150], 0
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
add esp, 4
mov edi, 1
lea ebx, [eax + 0x338]
nop
test dword [esi + 0x55dbc], edi
je case.0x45a03f.3
lea eax, [edi - 1]
cmp eax, 0xf
ja case.0x45a03f.3
movzx eax, byte [eax + 0x45a2ec]
jmp dword [eax*4 + 0x45a2d4]
mov ecx, ebx
call fcn.0041e260
test eax, eax
je case.0x45a03f.3
and dword [esi + 0x55dbc], 0xfffffffe
jmp case.0x45a03f.3
call dword [sym.imp.PAL.dll_PaltimeGetTime]
sub eax, dword [ebx + 0x55de4]
cmp eax, dword [ebx + 0x55de8]
jb case.0x45a03f.3
push dword [ebx + 0x55ddc]
call dword [sym.imp.PAL.dll_PalRenderGetActive]
push eax
call dword [sym.imp.PAL.dll_PalSpriteRelease]
add esp, 8
xorps xmm0, xmm0
movups xmmword [ebx + 0x55ddc], xmm0
and dword [ebx + 0x55db8], 0xfffffffd
call fcn.0045ee50
and dword [esi + 0x55dbc], 0xfffffffd
pop edi
pop ebx
pop esi
ret
mov ecx, ebx
call fcn.0041e000
test eax, eax
je case.0x45a03f.3
and dword [esi + 0x55dbc], 0xfffffffb
jmp case.0x45a03f.3
mov ecx, ebx
call fcn.0041ddb0
test eax, eax
je case.0x45a03f.3
and dword [esi + 0x55dbc], 0xfffffff7
jmp case.0x45a03f.3
cmp dword [ebx + 0x593dc], 2
jne case.0x45a03f.3
push 0x1fffffff
push 0
call dword [sym.imp.PAL.dll_PalGetFxEffectState]
add esp, 8
test eax, eax
jne case.0x45a03f.3
push 0x1fffffff
push eax
call dword [sym.imp.PAL.dll_PalReleaseFxEffect]
add esp, 8
and dword [esi + 0x55dbc], 0xffffffef
add edi, edi
jne 0x45a020
xor ecx, ecx
lea eax, [esi + 0x59474]
nop dword [eax + eax]
cmp dword [eax], 0
je 0x45a12f
cmp dword [eax + 0x18], 2
je 0x45a1ea
inc ecx
add eax, 0x7edcc
cmp ecx, 0x10
jl 0x45a120
call dword [sym.imp.PAL.dll_PalEffectIs]
test eax, eax
jne 0x45a0ac
cmp dword [esi + 0x3290], eax
jbe 0x45a16e
call dword [sym.imp.PAL.dll_PaltimeGetTime]
sub eax, dword [esi + 0x328c]
cmp eax, dword [esi + 0x3290]
jb 0x45a16e
mov dword [esi + 0x3290], 0
push 0
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
add esp, 4
cmp dword [eax + 0x84747c], 0
lea edi, [eax + 0x338]
je 0x45a1fd
cmp dword [edi + 0x847148], 0
je 0x45a1fd
cmp dword [edi + 0x84714c], 0
jne 0x45a1c9
push 3
push dword [edi + 0x55c98]
mov edx, 2
mov ecx, edi
call fcn.00460930
mov eax, dword [edi + 0x847150]
add esp, 8
add eax, dword [edi + 0x55c9c]
mov dword [edi + 0x55c98], eax
inc dword [edi + 0x84714c]
lea edi, [esi + 0x55c90]
mov dword [0x6ae150], 1
mov ecx, edi
call fcn.0045f550
test eax, eax
je 0x45a0ac
jmp 0x45a203
call dword [sym.imp.PAL.dll_PalEffectIs]
test eax, eax
jne 0x45a0ac
jmp 0x45a2bf
lea edi, [esi + 0x55c90]
cmp dword [esi + 0x3294], 0
jne 0x45a2ae
lea ecx, [esi + 0x3288]
call fcn.00416f70
test eax, eax
je 0x45a25f
mov ecx, edi
mov dword [0x4cb488], 0
pop edi
pop ebx
mov dword [0x4cb48c], 0
mov dword [0x4cb490], 1
mov byte [0x6add07], 0
mov byte [0x6add06], 0
mov dword [0x6ae150], 2
pop esi
jmp fcn.0045f550
lea ecx, [esi + 0x3288]
call fcn.0044ab00
test eax, eax
je 0x45a2ae
mov ecx, edi
mov dword [0x4cb488], 0
pop edi
pop ebx
mov dword [0x4cb48c], 0
mov dword [0x4cb490], 1
mov byte [0x6add07], 0
mov byte [0x6add06], 0
mov dword [0x6ae150], 3
pop esi
jmp fcn.0045f550
mov ecx, edi
mov dword [0x6ae150], 0
call fcn.0045f550
pop edi
pop ebx
lea ecx, [esi + 4]
mov dword [0x6ae150], 0
pop esi
jmp fcn.0044f6a0