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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov ecx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
mov ebx, dword [ebp + 0xc]
sub eax, esi
push edi
mov edi, dword [ebp + 0x14]
push 0x3fe921fb
cdq
sub eax, edx
push 0x54442d18
sar eax, 1
mov dword [esp + 0x18], eax
mov eax, edi
fild dword [esp + 0x18]
sub eax, ebx
cdq
fstp qword [esp + 0x30]
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x18]
fild dword [esp + 0x18]
fstp qword [esp + 0x48]
fild dword [eax]
fstp qword [esp + 0x20]
fild dword [eax + 4]
lea eax, [esi + ecx]
cdq
fstp qword [esp + 0x28]
sub eax, edx
sar eax, 1
mov dword [esp + 0x38], eax
lea eax, [ebx + edi]
fild dword [esp + 0x38]
cdq
fstp qword [esp + 0x40]
sub eax, edx
sar eax, 1
mov dword [esp + 0x3c], eax
call fcn.004024d0
fmul qword [esp + 0x30]
add esp, 8
fadd qword [esp + 0x38]
call fcn.004d7580
fild dword [ebp + 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
fstp qword [esp + 0x58]
fld qword [0x4dca68]
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 1
je 0x41d1dd
fild dword [esp + 0x10]
fstp qword [esp + 0x60]
fld qword [esp + 0x18]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
fcomp qword [esp + 0x60]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], edx
fnstsw ax
test ah, 0x41
jne 0x41d10c
fld qword [esp + 0x20]
fsub qword [0x4dcb00]
push 0x40000000
push 0
sub esp, 8
fstp qword [esp + 0x30]
fild dword [esp + 0x44]
fsubr qword [esp + 0x30]
fstp qword [esp]
call fcn.00402340
fld qword [esp + 0x50]
fmul qword [esp + 0x50]
add esp, 8
fdivp st(1)
fsubr qword [0x4dcaa0]
fstp qword [esp]
call fcn.00402350
fmul qword [esp + 0x30]
add esp, 8
fadd qword [esp + 0x38]
fstp qword [esp + 0x18]
jmp 0x41d175
fld qword [esp + 0x18]
fsub qword [0x4dcb00]
fcom qword [esp + 0x38]
fnstsw ax
test ah, 1
jne 0x41d1db
fstp qword [esp + 0x18]
fild dword [esp + 0x34]
push 0x40000000
push 0
sub esp, 8
fstp qword [esp + 0x30]
fld qword [esp + 0x28]
fsub qword [esp + 0x48]
fstp qword [esp]
call fcn.00402340
fld qword [esp + 0x38]
fmul qword [esp + 0x38]
add esp, 8
fdivp st(1)
fsubr qword [0x4dcaa0]
fstp qword [esp]
call fcn.00402350
fmul qword [esp + 0x48]
add esp, 8
fsubr qword [esp + 0x20]
fstp qword [esp + 0x20]
fld qword [esp + 0x10]
fsub qword [esp + 0x20]
push 0x40000000
push 0
sub esp, 8
fstp qword [esp]
call fcn.00402340
fstp qword [esp + 0x78]
fld qword [esp + 0x60]
fsub qword [esp + 0x28]
add esp, 0x10
push 0x40000000
push 0
sub esp, 8
fstp qword [esp]
call fcn.00402340
fadd qword [esp + 0x78]
add esp, 8
fstp qword [esp]
call fcn.00402350
fadd qword [esp + 0x50]
add esp, 8
fst qword [esp + 0x48]
fcomp qword [esp + 0x58]
fnstsw ax
test ah, 1
jne 0x41d089
jmp 0x41d1dd
fstp st(0)
fld qword [esp + 0x18]
call fcn.004d7580
mov esi, dword [ebp + 0x18]
fld qword [esp + 0x20]
mov dword [esi], eax
call fcn.004d7580
fild dword [esp + 0x34]
sub esp, 8
mov dword [esi + 4], eax
sub esp, 8
fsubr qword [esp + 0x30]
fmul qword [esp + 0x38]
fmul qword [esp + 0x38]
fstp qword [esp + 8]
fld qword [esp + 0x28]
fsub qword [esp + 0x48]
fmul qword [esp + 0x50]
fmul qword [esp + 0x50]
fstp qword [esp]
call fcn.00402310
fmul qword [0x4dcaf8]
add esp, 0x10
fmul qword [0x4dcaf0]
fadd qword [0x4dcae8]
call fcn.004d7580
mov ecx, dword [ebp + 0x24]
fld qword [esp + 0x48]
mov dword [ecx], eax
call fcn.004d7580
mov edx, dword [ebp + 0x20]
pop edi
pop esi
pop ebx
mov dword [edx], eax
mov eax, 1
mov esp, ebp
pop ebp
ret