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

Disassembly:
sub esp, 0x6c
push esi
mov esi, dword [esp + 0x74]
push edi
fild dword [esi + 0x1cc]
movsx edi, word [esi + 0x20a]
fmul dword [0x4a9eb0]
fild dword [esi + 0x1fc]
push edi
faddp st(1)
fstp dword [esp + 0x18]
fild dword [esi + 0x1d4]
fmul dword [0x4a9eb0]
fild dword [esi + 0x204]
faddp st(1)
fstp dword [esp + 0x20]
call fcn.0040a7c0
fstp dword [esp + 0xc]
push edi
call fcn.0040a7e0
add esp, 8
mov dword [esp + 0xc], 0
mov dword [esp + 0x78], 0
lea ecx, [esi + 0x98]
mov edx, 8
fild dword [ecx - 8]
fsub dword [esp + 0x14]
fmul dword [0x473888]
fild dword [ecx]
fsub dword [esp + 0x1c]
fmul dword [0x473888]
fld st(1)
fmul dword [esp + 8]
fld st(1)
fmul st(4)
fsubp st(1)
fstp dword [esp + 0x10]
fxch st(1)
fmul st(2)
fld st(1)
fmul dword [esp + 8]
faddp st(1)
fxch st(1)
fstp st(0)
fld dword [esp + 0x10]
fabs
fcom dword [esp + 0xc]
fnstsw ax
test ah, 0x41
jne 0x40b92e
fstp dword [esp + 0xc]
jmp 0x40b930
fstp st(0)
fabs
fcom dword [esp + 0x78]
fnstsw ax
test ah, 0x41
jne 0x40b943
fstp dword [esp + 0x78]
jmp 0x40b945
fstp st(0)
add ecx, 0xc
dec edx
jne 0x40b8de
mov ax, word [esi + 0x292]
test ax, ax
je 0x40bc51
fld dword [esp + 0x78]
fmul st(1)
fld dword [esp + 0xc]
fmul dword [esp + 8]
movsx ecx, word [esi + 0x290]
fld st(0)
fadd st(2)
movsx edx, ax
fstp dword [esp + 0x2c]
fld dword [esp + 0x78]
fmul dword [esp + 8]
movsx eax, word [esi + 0x294]
fstp dword [esp + 8]
fld dword [esp + 0xc]
fmul st(3)
fstp dword [esp + 0x78]
fld dword [esp + 8]
fsub dword [esp + 0x78]
fstp dword [esp + 0x34]
fld st(0)
fsub st(2)
fstp dword [esp + 0x38]
fld dword [esp + 0x78]
fchs
fsub dword [esp + 8]
fstp dword [esp + 0x40]
fld st(0)
fchs
fsub st(2)
fstp dword [esp + 0x50]
fld dword [esp + 0x78]
fsub dword [esp + 8]
fstp dword [esp + 0x58]
fxch st(1)
fsub st(1)
fstp dword [esp + 0x5c]
fstp st(0)
fstp st(0)
fld dword [esp + 0x78]
fadd dword [esp + 8]
mov dword [esp + 0x78], ecx
fstp dword [esp + 0x64]
fild dword [esp + 0x78]
mov dword [esp + 0x78], edx
fild dword [esp + 0x78]
mov dword [esp + 0x78], eax
fdivr dword [0x45c65c]
fild dword [esp + 0x78]
fld st(0)
fmul dword [esp + 0x34]
fld st(3)
fmul dword [esp + 0x2c]
faddp st(1)
fmul st(2)
fchs
fstp dword [esp + 0x30]
fld st(0)
fmul dword [esp + 0x40]
fld st(3)
fmul dword [esp + 0x38]
faddp st(1)
fmul st(2)
fchs
fstp dword [esp + 0x3c]
fld st(0)
fmul dword [esp + 0x58]
fld st(3)
fmul dword [esp + 0x50]
faddp st(1)
fmul st(2)
mov eax, dword [0x4a9e3c]
mov ecx, dword [0x4a9d00]
add ecx, 0x24
lea edx, [esp + 0x20]
fchs
fstp dword [esp + 0x54]
push ecx
push edx
fmul dword [esp + 0x6c]
fxch st(2)
fmul dword [esp + 0x64]
push eax
faddp st(2)
fxch st(1)
fmul st(1)
fchs
fstp dword [esp + 0x6c]
fstp st(0)
fld dword [esp + 0x5c]
fadd dword [esp + 0x44]
fmul dword [0x462a34]
fstp dword [esp + 0x50]
fld dword [esp + 0x60]
fadd dword [esp + 0x48]
fmul dword [0x462a34]
fstp dword [esp + 0x54]
fld dword [esp + 0x64]
fadd dword [esp + 0x4c]
fmul dword [0x462a34]
fstp dword [esp + 0x58]
fld dword [esp + 0x68]
fadd dword [esp + 0x38]
fmul dword [0x462a34]
fstp dword [esp + 0x74]
fld dword [esp + 0x6c]
fadd dword [esp + 0x3c]
fmul dword [0x462a34]
fstp dword [esp + 0x78]
fld dword [esp + 0x70]
fadd dword [esp + 0x40]
fmul dword [0x462a34]
fstp dword [esp + 0x7c]
fld dword [0x473888]
fmul dword [esp + 0x20]
fsub dword [eax + 0x24]
fstp dword [esp + 0x2c]
fild dword [esi + 0x2d8]
fmul dword [0x473888]
fsub dword [eax + 0x28]
fstp dword [esp + 0x30]
fld dword [0x473888]
fmul dword [esp + 0x28]
fsub dword [eax + 0x2c]
fstp dword [esp + 0x34]
call fcn.0042e410
mov eax, dword [0x4a9e3c]
push eax
call fcn.0043d0e0
mov ecx, dword [0x4a9d00]
push ecx
call fcn.0043d280
xor eax, eax
mov al, byte [esi + 0x375]
lea esi, [eax + eax*2]
shl esi, 3
sub esi, eax
shl esi, 4
add esi, 0x48c8a8
lea edx, [esi + 0x60]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.0042ec80
lea ecx, [esi + 0x8c]
lea edx, [esp + 0x54]
push ecx
push edx
call fcn.0042ec80
lea eax, [esi + 8]
lea ecx, [esp + 0x68]
push eax
push ecx
call fcn.0042ec80
lea edx, [esi + 0x34]
lea eax, [esp + 0x94]
push edx
push eax
call fcn.0042ec80
fld dword [0x48c8a0]
fadd dword [esi + 0x18]
push esi
fstp dword [esi + 0x18]
fld dword [0x48c8a0]
fadd dword [esi + 0x44]
fstp dword [esi + 0x44]
fld dword [0x48c8a0]
fadd dword [esi + 0x70]
fstp dword [esi + 0x70]
fld dword [0x48c8a0]
fadd dword [esi + 0x9c]
fstp dword [esi + 0x9c]
call fcn.00431b50
add esi, 0xb8
lea edx, [esp + 0xa0]
lea ecx, [esi + 0x60]
push ecx
push edx
call fcn.0042ec80
add esp, 0x40
lea eax, [esi + 0x8c]
lea ecx, [esp + 0x44]
push eax
push ecx
call fcn.0042ec80
lea edx, [esi + 8]
lea eax, [esp + 0x58]
push edx
push eax
call fcn.0042ec80
lea ecx, [esi + 0x34]
lea edx, [esp + 0x6c]
push ecx
push edx
call fcn.0042ec80
fld dword [0x48c8a0]
fadd dword [esi + 0x18]
push esi
fstp dword [esi + 0x18]
fld dword [0x48c8a0]
fadd dword [esi + 0x44]
fstp dword [esi + 0x44]
fld dword [0x48c8a0]
fadd dword [esi + 0x70]
fstp dword [esi + 0x70]
fld dword [0x48c8a0]
fadd dword [esi + 0x9c]
fstp dword [esi + 0x9c]
call fcn.00431b50
add esp, 0x1c
pop edi
pop esi
add esp, 0x6c
ret
pop edi
pop esi
fstp st(0)
add esp, 0x6c
ret