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
jmp loc.00844870
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
jmp fcn.00842fb0
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], 0xd
mov dword [esi + 0xa8], edi
xor esi, esi
call fcn.0052f2e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
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]