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

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
xor ebp, ebp
mov dword [0x44ec34], ebp
mov ebx, dword [esi + 0x34]
push edi
mov edi, dword [esi + 0x30]
lea esp, [esp]
fld dword [esi + 0x54]
fsub dword [esi + 0x5c]
fstp dword [esp + 0x14]
fld dword [esi + 0x58]
fsub dword [esi + 0x64]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fld dword [esp + 0x14]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
call fcn.00430490
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fstp dword [esp + 0x1c]
fld dword [0x9107bc]
fsub dword [esi + 0x5c]
fstp dword [esp + 0x18]
fld dword [0xc5fbb4]
fsub dword [esi + 0x64]
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fld dword [esp + 0x18]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
faddp st(1)
fstp dword [esp + 0x18]
fld dword [esp + 0x18]
call fcn.00430490
fstp dword [esp + 0x18]
mov eax, dword [0x14c11f8]
fld dword [esp + 0x18]
add eax, 0x14
shl eax, 8
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
fcompp
fnstsw ax
test ah, 5
jp 0x40d529
push esi
call fcn.0040bc80
add esp, 4
test eax, eax
jne 0x40d480
fld dword [0x441864]
fcomp dword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x40d552
fld dword [0x441978]
push ecx
fstp dword [esp]
push esi
call fcn.00403150
add esp, 8
jmp 0x40d480
fld dword [esi + 0x78]
sub esp, 0xc
fstp dword [esp + 8]
fld dword [esp + 0x34]
fstp dword [esp + 4]
fld dword [esp + 0x20]
fstp dword [esp]
call fcn.0041ae30
add esp, 4
fstp dword [esp]
call fcn.004021b0
fstp dword [esp + 0x30]
add esp, 8
fld dword [esp + 0x28]
fst dword [esi + 0x74]
fldz
fcomp st(1)
fnstsw ax
fld qword [0x441558]
test ah, 0x41
jne 0x40d5a3
fadd st(1), st(0)
fxch st(1)
fstp dword [esi + 0x74]
jmp 0x40d5a5
fstp st(1)
fld dword [esi + 0x74]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x40d5b9
fsubr dword [esi + 0x74]
fstp dword [esi + 0x74]
jmp 0x40d5bb
fstp st(0)
push esi
call fcn.00401d80
mov ecx, dword [0x1493f00]
add dword [esi + 0x34], ecx
mov ecx, dword [esi + 0x30]
mov eax, dword [esi + 0x34]
lea edx, [ecx + ecx*2]
mov ecx, dword [esi + 8]
add edx, edx
mov ecx, dword [ecx + edx*8 + 0x54]
add esp, 4
cmp eax, ecx
jl 0x40d5f5
cdq
idiv ecx
mov dword [esi + 0x34], edx
mov dword [0x44ec34], 1
jmp 0x40d5fd
cmp dword [0x44ec34], ebp
je 0x40d675
mov eax, dword [esi + 0x30]
cmp eax, ebp
jne 0x40d63d
fld dword [esi + 0x60]
sub esp, 8
fstp qword [esp + 0x24]
fld dword [esi + 0x64]
fstp dword [esp + 4]
fld dword [esi + 0x5c]
fstp dword [esp]
call fcn.0040e320
fadd qword [0x441970]
add esp, 8
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 5
jp 0x40d675
mov dword [esi + 0x30], 1
jmp 0x40d675
cmp eax, 1
jne 0x40d675
fld dword [esi + 0x60]
sub esp, 8
fstp qword [esp + 0x24]
fld dword [esi + 0x64]
fstp dword [esp + 4]
fld dword [esi + 0x5c]
fstp dword [esp]
call fcn.0040e320
fadd qword [0x4416a8]
add esp, 8
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x40d675
mov dword [esi + 0x30], ebp
cmp edi, dword [esi + 0x30]
jne 0x40d682
cmp dword [0x44ec34], ebp
je 0x40d69c
call fcn.0043061c
and eax, 0x3ff
cmp eax, 0x3d4
jle 0x40d69c
push esi
call fcn.00401dc0
add esp, 4
mov eax, dword [esi + 0x30]
cmp edi, eax
je 0x40d6c0
cmp dword [0x44ec34], ebp
jne 0x40d6ae
mov dword [esi + 0x34], ebp
cmp dword [esi + 0x24], 0x80
jle 0x40d6c0
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x24], ebp
mov edi, dword [esi + 8]
fld dword [esi + 0x74]
fsub dword [esi + 0x78]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 0x34]
cdq
shl ecx, 4
fstp dword [esp + 0x28]
idiv dword [ecx + edi + 0x54]
fld dword [esp + 0x28]
fabs
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fst dword [esp + 0x14]
fld qword [0x441548]
fcom st(1)
fnstsw ax
mov dword [esi + 0x34], edx
test ah, 5
jp 0x40d713
fld st(1)
fsubr qword [0x441558]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fcom qword [0x441540]
fnstsw ax
test ah, 0x41
jne 0x40d749
fld dword [esi + 0x74]
fld dword [esi + 0x78]
fcompp
fnstsw ax
fmul qword [0x441538]
test ah, 5
jp 0x40d741
fadd qword [0x441530]
jmp 0x40d74d
fsubr qword [0x441528]
jmp 0x40d74d
fstp st(0)
fldz
fstp dword [esp + 0x28]
fcompp
fnstsw ax
test ah, 5
jp 0x40d768
fld dword [esp + 0x28]
fmul qword [0x441518]
fstp dword [esp + 0x28]
fild dword [0x1493f00]
sub esp, 8
lea ebx, [esi + 0x3c]
fdiv qword [0x441968]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp + 4]
fld dword [esp + 0x30]
fstp dword [esp]
push ebx
call fcn.0041ab60
fld dword [esp + 0x20]
fmul qword [0x4414c0]
add esp, 0xc
fstp dword [esp + 0x10]
fld dword [esp + 0x10]
fcomp qword [0x441710]
fnstsw ax
test ah, 0x41
jne 0x40d7bf
fld dword [0x441838]
fstp dword [esp + 0x10]
fld dword [esp + 0x28]
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 + 0x30]
fld dword [esp + 0x30]
fld dword [ecx]
fabs
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fcompp
fnstsw ax
fild dword [0x1493f00]
test ah, 5
jp 0x40d818
fdiv qword [0x4414e8]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
jmp 0x40d826
fdiv qword [0x441680]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp + 4]
fstp dword [esp]
push ecx
call fcn.0041ab60
fild dword [0x1493f00]
add esp, 0xc
fmul dword [ebx]
fmul qword [0x4414d8]
fstp dword [esp + 0x28]
fld dword [esp + 0x14]
fld dword [esp + 0x28]
fld st(0)
fabs
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fcomp st(2)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x40d86e
fstp st(0)
fld dword [esi + 0x74]
jmp 0x40d871
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 0x40d890
fld dword [esi + 0x78]
fsub st(1)
fstp dword [esi + 0x78]
fldz
fcomp dword [esi + 0x78]
fnstsw ax
test ah, 0x41
jne 0x40d8a4
fadd dword [esi + 0x78]
fstp dword [esi + 0x78]
jmp 0x40d8a6
fstp st(0)
fld dword [esi + 0x78]
call fcn.00430270
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [esi + 0x88]
fld dword [esi + 0x78]
call fcn.004303a0
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
mov ecx, dword [esi + 0x30]
fstp dword [esi + 0x8c]
fldz
fstp dword [esp + 0x28]
cmp ecx, ebp
jne 0x40d8e9
fld dword [0x4418d0]
fstp dword [esp + 0x28]
cmp ecx, 1
jne 0x40d8f8
fld dword [0x441960]
fstp dword [esp + 0x28]
fld dword [esp + 0x14]
fcom qword [0x441710]
fnstsw ax
test ah, 0x41
jne 0x40d925
fld qword [0x4416f8]
fmul st(1), st(0)
fxch st(1)
fdiv qword [0x441548]
fsubp st(1)
fmul dword [esp + 0x28]
fstp dword [esp + 0x28]
jmp 0x40d927
fstp st(0)
fild dword [0x1493f00]
sub esp, 0xc
lea edi, [esi + 0x60]
cmp ecx, ebp
jne 0x40d96b
fdiv qword [0x4414a0]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [esp + 8]
fld dword [esi + 0x64]
fstp dword [esp + 4]
fld dword [esi + 0x5c]
fstp dword [esp]
call fcn.0040e320
fadd qword [0x4417f0]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
jmp 0x40d98f
fmul qword [0x441798]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fstp dword [esp + 8]
fld dword [esi + 0x64]
fstp dword [esp + 4]
fld dword [esi + 0x5c]
fstp dword [esp]
call fcn.0040e320
add esp, 4
fstp dword [esp]
push edi
call fcn.0041ab60
fld dword [edi]
fstp qword [esp + 0x28]
add esp, 0xc
fld dword [esi + 0x64]
sub esp, 8
fstp dword [esp + 4]
fld dword [esi + 0x5c]
fstp dword [esp]
call fcn.0040e320
fadd qword [0x441958]
add esp, 8
fcomp qword [esp + 0x1c]
fnstsw ax
test ah, 0x41
jne 0x40d9ed
fld dword [esi + 0x64]
sub esp, 8
fstp dword [esp + 4]
fld dword [esi + 0x5c]
fstp dword [esp]
call fcn.0040e320
fadd qword [0x441618]
add esp, 8
fstp dword [edi]
fild dword [0x1493f00]
sub esp, 8
lea edi, [esi + 0x38]
fdiv qword [0x441788]
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
fstp dword [esp + 4]
fld dword [esi + 0x44]
fmul dword [esp + 0x30]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
fstp dword [esp]
push edi
call fcn.0041ab60
fld dword [esi + 0x88]
fmul dword [edi]
add esp, 0xc
fimul dword [0x1493f00]
fadd dword [esi + 0x5c]
fstp dword [esi + 0x5c]
fld dword [esi + 0x8c]
fmul dword [edi]
fimul dword [0x1493f00]
fadd dword [esi + 0x64]
fstp dword [esi + 0x64]
fld dword [ebx]
fmul qword [0x441560]
fstp dword [esp + 0x28]
fld dword [esp + 0x28]
fst dword [esi + 0x80]
fld dword [0x4417b0]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 5
jp 0x40da7d
fstp dword [esi + 0x80]
jmp 0x40da7f
fstp st(0)
fld dword [0x441950]
fcom dword [esi + 0x80]
fnstsw ax
test ah, 0x41
jne 0x40da9a
fstp dword [esi + 0x80]
jmp 0x40da9c
fstp st(0)
fild dword [0x1493f00]
sub esp, 8
add esi, 0x84
fmul qword [0x441820]
fstp dword [esp + 0x30]
fld dword [esp + 0x30]
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, 0x14
ret