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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
fld qword [eax + 0x18]
fsub qword [eax]
fld qword [eax + 8]
fsub qword [eax + 0x10]
push edi
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
fmul qword [0x4a77c0]
fadd st(1)
fmul qword [0x4a77b8]
fstp qword [esp + 0xa8]
fld qword [ecx + 0x18]
fsub qword [ecx]
fstp qword [esp + 0x50]
fld qword [ecx + 8]
fsub qword [ecx + 0x10]
fmul qword [0x4a77c0]
fadd qword [esp + 0x50]
fmul qword [0x4a77b8]
fstp qword [esp + 0x88]
fld qword [eax]
fadd qword [eax + 0x18]
fst qword [esp + 0x58]
fsub qword [eax + 8]
fsub qword [eax + 0x10]
mov eax, dword [ebp + 0x14]
add eax, 0xfffffffd
fmul qword [0x4a77b0]
cmp eax, 2
fstp qword [esp + 0xa0]
fld qword [ecx + 0x18]
fadd qword [ecx]
fst qword [esp + 0x38]
fsub qword [ecx + 8]
fsub qword [ecx + 0x10]
fmul qword [0x4a77b0]
fstp qword [esp + 0x80]
fmul qword [0x4a7788]
fsub qword [esp + 0xa8]
fstp qword [esp + 0x98]
fld qword [esp + 0x50]
fmul qword [0x4a7788]
fsub qword [esp + 0x88]
fstp qword [esp + 0x78]
fld qword [esp + 0x58]
fmul qword [0x4a7788]
fsub qword [esp + 0xa0]
fstp qword [esp + 0x90]
fld qword [esp + 0x38]
fmul qword [0x4a7788]
fsub qword [esp + 0x80]
fstp qword [esp + 0x70]
fild dword [ebp + 0x14]
fdivr qword [0x4a77a8]
fstp qword [esp + 0x50]
jl 0x4170b7
mov ecx, dword [ebp + 0x10]
add ecx, 0x10
shr eax, 1
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x6c], eax
jmp 0x416ddb
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx]
mov eax, dword [ecx + 4]
mov dword [esp + 0x58], edx
mov edx, dword [ecx + 8]
mov edi, dword [esp + 0x58]
mov dword [esp + 0x5c], eax
mov eax, dword [ecx + 0xc]
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xbff00000
mov ebx, eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push edx
push ebx
push eax
mov eax, dword [esp + 0x24]
push esi
lea ecx, [esp + 0x84]
push edi
lea edx, [esp + 0xa8]
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ecx
call fcn.004170d0
fld qword [esp + 0x40]
fcomp qword [0x4a6f40]
add esp, 0x28
fnstsw ax
test ah, 0x40
jne 0x416ec4
fld qword [esp + 0x10]
fcomp qword [0x4a77a0]
fnstsw ax
test ah, 0x40
jne 0x416e75
fld qword [esp + 0x18]
fcomp qword [esp + 0x40]
fnstsw ax
test ah, 1
je 0x416ea5
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
fld qword [esp + 0x10]
fadd qword [esp + 0x50]
fst qword [esp + 0x10]
fcomp qword [0x4a7798]
fnstsw ax
test ah, 0x41
jne 0x416e10
jmp 0x416ef4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
fld qword [esp + 0x40]
fcomp qword [0x4a6f40]
fnstsw ax
test ah, 0x40
jne 0x417091
fld qword [esp + 0x30]
fadd qword [esp + 0x50]
fst qword [esp + 0x10]
fcomp qword [0x4a6f38]
fnstsw ax
test ah, 0x41
jne 0x416f30
fld qword [0x4a6f38]
fsub qword [esp + 0x50]
fstp qword [esp + 0x10]
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x24]
push esi
lea edx, [esp + 0x84]
push edi
lea eax, [esp + 0xa8]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call fcn.004170d0
fld qword [esp + 0x40]
fcomp qword [0x4a6f40]
add esp, 0x28
fnstsw ax
test ah, 0x40
jne 0x417091
fld qword [esp + 0x20]
fcomp qword [0x4a6f40]
fnstsw ax
test ah, 0x40
jne 0x417091
fld qword [esp + 0x10]
fld qword [esp + 0x20]
fsub qword [esp + 0x28]
fcom qword [0x4a6f40]
fnstsw ax
test ah, 0x40
jne 0x416fc3
fld qword [esp + 0x30]
fmul qword [esp + 0x20]
fld qword [esp + 0x28]
fmul qword [esp + 0x10]
fsubp st(1)
fdiv st(1)
fstp qword [esp + 0x10]
fstp st(0)
jmp 0x416fd7
fstp st(0)
fld qword [esp + 0x30]
fadd qword [esp + 0x10]
fmul qword [0x4a7788]
fstp qword [esp + 0x10]
fld qword [esp + 0x10]
fcomp qword [0x4a6f38]
fnstsw ax
test ah, 0x41
jne 0x416ffa
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0x3ff00000
jmp 0x41701b
fld qword [esp + 0x10]
fcomp qword [0x4a77a0]
fnstsw ax
test ah, 1
je 0x41701b
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xbff00000
fld qword [esp + 0x10]
fsub st(1)
fabs
fcomp qword [0x4a7790]
fnstsw ax
test ah, 1
jne 0x41708f
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x28], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0x20]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x38]
push edx
push eax
push ebx
fstp qword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x24]
push esi
lea edx, [esp + 0x84]
push edi
lea eax, [esp + 0xa8]
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push edx
call fcn.004170d0
fld qword [esp + 0x40]
fcomp qword [0x4a6f40]
add esp, 0x28
fnstsw ax
test ah, 0x40
je 0x416f79
jmp 0x417091
fstp st(0)
fld qword [esp + 0x18]
fadd qword [esp + 0x60]
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x6c]
add ecx, 0x10
dec eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x6c], eax
fstp qword [esp + 0x60]
jne 0x416dd7
fld qword [esp + 0x60]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret