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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18c
mov eax, dword [0x59ad00]
xor eax, esp
mov dword [esp + 0x188], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp + 0x10]
push esi
mov dword [esp + 0xa4], ecx
push edi
mov edi, dword [ebp + 0x14]
lea ecx, [esp + 0x170]
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x44], eax
mov dword [esp + 0xac], edx
xor esi, esi
call fcn.004811b0
xorps xmm0, xmm0
mov eax, dword [esp + 0x40]
movsd qword [esp + 0xd0], xmm0
movsd qword [esp + 0xc8], xmm0
movsd qword [esp + 0x18], xmm0
movsd qword [esp + 0x10], xmm0
movsd qword [esp + 0x90], xmm0
movsd qword [esp + 0x88], xmm0
movsd qword [esp + 0x38], xmm0
movsd qword [esp + 0x30], xmm0
movsd qword [esp + 0x80], xmm0
movsd qword [esp + 0x78], xmm0
movsd qword [esp + 0x118], xmm0
movsd qword [esp + 0x110], xmm0
movsd qword [esp + 0x138], xmm0
movsd qword [esp + 0x130], xmm0
movsd qword [esp + 0xe0], xmm0
movsd qword [esp + 0xd8], xmm0
movsd qword [esp + 0xf8], xmm0
movsd qword [esp + 0xf0], xmm0
movsd qword [esp + 0x50], xmm0
movsd qword [esp + 0x48], xmm0
movsd qword [esp + 0x60], xmm0
movsd qword [esp + 0x58], xmm0
movsd qword [esp + 0x70], xmm0
movsd qword [esp + 0x68], xmm0
movsd xmm0, qword [ebp + 0x1c]
movsd qword [esp + 0x28], xmm0
movsd xmm0, qword [ebp + 0x24]
movsd qword [esp + 0x20], xmm0
movsd xmm0, qword [0x57e350]
movsd qword [ebx], xmm0
movsd xmm1, qword [0x57e3a0]
movsd qword [esp + 0xc0], xmm0
movsd xmm0, qword [eax]
comisd xmm1, xmm0
movsd qword [esp + 0xe8], xmm1
jbe 0x4c51b4
movsd qword [esp + 0xe8], xmm0
mov edx, dword [edi]
mov edx, dword [edx + 0x60]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x114]
push ecx
lea eax, [esp + 0x90]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, edi
call edx
mov ecx, dword [esp + 0xac]
lea edx, [esp + 0x20]
push edx
lea edx, [esp + 0x134]
push edx
lea edx, [esp + 0x80]
mov bl, al
mov eax, dword [ecx]
mov eax, dword [eax + 0x60]
push edx
lea edx, [esp + 0x3c]
push edx
call eax
test bl, bl
je 0x4c5207
mov bl, al
test esi, esi
jne 0x4c5259
movq xmm0, qword [esp + 0x10]
movsd qword [esp + 0x58], xmm0
movq xmm0, qword [esp + 0x18]
movsd qword [esp + 0x60], xmm0
movq xmm0, qword [esp + 0x30]
movsd qword [esp + 0x68], xmm0
movq xmm0, qword [esp + 0x38]
movsd qword [esp + 0x70], xmm0
movsd xmm0, qword [esp + 0x28]
movsd qword [esp + 0xb0], xmm0
movsd xmm0, qword [esp + 0x20]
movsd qword [esp + 0xa0], xmm0
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x8c]
call fcn.00472e60
fabs
fst qword [esp + 0x108]
fld qword [0x57b958]
movsd xmm4, qword [esp + 0x108]
fxch st(1)
fcompi st(1)
fstp st(0)
jbe 0x4c564e
test esi, esi
je 0x4c53b0
movsd xmm0, qword [esp + 0xc0]
movsd xmm1, qword [esp + 0x10]
movsd xmm2, qword [esp + 0x38]
movsd xmm3, qword [esp + 0x30]
comisd xmm0, xmm4
movsd xmm0, qword [esp + 0x18]
jbe 0x4c530c
movdqa xmm5, xmm1
movsd qword [esp + 0x58], xmm5
movdqa xmm5, xmm0
movsd qword [esp + 0x60], xmm5
movdqa xmm5, xmm3
movsd qword [esp + 0x68], xmm5
movdqa xmm5, xmm2
movsd qword [esp + 0x70], xmm5
movsd xmm5, qword [esp + 0x28]
movsd qword [esp + 0xb0], xmm5
movsd xmm5, qword [esp + 0x20]
movsd qword [esp + 0xa0], xmm5
movsd qword [esp + 0xc0], xmm4
subsd xmm3, qword [esp + 0xf0]
subsd xmm2, qword [esp + 0xf8]
subsd xmm1, qword [esp + 0xd8]
subsd xmm0, qword [esp + 0xe0]
lea ecx, [esp + 0x150]
movsd qword [esp + 0x140], xmm3
movsd qword [esp + 0x148], xmm2
movsd qword [esp + 0x150], xmm1
movsd qword [esp + 0x158], xmm0
call fcn.00472ec0
fstp qword [esp + 0x100]
lea ecx, [esp + 0x140]
call fcn.00472ec0
fst qword [esp + 0xb8]
fld qword [esp + 0x100]
fcompi st(1)
fstp st(0)
jbe 0x4c5392
movsd xmm0, qword [esp + 0x100]
jmp 0x4c539b
movsd xmm0, qword [esp + 0xb8]
movsd xmm1, qword [esp + 0xe8]
comisd xmm1, xmm0
ja 0x4c566a
jmp 0x4c5407
movq xmm0, qword [esp + 0x10]
movsd qword [esp + 0x58], xmm0
movq xmm0, qword [esp + 0x18]
movsd qword [esp + 0x60], xmm0
movq xmm0, qword [esp + 0x30]
movsd qword [esp + 0x68], xmm0
movq xmm0, qword [esp + 0x38]
movsd qword [esp + 0x70], xmm0
movsd xmm0, qword [esp + 0x28]
movsd qword [esp + 0xb0], xmm0
movsd xmm0, qword [esp + 0x20]
movsd qword [esp + 0xa0], xmm0
movsd qword [esp + 0xc0], xmm4
mov edx, dword [esp + 0x40]
add edx, 0x20
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x168]
push ecx
lea ecx, [esp + 0x3c]
call fcn.004734b0
movsd xmm0, qword [esp + 0x10]
movsd xmm1, qword [esp + 0x18]
subsd xmm0, qword [esp + 0x160]
subsd xmm1, qword [esp + 0x168]
lea ecx, [esp + 0x48]
movq qword [esp + 0x48], xmm0
movq qword [esp + 0x50], xmm1
call fcn.00472ec0
fld qword [0x57e370]
fcompi st(1)
fstp st(0)
jbe 0x4c54d0
lea edx, [esp + 0x120]
push edx
lea ecx, [esp + 0x8c]
call fcn.00473260
lea ecx, [esp + 0x120]
call fcn.004733c0
fstp st(0)
movsd xmm0, qword [esp + 0x120]
movapd xmm1, xmm0
addsd xmm1, qword [esp + 0x10]
addsd xmm0, qword [esp + 0x48]
movsd qword [esp + 0x10], xmm1
movsd xmm1, qword [esp + 0x128]
movapd xmm2, xmm1
addsd xmm2, qword [esp + 0x18]
addsd xmm1, qword [esp + 0x50]
movsd qword [esp + 0x18], xmm2
movsd qword [esp + 0x48], xmm0
movsd qword [esp + 0x50], xmm1
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x8c]
call fcn.00472e60
fstp qword [esp + 0xd0]
movsd xmm0, qword [esp + 0x80]
movsd xmm1, qword [esp + 0x78]
movsd xmm2, qword [esp + 0x50]
movsd xmm3, qword [esp + 0x48]
mulsd xmm2, xmm0
mulsd xmm0, qword [esp + 0x90]
mulsd xmm3, xmm1
mulsd xmm1, qword [esp + 0x88]
lea ecx, [esp + 0x78]
push ecx
addsd xmm2, xmm3
addsd xmm0, xmm1
lea ecx, [esp + 0x114]
movsd qword [esp + 0xcc], xmm2
movsd qword [esp + 0x174], xmm0
call fcn.00472e60
fstp qword [esp + 0x178]
movsd xmm0, qword [esp + 0x80]
mulsd xmm0, xmm0
movsd qword [esp + 0xb8], xmm0
movsd xmm0, qword [esp + 0x78]
movsd xmm1, qword [esp + 0xb8]
mulsd xmm0, xmm0
addsd xmm1, xmm0
movsd xmm0, qword [0x57ca20]
lea edx, [esp + 0x130]
xorpd xmm1, xmm0
push edx
lea ecx, [esp + 0x8c]
movsd qword [esp + 0x184], xmm1
call fcn.00472e60
fstp qword [esp + 0x188]
lea ecx, [esp + 0x170]
call fcn.00481300
fabs
fld qword [0x57e390]
fcompi st(1)
fstp st(0)
ja 0x4c566a
lea eax, [esp + 0x170]
push eax
lea ecx, [esp + 0xcc]
call fcn.00473970
movsd xmm0, qword [esp + 0x28]
subsd xmm0, qword [esp + 0xc8]
movsd xmm4, qword [esp + 0x108]
movsd qword [esp + 0x28], xmm0
movsd xmm0, qword [esp + 0x20]
subsd xmm0, qword [esp + 0xd0]
movsd qword [esp + 0x20], xmm0
movq xmm0, qword [esp + 0x10]
movsd qword [esp + 0xd8], xmm0
movq xmm0, qword [esp + 0x18]
movsd qword [esp + 0xe0], xmm0
movq xmm0, qword [esp + 0x30]
movsd qword [esp + 0xf0], xmm0
movq xmm0, qword [esp + 0x38]
movsd qword [esp + 0xf8], xmm0
inc esi
test bl, bl
je 0x4c566a
cmp esi, 0x14
jge 0x4c566a
comisd xmm4, xmmword [0x57b958]
ja 0x4c51b4
cmp esi, 0x14
jl 0x4c56b8
movq xmm0, qword [esp + 0x58]
movq qword [esp + 0x10], xmm0
movq xmm0, qword [esp + 0x60]
movq qword [esp + 0x18], xmm0
movq xmm0, qword [esp + 0x68]
movq qword [esp + 0x30], xmm0
movq xmm0, qword [esp + 0x70]
movq qword [esp + 0x38], xmm0
movsd xmm0, qword [esp + 0xb0]
movsd qword [esp + 0x28], xmm0
movsd xmm0, qword [esp + 0xa0]
movsd qword [esp + 0x20], xmm0
mov esi, dword [esp + 0x40]
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.004c4ec0
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0xa8]
fstp qword [eax]
movsd xmm0, qword [esp + 0x28]
movsd qword [ecx], xmm0
movsd xmm0, qword [esp + 0x20]
movsd qword [ecx + 8], xmm0
movsd xmm0, qword [esi]
comisd xmm0, xmmword [eax]
mov eax, dword [esp + 0x44]
jbe 0x4c5738
movsd xmm0, qword [esp + 0x10]
movsd xmm1, qword [esp + 0x18]
movq qword [eax], xmm0
movq qword [eax + 0x10], xmm0
movq qword [eax + 8], xmm1
movq qword [eax + 0x18], xmm1
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x188]
xor ecx, esp
call fcn.00551a8e
mov esp, ebp
pop ebp
ret 0x24
movq xmm0, qword [esp + 0x10]
mov ecx, dword [esp + 0x194]
movq qword [eax], xmm0
movq xmm0, qword [esp + 0x18]
pop edi
movq qword [eax + 8], xmm0
movq xmm0, qword [esp + 0x2c]
movq qword [eax + 0x10], xmm0
movq xmm0, qword [esp + 0x34]
pop esi
pop ebx
movq qword [eax + 0x18], xmm0
xor ecx, esp
xor al, al
call fcn.00551a8e
mov esp, ebp
pop ebp
ret 0x24