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

Disassembly:
sub esp, 0x198
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x1ac]
mov al, byte [esi + 0xc0]
mov cl, byte [esi + 0xc1]
mov byte [esp + 0x48], al
mov al, byte [esi + 0xc3]
mov ebp, dword [esp + 0x48]
mov byte [esp + 0x40], cl
and ebp, 0xff
mov dl, byte [esi + 0xc2]
mov dword [esp + 0x48], ebp
mov byte [esp + 0x7c], al
fild dword [esp + 0x48]
mov eax, dword [esp + 0x40]
mov byte [esp + 0x78], dl
and eax, 0xff
mov cl, byte [esi + 0xc4]
fmul dword [edi]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x78]
fild dword [esp + 0x64]
and eax, 0xff
mov byte [esp + 0x80], cl
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x7c]
fmul dword [edi + 4]
and eax, 0xff
mov dl, byte [esi + 0xc5]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x80]
and eax, 0xff
mov byte [esp + 0x74], dl
fstp dword [esp + 0x60]
fild dword [esp + 0x70]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x74]
and eax, 0xff
fmul dword [edi + 8]
mov dword [esp + 0x3c], eax
fstp dword [esp + 0x6c]
fild dword [esp + 0x54]
fmul dword [edi + 0xc]
fstp dword [esp + 0x58]
fild dword [esp + 0x38]
fmul dword [edi + 0x10]
fstp dword [esp + 0x5c]
fild dword [esp + 0x3c]
fmul dword [edi + 0x14]
fstp dword [esp + 0x68]
fld st(0)
call fcn.004a1790
fld dword [esp + 0x60]
mov ebx, eax
call fcn.004a1790
fld dword [esp + 0x6c]
mov dword [esp + 0x28], eax
call fcn.004a1790
fld dword [esp + 0x58]
mov dword [esp + 0x34], eax
call fcn.004a1790
fld dword [esp + 0x5c]
mov dword [esp + 0x30], eax
call fcn.004a1790
fld dword [esp + 0x68]
mov dword [esp + 0x48], eax
call fcn.004a1790
xor ecx, ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x28]
fild qword [esp + 0x40]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
fsubr st(1)
fstp dword [esp + 0x18]
fstp st(0)
fild qword [esp + 0x40]
fsubr dword [esp + 0x60]
mov edx, dword [esp + 0x34]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x30]
fstp dword [esp + 0x10]
fild qword [esp + 0x40]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ecx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x4c], ecx
fsubr dword [esp + 0x6c]
mov dword [esp + 0x48], edx
cmp ebx, ebp
fstp dword [esp + 0x1c]
fild qword [esp + 0x40]
fsubr dword [esp + 0x58]
fstp dword [esp + 0x20]
fild qword [esp + 0x48]
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
fsubr dword [esp + 0x5c]
fstp dword [esp + 0x14]
fild qword [esp + 0x48]
fsubr dword [esp + 0x68]
jne 0x4c233a
dec ebx
mov dword [esp + 0x18], 0x3f800000
mov ebp, dword [esp + 0x28]
cmp ebp, dword [esp + 0x64]
jne 0x4c2351
dec ebp
mov dword [esp + 0x10], 0x3f800000
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x34]
cmp ebp, dword [esp + 0x70]
jne 0x4c2368
dec ebp
mov dword [esp + 0x1c], 0x3f800000
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x30]
cmp ebp, dword [esp + 0x54]
jne 0x4c237f
dec ebp
mov dword [esp + 0x20], 0x3f800000
mov dword [esp + 0x30], ebp
cmp edx, dword [esp + 0x38]
jne 0x4c238e
dec edx
mov dword [esp + 0x14], 0x3f800000
cmp eax, dword [esp + 0x3c]
jne 0x4c239d
fstp st(0)
fld dword [0x515684]
dec eax
fld st(0)
fsubr qword [0x512a30]
fld dword [esp + 0x14]
fsubr qword [0x512a30]
mov ebp, dword [esi + 0xf8]
imul ebp, eax
fstp dword [esp + 0x24]
fld dword [esp + 0x20]
fsubr qword [0x512a30]
fstp dword [esp + 0x2c]
fld dword [esp + 0x1c]
fsubr qword [0x512a30]
mov eax, dword [esi + 0xf4]
fstp dword [esp + 0x50]
imul eax, edx
fld dword [esp + 0x10]
fsubr qword [0x512a30]
fstp dword [esp + 0x3c]
fld dword [esp + 0x18]
fsubr qword [0x512a30]
mov edx, dword [esi + 0xf0]
add ebp, eax
imul edx, dword [esp + 0x30]
fstp dword [esp + 0x38]
fld dword [esp + 0x38]
fmul dword [esp + 0x3c]
mov eax, dword [esi + 0xe0]
add ebp, edx
mov edx, dword [esi + 0xd8]
imul eax, dword [esp + 0x34]
imul edx, dword [esp + 0x28]
fst dword [esp + 0x28]
fmul dword [esp + 0x50]
fst dword [esp + 0x34]
fmul dword [esp + 0x2c]
add ebp, eax
mov eax, dword [esi + 0xd4]
fst dword [esp + 0x70]
imul eax, ebx
fmul dword [esp + 0x24]
fst dword [esp + 0x98]
fmul st(1)
fstp dword [esp + 0xa8]
fld dword [esp + 0x3c]
fmul dword [esp + 0x50]
add ebp, edx
mov edx, dword [esi + 0x5c]
add ebp, eax
fst dword [esp + 0x30]
fmul dword [esp + 0x2c]
lea ebx, [edx + ebp*4]
fst dword [esp + 0x64]
fmul dword [esp + 0x24]
fst dword [esp + 0x94]
fmul st(1)
fmul dword [esp + 0x18]
fstp dword [esp + 0xac]
fld dword [esp + 0x38]
fmul dword [esp + 0x50]
fst dword [esp + 0x54]
fmul dword [esp + 0x2c]
fst dword [esp + 0x68]
fmul dword [esp + 0x24]
fst dword [esp + 0xa4]
fmul st(1)
fmul dword [esp + 0x10]
fstp dword [esp + 0xb0]
fld dword [esp + 0x50]
fmul dword [esp + 0x2c]
fst dword [esp + 0x5c]
fmul dword [esp + 0x24]
fst dword [esp + 0x88]
fmul st(1)
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
fstp dword [esp + 0xb4]
fld dword [esp + 0x28]
fmul dword [esp + 0x2c]
fst dword [esp + 0x58]
fmul dword [esp + 0x24]
fst dword [esp + 0x90]
fmul st(1)
fmul dword [esp + 0x1c]
fstp dword [esp + 0xb8]
fld dword [esp + 0x3c]
fmul dword [esp + 0x2c]
fst dword [esp + 0x6c]
fmul dword [esp + 0x24]
fst dword [esp + 0x84]
fmul st(1)
fmul dword [esp + 0x1c]
fmul dword [esp + 0x18]
fstp dword [esp + 0xbc]
fld dword [esp + 0x38]
fmul dword [esp + 0x2c]
fst dword [esp + 0x60]
fmul dword [esp + 0x24]
fst dword [esp + 0xa0]
fmul st(1)
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
fstp dword [esp + 0xc0]
fld dword [esp + 0x2c]
fmul dword [esp + 0x24]
fst dword [esp + 0x8c]
fmul st(1)
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
fstp dword [esp + 0xc4]
fld dword [esp + 0x34]
fmul dword [esp + 0x24]
fst dword [esp + 0x9c]
fmul st(1)
fmul dword [esp + 0x20]
fstp dword [esp + 0xc8]
fld dword [esp + 0x30]
fmul dword [esp + 0x24]
fst dword [esp + 0x74]
fmul st(1)
fmul dword [esp + 0x20]
fmul dword [esp + 0x18]
fstp dword [esp + 0xcc]
fld dword [esp + 0x54]
fmul dword [esp + 0x24]
fst dword [esp + 0x80]
fmul st(1)
fmul dword [esp + 0x20]
fmul dword [esp + 0x10]
fstp dword [esp + 0xd0]
fld dword [esp + 0x50]
fmul dword [esp + 0x24]
fst dword [esp + 0x7c]
fmul st(1)
fmul dword [esp + 0x20]
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
fstp dword [esp + 0xd4]
fld dword [esp + 0x28]
fmul dword [esp + 0x24]
fst dword [esp + 0x78]
fmul st(1)
fmul dword [esp + 0x20]
fmul dword [esp + 0x1c]
fstp dword [esp + 0xd8]
fld dword [esp + 0x3c]
fmul dword [esp + 0x24]
fst dword [esp + 0x40]
fmul st(1)
fmul dword [esp + 0x20]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x18]
fstp dword [esp + 0xdc]
fld dword [esp + 0x38]
fmul dword [esp + 0x24]
fst dword [esp + 0x48]
fmul st(1)
fmul dword [esp + 0x20]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
fstp dword [esp + 0xe0]
fld dword [esp + 0x24]
fmul st(1)
fmul dword [esp + 0x20]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
fstp dword [esp + 0xe4]
fld dword [esp + 0x70]
fmul st(1)
fmul dword [esp + 0x14]
fstp dword [esp + 0xe8]
fld dword [esp + 0x64]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x18]
fstp dword [esp + 0xec]
fld dword [esp + 0x68]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x10]
fstp dword [esp + 0xf0]
fld dword [esp + 0x5c]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
fstp dword [esp + 0xf4]
fld dword [esp + 0x58]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x1c]
fstp dword [esp + 0xf8]
fld dword [esp + 0x6c]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x18]
fstp dword [esp + 0xfc]
fld dword [esp + 0x60]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
fstp dword [esp + 0x100]
fld dword [esp + 0x2c]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
fstp dword [esp + 0x104]
fld dword [esp + 0x34]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x20]
fstp dword [esp + 0x108]
fld dword [esp + 0x30]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x20]
fmul dword [esp + 0x18]
fstp dword [esp + 0x10c]
fld dword [esp + 0x54]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x20]
fmul dword [esp + 0x10]
fstp dword [esp + 0x110]
fld dword [esp + 0x50]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x20]
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
fstp dword [esp + 0x114]
fld dword [esp + 0x28]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x20]
fmul dword [esp + 0x1c]
fstp dword [esp + 0x118]
fld dword [esp + 0x3c]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x20]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x18]
fstp dword [esp + 0x11c]
fld dword [esp + 0x38]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x20]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
fstp dword [esp + 0x120]
fmul dword [esp + 0x14]
fmul dword [esp + 0x20]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
fstp dword [esp + 0x124]
fld dword [esp + 0x98]
fmul st(1)
fstp dword [esp + 0x128]
fld dword [esp + 0x94]
fmul st(1)
fmul dword [esp + 0x18]
fstp dword [esp + 0x12c]
fld dword [esp + 0xa4]
fmul st(1)
fmul dword [esp + 0x10]
fstp dword [esp + 0x130]
fld dword [esp + 0x88]
fmul st(1)
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
fstp dword [esp + 0x134]
fld dword [esp + 0x90]
fmul st(1)
fmul dword [esp + 0x1c]
fstp dword [esp + 0x138]
fld dword [esp + 0x84]
fmul st(1)
fmul dword [esp + 0x1c]
fmul dword [esp + 0x18]
fstp dword [esp + 0x13c]
fld dword [esp + 0xa0]
fmul st(1)
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
fstp dword [esp + 0x140]
fld dword [esp + 0x8c]
fmul st(1)
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
fstp dword [esp + 0x144]
fld dword [esp + 0x9c]
fmul st(1)
fmul dword [esp + 0x20]
fstp dword [esp + 0x148]
fld dword [esp + 0x74]
fmul st(1)
fmul dword [esp + 0x20]
fmul dword [esp + 0x18]
fstp dword [esp + 0x14c]
fld dword [esp + 0x80]
fmul st(1)
fmul dword [esp + 0x20]
fmul dword [esp + 0x10]
fstp dword [esp + 0x150]
fld dword [esp + 0x7c]
fmul st(1)
fmul dword [esp + 0x20]
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
fstp dword [esp + 0x154]
fld dword [esp + 0x78]
fmul st(1)
fmul dword [esp + 0x20]
fmul dword [esp + 0x1c]
fstp dword [esp + 0x158]
fld dword [esp + 0x40]
fmul st(1)
fmul dword [esp + 0x20]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x18]
fstp dword [esp + 0x15c]
fld dword [esp + 0x48]
fmul st(1)
fmul dword [esp + 0x20]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
fstp dword [esp + 0x160]
fld dword [esp + 0x24]
fmul st(1)
fmul dword [esp + 0x20]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
fstp dword [esp + 0x164]
fld dword [esp + 0x70]
fmul st(1)
fmul dword [esp + 0x14]
fstp dword [esp + 0x168]
fld dword [esp + 0x64]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x18]
fstp dword [esp + 0x16c]
fld dword [esp + 0x68]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x10]
fstp dword [esp + 0x170]
fld dword [esp + 0x5c]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
fstp dword [esp + 0x174]
fld dword [esp + 0x58]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x1c]
fstp dword [esp + 0x178]
fld dword [esp + 0x6c]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x18]
fstp dword [esp + 0x17c]
fld dword [esp + 0x60]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
fstp dword [esp + 0x180]
fld dword [esp + 0x2c]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
fstp dword [esp + 0x184]
fld dword [esp + 0x34]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x20]
fstp dword [esp + 0x188]
fld dword [esp + 0x30]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x20]
fmul dword [esp + 0x18]
fstp dword [esp + 0x18c]
fld dword [esp + 0x54]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x20]
fmul dword [esp + 0x10]
fstp dword [esp + 0x190]
fld dword [esp + 0x50]
fmul st(1)
mov al, byte [esi + 5]
xor ebp, ebp
fmul dword [esp + 0x14]
cmp al, cl
fmul dword [esp + 0x20]
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
fstp dword [esp + 0x194]
fld dword [esp + 0x28]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x20]
fmul dword [esp + 0x1c]
fstp dword [esp + 0x198]
fld dword [esp + 0x3c]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x20]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x18]
fstp dword [esp + 0x19c]
fld dword [esp + 0x38]
fmul st(1)
fmul dword [esp + 0x14]
fmul dword [esp + 0x20]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
fstp dword [esp + 0x1a0]
fmul dword [esp + 0x14]
fmul dword [esp + 0x20]
fmul dword [esp + 0x1c]
fmul dword [esp + 0x10]
fmul dword [esp + 0x18]
fstp dword [esp + 0x1a4]
jbe 0x4c2b61
mov dword [esp + 0x48], edi
mov ecx, dword [esi + 0xfc]
lea edx, [esp + 0xa8]
fld dword [0x512a50]
sub ecx, edx
lea eax, [esp + 0xa8]
mov edx, 0x40
mov edi, dword [ecx + eax]
add eax, 4
dec edx
fld dword [ebx + edi*4]
fmul dword [eax - 4]
faddp st(1)
jne 0x4c2b25
fstp dword [esp + 0x40]
mov eax, dword [esp + 0x40]
push eax
call fcn.004c1510
mov eax, dword [esp + 0x4c]
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 + 0x48], eax
jl 0x4c2b04
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x198
ret 4