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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffda8
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
inc dword [0x5071c4]
mov eax, dword [esp + 8]
add eax, 0x10
push eax
mov eax, dword [esp + 0xc]
add eax, 0x20
push eax
mov eax, dword [esp + 0x10]
add eax, 0x50
push eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [0x5071fc]
call fcn.004c0910
mov eax, dword [0x5071fc]
add eax, 8
mov dword [esp + 0x18], eax
lea edx, [esp + 0x148]
mov eax, dword [0x5071fc]
call fcn.004c0d98
fld qword [esp + 0x148]
fmul qword [esp + 0x148]
fld qword [esp + 0x150]
fmul qword [esp + 0x150]
faddp st(1)
fstp qword [esp + 0x58]
wait
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x24], eax
xor eax, eax
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 0x14
jge 0x4c1d51
mov eax, dword [0x5071fc]
mov eax, dword [eax + 0xc8]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x10]
dec ebp
test ebp, ebp
jl 0x4c17dd
inc ebp
mov dword [esp + 0xc], 0
lea ebx, [esp + 0x110]
lea esi, [esp + 0x11c]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
shl eax, 6
add edi, eax
mov dword [esp + 0x4c], edi
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x38]
mov dword [ebx], eax
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x3c]
mov dword [esi], eax
inc dword [esp + 0xc]
add esi, 4
add ebx, 4
dec ebp
jne 0x4c17ad
mov eax, dword [0x5071fc]
mov eax, dword [eax + 0xc8]
sub eax, 2
je 0x4c17f2
dec eax
je 0x4c17fe
jmp 0x4c1808
mov eax, dword [0x5071fc]
call fcn.004c10b4
jmp 0x4c1808
mov eax, dword [0x5071fc]
call fcn.004c11d0
mov eax, dword [0x5071fc]
cmp dword [eax + 0xc8], 3
je 0x4c1d51
lea edx, [esp + 0x158]
mov eax, dword [0x5071fc]
call fcn.004c0d98
fld qword [esp + 0x158]
fmul qword [esp + 0x158]
fld qword [esp + 0x160]
fmul qword [esp + 0x160]
faddp st(1)
fstp qword [esp + 0x60]
wait
mov eax, dword [esp + 0x60]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x2c], eax
fld qword [esp + 0x28]
fcomp qword [esp + 0x20]
wait
fnstsw ax
sahf
mov eax, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], eax
lea edx, [esp + 0x128]
mov eax, dword [0x5071fc]
call fcn.004c0c84
fld qword [esp + 0x128]
fmul qword [esp + 0x128]
fld qword [esp + 0x130]
fmul qword [esp + 0x130]
faddp st(1)
fstp qword [esp + 0x68]
wait
fld xword [0x4c2124]
fcomp qword [esp + 0x68]
wait
fnstsw ax
sahf
ja 0x4c1d51
mov edi, dword [esp + 0x18]
mov eax, dword [0x5071fc]
mov eax, dword [eax + 0xc8]
shl eax, 6
add edi, eax
mov dword [esp + 0x50], edi
fld qword [esp + 0x128]
fchs
fstp qword [esp + 0x168]
wait
fld qword [esp + 0x130]
fchs
fstp qword [esp + 0x170]
wait
mov eax, dword [esp + 8]
add eax, 0x30
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x74], eax
fld qword [esp + 0x168]
mov eax, dword [esp + 0x74]
fmul qword [eax]
fld qword [esp + 0x170]
mov eax, dword [esp + 0x74]
fmul qword [eax + 8]
faddp st(1)
fstp qword [esp + 0x78]
wait
mov eax, dword [esp + 0x78]
mov dword [esp + 0x178], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x17c], eax
mov eax, dword [esp + 0x70]
add eax, 0x10
mov dword [esp + 0x80], eax
fld qword [esp + 0x168]
mov eax, dword [esp + 0x80]
fmul qword [eax]
fld qword [esp + 0x170]
mov eax, dword [esp + 0x80]
fmul qword [eax + 8]
faddp st(1)
fstp qword [esp + 0x88]
wait
mov eax, dword [esp + 0x88]
mov dword [esp + 0x180], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x184], eax
lea edx, [esp + 0x178]
mov eax, dword [esp + 8]
call fcn.004bef70
mov edx, dword [esp + 0x50]
mov dword [edx + 0x38], eax
mov eax, dword [esp + 8]
add eax, 0x60
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x94], eax
fld qword [esp + 0x128]
mov eax, dword [esp + 0x94]
fmul qword [eax]
fld qword [esp + 0x130]
mov eax, dword [esp + 0x94]
fmul qword [eax + 8]
faddp st(1)
fstp qword [esp + 0x98]
wait
mov eax, dword [esp + 0x98]
mov dword [esp + 0x188], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x18c], eax
mov eax, dword [esp + 0x90]
add eax, 0x10
mov dword [esp + 0xa0], eax
fld qword [esp + 0x128]
mov eax, dword [esp + 0xa0]
fmul qword [eax]
fld qword [esp + 0x130]
mov eax, dword [esp + 0xa0]
fmul qword [eax + 8]
faddp st(1)
fstp qword [esp + 0xa8]
wait
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x190], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x194], eax
lea edx, [esp + 0x188]
mov eax, dword [esp + 8]
add eax, 0x10
call fcn.004bef70
mov edx, dword [esp + 0x50]
mov dword [edx + 0x3c], eax
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x10]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x38]
shl eax, 4
add dword [esp + 0x44], eax
mov eax, dword [esp + 0x50]
mov eax, dword [eax + 0x3c]
shl eax, 4
add dword [esp + 0x48], eax
mov eax, dword [esp + 8]
add eax, 0x20
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xb0]
add eax, 0x10
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xb8]
fld qword [eax]
mov eax, dword [esp + 0xb4]
fmul qword [eax]
mov eax, dword [esp + 0xb8]
fld qword [eax + 0x10]
mov eax, dword [esp + 0xb4]
fmul qword [eax + 8]
faddp st(1)
fstp qword [esp + 0x1b8]
wait
mov eax, dword [esp + 0xb8]
fld qword [eax + 8]
mov eax, dword [esp + 0xb4]
fmul qword [eax]
mov eax, dword [esp + 0xb8]
fld qword [eax + 0x18]
mov eax, dword [esp + 0xb4]
fmul qword [eax + 8]
faddp st(1)
fstp qword [esp + 0x1c0]
wait
push edi
lea esi, [esp + 0x1bc]
lea edi, [esp + 0x1ac]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
mov eax, dword [esp + 0xb0]
fld qword [eax]
fadd qword [esp + 0x1a8]
fstp qword [esp + 0x198]
wait
mov eax, dword [esp + 0xb0]
fld qword [eax + 8]
fadd qword [esp + 0x1b0]
fstp qword [esp + 0x1a0]
wait
mov eax, dword [esp + 0x50]
push edi
mov edi, eax
lea esi, [esp + 0x19c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
mov eax, dword [esp + 8]
add eax, 0x50
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xbc]
add eax, 0x10
mov dword [esp + 0xc4], eax
mov eax, dword [esp + 0xc4]
fld qword [eax]
mov eax, dword [esp + 0xc0]
fmul qword [eax]
mov eax, dword [esp + 0xc4]
fld qword [eax + 0x10]
mov eax, dword [esp + 0xc0]
fmul qword [eax + 8]
faddp st(1)
fstp qword [esp + 0x1e8]
wait
mov eax, dword [esp + 0xc4]
fld qword [eax + 8]
mov eax, dword [esp + 0xc0]
fmul qword [eax]
mov eax, dword [esp + 0xc4]
fld qword [eax + 0x18]
mov eax, dword [esp + 0xc0]
fmul qword [eax + 8]
faddp st(1)
fstp qword [esp + 0x1f0]
wait
push edi
lea esi, [esp + 0x1ec]
lea edi, [esp + 0x1dc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
mov eax, dword [esp + 0xbc]
fld qword [eax]
fadd qword [esp + 0x1d8]
fstp qword [esp + 0x1c8]
wait
mov eax, dword [esp + 0xbc]
fld qword [eax + 8]
fadd qword [esp + 0x1e0]
fstp qword [esp + 0x1d0]
wait
mov eax, dword [esp + 0x50]
push edi
lea edi, [eax + 0x10]
lea esi, [esp + 0x1cc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
mov eax, dword [esp + 0x50]
add eax, 0x10
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xcc], eax
mov eax, dword [esp + 0xc8]
fld qword [eax]
mov eax, dword [esp + 0xcc]
fsub qword [eax]
fstp qword [esp + 0x1f8]
wait
mov eax, dword [esp + 0xc8]
fld qword [eax + 8]
mov eax, dword [esp + 0xcc]
fsub qword [eax + 8]
fstp qword [esp + 0x200]
wait
mov eax, dword [esp + 0x50]
push edi
lea edi, [eax + 0x20]
lea esi, [esp + 0x1fc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
inc dword [esp + 0x14]
inc dword [0x5071c8]
mov byte [esp + 0x40], 0
mov ebp, dword [esp + 0x10]
dec ebp
test ebp, ebp
jl 0x4c1d34
inc ebp
mov dword [esp + 0xc], 0
lea esi, [esp + 0x110]
lea ebx, [esp + 0x11c]
mov eax, dword [edi + 0x38]
cmp eax, dword [esi]
jne 0x4c1d27
mov eax, dword [edi + 0x3c]
cmp eax, dword [ebx]
jne 0x4c1d27
mov byte [esp + 0x40], 1
jmp 0x4c1d34
inc dword [esp + 0xc]
add ebx, 4
add esi, 4
dec ebp
jne 0x4c1d12
cmp byte [esp + 0x40], 0
jne 0x4c1d51
mov eax, dword [0x5071fc]
inc dword [eax + 0xc8]
cmp dword [esp + 0x14], 0x14
jl 0x4c177e
mov edx, dword [esp + 0x14]
mov eax, dword [0x5071cc]
call fcn.004bd1e8
mov dword [0x5071cc], eax
mov ecx, dword [esp]
add ecx, 0x10
mov edx, dword [esp]
mov eax, dword [0x5071fc]
call fcn.004c0e30
mov eax, dword [esp]
mov dword [esp + 0xd0], eax
mov eax, dword [esp]
add eax, 0x10
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xd0]
fld qword [eax]
mov eax, dword [esp + 0xd4]
fsub qword [eax]
fstp qword [esp + 0x208]
wait
mov eax, dword [esp + 0xd0]
fld qword [eax + 8]
mov eax, dword [esp + 0xd4]
fsub qword [eax + 8]
fstp qword [esp + 0x210]
wait
fld qword [esp + 0x208]
fmul qword [esp + 0x208]
fld qword [esp + 0x210]
fmul qword [esp + 0x210]
faddp st(1)
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.00403384
fstp qword [esp + 0xe0]
wait
mov eax, dword [esp + 0xe0]
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xe4]
mov dword [esp + 0xdc], eax
mov eax, dword [esp]
mov edx, dword [esp + 0xd8]
mov dword [eax + 0x20], edx
mov edx, dword [esp + 0xdc]
mov dword [eax + 0x24], edx
mov eax, dword [esp]
mov edx, dword [esp + 0x14]
mov dword [eax + 0x28], edx
mov edx, dword [esp + 4]
mov eax, dword [0x5071fc]
call fcn.004c0c30
mov eax, dword [esp + 8]
cmp byte [eax + 0x80], 0
je 0x4c2118
mov eax, dword [esp + 8]
mov edx, dword [eax + 8]
mov dword [esp + 0x30], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x34], edx
mov eax, dword [esp + 8]
mov edx, dword [eax + 0x18]
mov dword [esp + 0x38], edx
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x3c], edx
fld qword [esp + 0x30]
fadd qword [esp + 0x38]
mov eax, dword [esp]
fcomp qword [eax + 0x20]
wait
fnstsw ax
sahf
jae 0x4c2095
fld xword [0x4c2130]
mov eax, dword [esp]
fcomp qword [eax + 0x20]
wait
fnstsw ax
sahf
jae 0x4c2095
fld qword [esp + 0x30]
fadd qword [esp + 0x38]
mov eax, dword [esp]
fsubr qword [eax + 0x20]
mov eax, dword [esp]
fstp qword [eax + 0x20]
wait
mov eax, dword [esp]
add eax, 0x10
mov dword [esp + 0xe8], eax
mov eax, dword [esp]
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0xe8]
fld qword [eax]
mov eax, dword [esp + 0xec]
fsub qword [eax]
fstp qword [esp + 0x218]
wait
mov eax, dword [esp + 0xe8]
fld qword [eax + 8]
mov eax, dword [esp + 0xec]
fsub qword [eax + 8]
fstp qword [esp + 0x220]
wait
lea esi, [esp + 0x218]
lea edi, [esp + 0x138]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
fld qword [esp + 0x138]
fmul qword [esp + 0x138]
fld qword [esp + 0x140]
fmul qword [esp + 0x140]
faddp st(1)
add esp, 0xfffffff4
fstp xword [esp]
wait
call fcn.00403384
fstp qword [esp + 0xf8]
wait
mov eax, dword [esp + 0xf8]
mov dword [esp + 0xf0], eax
mov eax, dword [esp + 0xfc]
mov dword [esp + 0xf4], eax
fld xword [0x4c2130]
fcomp qword [esp + 0xf0]
wait
fnstsw ax
sahf
jbe 0x4c1f8b
xor eax, eax
mov dword [esp + 0xf0], eax
mov dword [esp + 0xf4], eax
jmp 0x4c1fc1
fld qword [esp + 0x138]
fld qword [esp + 0xf0]
call fcn.00403928
fstp qword [esp + 0x138]
wait
fld qword [esp + 0x140]
fld qword [esp + 0xf0]
call fcn.00403928
fstp qword [esp + 0x140]
wait
fld qword [esp + 0x138]
fmul qword [esp + 0x30]
fstp qword [esp + 0x228]
wait
fld qword [esp + 0x140]
fmul qword [esp + 0x30]
fstp qword [esp + 0x230]
wait
mov eax, dword [esp]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
fld qword [eax]
fadd qword [esp + 0x228]
mov eax, dword [esp + 0x100]
fstp qword [eax]
wait
mov eax, dword [esp + 0x100]
fld qword [eax + 8]
fadd qword [esp + 0x230]
mov eax, dword [esp + 0x100]
fstp qword [eax + 8]
wait
fld qword [esp + 0x138]
fmul qword [esp + 0x38]
fstp qword [esp + 0x238]
wait
fld qword [esp + 0x140]
fmul qword [esp + 0x38]
fstp qword [esp + 0x240]
wait
mov eax, dword [esp]
add eax, 0x10
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x104]
fld qword [eax]
fsub qword [esp + 0x238]
mov eax, dword [esp + 0x104]
fstp qword [eax]
wait
mov eax, dword [esp + 0x104]
fld qword [eax + 8]
fsub qword [esp + 0x240]
mov eax, dword [esp + 0x104]
fstp qword [eax + 8]
wait
jmp 0x4c2118
mov eax, dword [esp]
mov dword [esp + 0x108], eax
mov eax, dword [esp]
add eax, 0x10
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x108]
fld qword [eax]
mov eax, dword [esp + 0x10c]
fadd qword [eax]
fmul dword [0x4c213c]
fstp qword [esp + 0x248]
wait
mov eax, dword [esp + 0x108]
fld qword [eax + 8]
mov eax, dword [esp + 0x10c]
fadd qword [eax + 8]
fmul dword [0x4c213c]
fstp qword [esp + 0x250]
wait
mov eax, dword [esp]
mov edi, eax
lea esi, [esp + 0x248]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [esp]
mov edx, dword [esp]
mov esi, eax
lea edi, [edx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [esp]
xor edx, edx
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], edx
add esp, 0x258
pop ebp
pop edi
pop esi
pop ebx
ret