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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x575ac6
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push esi
push edi
mov eax, dword [0x59ad00]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
shr ecx, 2
and cl, 1
mov byte [esp + 0x18], cl
cmp edi, 2
je 0x4c4bc2
cmp ebx, 0x32
jg 0x4c4bc2
xorps xmm0, xmm0
mov esi, 1
cmp ebx, esi
jle 0x4c46b1
mov edi, 0x10
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
add eax, edi
movsd qword [esp + 0x4c], xmm0
movsd qword [esp + 0x44], xmm0
movsd xmm0, qword [eax]
subsd xmm0, qword [eax - 0x10]
movsd qword [esp + 0x44], xmm0
movsd xmm0, qword [eax + 8]
subsd xmm0, qword [eax - 8]
lea ecx, [esp + 0x44]
movsd qword [esp + 0x4c], xmm0
call fcn.00472ec0
fld qword [0x57e370]
fcompi st(1)
fstp st(0)
ja 0x4c47c4
xorps xmm0, xmm0
inc esi
add edi, 0x10
cmp esi, ebx
jl 0x4c4658
mov edi, dword [ebp + 0xc]
cmp byte [esp + 0x18], 0
je 0x4c470a
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ecx]
movsd qword [esp + 0x5c], xmm0
movsd qword [esp + 0x54], xmm0
movsd xmm0, qword [eax]
mov edx, ebx
add edx, edx
subsd xmm0, qword [eax + edx*8 - 0x10]
lea ecx, [eax + edx*8 - 0x10]
movsd qword [esp + 0x54], xmm0
movsd xmm0, qword [eax + 8]
subsd xmm0, qword [ecx + 8]
lea ecx, [esp + 0x54]
movsd qword [esp + 0x5c], xmm0
call fcn.00472ec0
fld qword [0x57e370]
fcompi st(1)
fstp st(0)
ja 0x4c47c4
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov esi, dword [ebp + 0x14]
shr ecx, 3
and cl, 1
cmp byte [ebp + 0x24], 0
mov byte [esp + 0x34], cl
push 0xa0
je 0x4c476a
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x80], 0
test eax, eax
je 0x4c4760
mov edx, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
push edx
mov edx, dword [esp + 0x1c]
push ecx
push edx
push edi
push ebx
mov ecx, eax
call fcn.0048a1e0
mov ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x4c47ab
xor eax, eax
mov ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x4c47ab
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x2c], eax
mov dword [esp + 0x80], 1
test eax, eax
je 0x4c47a3
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x1c]
push esi
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x24]
push ecx
push edx
push edi
push ebx
mov ecx, eax
call fcn.0048a4b0
jmp 0x4c47a5
xor eax, eax
mov ecx, eax
mov dword [esp + 0x20], eax
cmp byte [ecx + 4], 0
mov dword [esp + 0x80], 0xffffffff
jne 0x4c47db
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
xor al, al
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [ecx + 0x4c]
cmp dword [ecx + 0x74], eax
jl 0x4c47ee
mov edx, dword [ecx + 0x6c]
movsd xmm2, qword [edx + eax*8 - 8]
jmp 0x4c47f1
xorps xmm2, xmm2
add eax, dword [ecx + 0x48]
movsd qword [esp + 0x2c], xmm2
cmp dword [ecx + 0x74], eax
jl 0x4c4822
mov edx, dword [ecx + 0x50]
shr edx, 2
test dl, 1
je 0x4c4815
mov ecx, dword [ecx + 0x6c]
movsd xmm1, qword [ecx + eax*8 - 8]
jmp 0x4c482a
mov edx, dword [ecx + 0x6c]
mov eax, dword [ecx + 0x48]
movsd xmm1, qword [edx + eax*8]
jmp 0x4c482a
movsd xmm1, qword [0x57b708]
cmp byte [ebp + 0x24], 0
movapd xmm0, xmm1
subsd xmm0, xmm2
movsd qword [esp + 0x3c], xmm1
movsd qword [esp + 0x34], xmm0
je 0x4c48d9
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.00485e90
add edi, ebx
cmp dword [esi + 8], edi
jge 0x4c4865
push edi
mov ecx, esi
call fcn.00401a80
movsd xmm0, qword [esp + 0x34]
movsd xmm1, qword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
xor eax, eax
test edi, edi
jle 0x4c489b
jmp 0x4c4880
mov ecx, dword [edx + 0x6c]
lea ecx, [ecx + eax*8]
movapd xmm2, xmm0
mulsd xmm2, qword [ecx]
inc eax
addsd xmm2, xmm1
movsd qword [ecx], xmm2
cmp eax, edi
jl 0x4c4880
mov ecx, dword [edx + 0x6c]
movsd qword [edx + 0x10], xmm1
movsd xmm1, qword [esp + 0x3c]
lea eax, [edi*8]
push eax
movsd qword [edx + 0x18], xmm1
movsd qword [edx + 0x20], xmm0
mov edx, dword [esi]
push ecx
push edx
call sub.MSVCR100.dll_memcpy
movsd xmm0, qword [esp + 0x40]
movsd xmm1, qword [esp + 0x48]
movsd xmm2, qword [esp + 0x38]
add esp, 0xc
cmp byte [esp + 0x18], 0
mov edi, dword [ebp + 0x18]
jne 0x4c48ff
mov eax, dword [edi]
movsd qword [eax], xmm2
mov ecx, dword [edi]
lea edx, [ebx - 1]
movsd qword [ecx + ebx*8 - 8], xmm1
mov eax, 1
mov dword [esp + 0x28], edx
jmp 0x4c4907
xor eax, eax
mov edx, ebx
mov dword [esp + 0x28], ebx
xorps xmm1, xmm1
movsd qword [esp + 0x6c], xmm1
movsd qword [esp + 0x64], xmm1
lea ecx, [ebx - 1]
xorps xmm1, xmm1
cvtsi2sd xmm1, ecx
mov ecx, eax
divsd xmm0, xmm1
mov byte [esp + 0x17], 1
mov byte [esp + 0x2c], 0
movsd qword [esp + 0x44], xmm0
mov dword [esp + 0x34], ecx
cmp eax, edx
jge 0x4c49f0
mov ebx, dword [esp + 0x20]
shl eax, 4
mov dword [esp + 0x24], eax
lea ecx, [ecx]
mov edx, dword [ebp + 0x1c]
mov eax, dword [edx]
add eax, dword [esp + 0x24]
lea edx, [ecx*8]
mov ecx, dword [edi]
add ecx, edx
mov edx, dword [ebx]
mov ebx, dword [esp + 0x2c]
mov edx, dword [edx + 0x54]
push ebx
mov ebx, dword [esp + 0x24]
push eax
lea eax, [esp + 0x6c]
push eax
push ecx
mov ecx, ebx
call edx
mov byte [esp + 0x17], al
test al, al
je 0x4c49ed
mov ecx, dword [esp + 0x34]
test ecx, ecx
jle 0x4c499f
mov eax, dword [edi]
movsd xmm0, qword [eax + ecx*8 - 8]
comisd xmm0, xmmword [eax + ecx*8]
lea eax, [eax + ecx*8]
ja 0x4c49e8
mov edx, dword [esp + 0x28]
lea eax, [edx - 1]
cmp ecx, eax
jge 0x4c49d4
mov eax, dword [edi]
movsd xmm0, qword [eax + ecx*8]
addsd xmm0, qword [esp + 0x44]
movsd xmm1, qword [esp + 0x3c]
comisd xmm1, xmm0
lea eax, [eax + ecx*8]
mov byte [esp + 0x2c], 1
ja 0x4c49cf
movapd xmm0, xmm1
movsd qword [eax + 8], xmm0
add dword [esp + 0x24], 0x10
inc ecx
mov dword [esp + 0x34], ecx
cmp ecx, edx
jl 0x4c4950
jmp 0x4c49ed
mov byte [esp + 0x17], 0
mov ebx, dword [ebp + 8]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
cmp byte [esp + 0x17], 0
jne 0x4c4d9a
mov edx, dword [ebp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
xorps xmm0, xmm0
push edx
mov edx, dword [ebp + 0xc]
push edi
push eax
push edx
movsd qword [ecx + 0x10], xmm0
movsd xmm0, qword [0x57b708]
push ebx
movsd qword [ecx + 0x18], xmm0
movsd qword [ecx + 0x20], xmm0
call fcn.004c4320
test al, al
je 0x4c47c4
cmp byte [ebp + 0x24], 0
je 0x4c4d9a
cmp byte [esp + 0x18], 0
jne 0x4c4d9a
mov eax, dword [ebp + 0x10]
and dword [eax], 0xfffffff7
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
xor eax, eax
cmp ecx, 4
jl 0x4c4a99
lea esp, [esp]
mov edx, dword [esi]
movsd qword [edx + eax*8], xmm0
mov edx, dword [esi]
movsd qword [edx + eax*8 + 8], xmm0
mov edx, dword [esi]
movsd qword [edx + eax*8 + 0x10], xmm0
mov edx, dword [esi]
movsd qword [edx + eax*8 + 0x18], xmm0
add eax, 4
lea edx, [ecx - 3]
cmp eax, edx
jl 0x4c4a70
cmp eax, ecx
jge 0x4c4aac
lea ecx, [ecx]
mov edx, dword [esi]
movsd qword [edx + eax*8], xmm0
inc eax
cmp eax, ecx
jl 0x4c4aa0
cmp ecx, ebx
jge 0x4c4b9a
mov eax, ecx
lea edx, [eax - 1]
xorps xmm1, xmm1
cvtsi2sd xmm1, edx
mov edx, 1
sub edx, eax
mov dword [esp + 0x24], edx
jmp 0x4c4ad4
mov edx, dword [esp + 0x24]
mov eax, dword [esi]
movsd qword [eax + ecx*8], xmm0
lea eax, [edx + ecx]
mov dword [esp + 0x34], eax
cmp eax, ecx
jge 0x4c4b7f
mov edx, ecx
sub edx, eax
cmp edx, 4
jl 0x4c4b5e
mov edx, dword [esi]
mov ebx, dword [edi]
movsd xmm2, qword [ebx + eax*8]
addsd xmm2, qword [edx + ecx*8]
movsd qword [edx + ecx*8], xmm2
mov ebx, dword [edi]
movsd xmm2, qword [ebx + eax*8 + 8]
lea edx, [edx + ecx*8]
mov edx, dword [esi]
addsd xmm2, qword [edx + ecx*8]
movsd qword [edx + ecx*8], xmm2
mov ebx, dword [edi]
movsd xmm2, qword [ebx + eax*8 + 0x10]
lea edx, [edx + ecx*8]
mov edx, dword [esi]
addsd xmm2, qword [edx + ecx*8]
lea edx, [edx + ecx*8]
movsd qword [edx], xmm2
mov edx, dword [esi]
mov ebx, dword [edi]
movsd xmm2, qword [ebx + eax*8 + 0x18]
addsd xmm2, qword [edx + ecx*8]
mov ebx, dword [esp + 0x34]
lea edx, [edx + ecx*8]
movsd qword [edx], xmm2
mov edx, dword [ebp + 0xc]
add eax, 4
lea edx, [ebx + edx - 4]
cmp eax, edx
jl 0x4c4af3
cmp eax, ecx
jge 0x4c4b7c
mov ebx, dword [edi]
mov edx, dword [esi]
movsd xmm2, qword [ebx + eax*8]
addsd xmm2, qword [edx + ecx*8]
lea edx, [edx + ecx*8]
inc eax
movsd qword [edx], xmm2
cmp eax, ecx
jl 0x4c4b62
mov ebx, dword [ebp + 8]
mov eax, dword [esi]
movsd xmm2, qword [eax + ecx*8]
lea eax, [eax + ecx*8]
inc ecx
divsd xmm2, xmm1
movsd qword [eax], xmm2
cmp ecx, ebx
jl 0x4c4ad0
mov ecx, dword [ebp + 0xc]
add ecx, ebx
mov eax, ebx
cmp ebx, ecx
jge 0x4c4d9a
movsd xmm0, qword [0x57b708]
mov edx, dword [esi]
movsd qword [edx + eax*8], xmm0
inc eax
cmp eax, ecx
jl 0x4c4bb1
jmp 0x4c4d9a
mov eax, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x18]
mov ecx, dword [esp + 0x18]
push eax
push esi
push ecx
mov ecx, dword [esp + 0x28]
push edi
push ebx
call fcn.004c4320
test al, al
je 0x4c47c4
cmp byte [ebp + 0x24], 0
je 0x4c4d9a
cmp byte [esp + 0x18], 0
mov eax, dword [ebp + 0x10]
jne 0x4c4d5e
and dword [eax], 0xfffffff7
mov edx, dword [ebp + 0x14]
xorps xmm0, xmm0
xor eax, eax
cmp edi, 4
jl 0x4c4c39
lea ebx, [ebx]
mov ecx, dword [edx]
movsd qword [ecx + eax*8], xmm0
mov ecx, dword [edx]
movsd qword [ecx + eax*8 + 8], xmm0
mov ecx, dword [edx]
movsd qword [ecx + eax*8 + 0x10], xmm0
mov ecx, dword [edx]
movsd qword [ecx + eax*8 + 0x18], xmm0
add eax, 4
lea ecx, [edi - 3]
cmp eax, ecx
jl 0x4c4c10
cmp eax, edi
jge 0x4c4c4c
lea ecx, [ecx]
mov ecx, dword [edx]
movsd qword [ecx + eax*8], xmm0
inc eax
cmp eax, edi
jl 0x4c4c40
mov ecx, edi
cmp edi, ebx
jge 0x4c4d3a
mov eax, ecx
lea edi, [eax - 1]
xorps xmm1, xmm1
cvtsi2sd xmm1, edi
mov edi, 1
sub edi, eax
mov dword [esp + 0x24], edi
jmp 0x4c4c74
mov edi, dword [esp + 0x24]
mov eax, dword [edx]
movsd qword [eax + ecx*8], xmm0
lea eax, [edi + ecx]
mov dword [esp + 0x34], eax
cmp eax, ecx
jge 0x4c4d1f
mov edi, ecx
sub edi, eax
cmp edi, 4
jl 0x4c4cfe
mov edi, dword [edx]
mov ebx, dword [esi]
movsd xmm2, qword [ebx + eax*8]
addsd xmm2, qword [edi + ecx*8]
movsd qword [edi + ecx*8], xmm2
mov ebx, dword [esi]
movsd xmm2, qword [ebx + eax*8 + 8]
lea edi, [edi + ecx*8]
mov edi, dword [edx]
addsd xmm2, qword [edi + ecx*8]
movsd qword [edi + ecx*8], xmm2
mov ebx, dword [esi]
movsd xmm2, qword [ebx + eax*8 + 0x10]
lea edi, [edi + ecx*8]
mov edi, dword [edx]
addsd xmm2, qword [edi + ecx*8]
lea edi, [edi + ecx*8]
movsd qword [edi], xmm2
mov edi, dword [edx]
mov ebx, dword [esi]
movsd xmm2, qword [ebx + eax*8 + 0x18]
addsd xmm2, qword [edi + ecx*8]
mov ebx, dword [esp + 0x34]
lea edi, [edi + ecx*8]
movsd qword [edi], xmm2
mov edi, dword [ebp + 0xc]
add eax, 4
lea edi, [ebx + edi - 4]
cmp eax, edi
jl 0x4c4c93
cmp eax, ecx
jge 0x4c4d1c
mov ebx, dword [esi]
mov edi, dword [edx]
movsd xmm2, qword [ebx + eax*8]
addsd xmm2, qword [edi + ecx*8]
lea edi, [edi + ecx*8]
inc eax
movsd qword [edi], xmm2
cmp eax, ecx
jl 0x4c4d02
mov ebx, dword [ebp + 8]
mov eax, dword [edx]
movsd xmm2, qword [eax + ecx*8]
lea eax, [eax + ecx*8]
inc ecx
divsd xmm2, xmm1
movsd qword [eax], xmm2
cmp ecx, ebx
jl 0x4c4c70
mov ecx, dword [ebp + 0xc]
add ecx, ebx
mov eax, ebx
cmp ebx, ecx
jge 0x4c4d9a
movsd xmm0, qword [0x57b708]
lea ecx, [ecx]
mov esi, dword [edx]
movsd qword [esi + eax*8], xmm0
inc eax
cmp eax, ecx
jl 0x4c4d50
jmp 0x4c4d9a
or dword [eax], 8
lea ecx, [ebx + edi]
xor eax, eax
test ecx, ecx
jle 0x4c4d9a
mov esi, dword [ebp + 0x14]
mov edx, 1
xorps xmm0, xmm0
cvtsi2sd xmm0, ebx
sub edx, edi
jmp 0x4c4d80
lea edi, [edx + eax]
xorps xmm1, xmm1
cvtsi2sd xmm1, edi
mov edi, dword [esi]
divsd xmm1, xmm0
movsd qword [edi + eax*8], xmm1
inc eax
cmp eax, ecx
jl 0x4c4d80
mov al, 1
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20