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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x5c]
push edi
xor edi, edi
cmp eax, edi
je 0x10049bb6
test dword [esi + 0x40], 0x82000
jne 0x10049baa
test byte [esi + 0x3c], 0x20
jne 0x10049bb6
test byte [eax + 0x124], 0x40
jne 0x10049bb6
cmp dword [0x1009f234], edi
fld1
fstp dword [ebp - 8]
mov dword [ebp - 0x10], edi
mov dword [ebp + 8], 0x80
mov dword [ebp - 0xc], edi
jle 0x10049b40
fld dword [esi + 0x44]
lea eax, [edi + 0x100cb3c4]
fsub dword [eax - 4]
push ecx
push ecx
fst dword [ebp - 0x28]
fld dword [esi + 0x48]
fsub dword [eax]
fst dword [ebp - 0x24]
fld dword [esi + 0x4c]
fsub dword [eax + 4]
fst dword [ebp - 0x20]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp qword [ebp - 0x1c]
fstp st(0)
fstp st(0)
fstp st(0)
fld qword [ebp - 0x1c]
fstp qword [esp]
call fcn.10025474
fst dword [ebp - 4]
pop ecx
fld dword [0x1009f228]
pop ecx
fcomp dword [0x10087580]
fnstsw ax
sahf
jbe 0x1004998a
cmp dword [0x1009f234], 1
jne 0x1004998a
fstp st(0)
push ecx
fld dword [esi + 0x44]
push ecx
fsub dword [esi + 0x50]
fld dword [esi + 0x48]
fsub dword [esi + 0x54]
fstp dword [ebp - 0x30]
fld dword [esi + 0x4c]
fsub dword [esi + 0x58]
fstp dword [ebp - 0x2c]
fsub dword [edi + 0x100cb420]
fld dword [ebp - 0x30]
fsub dword [edi + 0x100cb424]
fld dword [ebp - 0x2c]
fsub dword [edi + 0x100cb428]
fld st(0)
fmul st(1)
fld st(2)
fmul st(3)
faddp st(1)
fld st(3)
fmul st(4)
faddp st(1)
fstp qword [esp]
fstp st(0)
fstp st(0)
fstp st(0)
call fcn.10025474
fstp dword [ebp - 0x14]
pop ecx
fld dword [0x1008a490]
pop ecx
fdiv dword [0x1009f22c]
fstp dword [ebp - 8]
fld dword [ebp - 4]
fld st(0)
fsub dword [ebp - 0x14]
fmul dword [0x1009f228]
fsubr dword [ebp - 8]
fdiv dword [ebp - 8]
fstp dword [ebp - 8]
fld dword [ebp - 8]
fcomp dword [0x1008a48c]
fnstsw ax
sahf
jae 0x1004999f
mov dword [ebp - 8], 0x3727c5ac
fcom dword [esi + 0xc0]
fnstsw ax
sahf
jb 0x100499b2
fstp st(0)
fld dword [esi + 0xc0]
fcom dword [esi + 0xbc]
fnstsw ax
sahf
jae 0x100499c5
fstp st(0)
fld dword [esi + 0xbc]
fld dword [0x1009f230]
fcomp dword [0x10087580]
fnstsw ax
sahf
jne 0x10049a01
fld dword [esi + 0xc0]
fsub dword [esi + 0xbc]
fcom dword [0x10087580]
fnstsw ax
sahf
ja 0x100499f1
fstp st(0)
jmp 0x10049a68
fld dword [esi + 0xc0]
fsub st(2)
fdiv st(1)
fstp st(2)
fstp st(0)
jmp 0x10049a4e
fcom dword [esi + 0xbc]
fnstsw ax
sahf
jbe 0x10049a33
fld dword [0x1009f230]
fcomp dword [0x100882b8]
fnstsw ax
sahf
je 0x10049a33
fld st(0)
fsub dword [esi + 0xbc]
fmul dword [0x1009f230]
fadd dword [esi + 0xbc]
fstp st(1)
fcom dword [0x1008a48c]
fnstsw ax
sahf
jae 0x10049a46
fstp st(0)
fld dword [0x1008a48c]
fld dword [esi + 0xbc]
fdivrp st(1)
fcom dword [0x10087580]
fnstsw ax
sahf
jae 0x10049a5d
fstp st(0)
fldz
fcom dword [0x100882b8]
fnstsw ax
sahf
jbe 0x10049a6c
fstp st(0)
fld1
fmul dword [0x10088b94]
call fcn.10022abc
cmp eax, dword [ebp - 0x10]
jle 0x10049a7f
mov dword [ebp - 0x10], eax
cmp dword [0x1009f234], 1
jne 0x10049b2c
fld qword [ebp - 0x1c]
push ecx
push ecx
fstp qword [esp]
call fcn.10025474
fcom dword [0x10087580]
pop ecx
fst dword [ebp - 4]
pop ecx
fnstsw ax
sahf
ja 0x10049ab3
fstp st(0)
fldz
fldz
fldz
jmp 0x10049ac2
fdivr dword [ebp - 0x28]
fld dword [ebp - 0x24]
fdiv dword [ebp - 4]
fld dword [ebp - 0x20]
fdiv dword [ebp - 4]
fld dword [edi + 0x1009f200]
fmul st(1)
fld dword [edi + 0x1009f1fc]
fmul st(3)
faddp st(1)
fld dword [edi + 0x1009f1f8]
fmul st(4)
faddp st(1)
fmul dword [0x1008a488]
call fcn.10022abc
fstp st(0)
mov ecx, 0x80
fstp st(0)
sub ecx, eax
fstp st(0)
mov dword [ebp + 8], ecx
jns 0x10049b01
and dword [ebp + 8], 0
jmp 0x10049b0d
mov eax, 0xff
cmp ecx, eax
jle 0x10049b0d
mov dword [ebp + 8], eax
fild dword [ebp + 8]
mov eax, dword [0x10099d1c]
fsub dword [0x1008a0e0]
fmul dword [eax + 0x14]
fadd dword [0x1008a0e0]
call fcn.10022abc
mov dword [ebp + 8], eax
inc dword [ebp - 0xc]
mov eax, dword [0x1009f234]
add edi, 0xc
cmp dword [ebp - 0xc], eax
jl 0x100498a4
test byte [esi + 0x3c], 1
mov eax, dword [ebp - 0x10]
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x78], eax
mov eax, dword [ebp - 8]
mov dword [esi + 0x7c], eax
jne 0x10049b6a
mov eax, dword [0x10099d1c]
mov eax, dword [eax + 0x10]
imul eax, edi
cdq
mov ecx, 0xff
idiv ecx
mov edi, eax
cmp dword [ebp + 0xc], 0
je 0x10049b93
push dword [esi + 0x20]
push esi
call dword [esi + 0x194]
push edi
push esi
call dword [esi + 0x19c]
push 0
push dword [ebp + 8]
push esi
call dword [esi + 0x1a0]
add esp, 0x1c
jmp 0x10049bb6
push edi
push esi
call fcn.10041ce0
push 0
push dword [ebp + 8]
push esi
call fcn.10041d51
add esp, 0x14
jmp 0x10049bb6
fld1
mov dword [esi + 0x78], 0xff
fstp dword [esi + 0x7c]
pop edi
pop esi
leave
ret