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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
xor ebx, ebx
mov dword [0x44ec34], ebx
mov eax, dword [esi + 0x34]
mov ebp, dword [esi + 0x30]
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x1c]
push edi
mov dword [esp + 0x28], ebp
cmp eax, ebx
je 0x40cd19
sub eax, dword [0x1493f00]
mov ecx, ebx
sets cl
dec ecx
and eax, ecx
mov dword [esi + 0x1c], eax
cmp dword [esi + 0x10], 2
mov edi, 1
jne 0x40cd30
mov dword [0x44ec34], edi
mov dword [esi + 0x10], edi
lea ecx, [ecx]
fld dword [esi + 0x54]
fsub dword [esi + 0x5c]
fstp dword [esp + 0x1c]
fld dword [esi + 0x58]
fsub dword [esi + 0x64]
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fld dword [esp + 0x1c]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
call fcn.00430490
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp + 0x24]
fld dword [0x9107bc]
fsub dword [esi + 0x5c]
fstp dword [esp + 0x14]
fld dword [0xc5fbb4]
fsub dword [esi + 0x64]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld dword [esp + 0x14]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
call fcn.00430490
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp + 0x30]
cmp dword [esi + 0x10], ebx
je 0x40ce5f
cmp dword [esi + 0x1c], ebx
jne 0x40ce11
fld dword [0x4415a4]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 0x41
jne 0x40cde5
push 5
mov dword [esi + 0x10], edi
call fcn.0041ad70
add eax, 5
add esp, 4
shl eax, 0xa
mov dword [esi + 0x1c], eax
fld dword [0x441920]
fcomp dword [esp + 0x30]
fnstsw ax
test ah, 5
jp 0x40ce11
mov dword [esi + 0x10], ebx
fld dword [0x4415a4]
push ecx
fstp dword [esp]
push esi
call fcn.00403150
add esp, 8
jmp 0x40cd30
fld dword [esp + 0x14]
push ecx
fstp dword [0x1750478]
fld dword [esp + 0x14]
fstp dword [0x1750480]
fldz
fstp dword [0x175047c]
fld dword [0x4415a4]
fstp dword [esp]
push 0x1750478
call fcn.0041aac0
fld dword [esi + 0x5c]
fsub dword [0x1750478]
add esp, 8
fstp dword [esi + 0x54]
fld dword [esi + 0x64]
fsub dword [0x1750480]
mov dword [esi + 0x20], ebx
fstp dword [esi + 0x58]
mov edx, dword [0x14c11f8]
fld dword [esp + 0x30]
add edx, 0x14
shl edx, 8
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fcompp
fnstsw ax
test ah, 5
jp 0x40ce91
push esi
call fcn.0040bc80
add esp, 4
test eax, eax
jne 0x40cd30
cmp dword [esi + 0x10], ebx
jne 0x40cedd
fld dword [esp + 0x30]
mov dword [esi + 0x1c], ebx
fcomp qword [0x441940]
fnstsw ax
test ah, 5
jp 0x40cec8
push 5
mov dword [esi + 0x10], edi
call fcn.0041ad70
add eax, 5
add esp, 4
shl eax, 0xa
mov dword [esi + 0x1c], eax
mov dword [esi + 0x30], ebx
jmp 0x40cd30
fld dword [esp + 0x24]
fcomp qword [0x441580]
fnstsw ax
test ah, 5
jnp 0x40cdf9
mov eax, dword [esi + 0x18]
cmp eax, ebx
jle 0x40ceea
dec eax
mov dword [esi + 0x18], eax
jmp 0x40cf19
fld dword [esi + 0x78]
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x24]
fstp dword [esp + 4]
fld dword [esp + 0x28]
fstp dword [esp]
call fcn.0041ae30
add esp, 4
fstp dword [esp]
call fcn.004021b0
fstp dword [esi + 0x74]
add esp, 8
push edi
push edi
push esi
call fcn.00402da0
add esp, 0xc
cmp dword [esi + 0x14], 8
jle 0x40cf3d
push 0x28
mov dword [esi + 0x14], ebx
call fcn.0041ad70
add esp, 4
add eax, 8
mov dword [esi + 0x18], eax
fldz
fcomp dword [esi + 0x74]
fnstsw ax
fld qword [0x441558]
test ah, 0x41
jne 0x40cf57
fld dword [esi + 0x74]
fadd st(1)
fstp dword [esi + 0x74]
fld dword [esi + 0x74]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40cf6b
fsubr dword [esi + 0x74]
fstp dword [esi + 0x74]
jmp 0x40cf6d
fstp st(0)
push esi
call fcn.00401d80
mov ecx, dword [esi + 0x30]
mov eax, dword [0x1493f00]
add dword [esi + 0x34], eax
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x34]
lea ecx, [ecx + ecx*2]
add ecx, ecx
mov ecx, dword [edx + ecx*8 + 0x54]
add esp, 4
cmp eax, ecx
jl 0x40cfa2
cdq
idiv ecx
mov dword [esi + 0x34], edx
mov dword [0x44ec34], edi
jmp 0x40cfaa
cmp dword [0x44ec34], ebx
je 0x40d025
cmp dword [esi + 0x10], ebx
jne 0x40d01a
mov eax, dword [esi + 0x30]
cmp eax, 4
je 0x40cfdc
cmp eax, 5
je 0x40cfdc
push 0x80
call fcn.0041ad70
xor ecx, ecx
add esp, 4
cmp eax, 0x78
setle cl
dec ecx
and ecx, 3
add ecx, edi
mov dword [esi + 0x30], ecx
jmp 0x40d025
push 0x80
call fcn.0041ad70
add esp, 4
cmp eax, 0x4c
jle 0x40cff9
cmp dword [esi + 0x30], 5
jne 0x40cff9
mov dword [esi + 0x30], edi
jmp 0x40d025
push 3
call fcn.0041ad70
mov ecx, eax
mov eax, 0x55555556
imul ecx
mov eax, edx
add esp, 4
shr eax, 0x1f
lea ecx, [edx + eax + 4]
mov dword [esi + 0x30], ecx
jmp 0x40d025
xor edx, edx
cmp dword [esi + 0x1c], ebx
sete dl
mov dword [esi + 0x30], edx
cmp ebp, dword [esi + 0x30]
jne 0x40d032
cmp dword [0x44ec34], ebx
je 0x40d03b
push esi
call fcn.00401dc0
add esp, 4
mov ecx, dword [esi + 0x30]
cmp ebp, ecx
je 0x40d095
cmp ebp, 2
jg 0x40d074
cmp ecx, 2
jg 0x40d074
mov edi, dword [esi + 8]
lea eax, [ecx + ecx*2]
add eax, eax
mov eax, dword [edi + eax*8 + 0x54]
imul eax, dword [esp + 0x20]
lea ebp, [ebp + ebp*2]
add ebp, ebp
cdq
idiv dword [edi + ebp*8 + 0x54]
mov ebp, dword [esp + 0x28]
add eax, 0x40
mov dword [esi + 0x34], eax
jmp 0x40d07f
cmp dword [0x44ec34], ebx
jne 0x40d07f
mov dword [esi + 0x34], ebx
cmp dword [esi + 0x24], 0x80
jle 0x40d095
mov edx, dword [esp + 0x20]
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], edx
mov dword [esi + 0x24], ebx
mov eax, dword [esi + 0x34]
fld dword [esi + 0x74]
mov ebp, dword [esi + 8]
fsub dword [esi + 0x78]
lea edi, [ecx + ecx*2]
cdq
add edi, edi
fstp dword [esp + 0x30]
idiv dword [ebp + edi*8 + 0x54]
fld dword [esp + 0x30]
fabs
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fst dword [esp + 0x14]
fld qword [0x441548]
fcom st(1)
fnstsw ax
mov dword [esi + 0x34], edx
test ah, 5
jp 0x40d0e7
fld st(1)
fsubr qword [0x441558]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
cmp ecx, 4
je 0x40d2c1
cmp ecx, 5
je 0x40d2c1
fcom qword [0x441540]
fnstsw ax
fld qword [0x441510]
test ah, 0x41
jne 0x40d137
fld dword [esi + 0x74]
fld dword [esi + 0x78]
fcompp
fnstsw ax
fmul st(1), st(0)
test ah, 5
jp 0x40d12b
fxch st(1)
fadd qword [0x441938]
jmp 0x40d13b
fld qword [0x441930]
fsubrp st(2)
fxch st(1)
jmp 0x40d13b
fstp st(1)
fldz
fstp dword [esp + 0x30]
cmp dword [esi + 0x1c], ebx
je 0x40d152
fld dword [esp + 0x30]
fmul qword [0x441848]
fstp dword [esp + 0x30]
fxch st(2)
fcompp
fnstsw ax
test ah, 0x41
jne 0x40d16b
fld dword [esp + 0x30]
fmul qword [0x441518]
fstp dword [esp + 0x30]
test dword [esi + 0x10], 0x10000
jne 0x40d179
cmp ecx, 1
jne 0x40d183
fdivr dword [esp + 0x30]
fstp dword [esp + 0x30]
jmp 0x40d185
fstp st(0)
fild dword [0x1493f00]
sub esp, 8
lea edi, [esi + 0x3c]
fdiv qword [0x441928]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp + 4]
fld dword [esp + 0x38]
fstp dword [esp]
push edi
call fcn.0041ab60
fld dword [esp + 0x20]
fdiv qword [0x4414f8]
add esp, 0xc
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fcomp qword [0x441710]
fnstsw ax
test ah, 0x41
jne 0x40d1dc
fld dword [0x441838]
fstp dword [esp + 0x10]
fld dword [esp + 0x30]
push ecx
fstp dword [esp]
call fcn.0041ab40
fmul dword [esp + 0x14]
lea ecx, [esi + 0x40]
add esp, 4
sub esp, 8
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
fld st(0)
fabs
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fld dword [ecx]
fabs
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fcompp
fnstsw ax
fild dword [0x1493f00]
test ah, 5
jp 0x40d235
fdiv qword [0x4414e8]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
jmp 0x40d243
fdiv qword [0x441680]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fstp dword [esp + 4]
fstp dword [esp]
push ecx
call fcn.0041ab60
fild dword [0x1493f00]
add esp, 0xc
fmul dword [edi]
fmul qword [0x4414d8]
fstp dword [esp + 0x30]
fld dword [esp + 0x14]
fld dword [esp + 0x30]
fld st(0)
fabs
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x40d28b
fstp st(0)
fld dword [esi + 0x74]
jmp 0x40d28e
fadd dword [esi + 0x78]
fstp dword [esi + 0x78]
fld dword [esi + 0x78]
fld qword [0x441558]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x40d2ad
fld dword [esi + 0x78]
fsub st(1)
fstp dword [esi + 0x78]
fldz
fcomp dword [esi + 0x78]
fnstsw ax
test ah, 0x41
jne 0x40d2c5
fadd dword [esi + 0x78]
fstp dword [esi + 0x78]
jmp 0x40d2c7
fstp st(0)
fstp st(1)
fstp st(0)
fld dword [esi + 0x78]
call fcn.00430270
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esi + 0x88]
fld dword [esi + 0x78]
call fcn.004303a0
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
mov eax, dword [esi + 0x30]
fstp dword [esi + 0x8c]
fldz
fstp dword [esp + 0x30]
cmp eax, ebx
jne 0x40d30a
fld dword [0x44194c]
fstp dword [esp + 0x30]
cmp eax, 1
jne 0x40d319
fld dword [0x441948]
fstp dword [esp + 0x30]
fld dword [esp + 0x14]
fcom qword [0x441710]
fnstsw ax
test ah, 0x41
jne 0x40d346
fld qword [0x4416f8]
fmul st(1), st(0)
fxch st(1)
fdiv qword [0x441548]
fsubp st(1)
fmul dword [esp + 0x30]
fstp dword [esp + 0x30]
jmp 0x40d348
fstp st(0)
fild dword [0x1493f00]
sub esp, 8
lea edi, [esi + 0x38]
fmul qword [0x4414d8]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp + 4]
fld dword [esi + 0x44]
fmul dword [esp + 0x38]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fstp dword [esp]
push edi
call fcn.0041ab60
fild dword [0x1493f00]
add esp, 0xc
push 1
fstp dword [esp + 0x34]
push 1
fld dword [esi + 0x8c]
sub esp, 8
fmul dword [edi]
fld dword [esp + 0x40]
fld st(0)
fmulp st(2)
fxch st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fstp dword [esp + 4]
fld dword [esi + 0x88]
fmul dword [edi]
fmulp st(1)
fstp dword [esp + 0x40]
fld dword [esp + 0x40]
fstp dword [esp]
push esi
call fcn.00403000
fld dword [0x4414bc]
fstp dword [esp + 0x10]
add esp, 4
fld dword [0x441774]
fstp dword [esp + 8]
fld dword [0x4416f0]
fstp dword [esp + 4]
fld dword [0x441638]
fstp dword [esp]
push esi
call fcn.00402240
fld dword [esi + 0x3c]
add esp, 0x14
cmp dword [esi + 0x30], 1
jne 0x40d40f
fdiv qword [0x441790]
jmp 0x40d415
fmul qword [0x441588]
fadd dword [esi + 0x80]
sub esp, 8
add esi, 0x84
fstp dword [esi - 4]
fild dword [0x1493f00]
fmul qword [0x441820]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fstp dword [esp + 4]
fld dword [esi - 4]
fstp dword [esp]
push esi
call fcn.0041ab60
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret