Function at 0x46e540
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x64ea28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc8
fld1
push ebx
push esi
fst dword [esp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x5c]
cmp eax, 0xb
lea ecx, [eax + eax*2]
lea edx, [ecx*4 + 0x69f1c0]
push edi
mov dword [esp + 0x14], edx
jne 0x46e59b
mov eax, dword [0x6a7664]
fld dword [0x679668]
fstp dword [esp + 0x10]
mov dword [esp + 0xc], eax
jmp 0x46e6c3
test eax, eax
je 0x46e6b9
cmp eax, 0xd
je 0x46e6b9
cmp eax, 1
jne 0x46e5c0
jmp 0x7a8ea0
cmp eax, 6
jne 0x46e5d2
mov dword [esp + 0xc], 0
jmp 0x46e6c3
cmp eax, 8
jne 0x46e5e2
jmp 0x79ea80
cmp eax, 7
jne 0x46e5f5
jmp 0x7a8e70
cmp eax, 4
jne 0x46e633
mov ecx, dword [0x6a7830]
mov eax, dword [esi + 0x60]
push 1
sub esp, 8
fstp dword [esp + 4]
mov dword [esp + 0x18], ecx
fld dword [0x6795cc]
mov ecx, 0x1e
xor edx, edx
fstp dword [esp]
call fcn.00511bf0
fstp dword [esp + 0x1c]
fld1
add esp, 0xc
jmp 0x46e6c3
cmp eax, 9
jne 0x46e64a
fld dword [0x679fcc]
mov edx, dword [0x6a72f8]
fstp dword [esp + 0x10]
jmp 0x46e6bf
cmp eax, 2
jne 0x46e65e
jmp 0x7a8f50
cmp eax, 0xa
jne 0x46e679
jmp 0x7a9240
cmp eax, 0xc
jne 0x46e690
fld dword [0x679664]
jmp 0x7a92a0
cmp eax, 3
jne 0x46e6a4
mov eax, dword [0x6a78e8]
fst dword [esp + 0x10]
mov dword [esp + 0xc], eax
jmp 0x46e6c3
cmp eax, 5
jne 0x46e6c3
mov ecx, dword [0x6a7308]
fst dword [esp + 0x10]
mov dword [esp + 0xc], ecx
jmp 0x46e6c3
mov edx, dword [0x6a76a8]
mov dword [esp + 0xc], edx
cmp dword [esi + 0x58], 4
mov byte [esp + 0x20], 0
jne 0x46e6d3
mov byte [esp + 0x20], 1
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x46e828
call fcn.00588a40
mov edi, eax
mov dword [esp + 0x18], edi
call fcn.00588a30
fld dword [esi + 0x68]
mov ecx, dword [esi + 0x24]
mov ebx, eax
imul ecx, edi
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
fstp dword [esp + 0x14]
imul eax, ebx
fld dword [esp + 0x14]
fsub qword [0x679298]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fabs
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fcomp dword [0x6794b0]
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], edi
fnstsw ax
test ah, 5
mov dword [esp + 0x30], ebx
jp 0x46e790
sub esp, 8
fstp dword [esp + 4]
fld dword [esp + 0x18]
fstp dword [esp]
call fcn.0046c6f0
add esp, 8
jmp 0x7a54c0
fstp st(0)
fild dword [esp + 0x18]
mov eax, dword [esi + 4]
fld qword [0x679300]
fmul st(1), st(0)
fld dword [esi + 0x30]
faddp st(2)
fild dword [eax + 0x30]
faddp st(2)
fxch st(1)
fstp dword [esp + 0x18]
fld dword [esi + 0x38]
fadd dword [esi + 0x34]
fild dword [esp + 0x1c]
fmulp st(2)
faddp st(1)
fiadd dword [eax + 0x34]
lea eax, [esp + 0x44]
fstp dword [esp + 0x1c]
call fcn.005a3710
fld dword [esp + 0x10]
sub esp, 0x14
fst dword [esp + 0x10]
fstp dword [esp + 0xc]
fld dword [esi + 0x68]
jmp 0x7a5490
fstp st(0)
cmp dword [esi + 0x7c], 0
je 0x46e89b
mov ecx, dword [ebp + 0xc]
push ecx
lea edi, [esp + 0x6c]
call fcn.005869b0
mov dword [esp + 0xdc], 0
fld dword [esp + 0x70]
fisub dword [esi + 8]
fstp dword [esp + 0x70]
fld dword [esp + 0x74]
fisub dword [esi + 0xc]
mov esi, dword [esi + 0x7c]
test esi, esi
fstp dword [esp + 0x74]
je 0x46e892
mov edx, dword [0x6a9eb8]
mov ecx, dword [edx + 0xc]
movzx eax, si
cmp eax, dword [ecx + 8]
jae 0x46e892
imul eax, eax, 0x30c
add eax, dword [ecx]
cmp dword [eax + 0x308], esi
jne 0x46e892
push 0
mov ecx, edi
push ecx
mov ecx, eax
call fcn.00404d10
lea ecx, [esp + 0x68]
call fcn.00586b10
mov ecx, dword [esp + 0xd4]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8