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

Disassembly:
sub esp, 0x6c
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x80]
mov al, byte [esi + 0xc0]
mov cl, byte [esi + 0xc1]
mov byte [esp + 0x34], al
mov al, byte [esi + 0xc3]
mov ebp, dword [esp + 0x34]
mov byte [esp + 0x30], cl
and ebp, 0xff
mov dl, byte [esi + 0xc2]
mov dword [esp + 0x34], ebp
mov byte [esp + 0x24], al
fild dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov byte [esp + 0x2c], dl
and eax, 0xff
fmul dword [edi]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
fild dword [esp + 0x20]
and eax, 0xff
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
fmul dword [edi + 4]
and eax, 0xff
mov dword [esp + 0x2c], eax
fstp dword [esp + 0x80]
fild dword [esp + 0x1c]
fmul dword [edi + 8]
fstp dword [esp + 0x28]
fild dword [esp + 0x2c]
fmul dword [edi + 0xc]
fstp dword [esp + 0x24]
fld st(0)
call fcn.004a1790
fld dword [esp + 0x80]
mov ebx, eax
call fcn.004a1790
fld dword [esp + 0x28]
mov dword [esp + 0x34], eax
call fcn.004a1790
fld dword [esp + 0x24]
mov dword [esp + 0x30], eax
call fcn.004a1790
xor ecx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x34]
fild qword [esp + 0x14]
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x30]
cmp ebx, ebp
fsubr st(1)
fstp dword [esp + 0x14]
fstp st(0)
fild qword [esp + 0x34]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], 0
fsubr dword [esp + 0x80]
fstp dword [esp + 0x10]
fild qword [esp + 0x34]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
fsubr dword [esp + 0x28]
fstp dword [esp + 0x80]
fild qword [esp + 0x34]
fsubr dword [esp + 0x24]
jne 0x4c18f7
dec ebx
mov dword [esp + 0x14], 0x3f800000
cmp edx, dword [esp + 0x20]
jne 0x4c1906
dec edx
mov dword [esp + 0x10], 0x3f800000
cmp ecx, dword [esp + 0x1c]
jne 0x4c1918
dec ecx
mov dword [esp + 0x80], 0x3f800000
cmp eax, dword [esp + 0x2c]
jne 0x4c1927
fstp st(0)
fld dword [0x515684]
dec eax
fld st(0)
fsubr qword [0x512a30]
fld dword [esp + 0x80]
fsubr qword [0x512a30]
mov ebp, dword [esi + 0xf0]
imul ebp, eax
fstp dword [esp + 0x1c]
fld dword [esp + 0x10]
fsubr qword [0x512a30]
fstp dword [esp + 0x20]
fld dword [esp + 0x14]
fsubr qword [0x512a30]
mov eax, dword [esi + 0xe0]
fstp dword [esp + 0x24]
imul eax, ecx
fld dword [esp + 0x24]
fmul dword [esp + 0x20]
fst dword [esp + 0x28]
fmul dword [esp + 0x1c]
mov ecx, dword [esi + 0xd8]
add ebp, eax
fst dword [esp + 0x2c]
imul ecx, edx
fmul st(1)
fstp dword [esp + 0x3c]
fld dword [esp + 0x20]
fmul dword [esp + 0x1c]
mov edx, dword [esi + 0xd4]
mov eax, dword [esi + 0x5c]
fst dword [esp + 0x30]
imul edx, ebx
fmul st(1)
fmul dword [esp + 0x14]
fstp dword [esp + 0x40]
fld dword [esp + 0x24]
fmul dword [esp + 0x1c]
add ebp, ecx
add ebp, edx
fst dword [esp + 0x34]
fmul st(1)
lea ebx, [eax + ebp*4]
fmul dword [esp + 0x10]
fstp dword [esp + 0x44]
fld dword [esp + 0x1c]
fmul st(1)
fmul dword [esp + 0x10]
fmul dword [esp + 0x14]
fstp dword [esp + 0x48]
fld dword [esp + 0x28]
fmul st(1)
fmul dword [esp + 0x80]
fstp dword [esp + 0x4c]
fld dword [esp + 0x20]
fmul st(1)
fmul dword [esp + 0x80]
fmul dword [esp + 0x14]
fstp dword [esp + 0x50]
fld dword [esp + 0x24]
fmul st(1)
fmul dword [esp + 0x80]
fmul dword [esp + 0x10]
fstp dword [esp + 0x54]
fmul dword [esp + 0x80]
fmul dword [esp + 0x10]
fmul dword [esp + 0x14]
fstp dword [esp + 0x58]
fld dword [esp + 0x2c]
fmul st(1)
fstp dword [esp + 0x5c]
fld dword [esp + 0x30]
fmul st(1)
fmul dword [esp + 0x14]
fstp dword [esp + 0x60]
fld dword [esp + 0x34]
fmul st(1)
fmul dword [esp + 0x10]
fstp dword [esp + 0x64]
fld dword [esp + 0x1c]
fmul st(1)
fmul dword [esp + 0x10]
fmul dword [esp + 0x14]
fstp dword [esp + 0x68]
fld dword [esp + 0x28]
fmul st(1)
mov al, byte [esi + 5]
xor ebp, ebp
test al, al
fmul dword [esp + 0x80]
fstp dword [esp + 0x6c]
fld dword [esp + 0x20]
fmul st(1)
fmul dword [esp + 0x80]
fmul dword [esp + 0x14]
fstp dword [esp + 0x70]
fld dword [esp + 0x24]
fmul st(1)
fmul dword [esp + 0x80]
fmul dword [esp + 0x10]
fstp dword [esp + 0x74]
fmul dword [esp + 0x80]
fmul dword [esp + 0x10]
fmul dword [esp + 0x14]
fstp dword [esp + 0x78]
jbe 0x4c1b25
mov dword [esp + 0x80], edi
mov ecx, dword [esi + 0xfc]
lea edx, [esp + 0x3c]
fld dword [0x512a50]
sub ecx, edx
lea eax, [esp + 0x3c]
mov edx, 0x10
mov edi, dword [ecx + eax]
add eax, 4
dec edx
fld dword [ebx + edi*4]
fmul dword [eax - 4]
faddp st(1)
jne 0x4c1ae3
fstp dword [esp + 0x34]
mov eax, dword [esp + 0x34]
push eax
call fcn.004c1510
mov eax, dword [esp + 0x84]
xor ecx, ecx
add esp, 4
inc ebp
fstp dword [eax]
mov cl, byte [esi + 5]
add eax, 4
add ebx, 4
cmp ebp, ecx
mov dword [esp + 0x80], eax
jl 0x4c1ac8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 4