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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xef4
push ebx
push esi
push edi
lea eax, [esp + 0xb0]
push eax
lea edx, [esp + 0xc4]
push edx
lea eax, [esp + 0xd0]
push eax
lea edx, [esp + 0xdc]
mov dword [esp + 0x80], ecx
mov ecx, dword [ecx + 0x18]
push edx
call fcn.00417be0
mov esi, dword [ebp + 8]
fld qword [esi + 0x140]
fstp qword [esp + 0xa8]
fld qword [esi + 0x148]
fstp qword [esp + 0xa0]
fld qword [esi + 0x150]
fsub qword [esp + 0xa8]
fstp qword [esp + 0x28]
fld qword [esi + 0x158]
fsub qword [esp + 0xa0]
fst qword [esp + 0x30]
fmul qword [esp + 0x30]
fld qword [esp + 0x28]
fmul qword [esp + 0x28]
faddp st(1)
fdivr qword [0x45b110]
fld qword [esp + 0xd0]
fsub qword [esp + 0xa8]
fmul qword [esp + 0x28]
fld qword [esp + 0xc8]
fsub qword [esp + 0xa0]
fmul qword [esp + 0x30]
fst qword [esp + 0x98]
fadd st(1)
fmul st(2)
fst qword [esp + 0x10]
fstp qword [esp + 0x20]
fld qword [esp + 0xb0]
fsub qword [esp + 0xa0]
fmul qword [esp + 0x30]
fst qword [esp + 0x88]
faddp st(1)
fmul st(1)
fcom qword [esp + 0x10]
fnstsw ax
test ah, 5
jp 0x40b396
fstp qword [esp + 0x20]
jmp 0x40b3a9
fcom qword [esp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x40b3a7
fstp qword [esp + 0x10]
jmp 0x40b3a9
fstp st(0)
fld qword [esp + 0xc0]
fsub qword [esp + 0xa8]
fmul qword [esp + 0x28]
fld qword [esp + 0x98]
fadd st(1)
fmul st(2)
fcom qword [esp + 0x20]
fnstsw ax
test ah, 5
jp 0x40b3d7
fstp qword [esp + 0x20]
jmp 0x40b3ea
fcom qword [esp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x40b3e8
fstp qword [esp + 0x10]
jmp 0x40b3ea
fstp st(0)
fadd qword [esp + 0x88]
fmulp st(1)
fcom qword [esp + 0x20]
fnstsw ax
test ah, 5
jp 0x40b404
fstp qword [esp + 0x20]
jmp 0x40b417
fcom qword [esp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x40b415
fstp qword [esp + 0x10]
jmp 0x40b417
fstp st(0)
fld qword [esp + 0x20]
fcomp qword [0x45b118]
fnstsw ax
test ah, 5
jp 0x40b43c
mov eax, dword [esi + 0x1f4]
test eax, eax
jne 0x40b43c
fld qword [0x45b118]
fstp qword [esp + 0x20]
fld qword [esp + 0x10]
fcomp qword [0x45b110]
fnstsw ax
test ah, 0x41
jne 0x40b461
mov eax, dword [esi + 0x1f8]
test eax, eax
jne 0x40b461
fld qword [0x45b110]
fstp qword [esp + 0x10]
fld qword [esi + 0x160]
mov ecx, dword [esi + 0xc]
mov eax, dword [ecx]
fstp qword [esp + 0x90]
fld qword [esi + 0x168]
fstp qword [esp + 0xd8]
call dword [eax + 0x18]
fld qword [esp + 0x20]
mov dword [esp + 0xbc], eax
fstp qword [esp + 0x2f0]
mov dword [esp + 0xaf8], 0x80
fld qword [esp + 0x10]
mov dword [esp + 0xcf8], 0x100
fadd qword [esp + 0x20]
fmul qword [0x45d880]
fstp qword [esp + 0x6f0]
fld qword [esp + 0x10]
fstp qword [esp + 0xaf0]
fld qword [esp + 0x20]
fcomp qword [0x45b118]
fnstsw ax
test ah, 5
jp 0x40b4e5
fld qword [esp + 0x90]
jmp 0x40b50f
fld qword [esp + 0x20]
fcomp qword [0x45b110]
fld qword [esp + 0xd8]
fnstsw ax
test ah, 0x41
je 0x40b50f
fsub qword [esp + 0x90]
fmul qword [esp + 0x20]
fadd qword [esp + 0x90]
lea ecx, [esp + 0xf0]
push ecx
sub esp, 8
mov ecx, esi
fstp qword [esp]
call fcn.004169a0
fld qword [esp + 0x20]
fmul qword [esp + 0x28]
fadd qword [esp + 0xa8]
fld qword [esp + 0x20]
fmul qword [esp + 0x30]
fadd qword [esp + 0xa0]
fld qword [0x45b118]
fld qword [esp + 0x28]
fucompp
fnstsw ax
test ah, 0x44
jp 0x40b5a1
fld qword [0x45de20]
fdiv qword [esp + 0x30]
fstp qword [esp + 0x10]
fld qword [esp + 0xd0]
fsub st(2)
fmul qword [esp + 0x10]
fld qword [esp + 0xc0]
fsub st(3)
fmul qword [esp + 0x10]
fstp qword [esp + 0x10]
fcom qword [esp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x40b7ad
fstp qword [esp + 0x40]
fld qword [esp + 0x10]
fld qword [esp + 0x40]
jmp 0x40b7a9
fld qword [0x45b118]
fld qword [esp + 0x30]
fucompp
fld qword [0x45b110]
fdiv qword [esp + 0x28]
fnstsw ax
test ah, 0x44
jp 0x40b600
fstp qword [esp + 0x10]
fld qword [esp + 0xc8]
fsub st(1)
fmul qword [esp + 0x10]
fld qword [esp + 0xb0]
fsub st(2)
fmul qword [esp + 0x10]
fstp qword [esp + 0x10]
fcom qword [esp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x40b7ad
fstp qword [esp + 0x40]
fld qword [esp + 0x10]
fld qword [esp + 0x40]
jmp 0x40b7a9
fld qword [esp + 0xc8]
mov eax, 0x10
fsub st(2)
lea edx, [esp + 0x50]
sub eax, edx
mov dword [esp + 0x1c], 0
fmul st(1)
mov dword [esp + 0x4c], 3
mov dword [esp + 0x78], eax
fstp qword [esp + 0x50]
fld qword [esp + 0xb0]
fsub st(2)
fmul st(1)
fstp qword [esp + 0x58]
fstp st(0)
fld qword [0x45de20]
fdiv qword [esp + 0x30]
fld qword [esp + 0xd0]
fsub st(3)
fmul st(1)
fstp qword [esp + 0x60]
fld qword [esp + 0xc0]
fsub st(3)
fmul st(1)
fstp qword [esp + 0x68]
fstp st(0)
lea esp, [esp]
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x4c], 4
lea ecx, [edi + 1]
mov dword [esp + 0x10], ecx
jl 0x40b737
mov eax, dword [esp + 0x78]
mov edx, edi
shl edx, 3
add eax, edx
lea eax, [esp + eax + 0x50]
mov dword [esp + 0x3c], eax
lea esi, [esp + 0x58]
mov eax, 0x10
sub eax, esi
mov dword [esp + 0x80], eax
mov eax, 0x18
sub eax, esi
mov dword [esp + 0x40], eax
jmp 0x40b6c0
lea ebx, [ecx*8]
fld qword [esp + ebx + 0x50]
lea esi, [esp + ebx + 0x58]
fcomp qword [esp + edx + 0x50]
fnstsw ax
test ah, 5
jp 0x40b6de
mov edi, ecx
mov edx, ebx
fld qword [esi]
fcomp qword [esp + edx + 0x50]
fnstsw ax
test ah, 5
jp 0x40b6f2
mov edx, dword [esp + 0x3c]
lea edi, [ecx + 1]
fld qword [esi + 8]
fcomp qword [esp + edx + 0x50]
fnstsw ax
test ah, 5
jp 0x40b70c
mov edx, dword [esp + 0x80]
lea edi, [ecx + 2]
add edx, esi
fld qword [esi + 0x10]
fcomp qword [esp + edx + 0x50]
fnstsw ax
test ah, 5
jp 0x40b724
mov eax, dword [esp + 0x40]
lea edi, [ecx + 3]
lea edx, [eax + esi]
mov eax, dword [esp + 0x3c]
add eax, 0x20
add ecx, 4
cmp eax, 0x10
mov dword [esp + 0x3c], eax
jl 0x40b6c0
cmp ecx, 4
jge 0x40b770
lea esi, [edi*8]
jmp 0x40b750
lea edx, [ecx*8]
fld qword [esp + edx + 0x50]
fcomp qword [esp + esi + 0x50]
fnstsw ax
test ah, 5
jp 0x40b76a
mov edi, ecx
mov esi, edx
inc ecx
cmp ecx, 4
jl 0x40b750
mov eax, dword [esp + 0x1c]
fld qword [esp + eax*8 + 0x50]
mov ecx, dword [esp + 0x10]
fld qword [esp + edi*8 + 0x50]
lea eax, [esp + eax*8 + 0x50]
lea edi, [esp + edi*8 + 0x50]
fstp qword [eax]
mov eax, dword [esp + 0x4c]
dec eax
fstp qword [edi]
test eax, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x4c], eax
jg 0x40b670
fld qword [esp + 0x58]
fld qword [esp + 0x60]
fstp qword [esp + 0x10]
fld qword [esp + 0x30]
mov ebx, dword [esp + 0x74]
fmul st(1)
xor esi, esi
fsubr st(3)
fstp qword [esp + 0xe0]
fmul qword [esp + 0x28]
fadd st(1)
fstp qword [esp + 0xe8]
fld qword [esp + 0x10]
fmul qword [esp + 0x30]
fsubr st(2)
fstp qword [esp + 0x88]
fld qword [esp + 0x10]
fmul qword [esp + 0x28]
fadd st(1)
fstp qword [esp + 0x98]
fstp st(0)
fstp st(0)
jmp 0x40b800
mov edi, dword [esp + esi*4 + 0xaf8]
lea eax, [esp + esi*4 + 0xaf8]
mov dword [esp + 0x20], eax
lea eax, [esi + 1]
cmp edi, eax
jle 0x40b9a4
mov ebx, dword [esp + 0xbc]
jmp 0x40b830
fld qword [esp + edi*8 + 0x2f0]
fcomp qword [0x45b118]
fnstsw ax
test ah, 5
jp 0x40b84d
fld qword [esp + 0x90]
jmp 0x40b87d
fld qword [esp + edi*8 + 0x2f0]
fcomp qword [0x45b110]
fld qword [esp + 0xd8]
fnstsw ax
test ah, 0x41
je 0x40b87d
fsub qword [esp + 0x90]
fmul qword [esp + edi*8 + 0x2f0]
fadd qword [esp + 0x90]
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x1f0]
push edx
sub esp, 8
fstp qword [esp]
call fcn.004169a0
xor ecx, ecx
cmp ebx, 4
jl 0x40b926
mov edi, edi
fld qword [esp + ecx*8 + 0x1f0]
fsub qword [esp + ecx*8 + 0xf0]
fabs
fcomp qword [0x45de18]
fnstsw ax
test ah, 0x41
je 0x40b95f
fld qword [esp + ecx*8 + 0x1f8]
fsub qword [esp + ecx*8 + 0xf8]
fabs
fcomp qword [0x45de18]
fnstsw ax
test ah, 0x41
je 0x40b954
fld qword [esp + ecx*8 + 0x200]
fsub qword [esp + ecx*8 + 0x100]
fabs
fcomp qword [0x45de18]
fnstsw ax
test ah, 0x41
je 0x40b957
fld qword [esp + ecx*8 + 0x208]
fsub qword [esp + ecx*8 + 0x108]
fabs
fcomp qword [0x45de18]
fnstsw ax
test ah, 0x41
je 0x40b95c
add ecx, 4
lea eax, [ebx - 3]
cmp ecx, eax
jl 0x40b8a0
cmp ecx, ebx
jge 0x40b961
lea ebx, [ebx]
fld qword [esp + ecx*8 + 0x1f0]
fsub qword [esp + ecx*8 + 0xf0]
fabs
fcomp qword [0x45de18]
fnstsw ax
test ah, 0x41
je 0x40b95f
inc ecx
cmp ecx, ebx
jl 0x40b930
jmp 0x40b95f
inc ecx
jmp 0x40b95f
add ecx, 2
jmp 0x40b95f
add ecx, 3
cmp ecx, ebx
je 0x40b9a0
fld qword [esp + esi*8 + 0x2f0]
mov ecx, dword [esp + 0x20]
fadd qword [esp + edi*8 + 0x2f0]
lea eax, [esi + edi]
cdq
sub eax, edx
sar eax, 1
fmul qword [0x45d880]
mov dword [ecx], eax
lea ecx, [esi + 1]
cmp eax, ecx
mov dword [esp + eax*4 + 0xaf8], edi
fstp qword [esp + eax*8 + 0x2f0]
mov edi, eax
jg 0x40b830
mov ebx, dword [esp + 0x74]
mov edx, dword [esp + 0xbc]
xor eax, eax
cmp edx, 4
jl 0x40ba33
lea ecx, [edx - 3]
lea esp, [esp]
fld qword [esp + eax*8 + 0x1f0]
add eax, 4
cmp eax, ecx
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]
fld qword [esp + eax*8 + 0x1e8]
fadd qword [esp + eax*8 + 0xe8]
fmul qword [0x45d880]
fstp qword [esp + eax*8 + 0xe8]
jl 0x40b9c0
cmp eax, edx
jge 0x40ba60
jmp 0x40ba40
fld qword [esp + eax*8 + 0x1f0]
inc eax
cmp eax, edx
fadd qword [esp + eax*8 + 0xe8]
fmul qword [0x45d880]
fstp qword [esp + eax*8 + 0xe8]
jl 0x40ba40
fld qword [esp + 0x28]
lea eax, [esp + edi*8 + 0x2f0]
fmul qword [eax]
fadd qword [esp + 0xa8]
fld qword [esp + 0x30]
fmul qword [eax]
fadd qword [esp + 0xa0]
fld qword [0x45b118]
fld qword [esp + 0x28]
fucompp
fnstsw ax
test ah, 0x44
jp 0x40bae0
fld qword [0x45de20]
fdiv qword [esp + 0x30]
fstp qword [esp + 0x10]
fld qword [esp + 0xd0]
fsub st(2)
fmul qword [esp + 0x10]
fld qword [esp + 0xc0]
fsub st(3)
fmul qword [esp + 0x10]
fstp qword [esp + 0x10]
fcom qword [esp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x40bcf1
fstp qword [esp + 0x40]
fld qword [esp + 0x10]
fld qword [esp + 0x40]
jmp 0x40bced
fld qword [0x45b118]
fld qword [esp + 0x30]
fucompp
fld qword [0x45b110]
fdiv qword [esp + 0x28]
fnstsw ax
test ah, 0x44
jp 0x40bb3f
fstp qword [esp + 0x10]
fld qword [esp + 0xc8]
fsub st(1)
fmul qword [esp + 0x10]
fld qword [esp + 0xb0]
fsub st(2)
fmul qword [esp + 0x10]
fstp qword [esp + 0x10]
fcom qword [esp + 0x10]
fnstsw ax
test ah, 0x41
jne 0x40bcf1
fstp qword [esp + 0x40]
fld qword [esp + 0x10]
fld qword [esp + 0x40]
jmp 0x40bced
fld qword [esp + 0xc8]
mov eax, 0x10
fsub st(2)
lea edx, [esp + 0x50]
sub eax, edx
mov dword [esp + 0x1c], 0
fmul st(1)
mov dword [esp + 0x3c], 3
mov dword [esp + 0x78], eax
fstp qword [esp + 0x50]
fld qword [esp + 0xb0]
fsub st(2)
fmul st(1)
fstp qword [esp + 0x58]
fstp st(0)
fld qword [0x45de20]
fdiv qword [esp + 0x30]
fld qword [esp + 0xd0]
fsub st(3)
fmul st(1)
fstp qword [esp + 0x60]
fld qword [esp + 0xc0]
fsub st(3)
fmul st(1)
fstp qword [esp + 0x68]
fstp st(0)
jmp 0x40bbb0
mov edi, dword [esp + 0x1c]
cmp dword [esp + 0x3c], 4
lea ecx, [edi + 1]
mov dword [esp + 0x10], ecx
jl 0x40bc77
mov eax, dword [esp + 0x78]
mov edx, edi
shl edx, 3
add eax, edx
lea eax, [esp + eax + 0x50]
mov dword [esp + 0x4c], eax
lea esi, [esp + 0x58]
mov eax, 0x10
sub eax, esi
mov dword [esp + 0x80], eax
mov eax, 0x18
sub eax, esi
mov dword [esp + 0x40], eax
jmp 0x40bc00
lea ebx, [ecx*8]
fld qword [esp + ebx + 0x50]
lea esi, [esp + ebx + 0x58]
fcomp qword [esp + edx + 0x50]
fnstsw ax
test ah, 5
jp 0x40bc1e
mov edi, ecx
mov edx, ebx
fld qword [esi]
fcomp qword [esp + edx + 0x50]
fnstsw ax
test ah, 5
jp 0x40bc32
mov edx, dword [esp + 0x4c]
lea edi, [ecx + 1]
fld qword [esi + 8]
fcomp qword [esp + edx + 0x50]
fnstsw ax
test ah, 5
jp 0x40bc4c
mov edx, dword [esp + 0x80]
lea edi, [ecx + 2]
add edx, esi
fld qword [esi + 0x10]
fcomp qword [esp + edx + 0x50]
fnstsw ax
test ah, 5
jp 0x40bc64
mov eax, dword [esp + 0x40]
lea edi, [ecx + 3]
lea edx, [eax + esi]
mov eax, dword [esp + 0x4c]
add eax, 0x20
add ecx, 4
cmp eax, 0x10
mov dword [esp + 0x4c], eax
jl 0x40bc00
cmp ecx, 4
jge 0x40bcb0
lea esi, [edi*8]
jmp 0x40bc90
lea edx, [ecx*8]
fld qword [esp + edx + 0x50]
fcomp qword [esp + esi + 0x50]
fnstsw ax
test ah, 5
jp 0x40bcaa
mov edi, ecx
mov esi, edx
inc ecx
cmp ecx, 4
jl 0x40bc90
mov eax, dword [esp + 0x1c]
fld qword [esp + eax*8 + 0x50]
mov ecx, dword [esp + 0x10]
fld qword [esp + edi*8 + 0x50]
lea eax, [esp + eax*8 + 0x50]
lea edi, [esp + edi*8 + 0x50]
fstp qword [eax]
mov eax, dword [esp + 0x3c]
dec eax
fstp qword [edi]
test eax, eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x3c], eax
jg 0x40bbb0
fld qword [esp + 0x58]
mov ebx, dword [esp + 0x74]
fld qword [esp + 0x60]
fstp qword [esp + 0x10]
fld qword [esp + 0x30]
mov edi, dword [ebx + 0x18]
fmul st(1)
add edi, 0x68
mov ecx, 0x40
lea esi, [esp + 0xf0]
fsubr st(3)
rep movsd dword es:[edi], dword [esi]
fstp qword [esp + 0x40]
fmul qword [esp + 0x28]
fadd st(1)
fstp qword [esp + 0x80]
mov ecx, dword [ebx + 4]
fld qword [esp + 0x10]
mov eax, dword [ebx + 0x18]
fmul qword [esp + 0x30]
mov edx, dword [ecx]
push eax
fsubr st(2)
fstp qword [esp + 0x7c]
fld qword [esp + 0x14]
fmul qword [esp + 0x2c]
fadd st(1)
fstp qword [esp + 0x14]
fstp st(0)
fstp st(0)
call dword [edx + 0x58]
mov eax, dword [ebx + 0x18]
fld qword [esp + 0xe8]
mov ecx, dword [eax + 0x31c]
fstp qword [eax + 0x328]
fld qword [esp + 0xe0]
sub esp, 0x10
fstp qword [eax + 0x320]
fld qword [esp + 0xf8]
fstp qword [esp + 8]
fld qword [esp + 0xf0]
fstp qword [esp]
call fcn.004175a0
mov eax, dword [ebx + 0x18]
fld qword [esp + 0x98]
mov ecx, dword [eax + 0x31c]
fstp qword [eax + 0x328]
fld qword [esp + 0x88]
sub esp, 0x10
fstp qword [eax + 0x320]
fld qword [esp + 0xa8]
fstp qword [esp + 8]
fld qword [esp + 0x98]
fstp qword [esp]
call fcn.004175c0
mov eax, dword [ebx + 0x18]
fld qword [esp + 0x10]
mov ecx, dword [eax + 0x31c]
fstp qword [eax + 0x328]
fld qword [esp + 0x78]
sub esp, 0x10
fstp qword [eax + 0x320]
fld qword [esp + 0x20]
fstp qword [esp + 8]
fld qword [esp + 0x88]
fstp qword [esp]
call fcn.004175c0
mov eax, dword [ebx + 0x18]
fld qword [esp + 0x80]
mov ecx, dword [eax + 0x31c]
fstp qword [eax + 0x328]
fld qword [esp + 0x40]
sub esp, 0x10
fstp qword [eax + 0x320]
fld qword [esp + 0x90]
fstp qword [esp + 8]
fld qword [esp + 0x50]
fstp qword [esp]
call fcn.004175c0
mov esi, dword [ebx + 0x18]
mov ecx, dword [esi + 0x31c]
call fcn.00417700
mov eax, dword [esi + 0x31c]
mov ecx, dword [eax + 0x1c]
mov edx, dword [eax + 0x18]
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 + 0x90]
mov ecx, dword [ebx + 0x18]
call fcn.00419f80
fld qword [esp + 0x40]
mov eax, dword [esp + 0x20]
fstp qword [esp + 0xe0]
fld qword [esp + 0x80]
mov ecx, 0x40
fstp qword [esp + 0xe8]
lea esi, [esp + 0x1f0]
fld qword [esp + 0x78]
lea edi, [esp + 0xf0]
fstp qword [esp + 0x88]
rep movsd dword es:[edi], dword [esi]
fld qword [esp + 0x10]
fstp qword [esp + 0x98]
mov esi, dword [eax]
cmp esi, 0x100
jl 0x40b800
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4