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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2dc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
fld qword [edi + 0x140]
mov ebx, ecx
mov ecx, dword [edi + 0xc]
fstp qword [esp + 0xb0]
fld qword [edi + 0x148]
mov eax, dword [ecx]
fstp qword [esp + 0xc0]
fld qword [edi + 0x150]
fstp qword [esp + 0x20]
fld qword [edi + 0x158]
fstp qword [esp + 0x80]
fld qword [edi + 0x160]
fstp qword [esp + 0x70]
fld qword [edi + 0x168]
fstp qword [esp + 0x18]
fld qword [edi + 0x170]
fstp qword [esp + 0x48]
fld qword [edi + 0x178]
fstp qword [esp + 0x60]
call dword [eax + 0x18]
fld qword [0x44b118]
mov esi, eax
mov eax, dword [edi + 0x204]
fstp qword [esp + 0x30]
test eax, eax
fld qword [0x44b110]
fstp qword [esp + 0x10]
mov dword [esp + 0xd4], esi
je 0x40be70
fld qword [esp + 0x20]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 5
jp 0x40bdd6
fld qword [esp + 0x18]
fsub qword [esp + 0x20]
fdivr qword [0x44de20]
fmul qword [esp + 0x20]
jmp 0x40be6c
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0xa4]
push edx
lea eax, [esp + 0xb0]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov ecx, dword [ebx + 0x18]
call fcn.004175c0
fld qword [esp + 0xa0]
fsub qword [esp + 0x90]
fld qword [esp + 0x88]
fsub qword [esp + 0xa8]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fsub qword [esp + 0x20]
fld qword [esp + 0x18]
fsub qword [esp + 0x20]
fdivp st(1)
fstp qword [esp + 0x30]
fstp st(0)
fstp st(0)
fld qword [esp + 0x30]
fcomp qword [0x44b118]
fnstsw ax
test ah, 0x41
jne 0x40be55
fld qword [0x44b118]
jmp 0x40be6c
fld qword [esp + 0x30]
fcomp qword [0x44de48]
fnstsw ax
test ah, 5
jp 0x40be70
fld qword [0x44de48]
fstp qword [esp + 0x30]
mov eax, dword [edi + 0x208]
test eax, eax
je 0x40bf51
fld qword [esp + 0x18]
fcomp qword [esp + 0x20]
fld qword [esp + 0x18]
fnstsw ax
test ah, 5
jp 0x40bea4
fsub qword [esp + 0x20]
fdivr qword [0x44de20]
fmul qword [esp + 0x20]
jmp 0x40bf4d
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x41
jne 0x40bf51
lea edx, [esp + 0x88]
push edx
lea eax, [esp + 0xa4]
push eax
lea ecx, [esp + 0xb0]
push ecx
mov ecx, dword [ebx + 0x18]
lea edx, [esp + 0x9c]
push edx
call fcn.004175c0
fld qword [esp + 0xa0]
fsub qword [esp + 0x90]
fld qword [esp + 0x88]
fsub qword [esp + 0xa8]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fsqrt
fsub qword [esp + 0x20]
fld qword [esp + 0x18]
fsub qword [esp + 0x20]
fdivp st(1)
fstp qword [esp + 0x10]
fstp st(0)
fstp st(0)
fld qword [esp + 0x10]
fcomp qword [0x44b110]
fnstsw ax
test ah, 5
jp 0x40bf36
fld qword [0x44b110]
fstp qword [esp + 0x30]
jmp 0x40bf51
fld qword [esp + 0x10]
fcomp qword [0x44de40]
fnstsw ax
test ah, 0x41
jne 0x40bf51
fld qword [0x44de40]
fstp qword [esp + 0x10]
mov ecx, dword [ebx + 0x18]
fld qword [ecx]
fabs
fld qword [ecx + 8]
fabs
fst qword [esp + 0x50]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40bf70
fstp st(0)
fld qword [esp + 0x50]
fld qword [ecx + 0x10]
fabs
fst qword [esp + 0x50]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40bf88
fstp st(0)
fld qword [esp + 0x50]
fld qword [ecx + 0x18]
fabs
fst qword [esp + 0x50]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40bfa0
fstp st(0)
fld qword [esp + 0x50]
fld qword [esp + 0x20]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x40bfb5
fmul qword [esp + 0x20]
jmp 0x40bfb9
fmul qword [esp + 0x18]
fst qword [esp + 0x58]
fcomp qword [0x44b110]
fnstsw ax
test ah, 5
jp 0x40bfd4
mov dword [esp + 0x3c], 3
jmp 0x40c016
fld qword [0x44de38]
fdiv qword [esp + 0x58]
fsubr qword [0x44b110]
call fcn.0043b620
fdivr qword [0x44de30]
call fcn.0043a9ac
cmp eax, 3
mov dword [esp + 0x3c], eax
jge 0x40c007
mov dword [esp + 0x3c], 3
jmp 0x40c016
cmp eax, 0xc8
jle 0x40c016
mov dword [esp + 0x3c], 0xc8
fld qword [esp + 0x60]
mov dword [esp + 0x40], 0
fsub qword [esp + 0x48]
fst qword [esp + 0x98]
fmul qword [esp + 0x30]
fadd qword [esp + 0x48]
fstp qword [esp + 0x28]
fld qword [esp + 0x80]
fsub qword [esp + 0xb0]
fst qword [esp + 0xd8]
fmul qword [esp + 0x30]
fadd qword [esp + 0xb0]
fstp qword [esp + 0x58]
fld qword [esp + 0x70]
fsub qword [esp + 0xc0]
fst qword [esp + 0x80]
fmul qword [esp + 0x30]
fadd qword [esp + 0xc0]
fstp qword [esp + 0x78]
fld qword [esp + 0x18]
fsub qword [esp + 0x20]
fst qword [esp + 0x50]
fmul qword [esp + 0x30]
fadd qword [esp + 0x20]
fstp qword [esp + 0x68]
fld qword [esp + 0x28]
fcomp qword [esp + 0x48]
fnstsw ax
test ah, 5
jp 0x40c0b3
fld qword [esp + 0x48]
lea eax, [esp + 0xe8]
push eax
jmp 0x40c0dc
fld qword [esp + 0x28]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x40c0d0
fld qword [esp + 0x60]
lea ecx, [esp + 0xe8]
push ecx
jmp 0x40c0dc
fld qword [esp + 0x28]
lea edx, [esp + 0xe8]
push edx
sub esp, 8
mov ecx, edi
fstp qword [esp]
call fcn.00416770
fld qword [esp + 0x10]
fsub qword [esp + 0x30]
fst qword [esp + 0x70]
fadd qword [esp + 0x30]
fstp qword [esp + 0xe0]
jmp 0x40c110
mov esi, dword [esp + 0xd4]
mov edi, dword [ebp + 8]
lea esp, [esp]
fld qword [esp + 0xe0]
mov dword [esp + 0x18], 0x100
fstp qword [esp + 0x28]
fld qword [esp + 0x98]
fmul qword [esp + 0x28]
fadd qword [esp + 0x48]
fst qword [esp + 0x10]
fcomp qword [esp + 0x48]
fnstsw ax
test ah, 5
jp 0x40c14f
fld qword [esp + 0x48]
lea eax, [esp + 0x1e8]
push eax
jmp 0x40c178
fld qword [esp + 0x10]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x40c16c
fld qword [esp + 0x60]
lea ecx, [esp + 0x1e8]
push ecx
jmp 0x40c178
fld qword [esp + 0x10]
lea edx, [esp + 0x1e8]
push edx
sub esp, 8
mov ecx, edi
fstp qword [esp]
call fcn.00416770
mov edx, dword [esp + 0x40]
mov eax, 0x100
sub eax, edx
cmp eax, 1
jle 0x40c31c
lea esp, [esp]
xor ecx, ecx
cmp esi, 4
jl 0x40c236
jmp 0x40c1b0
fld qword [esp + ecx*8 + 0x1e8]
fsub qword [esp + ecx*8 + 0xe8]
fabs
fcomp qword [0x44de18]
fnstsw ax
test ah, 0x41
je 0x40c26f
fld qword [esp + ecx*8 + 0x1f0]
fsub qword [esp + ecx*8 + 0xf0]
fabs
fcomp qword [0x44de18]
fnstsw ax
test ah, 0x41
je 0x40c264
fld qword [esp + ecx*8 + 0x1f8]
fsub qword [esp + ecx*8 + 0xf8]
fabs
fcomp qword [0x44de18]
fnstsw ax
test ah, 0x41
je 0x40c267
fld qword [esp + ecx*8 + 0x200]
fsub qword [esp + ecx*8 + 0x100]
fabs
fcomp qword [0x44de18]
fnstsw ax
test ah, 0x41
je 0x40c26c
add ecx, 4
lea edx, [esi - 3]
cmp ecx, edx
jl 0x40c1b0
cmp ecx, esi
jge 0x40c271
lea ebx, [ebx]
fld qword [esp + ecx*8 + 0x1e8]
fsub qword [esp + ecx*8 + 0xe8]
fabs
fcomp qword [0x44de18]
fnstsw ax
test ah, 0x41
je 0x40c26f
inc ecx
cmp ecx, esi
jl 0x40c240
jmp 0x40c26f
inc ecx
jmp 0x40c26f
add ecx, 2
jmp 0x40c26f
add ecx, 3
cmp ecx, esi
jne 0x40c281
cmp dword [esp + 0x18], 0x100
jl 0x40c31c
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
add eax, ecx
cdq
sub eax, edx
sar eax, 1
mov edi, eax
mov dword [esp + 0x18], edi
fild dword [esp + 0x18]
fmul qword [0x44de18]
fmul qword [esp + 0x70]
fadd qword [esp + 0x30]
fstp qword [esp + 0x28]
fld qword [esp + 0x98]
fmul qword [esp + 0x28]
fadd qword [esp + 0x48]
fst qword [esp + 0x10]
fcomp qword [esp + 0x48]
fnstsw ax
test ah, 5
jp 0x40c2d8
fld qword [esp + 0x48]
lea edx, [esp + 0x1e8]
push edx
jmp 0x40c301
fld qword [esp + 0x10]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x40c2f5
fld qword [esp + 0x60]
lea eax, [esp + 0x1e8]
push eax
jmp 0x40c301
fld qword [esp + 0x10]
lea ecx, [esp + 0x1e8]
push ecx
mov ecx, dword [ebp + 8]
sub esp, 8
fstp qword [esp]
call fcn.00416770
sub edi, dword [esp + 0x40]
cmp edi, 1
jg 0x40c1a0
fld qword [esp + 0xd8]
xor eax, eax
cmp esi, 4
fmul qword [esp + 0x28]
fadd qword [esp + 0xb0]
fstp qword [esp + 0xb8]
fld qword [esp + 0x80]
fmul qword [esp + 0x28]
fadd qword [esp + 0xc0]
fstp qword [esp + 0x10]
fld qword [esp + 0x50]
fmul qword [esp + 0x28]
fadd qword [esp + 0x20]
fstp qword [esp + 0x28]
jl 0x40c3e3
lea ecx, [esi - 3]
lea esp, [esp]
fld qword [esp + eax*8 + 0x1e8]
add eax, 4
cmp eax, ecx
fadd qword [esp + eax*8 + 0xc8]
fmul qword [0x44d880]
fstp qword [esp + eax*8 + 0xc8]
fld qword [esp + eax*8 + 0x1d0]
fadd qword [esp + eax*8 + 0xd0]
fmul qword [0x44d880]
fstp qword [esp + eax*8 + 0xd0]
fld qword [esp + eax*8 + 0x1d8]
fadd qword [esp + eax*8 + 0xd8]
fmul qword [0x44d880]
fstp qword [esp + eax*8 + 0xd8]
fld qword [esp + eax*8 + 0x1e0]
fadd qword [esp + eax*8 + 0xe0]
fmul qword [0x44d880]
fstp qword [esp + eax*8 + 0xe0]
jl 0x40c370
cmp eax, esi
jge 0x40c410
jmp 0x40c3f0
fld qword [esp + eax*8 + 0x1e8]
inc eax
cmp eax, esi
fadd qword [esp + eax*8 + 0xe0]
fmul qword [0x44d880]
fstp qword [esp + eax*8 + 0xe0]
jl 0x40c3f0
mov edi, dword [ebx + 0x18]
add edi, 0x68
mov ecx, 0x40
lea esi, [esp + 0xe8]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0x18]
mov edx, dword [ecx]
push eax
call dword [edx + 0x58]
mov eax, dword [ebx + 0x18]
fld qword [esp + 0x68]
mov ecx, dword [eax + 0x31c]
fadd qword [esp + 0x58]
sub esp, 0x10
fld qword [esp + 0x88]
fstp qword [eax + 0x328]
fst qword [eax + 0x320]
fld qword [esp + 0x88]
fstp qword [esp + 8]
fstp qword [esp]
call fcn.00416f80
mov edi, dword [esp + 0x3c]
mov esi, 1
cmp edi, esi
mov dword [esp + 0x40], esi
jle 0x40c4f3
fild dword [esp + 0x3c]
fstp qword [esp + 0xc8]
lea ebx, [ebx]
fild dword [esp + 0x40]
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 0x31c]
sub esp, 0x10
fdiv qword [esp + 0xd8]
fmul qword [0x44de28]
fld st(0)
fsin
fmul qword [esp + 0x78]
fadd qword [esp + 0x88]
fxch st(1)
fcos
fmul qword [esp + 0x78]
fadd qword [esp + 0x68]
fst qword [esp + 0x50]
fld st(1)
fstp qword [eax + 0x328]
fstp qword [eax + 0x320]
fstp qword [esp + 8]
fld qword [esp + 0x50]
fstp qword [esp]
call fcn.00416fa0
inc esi
cmp esi, edi
mov dword [esp + 0x40], esi
jl 0x40c490
mov esi, dword [ebx + 0x18]
mov ecx, dword [esi + 0x31c]
call fcn.004170e0
mov eax, dword [esi + 0x31c]
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 0x1c]
mov ecx, dword [edx + ecx*4 - 4]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx]
fld qword [ecx + edx*8 - 8]
sub esp, 0x10
fstp qword [esi + 0x320]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + edx*4 - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
fld qword [edx + ecx*8 - 8]
fstp qword [esi + 0x328]
mov eax, dword [ebx + 0x18]
fld qword [esp + 0x38]
mov ecx, dword [eax + 0x31c]
fadd qword [esp + 0xc8]
fld qword [esp + 0x20]
fstp qword [eax + 0x328]
fst qword [eax + 0x320]
fld qword [esp + 0x20]
fstp qword [esp + 8]
fstp qword [esp]
call fcn.00416f80
mov esi, 1
cmp edi, esi
mov dword [esp + 0x40], esi
jle 0x40c5f3
fild dword [esp + 0x3c]
fstp qword [esp + 0xc8]
lea ecx, [ecx]
fild dword [esp + 0x40]
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 0x31c]
sub esp, 0x10
fdiv qword [esp + 0xd8]
fmul qword [0x44de28]
fld st(0)
fsin
fmul qword [esp + 0x38]
fadd qword [esp + 0x20]
fxch st(1)
fcos
fmul qword [esp + 0x38]
fadd qword [esp + 0xc8]
fst qword [esp + 0x68]
fld st(1)
fstp qword [eax + 0x328]
fstp qword [eax + 0x320]
fstp qword [esp + 8]
fld qword [esp + 0x68]
fstp qword [esp]
call fcn.00416fa0
inc esi
cmp esi, edi
mov dword [esp + 0x40], esi
jl 0x40c590
mov esi, dword [ebx + 0x18]
mov ecx, dword [esi + 0x31c]
call fcn.004170e0
mov eax, dword [esi + 0x31c]
mov edx, dword [eax + 0x18]
mov ecx, dword [eax + 0x1c]
mov ecx, dword [edx + ecx*4 - 4]
mov edx, dword [ecx + 0xc]
mov ecx, dword [ecx]
fld qword [ecx + edx*8 - 8]
fstp qword [esi + 0x320]
mov edx, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
mov eax, dword [eax + edx*4 - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 4]
fld qword [edx + ecx*8 - 8]
fstp qword [esi + 0x328]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 0x18]
mov eax, dword [ecx]
push edx
call dword [eax + 0x94]
mov ecx, dword [ebx + 0x18]
call fcn.00419960
fld qword [esp + 0xb8]
mov eax, dword [esp + 0x18]
fstp qword [esp + 0x58]
cmp eax, 0x100
fld qword [esp + 0x10]
fstp qword [esp + 0x78]
mov ecx, 0x40
fld qword [esp + 0x28]
lea esi, [esp + 0x1e8]
lea edi, [esp + 0xe8]
fstp qword [esp + 0x68]
mov dword [esp + 0x40], eax
rep movsd dword es:[edi], dword [esi]
jl 0x40c102
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4