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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
fld qword [0x4863a8]
mov eax, dword [ecx]
push ebx
fld qword [0x4863a8]
fld qword [0x4863a8]
fld qword [0x4863a8]
fld qword [0x4863a8]
sar eax, 0x10
mov ebx, eax
mov dword [esp + 0x10], eax
xor eax, eax
push esi
cmp edx, eax
push edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x14], eax
jle 0x451dbe
mov esi, dword [ebp + 0x14]
mov eax, ecx
sub esi, ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
cmp ebx, edx
jge 0x451ac5
mov edi, dword [eax]
mov ecx, edi
and ecx, 0xffff
cmp ebx, ecx
jge 0x451a00
fld dword [ebp + 0x18]
mov esi, ebx
fchs
fstp dword [esp + 0x10]
neg esi
shl esi, 2
test ebx, ebx
mov edx, esi
jl 0x451973
lea edx, [ebx*4]
mov eax, dword [ebp + 0x10]
fld dword [edx + eax]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
je 0x45198c
fld qword [0x4865d0]
jmp 0x451995
mov eax, dword [ebp + 0x10]
fld dword [ebp + 0x18]
fadd dword [edx + eax]
fld st(0)
fmul st(1)
mov edx, ebx
sub esi, 4
imul edx, ebx
fld st(0)
fadd qword [esp + 0x30]
fstp qword [esp + 0x30]
fild dword [esp + 0x24]
fmul st(1)
mov dword [esp + 0x24], edx
inc ebx
cmp ebx, ecx
fst qword [esp + 0x78]
faddp st(7)
fld st(0)
fmul st(2)
fst qword [esp + 0x70]
fadd qword [esp + 0x48]
fstp qword [esp + 0x48]
fild dword [esp + 0x24]
mov dword [esp + 0x24], ebx
fmul st(1)
faddp st(5)
fstp st(0)
fld qword [esp + 0x70]
fmul st(1)
fadd qword [esp + 0x60]
fstp qword [esp + 0x60]
fld qword [esp + 0x78]
fmul st(1)
fadd qword [esp + 0x50]
fstp qword [esp + 0x50]
fstp st(0)
jl 0x451966
mov edx, dword [esp + 0x18]
sar edi, 0x10
cmp edx, edi
jge 0x451ac5
fld dword [ebp + 0x18]
fchs
fstp dword [esp + 0x10]
neg edx
shl edx, 2
mov esi, dword [esp + 0x18]
mov ecx, edx
test esi, esi
jl 0x451a2e
lea ecx, [esi*4]
mov eax, dword [ebp + 0x10]
fld dword [ecx + eax]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
je 0x451a47
fld qword [0x4865d0]
jmp 0x451a50
mov eax, dword [ebp + 0x10]
fld dword [ebp + 0x18]
fadd dword [ecx + eax]
fld st(0)
fmul st(1)
fld qword [esp + 0x30]
mov ecx, esi
sub edx, 4
fsub st(1)
imul ecx, esi
fstp qword [esp + 0x30]
fild dword [esp + 0x18]
fmul st(1)
mov dword [esp + 0x18], ecx
inc esi
cmp esi, edi
fstp qword [esp + 0x70]
fxch st(6)
fsub qword [esp + 0x70]
fxch st(6)
fld st(0)
fmul st(2)
fstp qword [esp + 0x78]
fld qword [esp + 0x48]
fsub qword [esp + 0x78]
fstp qword [esp + 0x48]
fild dword [esp + 0x18]
mov dword [esp + 0x18], esi
fmul st(1)
fsubp st(5)
fstp st(0)
fld qword [esp + 0x78]
fmul st(1)
fsubr qword [esp + 0x60]
fstp qword [esp + 0x60]
fld qword [esp + 0x70]
fmul st(1)
fsubr qword [esp + 0x50]
fstp qword [esp + 0x50]
fstp st(0)
jl 0x451a1d
mov edx, dword [ebp + 8]
mov eax, dword [esp + 0x1c]
cmp eax, edx
jge 0x451c70
mov eax, dword [ebp + 0x1c]
test eax, eax
jle 0x451c70
mov esi, dword [esp + 0x14]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
sar ecx, 1
add ecx, esi
cmp ecx, eax
jle 0x451af5
mov ecx, eax
mov edi, dword [esp + 0x1c]
cmp edi, ecx
jge 0x451ba5
fld dword [ebp + 0x18]
mov esi, edi
fchs
fstp dword [esp + 0x10]
neg esi
shl esi, 2
test edi, edi
mov edx, esi
jl 0x451b1e
lea edx, [edi*4]
mov eax, dword [ebp + 0x10]
fld dword [edx + eax]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
je 0x451b37
fld qword [0x4865d0]
jmp 0x451b40
mov eax, dword [ebp + 0x10]
fld dword [ebp + 0x18]
fadd dword [edx + eax]
fld st(0)
fmul st(1)
mov edx, edi
sub esi, 4
imul edx, edi
fld st(0)
fadd qword [esp + 0x38]
fstp qword [esp + 0x38]
fild dword [esp + 0x1c]
fmul st(1)
mov dword [esp + 0x1c], edx
inc edi
cmp edi, ecx
fst qword [esp + 0x70]
faddp st(6)
fld st(0)
fmul st(2)
fst qword [esp + 0x78]
fadd qword [esp + 0x58]
fstp qword [esp + 0x58]
fild dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
fmul st(1)
faddp st(4)
fstp st(0)
fld qword [esp + 0x78]
fmul st(1)
fadd qword [esp + 0x68]
fstp qword [esp + 0x68]
fld qword [esp + 0x70]
fmul st(1)
faddp st(2)
fstp st(0)
jl 0x451b11
mov eax, dword [ebp + 0x1c]
inc eax
cdq
sub eax, edx
mov edx, dword [esp + 0x14]
sar eax, 1
sub edx, eax
mov eax, dword [esp + 0x20]
cmp eax, edx
jge 0x451c70
fld dword [ebp + 0x18]
mov edi, eax
mov esi, edi
fchs
fstp dword [esp + 0x10]
neg esi
shl esi, 2
test edi, edi
mov ecx, esi
jl 0x451bdf
lea ecx, [edi*4]
mov eax, dword [ebp + 0x10]
fld dword [ecx + eax]
fcomp dword [esp + 0x10]
fnstsw ax
test ah, 1
je 0x451bf8
fld qword [0x4865d0]
jmp 0x451c01
mov eax, dword [ebp + 0x10]
fld dword [ebp + 0x18]
fadd dword [ecx + eax]
fld st(0)
fmul st(1)
fld qword [esp + 0x38]
mov ecx, edi
sub esi, 4
fsub st(1)
imul ecx, edi
fstp qword [esp + 0x38]
fild dword [esp + 0x20]
fmul st(1)
mov dword [esp + 0x20], ecx
inc edi
cmp edi, edx
fstp qword [esp + 0x70]
fxch st(5)
fsub qword [esp + 0x70]
fxch st(5)
fld st(0)
fmul st(2)
fstp qword [esp + 0x78]
fld qword [esp + 0x58]
fsub qword [esp + 0x78]
fstp qword [esp + 0x58]
fild dword [esp + 0x20]
mov dword [esp + 0x20], edi
fmul st(1)
fsubp st(4)
fstp st(0)
fld qword [esp + 0x78]
fmul st(1)
fsubr qword [esp + 0x68]
fstp qword [esp + 0x68]
fld qword [esp + 0x70]
fmul st(1)
fsubp st(2)
fstp st(0)
jl 0x451bd2
fld qword [esp + 0x30]
fcomp qword [0x4865d8]
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
fnstsw ax
test ah, 0x41
jne 0x451cf4
fld qword [esp + 0x30]
fmul st(3)
fld st(5)
fmul st(6)
fsubp st(1)
fdivr qword [0x4865d0]
fstp qword [esp + 0x78]
fld qword [esp + 0x30]
fmul qword [esp + 0x50]
fld qword [esp + 0x48]
fmul st(6)
fsubp st(1)
fmul qword [esp + 0x78]
fimul dword [esp + 0x14]
fld st(3)
fmul qword [esp + 0x48]
fld qword [esp + 0x50]
fmul st(7)
fsubp st(1)
fmul qword [esp + 0x78]
faddp st(1)
fst qword [esp + 0x40]
fcomp qword [0x4863a8]
fnstsw ax
test ah, 1
je 0x451cf4
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov eax, dword [ebp + 0x1c]
test eax, eax
jle 0x451d91
fld qword [0x4863a8]
fld qword [esp + 0x38]
fcomp qword [0x4865d8]
fnstsw ax
test ah, 0x41
jne 0x451d6f
fstp st(0)
fld qword [esp + 0x38]
fmul st(2)
fld st(4)
fmul st(5)
fsubp st(1)
fdivr qword [0x4865d0]
fstp qword [esp + 0x78]
fld qword [esp + 0x38]
fmul st(1)
fld qword [esp + 0x58]
fmul st(5)
fsubp st(1)
fmul qword [esp + 0x78]
fimul dword [esp + 0x14]
fld st(2)
fmul qword [esp + 0x58]
fld st(2)
fmul st(6)
fsubp st(1)
fmul qword [esp + 0x78]
faddp st(1)
fcom qword [0x4863a8]
fst qword [esp + 0x78]
fnstsw ax
test ah, 1
je 0x451d6f
fstp st(0)
fld qword [0x4863a8]
fld qword [esp + 0x40]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x451d8f
fcom qword [0x4863a8]
fnstsw ax
test ah, 0x41
jne 0x451d8f
fstp qword [esp + 0x40]
jmp 0x451d91
fstp st(0)
fld dword [ebp + 0x18]
fsubr qword [esp + 0x40]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x14]
fstp dword [edx + eax]
mov edx, dword [ebp + 8]
inc ecx
add eax, 4
cmp ecx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x28], eax
jl 0x45193c
fstp st(0)
fstp st(0)
fstp st(0)
fstp st(0)
pop edi
pop esi
fstp st(0)
pop ebx
mov esp, ebp
pop ebp
ret