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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
push ebx
push esi
lea eax, [esp + 0xb0]
push edi
push eax
mov eax, dword [ebp + 0x14]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x1c]
push ecx
push edx
lea ecx, [eax + 0x20]
lea edx, [eax + 0x10]
push ecx
push edx
push eax
call fcn.00408f90
mov esi, dword [ebp + 8]
lea ecx, [esp + 0xd0]
lea eax, [esi + 0x10]
mov dword [esp + 0x74], eax
push eax
lea eax, [esp + 0x34]
push eax
push ecx
call fcn.00418960
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x34]
fld qword [esi + 0x38]
mov dword [esp + 0x74], edx
lea ecx, [esp + 0xdc]
fchs
fstp qword [esp + 0x6c]
lea edx, [esp + 0x6c]
push ecx
push edx
mov dword [esp + 0x80], eax
call fcn.00418ab0
fcomp qword [0x550f20]
add esp, 0x2c
fnstsw ax
test ah, 1
je 0x41626f
push 0xbff00000
lea eax, [esp + 0x4c]
push 0
push eax
call fcn.00418af0
add esp, 0xc
mov esi, dword [ebp + 0xc]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x74]
lea ebx, [esi + 0x30]
push ebx
push ecx
push edx
call fcn.00418960
mov edi, dword [ebp + 0x10]
lea ecx, [esp + 0x70]
lea eax, [edi + 0x30]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.00418960
lea edx, [esp + 0x8c]
push edx
call fcn.004189c0
fstp qword [esp + 0x4c]
lea eax, [esp + 0x80]
push eax
call fcn.004189c0
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x64]
lea edx, [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esi + 0x44]
push eax
mov eax, dword [esi + 0x40]
push ecx
mov ecx, dword [esp + 0x64]
push edx
mov edx, dword [esp + 0x64]
push eax
fstp qword [esp + 0x60]
push ecx
push edx
call fcn.00416590
mov edx, dword [esp + 0x54]
add esp, 0x40
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x58]
push eax
mov eax, dword [esp + 0x14]
push ecx
mov ecx, dword [edi + 0x44]
push edx
mov edx, dword [edi + 0x40]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push eax
push ecx
call fcn.00416590
fild dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xa4], edx
fstp qword [esp + 0x128]
fild dword [esp + 0x5c]
mov edx, dword [esp + 0x74]
add esp, 0x20
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0x3ff00000
fstp qword [esp + 0xf0]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], edx
mov dword [esp + 0x40], 0
lea eax, [esp + 0x18]
push ebx
lea ecx, [esp + 0x78]
push eax
push ecx
call fcn.00418960
lea edx, [esp + 0x80]
push edx
call fcn.004189c0
fstp qword [esp + 0x40]
lea eax, [edi + 0x30]
lea ecx, [esp + 0x74]
push eax
lea eax, [esp + 0x2c]
push eax
push ecx
call fcn.00418960
lea edx, [esp + 0x80]
push edx
call fcn.004189c0
fstp qword [esp + 0x48]
fild dword [esp + 0x80]
mov eax, dword [esp + 0x7c]
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0xdc]
fmul qword [esi + 0x40]
push ecx
push edx
fsubr qword [esp + 0x5c]
fild dword [esp + 0x70]
fmul qword [esp + 0x3c]
fsubp st(1)
fstp qword [esp + 0xf4]
fild dword [esp + 0x84]
fmul qword [edi + 0x40]
fsubr qword [esp + 0x54]
fild dword [esp + 0x68]
fmul qword [esp + 0x3c]
fsubp st(1)
fstp qword [esp + 0xfc]
call fcn.00418960
lea eax, [esp + 0xe4]
lea ecx, [esp + 0x74]
push eax
push ecx
call fcn.00418ab0
fsub qword [esp + 0x44]
lea edx, [esp + 0xd0]
lea eax, [esp + 0xfc]
push edx
lea ecx, [esp + 0xbc]
push eax
lea edx, [esp + 0x11c]
fstp qword [esp + 0x114]
fld qword [esp + 0xb0]
fdiv qword [esp + 0x6c]
push ecx
lea eax, [esp + 0x138]
push edx
push eax
fstp qword [esp + 0x140]
fld qword [esp + 0xc4]
fdiv qword [esp + 0x78]
fstp qword [esp + 0x148]
fld qword [esp + 0xac]
fdiv qword [esp + 0x70]
fstp qword [esp + 0x128]
fld qword [esp + 0xb4]
fdiv qword [esp + 0x70]
fstp qword [esp + 0x130]
call fcn.00419150
add esp, 0x48
test eax, eax
jne 0x416528
push 0x3fe00000
lea ecx, [esp + 0xa0]
push eax
push ecx
call fcn.00418fa0
fld qword [esp + 0x24]
fsub qword [esp + 0xa8]
lea edx, [esp + 0xa8]
push edx
fstp qword [esp + 0x28]
fld qword [esp + 0x30]
fsub qword [esp + 0xb4]
fstp qword [esp + 0x30]
fld qword [esp + 0xbc]
fadd qword [esp + 0x20]
fstp qword [esp + 0x20]
call fcn.00418eb0
fld qword [0x584ab0]
fmul qword [0x551440]
add esp, 0x10
fcompp
fnstsw ax
test ah, 0x41
je 0x416531
mov eax, dword [esp + 0x40]
inc eax
cmp eax, 0x1f4
mov dword [esp + 0x40], eax
jl 0x41637c
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
fld qword [esp + 0x10]
fcomp qword [0x584ab0]
fnstsw ax
test ah, 0x41
jne 0x416528
fld qword [esp + 0x10]
fcomp qword [0x551438]
fnstsw ax
test ah, 0x41
je 0x416528
mov eax, dword [ebp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
fld qword [esp + 0xc]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x20]
pop esi
pop ebx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 0x18]
fstp qword [eax]
mov eax, 1
mov esp, ebp
pop ebp
ret