Function at 0x4666a0
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 8]
cdq
sub eax, edx
sar eax, 1
add ecx, eax
mov eax, dword [ebx + 0x14]
cdq
sub eax, edx
mov edx, dword [ebx + 0xc]
push esi
sar eax, 1
add edx, eax
push edi
mov esi, ecx
mov edi, edx
push 0
mov eax, ebx
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
call fcn.0045eb10
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x24]
cmp eax, 0x1b
jne 0x46670a
mov eax, 2
cmp dword [ebx + 0x3c], eax
je 0x466b6d
push ebx
mov dword [ebx + 0x3c], eax
call fcn.004665b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 2
jne 0x466812
mov eax, dword [ebx]
fldz
cmp byte [eax + 0x8c5], 0
jne 0x46676f
mov ecx, dword [0x6a9f00]
fst dword [esp + 0x18]
fcomp dword [ecx + 0xb30]
mov eax, dword [eax + 0x784]
mov dword [esp + 0x1c], eax
fnstsw ax
test ah, 0x44
jnp 0x466757
fld dword [ecx + 0xb30]
push ecx
fstp dword [esp]
call fcn.005af410
fstp dword [esp + 0x1c]
add esp, 4
fld dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
fstp dword [esp]
mov eax, 0x37
call fcn.00515020
fldz
mov eax, dword [ebx]
cmp byte [eax + 0x8c5], 0
jne 0x4667c9
mov ecx, dword [eax + 0x784]
fst dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov ecx, dword [0x6a9f00]
fcomp dword [ecx + 0xd38]
fnstsw ax
test ah, 0x44
jnp 0x4667b1
fld dword [ecx + 0xd38]
push ecx
fstp dword [esp]
call fcn.005af410
fstp dword [esp + 0x1c]
add esp, 4
fld dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
fstp dword [esp]
mov eax, 0x41
call fcn.00515020
jmp 0x4667cb
fstp st(0)
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x1c]
mov ecx, dword [ebx + 4]
push edx
push 1
push 1
push 0x73
push edi
push esi
push eax
push ecx
call fcn.0041d8a0
fild dword [esp + 0xc]
mov edx, dword [ebx]
mov eax, dword [edx + 0x820]
mov esi, dword [eax]
push 4
push 0x61a80
sub esp, 8
fstp dword [esp + 4]
fild dword [esp + 0x20]
fstp dword [esp]
call fcn.00518a70
jmp 0x466aaa
cmp eax, 0xf
jne 0x466890
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [0x6a7898]
mov edx, dword [edx + 0xd8]
push eax
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 4]
push eax
push 1
push 3
push 0xfa
push edi
push esi
push ecx
push edx
call fcn.0041d8a0
mov edi, ebx
call fcn.00466650
fild dword [esp + 0xc]
mov eax, dword [ebx]
mov ecx, dword [eax + 0x820]
mov esi, dword [ecx]
push 0x1e
push 0x61a80
sub esp, 8
fstp dword [esp + 4]
fild dword [esp + 0x20]
fstp dword [esp]
call fcn.00518a70
mov edx, dword [ebx + 0x28]
mov edi, dword [ebx + 0x1c]
mov eax, dword [ebx + 4]
push edx
call fcn.00408f80
mov dword [eax + 0x18], 0x4650
jmp 0x466aaa
cmp eax, 0x14
jne 0x46699e
jmp fcn.00798ed8
cmp eax, 0x25
jne 0x4669e9
mov eax, dword [ebx + 0x3c]
cmp eax, 0x28
je 0x466b6d
cmp eax, 0x29
je 0x466b6d
fld dword [0x679aac]
push ecx
fstp dword [esp]
push 3
push str.anim_block
xor ecx, ecx
mov eax, ebx
jmp loc.0079b012
cmp eax, 0xe
jne 0x466a2f
lea esi, [eax + 4]
mov eax, dword [ebx]
call fcn.00453630
mov edi, ebx
call fcn.00466420
fild dword [esp + 0xc]
mov edx, dword [ebx]
sub esp, 8
fstp dword [esp + 4]
lea eax, [esi + 0x18]
fild dword [esp + 0x18]
mov ecx, 0x61a80
fstp dword [esp]
call fcn.00453c80
push ebx
call fcn.004679b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 4
jne 0x466ada
mov eax, dword [0x6a72f0]
lea esi, [ecx - 0x14]
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov edx, dword [edx + 0xd8]
push eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], edi
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx + 4]
push eax
push 0
push 0
push 0x3c
push edi
push esi
push ecx
push edx
call fcn.0041d8a0
fild dword [esp + 0x1c]
mov ecx, dword [ebx + 0x1c]
mov edx, dword [ebx]
imul ecx, ecx, 0x2710
sub esp, 8
add ecx, 0x4af38
mov eax, 0x30
fstp dword [esp + 4]
fild dword [esp + 0x20]
fadd qword [0x679338]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp]
call fcn.00453c80
mov eax, dword [ebx + 4]
mov dword [eax + 0x5540], 0xc
mov dword [eax + 0x5544], 3
push ebx
mov dword [eax + 0x5548], 0xfffffffc
call fcn.004679b0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x23
jne 0x466b6d
mov esi, dword [ebx + 0x28]
cmp esi, 8
mov edi, dword [ebx + 0x1c]
mov edx, dword [ebx + 4]
ja 0x466b3d
cmp edi, 5
ja 0x466b3d
mov ecx, dword [edx + 0x8c]
call fcn.00453840
test al, al
je 0x466b14
mov eax, dword [edx + 0x15c]
call fcn.0043c1e0
test al, al
je 0x466b3d
push edi
push esi
lea ebx, [esp + 0x28]
call fcn.0040d2a0
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x466b3a
cmp byte [eax + 0x143], 0
je 0x466b3a
mov dword [eax + 0x130], 0x64
mov ebx, dword [ebp + 8]
fld dword [0x679aac]
push ecx
fstp dword [esp]
push 3
push str.anim_crumble
mov ecx, 0x14
mov eax, ebx
mov dword [ebx + 0x3c], 2
call fcn.0045fd90
mov eax, dword [ebx]
mov esi, 0x45
call fcn.00453630
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4