Function at 0x525dc0
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x28]
cmp eax, 0xb
push edi
jne 0x525f40
cmp byte [esi + 0xba], 0
je 0x525f40
cmp dword [esi + 0x64], 0
jne 0x525f40
push 2
push esi
call fcn.0052e780
test eax, eax
mov dword [esp + 0x10], eax
je 0x525efe
mov edi, dword [eax + 0x1c]
mov eax, dword [eax + 0x28]
mov edx, dword [esi + 4]
push 3
mov ebx, eax
call fcn.00408e40
test eax, eax
je 0x525e7b
mov eax, dword [esp + 0x10]
mov ebx, dword [eax + 0x28]
mov esi, dword [eax + 0x1c]
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 4]
mov eax, ebx
call fcn.0041c680
add eax, 0x28
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
fld dword [edi + 0x2c]
fcompp
fnstsw ax
test ah, 5
jp 0x526181
cmp dword [edi + 0x64], 0
jne 0x526181
cmp dword [edi + 0x7c], ebx
je 0x526181
mov eax, dword [esp + 0x10]
mov dword [edi + 0x64], 6
mov ecx, dword [eax + 0x28]
mov dword [edi + 0x7c], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
fld dword [0x679638]
push ecx
fstp dword [esp]
push 0x14
push 3
push str.anim_jump
mov edi, esi
mov dword [esi + 0x28], 0xc
call fcn.00528b00
mov eax, dword [esi + 0x118]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x820]
mov edx, dword [edx + 8]
and eax, 0xffff
lea eax, [eax + eax*4]
shl eax, 5
add eax, dword [edx]
mov edx, dword [esp + 0x10]
fild dword [eax + 0x1c]
fdiv dword [eax + 8]
mov eax, dword [esi + 8]
sub eax, dword [edx + 8]
sub eax, 0x50
mov dword [esp + 0x10], eax
fmul qword [0x6792a0]
fstp dword [esp + 0x14]
call fcn.00453840
test al, al
je 0x525eec
mov dword [esp + 0x10], 0
fild dword [esp + 0x10]
mov byte [esi + 0xbc], 0
fdiv dword [esp + 0x14]
fstp dword [esi + 0x34]
mov eax, dword [esi]
call fcn.004537d0
test al, al
je 0x526181
mov eax, dword [esi + 4]
mov ecx, dword [eax + 0x160]
push ecx
mov eax, esi
call fcn.0042b810
test eax, eax
je 0x526181
mov eax, dword [ebp + 8]
mov dword [esi + 0x28], 0xd
xor esi, esi
call fcn.0052f2e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0xc
jne 0x526181
mov edx, dword [esi]
fld dword [0x679610]
mov eax, dword [edx + 0x820]
mov ecx, dword [eax + 8]
mov eax, dword [esi + 0x118]
and eax, 0xffff
lea ebx, [eax + eax*4]
shl ebx, 5
add ebx, dword [ecx]
mov byte [esp + 0xf], 0
fcomp dword [ebx + 4]
fnstsw ax
test ah, 5
jp 0x526015
fld dword [0x679928]
fcomp dword [ebx + 4]
fnstsw ax
test ah, 1
jne 0x526015
push 2
push esi
call fcn.0052e780
test eax, eax
mov dword [esp + 0x14], eax
je 0x526015
cmp dword [eax + 0x24], 0x17
jne 0x526015
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov esi, 0x30
call fcn.00453630
mov esi, dword [esp + 0x14]
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov ecx, dword [edi + 0x20]
sub edx, 0x14
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
mov edx, dword [edi]
add eax, 0x3c
sub esp, 8
mov dword [esp + 0x1c], eax
fstp dword [esp + 4]
fild dword [esp + 0x1c]
add ecx, 1
mov eax, 0x1d
mov byte [esp + 0x17], 1
fstp dword [esp]
call fcn.00453c80
fild dword [esi + 8]
mov dword [edi + 0x64], 7
mov esi, edi
fstp dword [edi + 0x2c]
fld dword [edi + 0x30]
fsub qword [0x679318]
fstp dword [edi + 0x30]
cmp dword [ebx + 0x5c], 0
jle 0x52602c
fld dword [esi + 0x2c]
mov byte [esp + 0xf], 1
fsub qword [0x679890]
fstp dword [esi + 0x2c]
fld dword [0x67953c]
push ecx
mov ecx, ebx
fstp dword [esp]
call fcn.00473b70
fldz
test al, al
je 0x526097
mov eax, dword [esi]
cmp byte [eax + 0x8c5], 0
jne 0x526097
mov ecx, dword [0x6a9f00]
fst dword [esp + 0x10]
fcomp dword [ecx + 0xf0c]
mov edi, dword [eax + 0x784]
fnstsw ax
test ah, 0x44
jnp 0x526081
fld dword [ecx + 0xf0c]
push ecx
fstp dword [esp]
call fcn.005af410
fstp dword [esp + 0x14]
add esp, 4
fld dword [esp + 0x10]
push ecx
mov eax, 0x4a
fstp dword [esp]
mov ecx, edi
call fcn.00515020
jmp 0x526099
fstp st(0)
fld dword [0x664a5c]
push ecx
mov ecx, ebx
fstp dword [esp]
call fcn.00473b70
test al, al
je 0x526102
mov eax, dword [esi]
cmp byte [eax + 0x8c5], 0
jne 0x526102
fldz
mov ecx, dword [0x6a9f00]
mov edi, dword [eax + 0x784]
fst dword [esp + 0x10]
fcomp dword [ecx + 0xfdc]
fnstsw ax
test ah, 0x44
jnp 0x5260ee
fld dword [ecx + 0xfdc]
push ecx
fstp dword [esp]
call fcn.005af410
fstp dword [esp + 0x14]
add esp, 4
fld dword [esp + 0x10]
push ecx
mov eax, 0x4e
fstp dword [esp]
mov ecx, edi
call fcn.00515020
cmp byte [esp + 0xf], 0
fld dword [esi + 0x2c]
je 0x526157
call fcn.006397d0
mov dword [esi + 8], eax
mov eax, 0x32
mov dword [esi + 0x9c], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [esi + 0xa0], ecx
mov edx, 0x14
mov dword [esi + 0xa4], edx
mov edi, 0x73
mov dword [esi + 0x28], 0xb
mov dword [esi + 0xa8], edi
jmp fcn.007a55cd
mov ecx, dword [esi + 0x1c]
fstp dword [esp + 0x14]
fld dword [esi + 0x2c]
push ecx
fld dword [ebx + 4]
mov eax, esi
fmul qword [0x679890]
fsubp st(1)
fstp dword [esi + 0x2c]
call fcn.00531880
fstp dword [esi + 0x30]
fld dword [esp + 0x14]
fstp dword [esi + 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4