Function at 0x40bd00
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 [0x450118]
mov esi, eax
mov eax, dword [edi + 0x204]
fstp qword [esp + 0x30]
test eax, eax
fld qword [0x450110]
fstp qword [esp + 0x10]
mov dword [esp + 0xd4], esi
je 0x40be60
fld qword [esp + 0x20]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 5
jp 0x40bdc6
fld qword [esp + 0x18]
fsub qword [esp + 0x20]
fdivr qword [0x452e20]
fmul qword [esp + 0x20]
jmp 0x40be5c
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.004174a0
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 [0x450118]
fnstsw ax
test ah, 0x41
jne 0x40be45
fld qword [0x450118]
jmp 0x40be5c
fld qword [esp + 0x30]
fcomp qword [0x452e48]
fnstsw ax
test ah, 5
jp 0x40be60
fld qword [0x452e48]
fstp qword [esp + 0x30]
mov eax, dword [edi + 0x208]
test eax, eax
je 0x40bf41
fld qword [esp + 0x18]
fcomp qword [esp + 0x20]
fld qword [esp + 0x18]
fnstsw ax
test ah, 5
jp 0x40be94
fsub qword [esp + 0x20]
fdivr qword [0x452e20]
fmul qword [esp + 0x20]
jmp 0x40bf3d
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x41
jne 0x40bf41
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.004174a0
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 [0x450110]
fnstsw ax
test ah, 5
jp 0x40bf26
fld qword [0x450110]
fstp qword [esp + 0x30]
jmp 0x40bf41
fld qword [esp + 0x10]
fcomp qword [0x452e40]
fnstsw ax
test ah, 0x41
jne 0x40bf41
fld qword [0x452e40]
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 0x40bf60
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 0x40bf78
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 0x40bf90
fstp st(0)
fld qword [esp + 0x50]
fld qword [esp + 0x20]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x40bfa5
fmul qword [esp + 0x20]
jmp 0x40bfa9
fmul qword [esp + 0x18]
fst qword [esp + 0x58]
fcomp qword [0x450110]
fnstsw ax
test ah, 5
jp 0x40bfc4
mov dword [esp + 0x3c], 3
jmp 0x40c006
fld qword [0x452e38]
fdiv qword [esp + 0x58]
fsubr qword [0x450110]
call fcn.00440470
fdivr qword [0x452e30]
call fcn.0043f7fc
cmp eax, 3
mov dword [esp + 0x3c], eax
jge 0x40bff7
mov dword [esp + 0x3c], 3
jmp 0x40c006
cmp eax, 0xc8
jle 0x40c006
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 0x40c0a3
fld qword [esp + 0x48]
lea eax, [esp + 0xe8]
push eax
jmp 0x40c0cc
fld qword [esp + 0x28]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x40c0c0
fld qword [esp + 0x60]
lea ecx, [esp + 0xe8]
push ecx
jmp 0x40c0cc
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 0x40c100
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 0x40c13f
fld qword [esp + 0x48]
lea eax, [esp + 0x1e8]
push eax
jmp 0x40c168
fld qword [esp + 0x10]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x40c15c
fld qword [esp + 0x60]
lea ecx, [esp + 0x1e8]
push ecx
jmp 0x40c168
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 0x40c30c
lea esp, [esp]
xor ecx, ecx
cmp esi, 4
jl 0x40c226
jmp 0x40c1a0
fld qword [esp + ecx*8 + 0x1e8]
fsub qword [esp + ecx*8 + 0xe8]
fabs
fcomp qword [0x452e18]
fnstsw ax
test ah, 0x41
je 0x40c25f
fld qword [esp + ecx*8 + 0x1f0]
fsub qword [esp + ecx*8 + 0xf0]
fabs
fcomp qword [0x452e18]
fnstsw ax
test ah, 0x41
je 0x40c254
fld qword [esp + ecx*8 + 0x1f8]
fsub qword [esp + ecx*8 + 0xf8]
fabs
fcomp qword [0x452e18]
fnstsw ax
test ah, 0x41
je 0x40c257
fld qword [esp + ecx*8 + 0x200]
fsub qword [esp + ecx*8 + 0x100]
fabs
fcomp qword [0x452e18]
fnstsw ax
test ah, 0x41
je 0x40c25c
add ecx, 4
lea edx, [esi - 3]
cmp ecx, edx
jl 0x40c1a0
cmp ecx, esi
jge 0x40c261
lea ebx, [ebx]
fld qword [esp + ecx*8 + 0x1e8]
fsub qword [esp + ecx*8 + 0xe8]
fabs
fcomp qword [0x452e18]
fnstsw ax
test ah, 0x41
je 0x40c25f
inc ecx
cmp ecx, esi
jl 0x40c230
jmp 0x40c25f
inc ecx
jmp 0x40c25f
add ecx, 2
jmp 0x40c25f
add ecx, 3
cmp ecx, esi
jne 0x40c271
cmp dword [esp + 0x18], 0x100
jl 0x40c30c
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 [0x452e18]
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 0x40c2c8
fld qword [esp + 0x48]
lea edx, [esp + 0x1e8]
push edx
jmp 0x40c2f1
fld qword [esp + 0x10]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x40c2e5
fld qword [esp + 0x60]
lea eax, [esp + 0x1e8]
push eax
jmp 0x40c2f1
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 0x40c190
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 0x40c3d3
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 [0x452880]
fstp qword [esp + eax*8 + 0xc8]
fld qword [esp + eax*8 + 0x1d0]
fadd qword [esp + eax*8 + 0xd0]
fmul qword [0x452880]
fstp qword [esp + eax*8 + 0xd0]
fld qword [esp + eax*8 + 0x1d8]
fadd qword [esp + eax*8 + 0xd8]
fmul qword [0x452880]
fstp qword [esp + eax*8 + 0xd8]
fld qword [esp + eax*8 + 0x1e0]
fadd qword [esp + eax*8 + 0xe0]
fmul qword [0x452880]
fstp qword [esp + eax*8 + 0xe0]
jl 0x40c360
cmp eax, esi
jge 0x40c400
jmp 0x40c3e0
fld qword [esp + eax*8 + 0x1e8]
inc eax
cmp eax, esi
fadd qword [esp + eax*8 + 0xe0]
fmul qword [0x452880]
fstp qword [esp + eax*8 + 0xe0]
jl 0x40c3e0
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.00416e60
mov edi, dword [esp + 0x3c]
mov esi, 1
cmp edi, esi
mov dword [esp + 0x40], esi
jle 0x40c4e3
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 [0x452e28]
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.00416e80
inc esi
cmp esi, edi
mov dword [esp + 0x40], esi
jl 0x40c480
mov esi, dword [ebx + 0x18]
mov ecx, dword [esi + 0x31c]
call fcn.00416fc0
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.00416e60
mov esi, 1
cmp edi, esi
mov dword [esp + 0x40], esi
jle 0x40c5e3
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 [0x452e28]
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.00416e80
inc esi
cmp esi, edi
mov dword [esp + 0x40], esi
jl 0x40c580
mov esi, dword [ebx + 0x18]
mov ecx, dword [esi + 0x31c]
call fcn.00416fc0
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.00419890
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 0x40c0f2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4