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

Disassembly:
sub esp, 0xd4
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0xe8]
mov al, byte [esi + 0xc0]
mov cl, byte [esi + 0xc1]
mov byte [esp + 0x2c], al
mov al, byte [esi + 0xc3]
mov ebx, dword [esp + 0x2c]
mov byte [esp + 0x3c], cl
and ebx, 0xff
mov dl, byte [esi + 0xc2]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x44], al
fild dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
mov byte [esp + 0x48], dl
and eax, 0xff
mov cl, byte [esi + 0xc4]
fmul dword [edi]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x48]
fild dword [esp + 0x34]
and eax, 0xff
mov byte [esp + 0x60], cl
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x44]
fmul dword [edi + 4]
and eax, 0xff
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x60]
and eax, 0xff
fstp dword [esp + 0x50]
fild dword [esp + 0x20]
mov dword [esp + 0x5c], eax
fmul dword [edi + 8]
fstp dword [esp + 0x54]
fild dword [esp + 0x58]
fmul dword [edi + 0xc]
fstp dword [esp + 0x4c]
fild dword [esp + 0x5c]
fmul dword [edi + 0x10]
fstp dword [esp + 0x38]
fld st(0)
call fcn.004a1790
fld dword [esp + 0x50]
mov ebp, eax
call fcn.004a1790
fld dword [esp + 0x54]
mov dword [esp + 0x24], eax
call fcn.004a1790
fld dword [esp + 0x4c]
mov dword [esp + 0x28], eax
call fcn.004a1790
fld dword [esp + 0x38]
mov dword [esp + 0x2c], eax
call fcn.004a1790
xor ecx, ecx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x24]
fild qword [esp + 0x3c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x30], ecx
fsubr st(1)
fstp dword [esp + 0x18]
fstp st(0)
fild qword [esp + 0x3c]
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], ecx
mov edx, dword [esp + 0x2c]
fsubr dword [esp + 0x50]
mov dword [esp + 0x2c], edx
fstp dword [esp + 0x10]
fild qword [esp + 0x3c]
fsubr dword [esp + 0x54]
fstp dword [esp + 0x1c]
fild qword [esp + 0x2c]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
cmp ebp, ebx
fsubr dword [esp + 0x4c]
fstp dword [esp + 0x14]
fild qword [esp + 0x2c]
fsubr dword [esp + 0x38]
jne 0x4c1c9d
dec ebp
mov dword [esp + 0x18], 0x3f800000
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x34]
cmp ecx, ebx
jne 0x4c1cb6
dec ecx
mov dword [esp + 0x10], 0x3f800000
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
cmp ecx, ebx
jne 0x4c1ccb
dec ecx
mov dword [esp + 0x1c], 0x3f800000
cmp edx, dword [esp + 0x58]
jne 0x4c1cda
dec edx
mov dword [esp + 0x14], 0x3f800000
cmp eax, dword [esp + 0x5c]
jne 0x4c1ce9
fstp st(0)
fld dword [0x515684]
dec eax
fld st(0)
fsubr qword [0x512a30]
fld dword [esp + 0x14]
fsubr qword [0x512a30]
mov ebx, dword [esi + 0xf4]
imul ebx, eax
fstp dword [esp + 0x20]
fld dword [esp + 0x1c]
fsubr qword [0x512a30]
fstp dword [esp + 0x28]
fld dword [esp + 0x10]
fsubr qword [0x512a30]
mov eax, dword [esi + 0xf0]
fstp dword [esp + 0x34]
imul eax, edx
fld dword [esp + 0x18]
fsubr qword [0x512a30]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fmul dword [esp + 0x34]
mov edx, dword [esi + 0xe0]
add ebx, eax
mov eax, dword [esi + 0xd8]
imul edx, ecx
imul eax, dword [esp + 0x24]
fst dword [esp + 0x24]
fmul dword [esp + 0x28]
fst dword [esp + 0x4c]
fmul dword [esp + 0x20]
mov ecx, dword [esi + 0xd4]
add ebx, edx
imul ecx, ebp
fst dword [esp + 0x5c]
fmul st(1)
mov edx, dword [esi + 0x5c]
add ebx, eax
add ebx, ecx
lea ebx, [edx + ebx*4]
call fcn.004a1790
fld dword [esp + 0x34]
fmul dword [esp + 0x28]
mov dword [esp + 0x64], eax
fst dword [esp + 0x54]
fmul dword [esp + 0x20]
fst dword [esp + 0x58]
fmul st(1)
fmul dword [esp + 0x18]
call fcn.004a1790
fld dword [esp + 0x38]
fmul dword [esp + 0x28]
mov dword [esp + 0x68], eax
fst dword [esp + 0x50]
fmul dword [esp + 0x20]
fst dword [esp + 0x60]
fmul st(1)
fmul dword [esp + 0x10]
call fcn.004a1790
fld dword [esp + 0x28]
fmul dword [esp + 0x20]
mov dword [esp + 0x6c], eax
fst dword [esp + 0x44]
fmul st(1)
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
call fcn.004a1790
fld dword [esp + 0x24]
fmul dword [esp + 0x20]
mov dword [esp + 0x70], eax
fst dword [esp + 0x48]
fmul st(1)
fmul dword [esp + 0x1c]
call fcn.004a1790
fld dword [esp + 0x34]
fmul dword [esp + 0x20]
mov dword [esp + 0x74], eax
fst dword [esp + 0x3c]
fmul st(1)
fmul dword [esp + 0x1c]
fmul dword [esp + 0x18]
call fcn.004a1790
mov dword [esp + 0x78], eax
fld dword [esp + 0x38]
fmul dword [esp + 0x20]
fst dword [esp + 0x2c]
fmul st(1)
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
call fcn.004a1790
fld dword [esp + 0x20]
fmul st(1)
mov dword [esp + 0x7c], eax
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
call fcn.004a1790
fld dword [esp + 0x4c]
fmul st(1)
mov dword [esp + 0x80], eax
fmul dword [esp + 0x14]
call fcn.004a1790
fld dword [esp + 0x54]
fmul st(1)
mov dword [esp + 0x84], eax
fmul dword [esp + 0x14]
fmul dword [esp + 0x18]
call fcn.004a1790
fld dword [esp + 0x50]
fmul st(1)
mov dword [esp + 0x88], eax
fmul dword [esp + 0x14]
fmul dword [esp + 0x10]
call fcn.004a1790
fld dword [esp + 0x28]
fmul st(1)
mov dword [esp + 0x8c], eax
fmul dword [esp + 0x14]
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
call fcn.004a1790
fld dword [esp + 0x24]
fmul st(1)
mov dword [esp + 0x90], eax
fmul dword [esp + 0x14]
fmul dword [esp + 0x1c]
call fcn.004a1790
fld dword [esp + 0x34]
fmul st(1)
mov dword [esp + 0x94], eax
fmul dword [esp + 0x14]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x18]
call fcn.004a1790
fld dword [esp + 0x38]
fmul st(1)
mov dword [esp + 0x98], eax
fmul dword [esp + 0x14]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
call fcn.004a1790
fmul dword [esp + 0x14]
mov dword [esp + 0x9c], eax
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
call fcn.004a1790
fld dword [esp + 0x5c]
fmul st(1)
mov dword [esp + 0xa0], eax
call fcn.004a1790
fld dword [esp + 0x58]
fmul st(1)
mov dword [esp + 0xa4], eax
fmul dword [esp + 0x18]
call fcn.004a1790
fld dword [esp + 0x60]
fmul st(1)
mov dword [esp + 0xa8], eax
fmul dword [esp + 0x10]
call fcn.004a1790
fld dword [esp + 0x44]
mov dword [esp + 0xac], eax
fmul st(1)
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
call fcn.004a1790
fld dword [esp + 0x48]
fmul st(1)
mov dword [esp + 0xb0], eax
fmul dword [esp + 0x1c]
call fcn.004a1790
fld dword [esp + 0x3c]
fmul st(1)
mov dword [esp + 0xb4], eax
fmul dword [esp + 0x1c]
fmul dword [esp + 0x18]
call fcn.004a1790
fld dword [esp + 0x2c]
fmul st(1)
mov dword [esp + 0xb8], eax
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
call fcn.004a1790
fld dword [esp + 0x20]
fmul st(1)
mov dword [esp + 0xbc], eax
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
call fcn.004a1790
fld dword [esp + 0x4c]
fmul st(1)
mov dword [esp + 0xc0], eax
fmul dword [esp + 0x14]
call fcn.004a1790
fld dword [esp + 0x54]
fmul st(1)
mov dword [esp + 0xc4], eax
fmul dword [esp + 0x14]
fmul dword [esp + 0x18]
call fcn.004a1790
fld dword [esp + 0x50]
fmul st(1)
mov dword [esp + 0xc8], eax
fmul dword [esp + 0x14]
fmul dword [esp + 0x10]
call fcn.004a1790
fld dword [esp + 0x28]
fmul st(1)
mov dword [esp + 0xcc], eax
fmul dword [esp + 0x14]
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
call fcn.004a1790
fld dword [esp + 0x24]
fmul st(1)
mov dword [esp + 0xd0], eax
fmul dword [esp + 0x14]
fmul dword [esp + 0x1c]
call fcn.004a1790
fld dword [esp + 0x34]
fmul st(1)
mov dword [esp + 0xd4], eax
fmul dword [esp + 0x14]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x18]
call fcn.004a1790
fld dword [esp + 0x38]
fmul st(1)
mov dword [esp + 0xd8], eax
fmul dword [esp + 0x14]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
call fcn.004a1790
fmul dword [esp + 0x14]
mov dword [esp + 0xdc], eax
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
call fcn.004a1790
mov dword [esp + 0xe0], eax
mov al, byte [esi + 5]
mov dword [esp + 0x48], 0
test al, al
jbe 0x4c2170
mov dword [esp + 0x44], edi
mov ebp, dword [esi + 0xfc]
lea eax, [esp + 0x64]
mov dword [esp + 0x2c], 0
lea edi, [esp + 0x64]
sub ebp, eax
mov dword [esp + 0x3c], 0x20
fild dword [edi]
mov ecx, dword [edi + ebp]
fmul dword [ebx + ecx*4]
fiadd dword [esp + 0x2c]
call fcn.004a1790
mov ecx, dword [esp + 0x3c]
add edi, 4
dec ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x3c], ecx
jne 0x4c2114
sar eax, 8
mov dword [esp + 0x2c], eax
push ecx
fild dword [esp + 0x30]
fstp dword [esp]
call fcn.004c1510
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
xor edx, edx
add esp, 4
fstp dword [ecx]
mov dl, byte [esi + 5]
inc eax
add ecx, 4
add ebx, 4
cmp eax, edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x44], ecx
jl 0x4c20f4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret 4