Function at 0x40bf00
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 [0x45b118]
mov esi, eax
mov eax, dword [edi + 0x204]
fstp qword [esp + 0x30]
test eax, eax
fld qword [0x45b110]
fstp qword [esp + 0x10]
mov dword [esp + 0xd4], esi
je 0x40c060
fld qword [esp + 0x20]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 5
jp 0x40bfc6
fld qword [esp + 0x18]
fsub qword [esp + 0x20]
fdivr qword [0x45de20]
fmul qword [esp + 0x20]
jmp 0x40c05c
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.00417be0
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 [0x45b118]
fnstsw ax
test ah, 0x41
jne 0x40c045
fld qword [0x45b118]
jmp 0x40c05c
fld qword [esp + 0x30]
fcomp qword [0x45de48]
fnstsw ax
test ah, 5
jp 0x40c060
fld qword [0x45de48]
fstp qword [esp + 0x30]
mov eax, dword [edi + 0x208]
test eax, eax
je 0x40c141
fld qword [esp + 0x18]
fcomp qword [esp + 0x20]
fld qword [esp + 0x18]
fnstsw ax
test ah, 5
jp 0x40c094
fsub qword [esp + 0x20]
fdivr qword [0x45de20]
fmul qword [esp + 0x20]
jmp 0x40c13d
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x41
jne 0x40c141
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.00417be0
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 [0x45b110]
fnstsw ax
test ah, 5
jp 0x40c126
fld qword [0x45b110]
fstp qword [esp + 0x30]
jmp 0x40c141
fld qword [esp + 0x10]
fcomp qword [0x45de40]
fnstsw ax
test ah, 0x41
jne 0x40c141
fld qword [0x45de40]
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 0x40c160
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 0x40c178
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 0x40c190
fstp st(0)
fld qword [esp + 0x50]
fld qword [esp + 0x20]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x40c1a5
fmul qword [esp + 0x20]
jmp 0x40c1a9
fmul qword [esp + 0x18]
fst qword [esp + 0x58]
fcomp qword [0x45b110]
fnstsw ax
test ah, 5
jp 0x40c1c4
mov dword [esp + 0x3c], 3
jmp 0x40c206
fld qword [0x45de38]
fdiv qword [esp + 0x58]
fsubr qword [0x45b110]
call fcn.0044b260
fdivr qword [0x45de30]
call fcn.0044a5ec
cmp eax, 3
mov dword [esp + 0x3c], eax
jge 0x40c1f7
mov dword [esp + 0x3c], 3
jmp 0x40c206
cmp eax, 0xc8
jle 0x40c206
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 0x40c2a3
fld qword [esp + 0x48]
lea eax, [esp + 0xe8]
push eax
jmp 0x40c2cc
fld qword [esp + 0x28]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x40c2c0
fld qword [esp + 0x60]
lea ecx, [esp + 0xe8]
push ecx
jmp 0x40c2cc
fld qword [esp + 0x28]
lea edx, [esp + 0xe8]
push edx
sub esp, 8
mov ecx, edi
fstp qword [esp]
call fcn.00416c10
fld qword [esp + 0x10]
fsub qword [esp + 0x30]
fst qword [esp + 0x70]
fadd qword [esp + 0x30]
fstp qword [esp + 0xe0]
jmp 0x40c300
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 0x40c33f
fld qword [esp + 0x48]
lea eax, [esp + 0x1e8]
push eax
jmp 0x40c368
fld qword [esp + 0x10]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x40c35c
fld qword [esp + 0x60]
lea ecx, [esp + 0x1e8]
push ecx
jmp 0x40c368
fld qword [esp + 0x10]
lea edx, [esp + 0x1e8]
push edx
sub esp, 8
mov ecx, edi
fstp qword [esp]
call fcn.00416c10
mov edx, dword [esp + 0x40]
mov eax, 0x100
sub eax, edx
cmp eax, 1
jle 0x40c50c
lea esp, [esp]
xor ecx, ecx
cmp esi, 4
jl 0x40c426
jmp 0x40c3a0
fld qword [esp + ecx*8 + 0x1e8]
fsub qword [esp + ecx*8 + 0xe8]
fabs
fcomp qword [0x45de18]
fnstsw ax
test ah, 0x41
je 0x40c45f
fld qword [esp + ecx*8 + 0x1f0]
fsub qword [esp + ecx*8 + 0xf0]
fabs
fcomp qword [0x45de18]
fnstsw ax
test ah, 0x41
je 0x40c454
fld qword [esp + ecx*8 + 0x1f8]
fsub qword [esp + ecx*8 + 0xf8]
fabs
fcomp qword [0x45de18]
fnstsw ax
test ah, 0x41
je 0x40c457
fld qword [esp + ecx*8 + 0x200]
fsub qword [esp + ecx*8 + 0x100]
fabs
fcomp qword [0x45de18]
fnstsw ax
test ah, 0x41
je 0x40c45c
add ecx, 4
lea edx, [esi - 3]
cmp ecx, edx
jl 0x40c3a0
cmp ecx, esi
jge 0x40c461
lea ebx, [ebx]
fld qword [esp + ecx*8 + 0x1e8]
fsub qword [esp + ecx*8 + 0xe8]
fabs
fcomp qword [0x45de18]
fnstsw ax
test ah, 0x41
je 0x40c45f
inc ecx
cmp ecx, esi
jl 0x40c430
jmp 0x40c45f
inc ecx
jmp 0x40c45f
add ecx, 2
jmp 0x40c45f
add ecx, 3
cmp ecx, esi
jne 0x40c471
cmp dword [esp + 0x18], 0x100
jl 0x40c50c
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 [0x45de18]
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 0x40c4c8
fld qword [esp + 0x48]
lea edx, [esp + 0x1e8]
push edx
jmp 0x40c4f1
fld qword [esp + 0x10]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x40c4e5
fld qword [esp + 0x60]
lea eax, [esp + 0x1e8]
push eax
jmp 0x40c4f1
fld qword [esp + 0x10]
lea ecx, [esp + 0x1e8]
push ecx
mov ecx, dword [ebp + 8]
sub esp, 8
fstp qword [esp]
call fcn.00416c10
sub edi, dword [esp + 0x40]
cmp edi, 1
jg 0x40c390
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 0x40c5d3
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 [0x45d880]
fstp qword [esp + eax*8 + 0xc8]
fld qword [esp + eax*8 + 0x1d0]
fadd qword [esp + eax*8 + 0xd0]
fmul qword [0x45d880]
fstp qword [esp + eax*8 + 0xd0]
fld qword [esp + eax*8 + 0x1d8]
fadd qword [esp + eax*8 + 0xd8]
fmul qword [0x45d880]
fstp qword [esp + eax*8 + 0xd8]
fld qword [esp + eax*8 + 0x1e0]
fadd qword [esp + eax*8 + 0xe0]
fmul qword [0x45d880]
fstp qword [esp + eax*8 + 0xe0]
jl 0x40c560
cmp eax, esi
jge 0x40c600
jmp 0x40c5e0
fld qword [esp + eax*8 + 0x1e8]
inc eax
cmp eax, esi
fadd qword [esp + eax*8 + 0xe0]
fmul qword [0x45d880]
fstp qword [esp + eax*8 + 0xe0]
jl 0x40c5e0
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.004175a0
mov edi, dword [esp + 0x3c]
mov esi, 1
cmp edi, esi
mov dword [esp + 0x40], esi
jle 0x40c6e3
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 [0x45de28]
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.004175c0
inc esi
cmp esi, edi
mov dword [esp + 0x40], esi
jl 0x40c680
mov esi, dword [ebx + 0x18]
mov ecx, dword [esi + 0x31c]
call fcn.00417700
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.004175a0
mov esi, 1
cmp edi, esi
mov dword [esp + 0x40], esi
jle 0x40c7e3
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 [0x45de28]
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.004175c0
inc esi
cmp esi, edi
mov dword [esp + 0x40], esi
jl 0x40c780
mov esi, dword [ebx + 0x18]
mov ecx, dword [esi + 0x31c]
call fcn.00417700
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.00419f80
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 0x40c2f2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4