Function at 0x40ba40
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 [0x449118]
mov esi, eax
mov eax, dword [edi + 0x204]
fstp qword [esp + 0x30]
test eax, eax
fld qword [0x449110]
fstp qword [esp + 0x10]
mov dword [esp + 0xd4], esi
je 0x40bba0
fld qword [esp + 0x20]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 5
jp 0x40bb06
fld qword [esp + 0x18]
fsub qword [esp + 0x20]
fdivr qword [0x44be10]
fmul qword [esp + 0x20]
jmp 0x40bb9c
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.00416860
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 [0x449118]
fnstsw ax
test ah, 0x41
jne 0x40bb85
fld qword [0x449118]
jmp 0x40bb9c
fld qword [esp + 0x30]
fcomp qword [0x44be38]
fnstsw ax
test ah, 5
jp 0x40bba0
fld qword [0x44be38]
fstp qword [esp + 0x30]
mov eax, dword [edi + 0x208]
test eax, eax
je 0x40bc81
fld qword [esp + 0x18]
fcomp qword [esp + 0x20]
fld qword [esp + 0x18]
fnstsw ax
test ah, 5
jp 0x40bbd4
fsub qword [esp + 0x20]
fdivr qword [0x44be10]
fmul qword [esp + 0x20]
jmp 0x40bc7d
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x41
jne 0x40bc81
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.00416860
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 [0x449110]
fnstsw ax
test ah, 5
jp 0x40bc66
fld qword [0x449110]
fstp qword [esp + 0x30]
jmp 0x40bc81
fld qword [esp + 0x10]
fcomp qword [0x44be30]
fnstsw ax
test ah, 0x41
jne 0x40bc81
fld qword [0x44be30]
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 0x40bca0
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 0x40bcb8
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 0x40bcd0
fstp st(0)
fld qword [esp + 0x50]
fld qword [esp + 0x20]
fcomp qword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x40bce5
fmul qword [esp + 0x20]
jmp 0x40bce9
fmul qword [esp + 0x18]
fst qword [esp + 0x58]
fcomp qword [0x449110]
fnstsw ax
test ah, 5
jp 0x40bd04
mov dword [esp + 0x3c], 3
jmp 0x40bd46
fld qword [0x44be28]
fdiv qword [esp + 0x58]
fsubr qword [0x449110]
call fcn.00439410
fdivr qword [0x44be20]
call fcn.0043879c
cmp eax, 3
mov dword [esp + 0x3c], eax
jge 0x40bd37
mov dword [esp + 0x3c], 3
jmp 0x40bd46
cmp eax, 0xc8
jle 0x40bd46
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 0x40bde3
fld qword [esp + 0x48]
lea eax, [esp + 0xe8]
push eax
jmp 0x40be0c
fld qword [esp + 0x28]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x40be00
fld qword [esp + 0x60]
lea ecx, [esp + 0xe8]
push ecx
jmp 0x40be0c
fld qword [esp + 0x28]
lea edx, [esp + 0xe8]
push edx
sub esp, 8
mov ecx, edi
fstp qword [esp]
call fcn.00415ed0
fld qword [esp + 0x10]
fsub qword [esp + 0x30]
fst qword [esp + 0x70]
fadd qword [esp + 0x30]
fstp qword [esp + 0xe0]
jmp 0x40be40
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 0x40be7f
fld qword [esp + 0x48]
lea eax, [esp + 0x1e8]
push eax
jmp 0x40bea8
fld qword [esp + 0x10]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x40be9c
fld qword [esp + 0x60]
lea ecx, [esp + 0x1e8]
push ecx
jmp 0x40bea8
fld qword [esp + 0x10]
lea edx, [esp + 0x1e8]
push edx
sub esp, 8
mov ecx, edi
fstp qword [esp]
call fcn.00415ed0
mov edx, dword [esp + 0x40]
mov eax, 0x100
sub eax, edx
cmp eax, 1
jle 0x40c04c
lea esp, [esp]
xor ecx, ecx
cmp esi, 4
jl 0x40bf66
jmp 0x40bee0
fld qword [esp + ecx*8 + 0x1e8]
fsub qword [esp + ecx*8 + 0xe8]
fabs
fcomp qword [0x44be08]
fnstsw ax
test ah, 0x41
je 0x40bf9f
fld qword [esp + ecx*8 + 0x1f0]
fsub qword [esp + ecx*8 + 0xf0]
fabs
fcomp qword [0x44be08]
fnstsw ax
test ah, 0x41
je 0x40bf94
fld qword [esp + ecx*8 + 0x1f8]
fsub qword [esp + ecx*8 + 0xf8]
fabs
fcomp qword [0x44be08]
fnstsw ax
test ah, 0x41
je 0x40bf97
fld qword [esp + ecx*8 + 0x200]
fsub qword [esp + ecx*8 + 0x100]
fabs
fcomp qword [0x44be08]
fnstsw ax
test ah, 0x41
je 0x40bf9c
add ecx, 4
lea edx, [esi - 3]
cmp ecx, edx
jl 0x40bee0
cmp ecx, esi
jge 0x40bfa1
lea ebx, [ebx]
fld qword [esp + ecx*8 + 0x1e8]
fsub qword [esp + ecx*8 + 0xe8]
fabs
fcomp qword [0x44be08]
fnstsw ax
test ah, 0x41
je 0x40bf9f
inc ecx
cmp ecx, esi
jl 0x40bf70
jmp 0x40bf9f
inc ecx
jmp 0x40bf9f
add ecx, 2
jmp 0x40bf9f
add ecx, 3
cmp ecx, esi
jne 0x40bfb1
cmp dword [esp + 0x18], 0x100
jl 0x40c04c
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 [0x44be08]
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 0x40c008
fld qword [esp + 0x48]
lea edx, [esp + 0x1e8]
push edx
jmp 0x40c031
fld qword [esp + 0x10]
fcomp qword [esp + 0x60]
fnstsw ax
test ah, 0x41
jne 0x40c025
fld qword [esp + 0x60]
lea eax, [esp + 0x1e8]
push eax
jmp 0x40c031
fld qword [esp + 0x10]
lea ecx, [esp + 0x1e8]
push ecx
mov ecx, dword [ebp + 8]
sub esp, 8
fstp qword [esp]
call fcn.00415ed0
sub edi, dword [esp + 0x40]
cmp edi, 1
jg 0x40bed0
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 0x40c113
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 [0x44b880]
fstp qword [esp + eax*8 + 0xc8]
fld qword [esp + eax*8 + 0x1d0]
fadd qword [esp + eax*8 + 0xd0]
fmul qword [0x44b880]
fstp qword [esp + eax*8 + 0xd0]
fld qword [esp + eax*8 + 0x1d8]
fadd qword [esp + eax*8 + 0xd8]
fmul qword [0x44b880]
fstp qword [esp + eax*8 + 0xd8]
fld qword [esp + eax*8 + 0x1e0]
fadd qword [esp + eax*8 + 0xe0]
fmul qword [0x44b880]
fstp qword [esp + eax*8 + 0xe0]
jl 0x40c0a0
cmp eax, esi
jge 0x40c140
jmp 0x40c120
fld qword [esp + eax*8 + 0x1e8]
inc eax
cmp eax, esi
fadd qword [esp + eax*8 + 0xe0]
fmul qword [0x44b880]
fstp qword [esp + eax*8 + 0xe0]
jl 0x40c120
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.004165c0
mov edi, dword [esp + 0x3c]
mov esi, 1
cmp edi, esi
mov dword [esp + 0x40], esi
jle 0x40c223
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 [0x44be18]
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.004165e0
inc esi
cmp esi, edi
mov dword [esp + 0x40], esi
jl 0x40c1c0
mov esi, dword [ebx + 0x18]
mov ecx, dword [esi + 0x31c]
call fcn.00416720
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.004165c0
mov esi, 1
cmp edi, esi
mov dword [esp + 0x40], esi
jle 0x40c323
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 [0x44be18]
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.004165e0
inc esi
cmp esi, edi
mov dword [esp + 0x40], esi
jl 0x40c2c0
mov esi, dword [ebx + 0x18]
mov ecx, dword [esi + 0x31c]
call fcn.00416720
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.00418c00
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 0x40be32
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4