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

Disassembly:
sub esp, 0x58
mov edx, dword [eax + 4]
push ebx
push ebp
mov ebp, dword [esp + 0x64]
push esi
mov esi, ecx
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov dword [esp + 0x3c], ecx
lea ecx, [ebp - 1]
test ecx, ecx
mov dword [esp + 0x68], ecx
fild dword [esp + 0x68]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
jge 0x514825
fadd dword [0x715568]
fmul dword [esp + 0x70]
fstp dword [esp + 0x68]
fld dword [esp + 0x3c]
fcomp dword [0x715554]
fnstsw ax
test ah, 5
jnp 0x514d09
lea edx, [esi - 1]
test edx, edx
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
jge 0x514857
fadd dword [0x715568]
fmul dword [esp + 0x6c]
fcomp dword [esp + 0x3c]
fnstsw ax
test ah, 5
jnp 0x514d09
fld dword [esp + 0x68]
fchs
fcomp dword [esp + 0x40]
fnstsw ax
test ah, 0x41
je 0x514d09
fld dword [esp + 0x40]
fcomp dword [0x715554]
fnstsw ax
test ah, 0x41
je 0x514d09
fld dword [esp + 0x3c]
mov eax, dword [esp + 0x78]
sub eax, 0
fdiv dword [esp + 0x6c]
fstp dword [esp + 0x68]
fld dword [esp + 0x40]
fdiv dword [esp + 0x70]
fchs
fstp dword [esp + 0x10]
je 0x5148c5
dec eax
je 0x5149f6
dec eax
jne 0x514b0f
fld dword [esp + 0x10]
call fcn.005f275c
fld dword [esp + 0x68]
mov ebx, eax
call fcn.005f275c
xor ebx, eax
test bl, 1
jne 0x5149f6
mov ebx, dword [esp + 0x10]
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.005154c0
fstp dword [esp + 0x1c]
mov edx, dword [esp + 0x70]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.005154c0
fadd dword [esp + 0x24]
add esp, 0x10
fcomp dword [0x70deb0]
fnstsw ax
test ah, 0x41
jne 0x51498a
mov eax, dword [esp + 0x68]
push eax
call fcn.004e3d90
fadd dword [0x70deb0]
add esp, 4
push ebx
fstp dword [esp + 0x2c]
call fcn.004e3d90
fld dword [0x7155dc]
mov ecx, dword [esp + 0x2c]
add esp, 4
fadd st(1)
test ebp, ebp
mov dword [esp + 0x68], ebp
fild dword [esp + 0x68]
mov dword [esp + 0x48], ecx
jge 0x51495c
fadd dword [0x715568]
fcompp
fnstsw ax
test ah, 0x41
jp 0x51496d
fld dword [0x715558]
jmp 0x514973
fld dword [0x70deb0]
fadd st(1)
fld dword [esp + 0x28]
fsub dword [0x70deb0]
fld st(1)
fstp dword [esp + 0x1c]
jmp 0x514b1b
mov edx, dword [esp + 0x68]
push edx
call fcn.004e3d90
fadd dword [0x70deb0]
add esp, 4
push ebx
fstp dword [esp + 0x2c]
call fcn.004e3d90
fld dword [esp + 0x2c]
mov dword [esp + 0x6c], ebp
fsub dword [0x70deb0]
add esp, 4
fstp dword [esp + 0x48]
fld st(0)
fld dword [esp + 0x48]
fld st(2)
fadd dword [0x7155dc]
fild dword [esp + 0x68]
test ebp, ebp
jge 0x5149d8
fadd dword [0x715568]
fcompp
fnstsw ax
test ah, 0x41
jp 0x514b01
fld dword [0x715558]
fadd st(3)
fstp dword [esp + 0x1c]
jmp 0x514b1b
fld dword [esp + 0x68]
lea eax, [esp + 0x18]
push eax
sub esp, 8
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_modf]
add esp, 0xc
lea ecx, [esp + 0x28]
fstp dword [esp + 0x14]
fld dword [esp + 0x10]
push ecx
sub esp, 8
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_modf]
fsubr dword [esp + 0x20]
add esp, 0xc
sub esp, 8
fcomp dword [0x715554]
fld dword [esp + 0x70]
fnstsw ax
fstp qword [esp]
test ah, 5
jp 0x514ab8
call dword [sym.imp.MSVCR71.dll_floor]
fstp dword [esp + 0x30]
fld dword [esp + 0x18]
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
fld dword [esp + 0x30]
add esp, 8
test ebp, ebp
fadd dword [0x70deb0]
mov dword [esp + 0x68], ebp
fstp dword [esp + 0x48]
fld dword [0x7155dc]
fadd st(1)
fild dword [esp + 0x68]
jge 0x514a87
fadd dword [0x715568]
fcompp
fnstsw ax
test ah, 0x41
jp 0x514aa4
fld dword [0x715558]
fadd st(1)
fld dword [esp + 0x28]
fld st(1)
fstp dword [esp + 0x1c]
jmp 0x514b1b
fld dword [0x70deb0]
fadd st(1)
fld dword [esp + 0x28]
fld st(1)
fstp dword [esp + 0x1c]
jmp 0x514b1b
call dword [sym.imp.MSVCR71.dll_floor]
fadd dword [0x70deb0]
fstp dword [esp + 0x30]
fld dword [esp + 0x18]
fstp qword [esp]
call dword [sym.imp.MSVCR71.dll_floor]
fld dword [esp + 0x30]
mov dword [esp + 0x70], ebp
fsub dword [0x70deb0]
add esp, 8
fstp dword [esp + 0x48]
fld st(0)
fld dword [esp + 0x28]
fld st(2)
fadd dword [0x7155dc]
fild dword [esp + 0x68]
jmp 0x5149ce
fld dword [0x70deb0]
fadd st(3)
fstp dword [esp + 0x1c]
jmp 0x514b1b
fld dword [esp + 0x2c]
fld dword [esp + 0x4c]
fld dword [esp + 0x18]
fld st(2)
call fcn.005f275c
fld dword [esp + 0x28]
mov ebx, eax
imul ebx, esi
call fcn.005f275c
add ebx, edi
movzx edx, byte [eax + ebx]
mov dword [esp + 0x68], edx
fild dword [esp + 0x68]
fmul dword [esp + 0x74]
fstp dword [esp + 0x30]
fld st(1)
call fcn.005f275c
fld dword [esp + 0x48]
mov ebx, eax
imul ebx, esi
call fcn.005f275c
add ebx, edi
movzx eax, byte [eax + ebx]
mov dword [esp + 0x68], eax
fild dword [esp + 0x68]
fmul dword [esp + 0x74]
fstp dword [esp + 0x50]
fld dword [esp + 0x1c]
call fcn.005f275c
fld st(0)
mov ebx, eax
imul ebx, esi
call fcn.005f275c
add ebx, edi
movzx ecx, byte [eax + ebx]
mov dword [esp + 0x68], ecx
fild dword [esp + 0x68]
fmul dword [esp + 0x74]
fstp dword [esp + 0x20]
fld dword [esp + 0x28]
fmul dword [esp + 0x6c]
fstp dword [esp + 0x28]
fld dword [esp + 0x48]
fmul dword [esp + 0x6c]
fstp dword [esp + 0x48]
fmul dword [esp + 0x6c]
fstp dword [esp + 0x18]
fxch st(1)
fmul dword [esp + 0x70]
fstp dword [esp + 0x2c]
fmul dword [esp + 0x70]
fld dword [esp + 0x1c]
fmul dword [esp + 0x70]
fstp dword [esp + 0x1c]
fld dword [esp + 0x40]
fchs
fstp dword [esp + 0x40]
fld dword [esp + 0x28]
fsub dword [esp + 0x48]
fstp dword [esp + 0x54]
mov edx, dword [esp + 0x54]
fld dword [esp + 0x2c]
mov dword [esp + 0x28], edx
fsub st(1)
lea edx, [esp + 0x54]
push edx
fstp dword [esp + 0x5c]
mov eax, dword [esp + 0x5c]
fld dword [esp + 0x34]
mov dword [esp + 0x30], eax
fsub dword [esp + 0x54]
lea eax, [esp + 0x4c]
push eax
fstp dword [esp + 0x64]
mov ecx, dword [esp + 0x64]
fld dword [esp + 0x50]
mov dword [esp + 0x38], ecx
fsub dword [esp + 0x20]
fstp dword [esp + 0x5c]
fsub dword [esp + 0x24]
fstp dword [esp + 0x60]
fld dword [esp + 0x58]
fsub dword [esp + 0x28]
fstp dword [esp + 0x64]
lea ecx, [esp + 0x30]
call fcn.00491630
fld dword [esp + 0x18]
fsub dword [esp + 0x3c]
mov edx, dword [eax + 4]
fld dword [esp + 0x1c]
mov ecx, dword [eax]
fsub dword [esp + 0x40]
mov esi, dword [esp + 0x7c]
test esi, esi
fld dword [esp + 0x20]
fsub dword [esp + 0x44]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 8]
fxch st(1)
fmul dword [esp + 0x2c]
mov dword [esp + 0x28], ecx
fxch st(2)
mov dword [esp + 0x30], edx
fmul dword [esp + 0x28]
faddp st(2)
fmul dword [esp + 0x30]
faddp st(1)
fld dword [esp + 0x28]
fadd dword [esp + 0x2c]
fmul dword [0x715554]
fadd dword [esp + 0x30]
fdivp st(1)
je 0x514cfe
fld dword [esp + 0x30]
fcomp dword [0x715554]
fnstsw ax
test ah, 5
jp 0x514ce8
fld dword [esp + 0x28]
fchs
fstp dword [esp + 0x54]
mov ecx, dword [esp + 0x54]
fld dword [esp + 0x2c]
fchs
fstp dword [esp + 0x58]
mov eax, dword [esp + 0x58]
fld dword [esp + 0x30]
mov dword [esp + 0x2c], eax
fchs
fstp dword [esp + 0x5c]
mov edx, dword [esp + 0x5c]
fld dword [esp + 0x2c]
mov dword [esi], ecx
fchs
fstp dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
fadd dword [esp + 0x44]
pop esi
pop ebp
pop ebx
add esp, 0x58
ret
fld dword [0x715554]
pop esi
pop ebp
pop ebx
add esp, 0x58
ret