Function at 0x507920
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xd4
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x20]
dec edi
mov ecx, edi
shl ecx, 4
fld dword [ecx + edx + 4]
fcomp dword [ebp + 0x24]
fnstsw ax
test ah, 1
mov eax, dword [ebp + 0x10]
jne 0x5079af
fld dword [ecx + edx + 4]
mov eax, dword [ebp + 8]
fld dword [ecx + edx + 8]
mov edx, dword [ecx + edx]
mov dword [eax], edx
fxch st(1)
fstp dword [eax + 4]
mov dword [esp + 0x10], 1
mov byte [esp + 0xf], 1
fstp dword [eax + 8]
mov edx, dword [esi + edi*8]
fld dword [esi + edi*8 + 4]
mov eax, dword [ebp + 0xc]
fstp dword [eax + 4]
mov dword [eax], edx
fld dword [ecx + ebx + 4]
mov edx, dword [ecx + ebx]
fld dword [ecx + ebx + 8]
mov eax, dword [ebp + 0x10]
fld dword [ecx + ebx + 0xc]
mov dword [eax], edx
fstp dword [esp + 0x20]
mov edx, dword [esp + 0x20]
fxch st(1)
fstp dword [eax + 4]
mov dword [eax + 0xc], edx
fstp dword [eax + 8]
jmp 0x5079bc
mov dword [esp + 0x10], 0
mov byte [esp + 0xf], 0
cmp dword [ebp + 0x20], 4
mov dword [esp + 0x1c], 0
jl 0x508606
mov edx, dword [ebp + 8]
mov dword [esp + 0x18], ecx
lea ecx, [edi*8]
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x10]
shl ecx, 4
lea edi, [ecx + eax]
mov eax, dword [ebp + 0x14]
add ecx, edx
lea edx, [ebx + 0x1c]
sub ebx, eax
mov dword [esp + 0x30], ebx
add esi, 0xc
mov ebx, 0x18
sub ebx, eax
mov dword [esp + 0x14], esi
mov esi, dword [ebp + 0x14]
mov dword [esp + 0xd8], ebx
mov ebx, dword [ebp + 0x18]
mov eax, 0xc
add esi, 0x18
sub eax, ebx
mov dword [esp + 0x20], 3
mov dword [esp + 0xdc], eax
fld dword [esi - 0x14]
fcomp dword [ebp + 0x24]
fnstsw ax
mov al, byte [esp + 0xf]
test ah, 1
jne 0x507bf7
test al, al
jne 0x507b9c
fld dword [esi - 0x18]
mov eax, dword [esp + 0x18]
mov ebx, dword [ebp + 0x14]
fsub dword [eax + ebx]
fld dword [eax + ebx + 4]
fsubr dword [esi - 0x14]
fld dword [esi - 0x10]
fsub dword [eax + ebx + 8]
fstp dword [esp + 0xc8]
mov ebx, dword [esp + 0xc8]
fxch st(1)
fstp dword [ecx]
mov dword [ecx + 8], ebx
mov ebx, dword [ebp + 0x14]
fstp dword [ecx + 4]
fld dword [ebp + 0x24]
fsub dword [eax + ebx + 4]
fdiv dword [ecx + 4]
fld st(0)
fmul dword [ecx]
fstp dword [ecx]
fld st(0)
fmul dword [ecx + 4]
fstp dword [ecx + 4]
fld st(0)
fmul dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [eax + ebx + 4]
fld dword [eax + ebx + 8]
fld dword [ecx]
fadd dword [eax + ebx]
mov eax, dword [esp + 0x14]
mov ebx, dword [ebp + 0x18]
fstp dword [ecx]
fxch st(1)
fadd dword [ecx + 4]
fstp dword [ecx + 4]
fadd dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [eax - 0xc]
mov eax, dword [esp + 0x34]
fsub dword [eax + ebx]
mov ebx, dword [esp + 0x14]
fld dword [ebx - 8]
mov ebx, dword [ebp + 0x18]
fsub dword [eax + ebx + 4]
fxch st(1)
fmul st(2)
fstp dword [esp + 0x38]
fmul st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x38]
fadd dword [eax + ebx]
fld dword [eax + ebx + 4]
mov ebx, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
fadd dword [esp + 0x3c]
fxch st(1)
fstp dword [ebx + eax*8]
fstp dword [ebx + eax*8 + 4]
mov eax, dword [esp + 0x18]
fld dword [edx - 0x1c]
mov ebx, dword [ebp + 0x1c]
fsub dword [eax + ebx]
fld dword [edx - 0x18]
add ecx, 0x10
fsub dword [eax + ebx + 4]
fld dword [edx - 0x14]
fsub dword [eax + ebx + 8]
fstp dword [esp + 0x68]
fld dword [edx - 0x10]
fsub dword [eax + ebx + 0xc]
mov byte [esp + 0xf], 1
fstp dword [esp + 0x6c]
fxch st(1)
fmul st(2)
fstp dword [esp + 0x40]
fmul st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x68]
fmul st(1)
fstp dword [esp + 0x48]
fmul dword [esp + 0x6c]
fld dword [esp + 0x40]
fadd dword [eax + ebx]
fld dword [eax + ebx + 4]
fadd dword [esp + 0x44]
fld dword [eax + ebx + 8]
fadd dword [esp + 0x48]
fstp dword [esp + 0x78]
fld dword [eax + ebx + 0xc]
mov eax, dword [esp + 0x78]
mov ebx, dword [esp + 0x10]
fadd st(3)
mov dword [edi + 8], eax
inc ebx
fstp dword [esp + 0x7c]
mov eax, dword [esp + 0x7c]
fxch st(1)
fstp dword [edi]
mov dword [edi + 0xc], eax
add edi, 0x10
fstp dword [edi - 0xc]
fstp st(0)
jmp 0x507ba0
mov ebx, dword [esp + 0x10]
fld dword [esi - 0x14]
mov eax, dword [esp + 0x14]
fld dword [esi - 0x10]
inc ebx
fld dword [esi - 0x18]
add ecx, 0x10
fstp dword [ecx - 0x10]
fxch st(1)
mov dword [esp + 0x10], ebx
fstp dword [ecx - 0xc]
add edi, 0x10
fstp dword [ecx - 8]
fld dword [eax - 8]
fld dword [eax - 0xc]
mov eax, dword [ebp + 0xc]
fstp dword [eax + ebx*8 - 8]
fstp dword [eax + ebx*8 - 4]
mov eax, dword [edx - 0x10]
fld dword [edx - 0x18]
mov dword [esp + 0x2c], eax
fld dword [edx - 0x14]
fld dword [edx - 0x1c]
mov dword [edi - 4], eax
fstp dword [edi - 0x10]
fxch st(1)
fstp dword [edi - 0xc]
fstp dword [edi - 8]
jmp 0x507d72
test al, al
je 0x507d6e
fld dword [esi - 0x18]
mov eax, dword [esp + 0x18]
mov ebx, dword [ebp + 0x14]
fsub dword [eax + ebx]
fld dword [eax + ebx + 4]
fsubr dword [esi - 0x14]
fld dword [esi - 0x10]
fsub dword [eax + ebx + 8]
fstp dword [esp + 0xb8]
mov ebx, dword [esp + 0xb8]
fxch st(1)
fstp dword [ecx]
mov dword [ecx + 8], ebx
mov ebx, dword [ebp + 0x14]
fstp dword [ecx + 4]
fld dword [ebp + 0x24]
fsub dword [eax + ebx + 4]
fdiv dword [ecx + 4]
fld st(0)
fmul dword [ecx]
fstp dword [ecx]
fld st(0)
fmul dword [ecx + 4]
fstp dword [ecx + 4]
fld st(0)
fmul dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [eax + ebx + 4]
fld dword [eax + ebx + 8]
fld dword [eax + ebx]
mov eax, dword [esp + 0x14]
fadd dword [ecx]
mov ebx, dword [ebp + 0x18]
fstp dword [ecx]
fxch st(1)
fadd dword [ecx + 4]
fstp dword [ecx + 4]
fadd dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [eax - 0xc]
mov eax, dword [esp + 0x34]
fsub dword [eax + ebx]
mov ebx, dword [esp + 0x14]
fld dword [ebx - 8]
mov ebx, dword [ebp + 0x18]
fsub dword [eax + ebx + 4]
fxch st(1)
fmul st(2)
fstp dword [esp + 0x24]
fmul st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x24]
fadd dword [eax + ebx]
fld dword [eax + ebx + 4]
mov ebx, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
fadd dword [esp + 0x28]
fxch st(1)
fstp dword [ebx + eax*8]
fstp dword [ebx + eax*8 + 4]
mov eax, dword [esp + 0x18]
fld dword [edx - 0x1c]
mov ebx, dword [ebp + 0x1c]
fsub dword [eax + ebx]
fld dword [edx - 0x18]
add ecx, 0x10
fsub dword [eax + ebx + 4]
fld dword [edx - 0x14]
fsub dword [eax + ebx + 8]
fstp dword [esp + 0x98]
fld dword [edx - 0x10]
fsub dword [eax + ebx + 0xc]
mov byte [esp + 0xf], 0
fstp dword [esp + 0x9c]
fxch st(1)
fmul st(2)
fstp dword [esp + 0x50]
fmul st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x98]
fmul st(1)
fstp dword [esp + 0x58]
fmul dword [esp + 0x9c]
fld dword [esp + 0x50]
fadd dword [eax + ebx]
fld dword [eax + ebx + 4]
fadd dword [esp + 0x54]
fld dword [eax + ebx + 8]
fadd dword [esp + 0x58]
fstp dword [esp + 0x88]
fld dword [eax + ebx + 0xc]
mov eax, dword [esp + 0x88]
mov ebx, dword [esp + 0x10]
fadd st(3)
mov dword [edi + 8], eax
inc ebx
fstp dword [esp + 0x8c]
mov eax, dword [esp + 0x8c]
fxch st(1)
fstp dword [edi]
mov dword [edi + 0xc], eax
mov dword [esp + 0x10], ebx
fstp dword [edi + 4]
add edi, 0x10
fstp st(0)
jmp 0x507d72
mov ebx, dword [esp + 0x10]
fld dword [esi - 4]
fcomp dword [ebp + 0x24]
fnstsw ax
mov al, byte [esp + 0xf]
test ah, 1
jne 0x507ef1
test al, al
jne 0x507eaa
fld dword [esi - 8]
fsub dword [esi - 0x18]
fld dword [esi - 4]
fsub dword [esi - 0x14]
fld dword [esi]
fsub dword [esi - 0x10]
fstp dword [esp + 0xc8]
mov eax, dword [esp + 0xc8]
fxch st(1)
fstp dword [ecx]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x14]
fstp dword [ecx + 4]
fld dword [ebp + 0x24]
fsub dword [esi - 0x14]
fdiv dword [ecx + 4]
fld st(0)
fmul dword [ecx]
fstp dword [ecx]
fld st(0)
fmul dword [ecx + 4]
fstp dword [ecx + 4]
fld st(0)
fmul dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [esi - 0x14]
fld dword [esi - 0x10]
fld dword [ecx]
fadd dword [esi - 0x18]
fstp dword [ecx]
fxch st(1)
fadd dword [ecx + 4]
fstp dword [ecx + 4]
fadd dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [eax - 4]
fsub dword [eax - 0xc]
fld dword [eax]
fsub dword [eax - 8]
fxch st(1)
fmul st(2)
fstp dword [esp + 0x38]
fmul st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x38]
fadd dword [eax - 0xc]
fld dword [esp + 0x3c]
fadd dword [eax - 8]
mov eax, dword [ebp + 0xc]
fxch st(1)
fstp dword [eax + ebx*8]
fstp dword [eax + ebx*8 + 4]
mov eax, dword [esp + 0x30]
fld dword [edx - 0xc]
fsub dword [edx - 0x1c]
fld dword [edx - 8]
fsub dword [edx - 0x18]
fld dword [eax + esi]
fsub dword [edx - 0x14]
fstp dword [esp + 0x68]
fld dword [edx]
fsub dword [edx - 0x10]
fstp dword [esp + 0x6c]
fxch st(1)
fmul st(2)
inc ebx
add ecx, 0x10
add edi, 0x10
fstp dword [esp + 0x40]
mov byte [esp + 0xf], 1
fmul st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x68]
fmul st(1)
fstp dword [esp + 0x48]
fmul dword [esp + 0x6c]
fld dword [esp + 0x40]
fadd dword [edx - 0x1c]
fld dword [esp + 0x44]
fadd dword [edx - 0x18]
fld dword [esp + 0x48]
fadd dword [edx - 0x14]
fstp dword [esp + 0x78]
mov eax, dword [esp + 0x78]
fxch st(2)
fadd dword [edx - 0x10]
mov dword [edi - 8], eax
fstp dword [esp + 0x7c]
mov eax, dword [esp + 0x7c]
fstp dword [edi - 0x10]
mov dword [edi - 4], eax
fstp dword [edi - 0xc]
fld dword [esi - 4]
mov eax, dword [esp + 0x14]
fld dword [esi]
fld dword [esi - 8]
fstp dword [ecx]
fxch st(1)
fstp dword [ecx + 4]
fstp dword [ecx + 8]
fld dword [eax]
fld dword [eax - 4]
mov eax, dword [ebp + 0xc]
fstp dword [eax + ebx*8]
fstp dword [eax + ebx*8 + 4]
mov eax, dword [esp + 0x30]
fld dword [edx - 8]
fld dword [eax + esi]
mov eax, dword [edx]
fld dword [edx - 0xc]
mov dword [esp + 0x2c], eax
fstp dword [edi]
fxch st(1)
fstp dword [edi + 4]
fstp dword [edi + 8]
jmp 0x508021
test al, al
je 0x50802f
fld dword [esi - 8]
fsub dword [esi - 0x18]
fld dword [esi - 4]
fsub dword [esi - 0x14]
fld dword [esi]
fsub dword [esi - 0x10]
fstp dword [esp + 0xb8]
mov eax, dword [esp + 0xb8]
fxch st(1)
fstp dword [ecx]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x14]
fstp dword [ecx + 4]
fld dword [ebp + 0x24]
fsub dword [esi - 0x14]
fdiv dword [ecx + 4]
fld st(0)
fmul dword [ecx]
fstp dword [ecx]
fld st(0)
fmul dword [ecx + 4]
fstp dword [ecx + 4]
fld st(0)
fmul dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [esi - 0x14]
fld dword [esi - 0x10]
fld dword [ecx]
fadd dword [esi - 0x18]
fstp dword [ecx]
fxch st(1)
fadd dword [ecx + 4]
fstp dword [ecx + 4]
fadd dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [eax - 4]
fsub dword [eax - 0xc]
fld dword [eax]
fsub dword [eax - 8]
fxch st(1)
fmul st(2)
fstp dword [esp + 0x24]
fmul st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x24]
fadd dword [eax - 0xc]
fld dword [esp + 0x28]
fadd dword [eax - 8]
mov eax, dword [ebp + 0xc]
fxch st(1)
fstp dword [eax + ebx*8]
fstp dword [eax + ebx*8 + 4]
mov eax, dword [esp + 0x30]
fld dword [edx - 0xc]
fsub dword [edx - 0x1c]
fld dword [edx - 8]
fsub dword [edx - 0x18]
fld dword [eax + esi]
fsub dword [edx - 0x14]
fstp dword [esp + 0x98]
fld dword [edx]
fsub dword [edx - 0x10]
fstp dword [esp + 0x9c]
fxch st(1)
fmul st(2)
mov byte [esp + 0xf], 0
fstp dword [esp + 0x50]
fmul st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x98]
fmul st(1)
fstp dword [esp + 0x58]
fmul dword [esp + 0x9c]
fld dword [esp + 0x50]
fadd dword [edx - 0x1c]
fld dword [esp + 0x54]
fadd dword [edx - 0x18]
fld dword [esp + 0x58]
fadd dword [edx - 0x14]
fstp dword [esp + 0x88]
mov eax, dword [esp + 0x88]
fxch st(2)
fadd dword [edx - 0x10]
mov dword [edi + 8], eax
fstp dword [esp + 0x8c]
mov eax, dword [esp + 0x8c]
fstp dword [edi]
fstp dword [edi + 4]
inc ebx
mov dword [edi + 0xc], eax
add ecx, 0x10
mov dword [esp + 0x10], ebx
add edi, 0x10
fld dword [esi + 0xc]
fcomp dword [ebp + 0x24]
fnstsw ax
mov al, byte [esp + 0xf]
test ah, 1
jne 0x5081aa
test al, al
jne 0x508164
fld dword [esi + 8]
fsub dword [esi - 8]
fld dword [esi + 0xc]
fsub dword [esi - 4]
fld dword [esi + 0x10]
fsub dword [esi]
fstp dword [esp + 0xc8]
mov eax, dword [esp + 0xc8]
fxch st(1)
fstp dword [ecx]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x14]
fstp dword [ecx + 4]
fld dword [ebp + 0x24]
fsub dword [esi - 4]
fdiv dword [ecx + 4]
fld st(0)
fmul dword [ecx]
fstp dword [ecx]
fld st(0)
fmul dword [ecx + 4]
fstp dword [ecx + 4]
fld st(0)
fmul dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [esi - 4]
fld dword [esi]
fld dword [ecx]
fadd dword [esi - 8]
fstp dword [ecx]
fxch st(1)
fadd dword [ecx + 4]
fstp dword [ecx + 4]
fadd dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [eax + 4]
fsub dword [eax - 4]
fld dword [eax + 8]
fsub dword [eax]
fxch st(1)
fmul st(2)
fstp dword [esp + 0x38]
fmul st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x38]
fadd dword [eax - 4]
fld dword [esp + 0x3c]
fadd dword [eax]
mov eax, dword [ebp + 0xc]
fxch st(1)
fstp dword [eax + ebx*8]
fstp dword [eax + ebx*8 + 4]
mov eax, dword [esp + 0x30]
fld dword [edx + 4]
fsub dword [edx - 0xc]
fld dword [edx + 8]
fsub dword [edx - 8]
fld dword [edx + 0xc]
fsub dword [eax + esi]
fstp dword [esp + 0x68]
fld dword [edx + 0x10]
fsub dword [edx]
fstp dword [esp + 0x6c]
fxch st(1)
inc ebx
fmul st(2)
add ecx, 0x10
add edi, 0x10
mov byte [esp + 0xf], 1
fstp dword [esp + 0x40]
fmul st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x68]
fmul st(1)
fstp dword [esp + 0x48]
fmul dword [esp + 0x6c]
fld dword [esp + 0x40]
fadd dword [edx - 0xc]
fld dword [esp + 0x44]
fadd dword [edx - 8]
fld dword [esp + 0x48]
fadd dword [eax + esi]
fstp dword [esp + 0x78]
mov eax, dword [esp + 0x78]
fxch st(2)
fadd dword [edx]
mov dword [edi - 8], eax
fstp dword [esp + 0x7c]
mov eax, dword [esp + 0x7c]
fstp dword [edi - 0x10]
mov dword [edi - 4], eax
fstp dword [edi - 0xc]
fld dword [esi + 0xc]
mov eax, dword [esp + 0x14]
fld dword [esi + 0x10]
fld dword [esi + 8]
fstp dword [ecx]
fxch st(1)
fstp dword [ecx + 4]
fstp dword [ecx + 8]
fld dword [eax + 8]
fld dword [eax + 4]
mov eax, dword [ebp + 0xc]
fstp dword [eax + ebx*8]
fstp dword [eax + ebx*8 + 4]
mov eax, dword [edx + 0x10]
fld dword [edx + 8]
mov dword [esp + 0x2c], eax
fld dword [edx + 0xc]
fld dword [edx + 4]
fstp dword [edi]
fxch st(1)
fstp dword [edi + 4]
fstp dword [edi + 8]
jmp 0x5082d7
test al, al
je 0x5082e5
fld dword [esi + 8]
fsub dword [esi - 8]
fld dword [esi + 0xc]
fsub dword [esi - 4]
fld dword [esi + 0x10]
fsub dword [esi]
fstp dword [esp + 0xb8]
mov eax, dword [esp + 0xb8]
fxch st(1)
fstp dword [ecx]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x14]
fstp dword [ecx + 4]
fld dword [ebp + 0x24]
fsub dword [esi - 4]
fdiv dword [ecx + 4]
fld st(0)
fmul dword [ecx]
fstp dword [ecx]
fld st(0)
fmul dword [ecx + 4]
fstp dword [ecx + 4]
fld st(0)
fmul dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [esi - 4]
fld dword [esi]
fld dword [ecx]
fadd dword [esi - 8]
fstp dword [ecx]
fxch st(1)
fadd dword [ecx + 4]
fstp dword [ecx + 4]
fadd dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [eax + 4]
fsub dword [eax - 4]
fld dword [eax + 8]
fsub dword [eax]
fxch st(1)
fmul st(2)
fstp dword [esp + 0x24]
fmul st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x24]
fadd dword [eax - 4]
fld dword [esp + 0x28]
fadd dword [eax]
mov eax, dword [ebp + 0xc]
fxch st(1)
fstp dword [eax + ebx*8]
fstp dword [eax + ebx*8 + 4]
mov eax, dword [esp + 0x30]
fld dword [edx + 4]
fsub dword [edx - 0xc]
fld dword [edx + 8]
fsub dword [edx - 8]
fld dword [edx + 0xc]
fsub dword [eax + esi]
fstp dword [esp + 0x98]
fld dword [edx + 0x10]
fsub dword [edx]
fstp dword [esp + 0x9c]
fxch st(1)
mov byte [esp + 0xf], 0
fmul st(2)
fstp dword [esp + 0x50]
fmul st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x98]
fmul st(1)
fstp dword [esp + 0x58]
fmul dword [esp + 0x9c]
fld dword [esp + 0x50]
fadd dword [edx - 0xc]
fld dword [esp + 0x54]
fadd dword [edx - 8]
fld dword [esp + 0x58]
fadd dword [eax + esi]
fstp dword [esp + 0x88]
mov eax, dword [esp + 0x88]
fxch st(2)
fadd dword [edx]
mov dword [edi + 8], eax
fstp dword [esp + 0x8c]
mov eax, dword [esp + 0x8c]
fstp dword [edi]
fstp dword [edi + 4]
inc ebx
mov dword [edi + 0xc], eax
add ecx, 0x10
mov dword [esp + 0x10], ebx
add edi, 0x10
fld dword [esi + 0x1c]
fcomp dword [ebp + 0x24]
fnstsw ax
mov al, byte [esp + 0xf]
test ah, 1
jne 0x508462
test al, al
jne 0x50841c
fld dword [esi + 0x18]
fsub dword [esi + 8]
fld dword [esi + 0x1c]
fsub dword [esi + 0xc]
fld dword [esi + 0x20]
fsub dword [esi + 0x10]
fstp dword [esp + 0xc8]
mov eax, dword [esp + 0xc8]
fxch st(1)
fstp dword [ecx]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x14]
fstp dword [ecx + 4]
fld dword [ebp + 0x24]
fsub dword [esi + 0xc]
fdiv dword [ecx + 4]
fld st(0)
fmul dword [ecx]
fstp dword [ecx]
fld st(0)
fmul dword [ecx + 4]
fstp dword [ecx + 4]
fld st(0)
fmul dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [esi + 0xc]
fld dword [esi + 0x10]
fld dword [ecx]
fadd dword [esi + 8]
fstp dword [ecx]
fxch st(1)
fadd dword [ecx + 4]
fstp dword [ecx + 4]
fadd dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [eax + 0xc]
fsub dword [eax + 4]
fld dword [eax + 0x10]
fsub dword [eax + 8]
fxch st(1)
fmul st(2)
fstp dword [esp + 0x38]
fmul st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x38]
fadd dword [eax + 4]
fld dword [esp + 0x3c]
fadd dword [eax + 8]
mov eax, dword [ebp + 0xc]
fxch st(1)
fstp dword [eax + ebx*8]
fstp dword [eax + ebx*8 + 4]
fld dword [edx + 0x14]
fsub dword [edx + 4]
fld dword [edx + 0x18]
fsub dword [edx + 8]
fld dword [edx + 0x1c]
fsub dword [edx + 0xc]
fstp dword [esp + 0x68]
fld dword [edx + 0x20]
fsub dword [edx + 0x10]
fstp dword [esp + 0x6c]
inc ebx
fxch st(1)
add ecx, 0x10
fmul st(2)
add edi, 0x10
mov byte [esp + 0xf], 1
fstp dword [esp + 0x40]
fmul st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x68]
fmul st(1)
fstp dword [esp + 0x48]
fmul dword [esp + 0x6c]
fld dword [esp + 0x40]
fadd dword [edx + 4]
fld dword [esp + 0x44]
fadd dword [edx + 8]
fld dword [esp + 0x48]
fadd dword [edx + 0xc]
fstp dword [esp + 0x78]
mov eax, dword [esp + 0x78]
fxch st(2)
fadd dword [edx + 0x10]
mov dword [edi - 8], eax
fstp dword [esp + 0x7c]
mov eax, dword [esp + 0x7c]
fstp dword [edi - 0x10]
mov dword [edi - 4], eax
fstp dword [edi - 0xc]
fld dword [esi + 0x1c]
mov eax, dword [esp + 0x14]
fld dword [esi + 0x20]
fld dword [esi + 0x18]
fstp dword [ecx]
fxch st(1)
fstp dword [ecx + 4]
fstp dword [ecx + 8]
fld dword [eax + 0x10]
fld dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
fstp dword [eax + ebx*8]
fstp dword [eax + ebx*8 + 4]
mov eax, dword [edx + 0x20]
fld dword [edx + 0x18]
mov dword [esp + 0x2c], eax
fld dword [edx + 0x1c]
fld dword [edx + 0x14]
fstp dword [edi]
fxch st(1)
fstp dword [edi + 4]
fstp dword [edi + 8]
jmp 0x508591
test al, al
je 0x50859f
fld dword [esi + 0x18]
fsub dword [esi + 8]
fld dword [esi + 0x1c]
fsub dword [esi + 0xc]
fld dword [esi + 0x20]
fsub dword [esi + 0x10]
fstp dword [esp + 0xb8]
mov eax, dword [esp + 0xb8]
fxch st(1)
fstp dword [ecx]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x14]
fstp dword [ecx + 4]
fld dword [ebp + 0x24]
fsub dword [esi + 0xc]
fdiv dword [ecx + 4]
fld st(0)
fmul dword [ecx]
fstp dword [ecx]
fld st(0)
fmul dword [ecx + 4]
fstp dword [ecx + 4]
fld st(0)
fmul dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [esi + 0xc]
fld dword [esi + 0x10]
fld dword [ecx]
fadd dword [esi + 8]
fstp dword [ecx]
fxch st(1)
fadd dword [ecx + 4]
fstp dword [ecx + 4]
fadd dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [eax + 0xc]
fsub dword [eax + 4]
fld dword [eax + 0x10]
fsub dword [eax + 8]
fxch st(1)
fmul st(2)
fstp dword [esp + 0x24]
fmul st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x24]
fadd dword [eax + 4]
fld dword [esp + 0x28]
fadd dword [eax + 8]
mov eax, dword [ebp + 0xc]
fxch st(1)
fstp dword [eax + ebx*8]
fstp dword [eax + ebx*8 + 4]
fld dword [edx + 0x14]
fsub dword [edx + 4]
fld dword [edx + 0x18]
fsub dword [edx + 8]
fld dword [edx + 0x1c]
fsub dword [edx + 0xc]
fstp dword [esp + 0x98]
fld dword [edx + 0x20]
fsub dword [edx + 0x10]
fstp dword [esp + 0x9c]
mov byte [esp + 0xf], 0
fxch st(1)
fmul st(2)
fstp dword [esp + 0x50]
fmul st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x98]
fmul st(1)
fstp dword [esp + 0x58]
fmul dword [esp + 0x9c]
fld dword [esp + 0x50]
fadd dword [edx + 4]
fld dword [esp + 0x54]
fadd dword [edx + 8]
fld dword [esp + 0x58]
fadd dword [edx + 0xc]
fstp dword [esp + 0x88]
mov eax, dword [esp + 0x88]
fxch st(2)
fadd dword [edx + 0x10]
mov dword [edi + 8], eax
fstp dword [esp + 0x8c]
mov eax, dword [esp + 0x8c]
fstp dword [edi]
fstp dword [edi + 4]
inc ebx
mov dword [edi + 0xc], eax
add ecx, 0x10
mov dword [esp + 0x10], ebx
add edi, 0x10
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0xdc]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x14]
add ebx, eax
mov dword [esp + 0x34], ebx
mov ebx, dword [esp + 0xd8]
add ebx, esi
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x1c]
add eax, 0x20
add ebx, 4
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], ebx
mov ebx, dword [ebp + 0x20]
add eax, 4
add edx, 0x40
add esi, 0x40
cmp eax, ebx
mov dword [esp + 0x20], eax
jb 0x507a2c
mov edi, dword [esp + 0xac]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [ebp + 0x20]
jae 0x5089f0
lea ecx, [edi*8]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x10]
shl ecx, 4
add eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 8]
add ecx, eax
mov eax, dword [esp + 0x1c]
shl eax, 4
mov edx, edi
lea edi, [eax + ebx + 0xc]
mov dword [esp + 0x18], edi
mov edi, dword [ebp + 0x14]
lea eax, [eax + edi + 4]
mov dword [esp + 0x14], eax
mov eax, ebx
sub eax, edi
mov dword [esp + 0x30], eax
mov eax, 0xfffffffc
shl edx, 4
sub eax, edi
mov edi, dword [esp + 0x34]
mov dword [esp + 0xac], eax
lea esp, [esp]
mov eax, dword [esp + 0x14]
fld dword [eax]
fcomp dword [ebp + 0x24]
fnstsw ax
mov al, byte [esp + 0xf]
test ah, 1
jne 0x508841
test al, al
jne 0x5087e6
mov eax, dword [ebp + 0x14]
mov edi, dword [esp + 0x14]
fld dword [edi - 4]
fsub dword [edx + eax]
fld dword [edx + eax + 4]
fsubr dword [edi]
fld dword [edi + 4]
fsub dword [edx + eax + 8]
fstp dword [esp + 0xc8]
mov edi, dword [esp + 0xc8]
fxch st(1)
fstp dword [ecx]
mov dword [ecx + 8], edi
mov edi, dword [esp + 0x1c]
fstp dword [ecx + 4]
fld dword [ebp + 0x24]
fsub dword [edx + eax + 4]
fdiv dword [ecx + 4]
fld st(0)
fmul dword [ecx]
fstp dword [ecx]
fld st(0)
fmul dword [ecx + 4]
fstp dword [ecx + 4]
fld st(0)
fmul dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [edx + eax + 4]
fld dword [edx + eax + 8]
fld dword [ecx]
fadd dword [edx + eax]
mov eax, dword [esp + 0x20]
fstp dword [ecx]
fxch st(1)
fadd dword [ecx + 4]
fstp dword [ecx + 4]
fadd dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [esi + edi*8]
fsub dword [eax + esi]
fld dword [esi + edi*8 + 4]
mov edi, dword [ebp + 0xc]
fsub dword [eax + esi + 4]
fxch st(1)
fmul st(2)
fstp dword [esp + 0x38]
fmul st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x38]
fadd dword [eax + esi]
fld dword [eax + esi + 4]
mov eax, dword [esp + 0x10]
fadd dword [esp + 0x3c]
fxch st(1)
fstp dword [edi + eax*8]
fstp dword [edi + eax*8 + 4]
mov eax, dword [esp + 0x18]
fld dword [eax - 0xc]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x30]
fsub dword [edx + ebx]
fld dword [eax + edi]
fsub dword [edx + ebx + 4]
mov edi, dword [esp + 0x18]
fld dword [edi - 4]
add ecx, 0x10
fsub dword [edx + ebx + 8]
fstp dword [esp + 0x68]
fld dword [edx + ebx + 0xc]
fsubr dword [edi]
mov edi, dword [esp + 0x34]
mov byte [esp + 0xf], 1
fstp dword [esp + 0x6c]
fxch st(1)
fmul st(2)
fstp dword [esp + 0x40]
fmul st(1)
fstp dword [esp + 0x44]
fld dword [esp + 0x68]
fmul st(1)
fstp dword [esp + 0x48]
fmul dword [esp + 0x6c]
fld dword [esp + 0x40]
fadd dword [edx + ebx]
fld dword [edx + ebx + 4]
fadd dword [esp + 0x44]
fld dword [edx + ebx + 8]
fadd dword [esp + 0x48]
fstp dword [esp + 0x78]
fld dword [edx + ebx + 0xc]
mov edx, dword [esp + 0x78]
fadd st(3)
mov dword [edi + 8], edx
fstp dword [esp + 0x7c]
mov edx, dword [esp + 0x7c]
fxch st(1)
fstp dword [edi]
mov dword [edi + 0xc], edx
mov edx, dword [esp + 0x10]
fstp dword [edi + 4]
inc edx
mov dword [esp + 0x10], edx
fstp st(0)
add edi, 0x10
jmp 0x5087ea
mov eax, dword [esp + 0x14]
fld dword [eax]
mov edx, dword [ebp + 0xc]
fld dword [eax + 4]
fld dword [eax - 4]
mov eax, dword [esp + 0x1c]
fstp dword [ecx]
fxch st(1)
fstp dword [ecx + 4]
fstp dword [ecx + 8]
fld dword [esi + eax*8 + 4]
fld dword [esi + eax*8]
mov eax, dword [esp + 0x10]
fstp dword [edx + eax*8]
fstp dword [edx + eax*8 + 4]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x14]
fld dword [edx + eax]
mov eax, dword [esp + 0x18]
fld dword [eax - 4]
mov edx, dword [eax]
fld dword [eax - 0xc]
mov dword [esp + 0x2c], edx
fstp dword [edi]
fxch st(1)
mov eax, edx
fstp dword [edi + 4]
fstp dword [edi + 8]
jmp 0x5089a3
test al, al
je 0x5089b9
mov eax, dword [ebp + 0x14]
mov edi, dword [esp + 0x14]
fld dword [edi - 4]
fsub dword [edx + eax]
fld dword [edx + eax + 4]
fsubr dword [edi]
fld dword [edi + 4]
fsub dword [edx + eax + 8]
fstp dword [esp + 0xb8]
mov edi, dword [esp + 0xb8]
fxch st(1)
fstp dword [ecx]
mov dword [ecx + 8], edi
mov edi, dword [esp + 0x1c]
fstp dword [ecx + 4]
fld dword [ebp + 0x24]
fsub dword [edx + eax + 4]
fdiv dword [ecx + 4]
fld st(0)
fmul dword [ecx]
fstp dword [ecx]
fld st(0)
fmul dword [ecx + 4]
fstp dword [ecx + 4]
fld st(0)
fmul dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [edx + eax + 4]
fld dword [edx + eax + 8]
fld dword [edx + eax]
mov eax, dword [esp + 0x20]
fadd dword [ecx]
fstp dword [ecx]
fxch st(1)
fadd dword [ecx + 4]
fstp dword [ecx + 4]
fadd dword [ecx + 8]
fstp dword [ecx + 8]
fld dword [esi + edi*8]
fsub dword [eax + esi]
fld dword [esi + edi*8 + 4]
mov edi, dword [ebp + 0xc]
fsub dword [eax + esi + 4]
fxch st(1)
fmul st(2)
fstp dword [esp + 0x24]
fmul st(1)
fstp dword [esp + 0x28]
fld dword [esp + 0x24]
fadd dword [eax + esi]
fld dword [eax + esi + 4]
mov eax, dword [esp + 0x10]
fadd dword [esp + 0x28]
fxch st(1)
fstp dword [edi + eax*8]
fstp dword [edi + eax*8 + 4]
mov eax, dword [esp + 0x18]
fld dword [eax - 0xc]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x14]
fsub dword [edx + ebx]
fld dword [edi + eax]
fsub dword [edx + ebx + 4]
mov eax, dword [esp + 0x18]
fld dword [eax - 4]
mov edi, dword [esp + 0x34]
fsub dword [edx + ebx + 8]
fstp dword [esp + 0x98]
fld dword [edx + ebx + 0xc]
fsubr dword [eax]
mov byte [esp + 0xf], 0
fstp dword [esp + 0x9c]
fxch st(1)
fmul st(2)
fstp dword [esp + 0x50]
fmul st(1)
fstp dword [esp + 0x54]
fld dword [esp + 0x98]
fmul st(1)
fstp dword [esp + 0x58]
fmul dword [esp + 0x9c]
fld dword [esp + 0x50]
fadd dword [edx + ebx]
fld dword [edx + ebx + 4]
fadd dword [esp + 0x54]
fld dword [edx + ebx + 8]
fadd dword [esp + 0x58]
fstp dword [esp + 0x88]
fld dword [edx + ebx + 0xc]
mov edx, dword [esp + 0x88]
fadd st(3)
mov dword [edi + 8], edx
fstp dword [esp + 0x8c]
mov eax, dword [esp + 0x8c]
fxch st(1)
fstp dword [edi]
fstp dword [edi + 4]
fstp st(0)
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x10]
add ecx, 0x10
inc eax
add edi, 0x10
mov dword [esp + 0x10], eax
mov dword [esp + 0x34], edi
mov edx, dword [esp + 0x1c]
lea eax, [edx*8]
mov edx, dword [esp + 0xac]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x14]
add edx, eax
inc dword [esp + 0x1c]
add dword [esp + 0x14], 0x10
add dword [esp + 0x18], 0x10
mov eax, dword [esp + 0x1c]
cmp eax, dword [ebp + 0x20]
jb 0x508670
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret