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

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [esp + 0xa8]
mov eax, dword [esi + 0x30]
push edi
mov edi, ecx
cmp eax, 1
jne 0x4028b3
fldz
fstp dword [esp + 0x18]
fld dword [esi]
fsub dword [esp + 0xb0]
fstp dword [esp + 0xc]
mov eax, dword [esp + 0xc]
fld dword [esi + 4]
fsub dword [esp + 0xb4]
fstp dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
fld dword [esi + 8]
mov esi, dword [esp + 0xbc]
fsub dword [esp + 0xb8]
mov dword [esi], eax
mov dword [esi + 4], ecx
fstp dword [esp + 0x14]
mov edx, dword [esp + 0x14]
mov dword [esi + 8], edx
fld dword [esi + 4]
fld dword [esi]
fld dword [esi + 8]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fstp dword [esp + 8]
fld dword [esp + 8]
call fcn.0040a780
fstp dword [esp + 8]
fld dword [esp + 8]
lea eax, [esp + 8]
fstp dword [esp + 8]
push eax
fld dword [esp + 0xc]
push esi
fld st(0)
lea ecx, [esp + 0x24]
fld1
push ecx
fdivrp st(1)
lea ecx, [esp + 0x84]
fstp dword [esp + 0x14]
fld dword [esi]
fld dword [esp + 0x14]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esi]
fld dword [esi + 4]
fmul st(1)
fstp dword [esi + 4]
fmul dword [esi + 8]
fstp dword [esi + 8]
inc dword [edi + 0xa48]
fmul qword [0x4332b0]
fstp dword [esp + 0x14]
fld dword [esi]
fld qword [0x4332a8]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x18]
fld dword [esi + 4]
fmul st(1)
fstp dword [esp + 0x1c]
fmul dword [esi + 8]
fstp dword [esp + 0x20]
fld dword [esp + 0x18]
fadd dword [esp + 0xbc]
fstp dword [esp + 0x28]
fld dword [esp + 0x1c]
fadd dword [esp + 0xc0]
fstp dword [esp + 0x2c]
fld dword [esp + 0x20]
fadd dword [esp + 0xc4]
fstp dword [esp + 0x30]
call fcn.00401f40
push eax
mov ecx, edi
call fcn.004024a0
test eax, eax
jne 0x402ba1
fld1
pop edi
pop esi
add esp, 0xa0
ret 0x1c
cmp eax, 2
jne 0x402ba1
fldz
push ebx
fstp dword [esp + 0x1c]
mov ebx, dword [esp + 0xc0]
fld dword [esi]
push ebp
fsub dword [esp + 0xb8]
fstp dword [esp + 0x14]
mov edx, dword [esp + 0x14]
fld dword [esi + 4]
fsub dword [esp + 0xbc]
fstp dword [esp + 0x18]
mov eax, dword [esp + 0x18]
fld dword [esi + 8]
mov dword [ebx], edx
fsub dword [esp + 0xc0]
mov dword [ebx + 4], eax
fstp dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 8], ecx
fld dword [ebx + 4]
fld dword [ebx]
fld dword [ebx + 8]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
call fcn.0040a780
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
xor ebp, ebp
fld1
fdivrp st(1)
fstp dword [esp + 0x10]
fld dword [ebx]
fld dword [esp + 0x10]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [ebx]
fld dword [ebx + 4]
fmul st(1)
fstp dword [ebx + 4]
fmul dword [ebx + 8]
fstp dword [ebx + 8]
mov eax, dword [esi + 0x10]
fld dword [esp + 0xc8]
mov edx, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
fst qword [esp + 0x78]
fcomp qword [0x4332a0]
mov dword [esp + 0x58], eax
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x64], eax
mov dword [esp + 0x54], edx
mov edx, dword [esi + 0x18]
fnstsw ax
mov dword [esp + 0x5c], ecx
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x60], edx
mov dword [esp + 0x68], ecx
test ah, 0x41
jne 0x402b9f
lea ebx, [edi + 0x18]
mov ecx, ebx
call fcn.00409bf0
fstp dword [esp + 0x10]
fld dword [esp + 0x60]
mov ecx, ebx
fld dword [esp + 0x10]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x64]
fmul st(1)
fstp dword [esp + 0x40]
fmul dword [esp + 0x68]
fstp dword [esp + 0x44]
call fcn.00409bf0
fstp dword [esp + 0x10]
mov eax, ebp
fld dword [esp + 0x54]
and eax, 0xf
fld dword [esp + 0x10]
lea edx, [eax + eax*2]
fld st(0)
mov eax, dword [esi + 0x34]
fmulp st(2)
lea eax, [eax + edx*4]
fxch st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x58]
fmul st(1)
fstp dword [esp + 0x34]
fmul dword [esp + 0x5c]
fstp dword [esp + 0x38]
fld dword [eax]
fadd dword [esp + 0x30]
fstp dword [esp + 0x6c]
fld dword [eax + 4]
fadd dword [esp + 0x34]
fstp dword [esp + 0x70]
fld dword [eax + 8]
fadd dword [esp + 0x38]
fstp dword [esp + 0x74]
fld dword [esp + 0x6c]
fadd dword [esp + 0x3c]
fstp dword [esp + 0x48]
fld dword [esp + 0x70]
fadd dword [esp + 0x40]
fstp dword [esp + 0x4c]
fld dword [esp + 0x74]
fadd dword [esp + 0x44]
fstp dword [esp + 0x50]
fld dword [esp + 0x48]
fsub dword [esp + 0xb8]
fstp dword [esp + 0x14]
fld dword [esp + 0x4c]
fsub dword [esp + 0xbc]
fstp dword [esp + 0x18]
fld dword [esp + 0x50]
fsub dword [esp + 0xc0]
fstp dword [esp + 0x1c]
fld dword [esp + 0x18]
fld dword [esp + 0x14]
fld dword [esp + 0x1c]
fld st(1)
fmulp st(2)
fld st(2)
fmulp st(3)
fxch st(1)
faddp st(2)
fmul st(0), st(0)
faddp st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
call fcn.0040a780
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld st(0)
fld1
fdivrp st(1)
fstp dword [esp + 0x10]
inc dword [edi + 0xa48]
fld dword [esp + 0x10]
lea ecx, [esp + 0x10]
fld st(0)
push ecx
fmul dword [esp + 0x18]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x88]
fstp dword [esp + 0x1c]
push eax
lea ecx, [esp + 0xa4]
fld st(0)
fmul dword [esp + 0x24]
fstp dword [esp + 0x24]
fmul dword [esp + 0x28]
fstp dword [esp + 0x28]
fmul qword [0x4332b0]
fstp dword [esp + 0x1c]
fld dword [esp + 0x20]
fld qword [0x4332a8]
fmul st(1), st(0)
fxch st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x24]
fmul st(1)
fstp dword [esp + 0x34]
fmul dword [esp + 0x28]
fstp dword [esp + 0x38]
fld dword [esp + 0x30]
fadd dword [esp + 0xc4]
fstp dword [esp + 0x8c]
fld dword [esp + 0x34]
fadd dword [esp + 0xc8]
fstp dword [esp + 0x90]
fld dword [esp + 0x38]
fadd dword [esp + 0xcc]
fstp dword [esp + 0x94]
call fcn.00401f40
push eax
mov ecx, edi
call fcn.004024a0
test eax, eax
jne 0x402b87
fld dword [esp + 0x20]
fadd dword [esp + 0xcc]
fstp dword [esp + 0x20]
inc ebp
mov dword [esp + 0x10], ebp
fild dword [esp + 0x10]
fcomp qword [esp + 0x78]
fnstsw ax
test ah, 5
jnp 0x4029a4
pop ebp
pop ebx
fld dword [esp + 0x18]
pop edi
pop esi
add esp, 0xa0
ret 0x1c