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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov eax, dword [esi + 0x5c]
cmp eax, edi
je 0x4fd3c6
test dword [esi + 0x40], 0x82000
jne 0x4fd3ba
test byte [esi + 0x3c], 0x20
jne 0x4fd3c6
test byte [eax + 0x124], 0x40
jne 0x4fd3c6
cmp dword [0x8b4bc0], edi
mov dword [ebp - 0xc], edi
fld1
mov dword [ebp + 8], 0x80
mov dword [ebp - 8], edi
fstp dword [ebp - 4]
jle 0x4fd350
fld dword [esi + 0x44]
lea eax, [edi + 0x8df65c]
push ecx
push ecx
fsub dword [eax - 4]
fst dword [ebp - 0x24]
fld dword [esi + 0x48]
fsub dword [eax]
fst dword [ebp - 0x20]
fld dword [esi + 0x4c]
fsub dword [eax + 4]
fst dword [ebp - 0x1c]
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 dword [ebp - 0x10]
fstp st(0)
fstp st(0)
fstp st(0)
fld dword [ebp - 0x10]
fstp qword [esp]
call fcn.00647414
fst dword [ebp - 0x14]
fld dword [0x8b4bb4]
fcomp dword [0x868570]
pop ecx
pop ecx
fnstsw ax
test ah, 0x41
jne 0x4fd178
cmp dword [0x8b4bc0], 1
jne 0x4fd178
fstp st(0)
fld dword [esi + 0x44]
fsub dword [esi + 0x50]
fld dword [esi + 0x48]
fsub dword [esi + 0x54]
push ecx
push ecx
fstp dword [ebp - 0x2c]
fld dword [esi + 0x4c]
fsub dword [esi + 0x58]
fstp dword [ebp - 0x28]
fsub dword [edi + 0x8df6b8]
fld dword [ebp - 0x2c]
fsub dword [edi + 0x8df6bc]
fld dword [ebp - 0x28]
fsub dword [edi + 0x8df6c0]
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.00647414
fstp dword [ebp - 0x18]
fld dword [0x7db85c]
fdiv dword [0x8b4bb8]
pop ecx
pop ecx
fstp dword [ebp - 4]
fld dword [ebp - 0x14]
fld dword [ebp - 0x18]
fsubr st(1)
fmul dword [0x8b4bb4]
fsubr dword [ebp - 4]
fdiv dword [ebp - 4]
fstp dword [ebp - 4]
fld dword [ebp - 4]
fcomp dword [0x7db858]
fnstsw ax
test ah, 5
jp 0x4fd18f
mov dword [ebp - 4], 0x3727c5ac
fcom dword [esi + 0xc0]
fnstsw ax
test ah, 1
jne 0x4fd1a4
fstp st(0)
fld dword [esi + 0xc0]
fcom dword [esi + 0xbc]
fnstsw ax
test ah, 5
jp 0x4fd1b9
fstp st(0)
fld dword [esi + 0xbc]
fld dword [0x8b4bbc]
fcomp dword [0x868570]
fnstsw ax
test ah, 0x44
jp 0x4fd1fc
fld dword [esi + 0xc0]
fsub dword [esi + 0xbc]
fcom dword [0x868570]
fnstsw ax
test ah, 0x41
jp 0x4fd1ec
fstp st(0)
jmp 0x4fd26d
fld dword [esi + 0xc0]
fsub st(2)
fdiv st(1)
fstp st(2)
fstp st(0)
jmp 0x4fd24f
fcom dword [esi + 0xbc]
fnstsw ax
test ah, 0x41
jne 0x4fd232
fld dword [0x8b4bbc]
fcomp dword [0x7db470]
fnstsw ax
test ah, 0x44
jnp 0x4fd232
fld st(0)
fsub dword [esi + 0xbc]
fmul dword [0x8b4bbc]
fadd dword [esi + 0xbc]
fstp st(1)
fcom dword [0x7db858]
fnstsw ax
test ah, 5
jp 0x4fd247
fstp st(0)
fld dword [0x7db858]
fld dword [esi + 0xbc]
fdivrp st(1)
fcom dword [0x868570]
fnstsw ax
test ah, 5
jp 0x4fd260
fstp st(0)
fldz
fcom dword [0x7db470]
fnstsw ax
test ah, 0x41
jne 0x4fd271
fstp st(0)
fld1
fmul dword [0x7db854]
call fcn.00645040
cmp eax, dword [ebp - 0xc]
jle 0x4fd284
mov dword [ebp - 0xc], eax
cmp dword [0x8b4bc0], 1
jne 0x4fd33c
fld dword [ebp - 0x10]
push ecx
push ecx
fstp qword [esp]
call fcn.00647414
fcom dword [0x868570]
pop ecx
pop ecx
fnstsw ax
test ah, 0x41
jp 0x4fd2b7
fstp st(0)
fldz
fldz
fldz
jmp 0x4fd2d2
fld1
fdiv st(1)
fstp dword [ebp + 8]
fstp st(0)
fld dword [ebp + 8]
fmul dword [ebp - 0x24]
fld dword [ebp + 8]
fmul dword [ebp - 0x20]
fld dword [ebp + 8]
fmul dword [ebp - 0x1c]
fld dword [edi + 0x8b4b8c]
fmul st(1)
fld dword [edi + 0x8b4b88]
fmul st(3)
faddp st(1)
fld dword [edi + 0x8b4b84]
fmul st(4)
faddp st(1)
fmul dword [0x7db850]
call fcn.00645040
fstp st(0)
mov ecx, 0x80
fstp st(0)
sub ecx, eax
fstp st(0)
mov dword [ebp + 8], ecx
jns 0x4fd311
and dword [ebp + 8], 0
jmp 0x4fd31d
mov eax, 0xff
cmp ecx, eax
jle 0x4fd31d
mov dword [ebp + 8], eax
fild dword [ebp + 8]
mov eax, dword [section..data]
fsub dword [0x7db474]
fmul dword [eax + 0x14]
fadd dword [0x7db474]
call fcn.00645040
mov dword [ebp + 8], eax
inc dword [ebp - 8]
mov eax, dword [0x8b4bc0]
add edi, 0xc
cmp dword [ebp - 8], eax
jl 0x4fd090
mov eax, dword [ebp - 0xc]
mov edi, dword [esi + 0x1c]
test byte [esi + 0x3c], 1
mov dword [esi + 0x78], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0x7c], eax
jne 0x4fd37a
mov eax, dword [section..data]
mov ecx, 0xff
mov eax, dword [eax + 0x10]
imul eax, edi
cdq
idiv ecx
mov edi, eax
cmp dword [ebp + 0xc], 0
je 0x4fd3a3
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 0x4fd3c6
push edi
push esi
call fcn.004f44ec
push 0
push dword [ebp + 8]
push esi
call fcn.004f455d
add esp, 0x14
jmp 0x4fd3c6
fld1
mov dword [esi + 0x78], 0xff
fstp dword [esi + 0x7c]
pop edi
pop esi
leave
ret