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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd8
mov dword [esp + 0x74], ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
push dword [ebp + 0x18]
mov edx, dword [ecx + 0x2ac]
add edx, 4
push edx
mov eax, dword [edx]
call dword [eax + 0x18]
push 8
pop ecx
lea esi, [ebp + 0x20]
mov dword [esp + 0x34], eax
lea edi, [esp + 0x48]
xorps xmm0, xmm0
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x14]
xorps xmm1, xmm1
mov edi, dword [ebp + 0x10]
add edi, 0x14
movsd qword [esp + 0x98], xmm0
movsd qword [esp + 0x90], xmm1
mov ecx, dword [esi + 0x48]
dec ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x3c], ecx
cmp dword [ebp + 0x40], ecx
jne 0x514093
mov ecx, esi
call fcn.0050f6f5
push dword [ebp + 0x18]
imul ecx, eax, 0x78
mov eax, dword [edi]
mov edi, dword [ebp + 0xc]
movsd xmm0, qword [ecx + eax + 0x48]
mov ecx, dword [edi + 0x2ac]
add ecx, 4
movsd qword [esp + 0x6c], xmm0
push ecx
mov eax, dword [ecx]
call dword [eax + 0x54]
push eax
lea ecx, [edi + 0x244]
call fcn.004ea479
mov edi, dword [esp + 0x18]
xorps xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mulsd xmm1, qword [esp + 0x68]
movsd qword [esp + 0x90], xmm1
jmp 0x514097
mov dword [esp + 0x18], edi
mov ecx, dword [esi + 0x38]
mov eax, dword [ebp + 0x44]
and dword [esp + 0x78], 0
comisd xmm1, xmm0
movsd xmm2, qword [ecx + eax*8]
subsd xmm2, qword [ebp + 0x48]
movsd qword [esp + 0x80], xmm2
jbe 0x5141b1
cmp byte [ebp + 0x54], 0
movd xmm0, dword [ebp + 0x1c]
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm2
movsd qword [esp + 0x48], xmm0
addsd xmm0, xmm1
movsd qword [esp + 0x58], xmm0
je 0x5140e7
mov eax, dword [ebp + 0x50]
jmp 0x5140fa
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x18]
movzx eax, byte [ecx + eax]
imul ecx, eax, 0x78
mov eax, dword [edi]
mov eax, dword [ecx + eax + 0x5c]
mov ecx, dword [ebp + 8]
lea esi, [esp + 0x48]
mov ecx, dword [ecx]
push ecx
mov edx, dword [ecx + 0x48]
mov ecx, esp
sub esp, 0x20
mov dword [ecx], eax
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
mov ecx, edi
call edx
mov esi, dword [ebp + 0x10]
cmp byte [esi + 0x78], 0
je 0x5141b7
cmp dword [esi + 0x7c], 0
jne 0x5141b7
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x18]
mov ecx, dword [esi + 0x2ac]
lea edi, [esi + 0x244]
add ecx, 4
mov dword [esp + 0x14], edi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x54]
push eax
mov ecx, edi
call fcn.004ea479
mov edx, dword [esi + 0x2ac]
mov edi, eax
push dword [ebp + 0x18]
add edx, 4
push edx
mov ecx, dword [edx]
call dword [ecx + 0x54]
mov ecx, dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 0x18]
xor eax, eax
test edi, edi
mov edx, dword [ecx + 0x2ac]
cmovs edi, eax
add edx, 4
push edx
mov ecx, dword [edx]
call dword [ecx + 0x54]
push edi
push esi
xor esi, esi
lea ecx, [esp + 0xa8]
push esi
push eax
call fcn.004e9889
mov edi, dword [esp + 0x10]
mov ecx, edi
mov dword [esp + 0x14], esi
call fcn.004e9b20
test eax, eax
jne 0x514223
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
xor eax, eax
mov dword [esp + 0x1c], eax
cmp byte [esi + 0x78], al
je 0x5141da
mov ecx, dword [esp + 0x3c]
cmp dword [ebp + 0x40], ecx
jne 0x5141da
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
call fcn.004ea8f4
mov dword [esp + 0x1c], eax
push eax
push esi
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push eax
call fcn.0051ae76
mov eax, dword [esp + 0x4c]
add esp, 0x10
mov esi, dword [esp + 0x20]
cmp dword [ebp + 0x40], eax
jne 0x5146f6
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0x1c]
mov dword [esp + 0xc], edx
cmp edx, dword [eax + 0x18]
jge 0x5146f6
mov ecx, dword [ebp + 0xc]
lea edi, [ecx + 0x10]
mov dword [esp + 0x30], edi
jmp 0x51436c
mov edi, dword [esp + 0x10]
push esi
mov ecx, edi
call fcn.004e9faa
sub esp, 0x10
lea esi, [esp + 0xb0]
mov edi, esp
lea ecx, [esp + 0x78]
push ecx
movsd dword es:[edi], dword [esi]
mov ecx, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004e9c69
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x6c]
call fcn.004d5fa8
test al, al
jne 0x514347
mov esi, dword [ebp + 0x14]
mov ecx, esi
call fcn.0050f6f5
movd xmm2, dword [ebp + 0x1c]
mov edx, dword [esp + 0x68]
sub edx, dword [esp + 0x34]
mov esi, dword [esi + 0x38]
movd xmm0, dword [esp + 0x6c]
cvtdq2pd xmm2, xmm2
imul ecx, eax, 0x78
mov eax, dword [esp + 0x18]
movaps xmm1, xmm2
addsd xmm1, qword [esi + edx*8]
mov edx, dword [esp + 0x70]
sub edx, dword [esp + 0x34]
mov eax, dword [eax]
cvtdq2pd xmm0, xmm0
subsd xmm1, qword [ebp + 0x48]
mulsd xmm0, qword [ecx + eax + 0x48]
addsd xmm2, qword [esi + edx*8]
addsd xmm1, xmm0
movd xmm0, dword [esp + 0x74]
cvtdq2pd xmm0, xmm0
subsd xmm2, qword [ebp + 0x48]
mulsd xmm0, qword [ecx + eax + 0x48]
movsd qword [esp + 0x48], xmm1
addsd xmm2, xmm0
movsd xmm0, qword [ebp + 0x20]
comisd xmm1, xmm0
movsd qword [esp + 0x58], xmm2
ja 0x5142e8
movsd qword [esp + 0x48], xmm0
movsd xmm0, qword [ebp + 0x30]
comisd xmm0, xmm2
ja 0x5142f9
movsd qword [esp + 0x58], xmm0
mov ecx, dword [ebp + 8]
push dword [esp + 0x14]
mov eax, dword [ecx]
mov ecx, dword [esp + 0x14]
mov eax, dword [eax + 0x48]
mov dword [esp + 0x34], eax
call fcn.004e9fbf
push eax
push dword [ebp + 0x10]
lea eax, [esp + 0x2c]
push dword [ebp + 0xc]
push eax
call fcn.0051ae76
add esp, 0x10
lea esi, [esp + 0x48]
mov eax, dword [eax]
or eax, 0xff000000
push eax
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
mov ecx, edi
call dword [esp + 0x54]
jmp 0x51434a
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc esi
mov dword [esp + 0x14], esi
call fcn.004e9b20
cmp esi, eax
jb 0x51421f
jmp 0x5141b4
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax + 0x34]
push dword [esp + 0x1c]
push dword [ebp + 0x10]
movzx edi, byte [edx + eax]
lea eax, [esp + 0x70]
push ecx
push eax
mov dword [esp + 0x50], edi
call fcn.0051aef0
add esp, 0x10
cmp byte [esp + 0x6c], 0
je 0x514399
mov edi, dword [esp + 0x68]
jmp 0x5143a6
mov ecx, dword [esp + 0x18]
imul eax, edi, 0x78
mov edi, dword [ecx]
mov edi, dword [eax + edi + 0x58]
and dword [esp + 0x38], 0
mov dword [esp + 0x2c], edi
mov edi, dword [ebp + 0x14]
mov dword [esp + 0x34], 1
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0x30]
sub eax, dword [esp + 0xc]
add ecx, dword [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x38]
call fcn.0051014e
mov ecx, eax
test ecx, ecx
je 0x5143e2
mov edx, dword [edi + 0x18]
sub edx, dword [esp + 0xc]
jmp 0x5143fe
mov eax, dword [edi + 0x30]
add eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
push 1
push eax
call fcn.0051014e
xor edx, edx
mov ecx, eax
inc edx
test ecx, ecx
je 0x51442c
cmp dword [ecx + 0x14], 0x10
mov dword [esp + 0x10], ecx
jb 0x51440e
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x14], eax
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x34], eax
shr eax, 4
test al, 1
je 0x51448d
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x2c], eax
jmp 0x51448d
mov eax, dword [edi + 0x30]
mov ecx, dword [esp + 0xc]
mov al, byte [ecx + eax]
mov byte [esp + 0x8c], al
cmp al, 0x80
jae 0x514460
push dword [esp + 0x8c]
call fcn.0050f6a8
pop ecx
mov ecx, eax
mov dword [esp + 0x10], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x514457
jmp 0x514484
movzx eax, al
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0050f91a
pop ecx
lea eax, [esp + 0x3c]
pop ecx
mov ecx, eax
mov dword [esp + 0x10], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51447d
sub ecx, edx
xor edx, edx
inc edx
mov dword [esp + 0x14], ecx
movd xmm0, dword [ebp + 0x1c]
mov eax, dword [edi + 0x38]
mov ecx, dword [esp + 0xc]
add edx, ecx
cvtdq2pd xmm0, xmm0
push ecx
mov dword [esp + 0x28], edx
push dword [esp + 0x44]
movaps xmm1, xmm0
addsd xmm0, qword [eax + edx*8]
addsd xmm1, qword [eax + ecx*8]
push 0
push dword [esp + 0x28]
lea eax, [esp + 0x38]
subsd xmm0, qword [ebp + 0x48]
subsd xmm1, qword [ebp + 0x48]
push dword [ebp + 0x54]
push dword [ebp + 0x50]
addsd xmm0, qword [esp + 0xa8]
addsd xmm1, qword [esp + 0xa8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
movsd qword [esp + 0x7c], xmm0
subsd xmm0, xmm1
push eax
movsd qword [esp + 0x70], xmm1
addsd xmm0, qword [esp + 0xc0]
movsd qword [esp + 0xc0], xmm0
call fcn.0051b0ed
add esp, 0x28
cmp dword [esp + 0x1c], 0
je 0x51456b
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2ac]
call fcn.004dfd49
dec eax
cmp dword [ebp + 0x18], eax
jge 0x51456b
mov edx, dword [ebp + 8]
lea ecx, [edi + 0x7c]
cmp dword [ecx], 0
mov dword [esp + 0xc], ecx
mov eax, dword [edx]
mov eax, dword [eax + 0x48]
jne 0x51454c
or esi, 0xff000000
push esi
jmp 0x514550
push dword [esp + 0x28]
sub esp, 0x20
lea esi, [esp + 0x6c]
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
call eax
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0xc]
jmp 0x51459b
push dword [esp + 0x28]
mov ecx, dword [ebp + 8]
lea esi, [esp + 0x4c]
sub esp, 0x20
mov eax, dword [ecx]
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov ecx, esi
call dword [eax + 0x48]
cmp dword [esp + 0x1c], 0
mov ecx, dword [ebp + 0x10]
lea edi, [ecx + 0x7c]
mov dword [esp + 0xc], edi
je 0x514618
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2ac]
call fcn.004dfd49
dec eax
cmp dword [ebp + 0x18], eax
jge 0x514618
cmp dword [edi], 1
mov eax, dword [esp + 0x28]
mov byte [esp + 0xb], 1
jne 0x514621
mov eax, dword [esi]
lea esi, [esp + 0x48]
push ecx
mov ecx, esp
sub esp, 0x20
mov edx, dword [eax + 0x48]
mov eax, dword [esp + 0x44]
mov dword [ecx], eax
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov ecx, esi
call edx
mov eax, dword [esp + 0x20]
mov ecx, eax
sar ecx, 0x18
movzx ecx, cl
push ecx
push ecx
movd xmm0, ecx
lea ecx, [esp + 0x30]
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x56dd04]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00504659
mov eax, dword [eax]
jmp 0x514621
mov eax, dword [esp + 0x28]
mov byte [esp + 0xb], 0
test byte [esp + 0x34], 1
je 0x514663
mov ecx, dword [esp + 0x7c]
lea esi, [esp + 0x48]
cmp dword [ecx + 0x1c], 0
sete cl
movzx ecx, cl
push ecx
push dword [esp + 0x30]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [ebp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
push edi
call fcn.00517d06
add esp, 0x3c
jmp 0x5146ab
push dword [esp + 0x2c]
mov eax, dword [ebp + 0x10]
push dword [esp + 0x18]
movsd xmm0, qword [esp + 0x58]
push dword [esp + 0x18]
addsd xmm0, qword [eax + 0x50]
mov eax, dword [esp + 0x24]
mov edx, dword [esi]
lea esi, [esp + 0x54]
push ecx
push ecx
mov eax, dword [eax]
movsd qword [esp], xmm0
push dword [eax + 0x1150]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
mov ecx, edi
call dword [edx + 0x88]
cmp byte [esp + 0xb], 0
je 0x5146de
mov eax, dword [esp + 0xc]
cmp dword [eax], 2
jne 0x5146de
mov eax, dword [edi]
lea esi, [esp + 0x48]
push ecx
mov ecx, esp
sub esp, 0x20
mov edx, dword [eax + 0x48]
mov eax, dword [esp + 0x44]
mov dword [ecx], eax
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
mov ecx, edi
call edx
mov eax, dword [ebp + 0x14]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov dword [esp + 0xc], edx
cmp edx, dword [eax + 0x18]
jl 0x514369
cmp dword [esp + 0x1c], 0
movd xmm0, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x10]
cvtdq2pd xmm0, xmm0
addsd xmm0, qword [esp + 0x80]
addsd xmm0, qword [esp + 0x90]
movsd qword [esp + 0x68], xmm0
addsd xmm0, qword [esp + 0x98]
movsd qword [esp + 0x48], xmm0
addsd xmm0, qword [eax + 0x60]
movsd qword [esp + 0x80], xmm0
movsd qword [esp + 0x58], xmm0
je 0x514785
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2ac]
call fcn.004dfd49
dec eax
cmp dword [ebp + 0x18], eax
jge 0x514785
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x7c], 0
jne 0x514785
mov eax, dword [edi]
or esi, 0xff000000
push esi
sub esp, 0x20
lea esi, [esp + 0x6c]
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov ecx, esi
call dword [eax + 0x48]
jmp 0x514857
cmp byte [ebp + 0x54], 0
je 0x514790
push dword [ebp + 0x50]
jmp 0x5147f8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2ac]
call fcn.004dfd49
lea edx, [eax - 1]
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x34]
mov eax, dword [eax + 0x18]
mov al, byte [ecx + eax]
movzx eax, al
cmp dword [ebp + 0x18], edx
jge 0x5147dc
mov edx, dword [edi]
lea esi, [esp + 0x48]
imul ecx, eax, 0x78
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
push dword [ecx + eax + 0x5c]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov ecx, esi
call dword [edx + 0x48]
jmp 0x514810
mov ecx, dword [esp + 0x18]
imul edx, eax, 0x78
mov ecx, dword [ecx]
cmp byte [edx + ecx + 0x60], 0
je 0x5147f2
push dword [edx + ecx + 0x5c]
jmp 0x5147f8
push dword [ecx + 0xf5c]
mov eax, dword [edi]
lea esi, [esp + 0x4c]
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov ecx, esi
call dword [eax + 0x48]
cmp dword [esp + 0x1c], 0
je 0x514857
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2ac]
call fcn.004dfd49
mov edi, dword [ebp + 0x10]
dec eax
cmp dword [ebp + 0x18], eax
jge 0x51485a
cmp dword [edi + 0x7c], 0
je 0x51485a
mov eax, dword [esi]
lea esi, [esp + 0x48]
push ecx
mov ecx, esp
sub esp, 0x20
mov edx, dword [eax + 0x48]
mov eax, dword [esp + 0x44]
mov dword [ecx], eax
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov ecx, esi
call edx
mov edi, dword [ebp + 0x10]
movsd xmm0, qword [esp + 0x80]
movsd xmm1, qword [ebp + 0x20]
comisd xmm1, xmm0
movsd qword [esp + 0x48], xmm0
jbe 0x51487a
movsd qword [esp + 0x48], xmm1
cmp dword [edi + 0x120], 0
movsd xmm0, qword [ebp + 0x30]
movsd qword [esp + 0x80], xmm0
movsd qword [esp + 0x58], xmm0
je 0x5148bb
push dword [ebp + 0x18]
lea eax, [esp + 0xa4]
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2ac]
call fcn.004ddbb3
mov byte [esp + 0xb], 1
cmp dword [eax + 4], 0
jne 0x5148c0
mov byte [esp + 0xb], 0
mov eax, dword [ebp + 0x40]
cmp eax, dword [esp + 0x3c]
jne 0x5148e1
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
call fcn.004ea895
test eax, eax
jne 0x514909
cmp byte [esp + 0xb], al
jne 0x514909
mov eax, dword [ebp + 0x40]
push eax
sub esp, 0x20
lea esi, [esp + 0x6c]
push 8
pop ecx
mov edi, esp
push dword [ebp + 0x18]
rep movsd dword es:[edi], dword [esi]
push dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push esi
call fcn.0051878d
add esp, 0x38
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x40]
inc ecx
cmp ecx, dword [eax + 0x48]
jge 0x514a9c
test byte [edi + 0x178], 1
je 0x514936
push ecx
mov ecx, eax
call fcn.0050fafc
test eax, eax
setne al
mov byte [esp + 0x78], al
mov eax, dword [ebp + 0x14]
movzx eax, byte [eax + 0x29]
mov ecx, edi
push eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 0x220]
push eax
call fcn.004d67ab
test al, al
je 0x5149db
mov eax, dword [esi]
mov ecx, edi
push 0x32
mov eax, dword [eax + 0x48]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x48]
push eax
call fcn.004d662b
mov ecx, edi
mov dword [esp + 0x24], eax
call fcn.004d6735
push ecx
push ecx
lea esi, [ebp + 0x20]
movd xmm0, eax
lea eax, [esp + 0xc8]
cvtdq2pd xmm0, xmm0
movsd qword [esp], xmm0
push 3
sub esp, 0x20
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.00504939
push 8
pop ecx
mov esi, eax
lea edi, [esp + 0xd0]
mov eax, dword [esp + 0x54]
add esp, 0x2c
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
lea esi, [esp + 0xa4]
mov eax, esp
or ecx, 0xff000000
sub esp, 0x20
mov dword [eax], ecx
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
call dword [esp + 0x64]
cmp byte [esp + 0x78], 0
je 0x514a9c
mov eax, dword [ebp + 0x10]
lea esi, [esp + 0x48]
movsd xmm1, qword [esp + 0x80]
lea edi, [esp + 0xa0]
push 8
pop ecx
test byte [eax + 0x17c], 1
movsd xmm0, qword [eax + 0x60]
rep movsd dword es:[edi], dword [esi]
subsd xmm1, xmm0
je 0x514a20
minsd xmm1, qword [esp + 0x68]
addsd xmm0, xmm1
jmp 0x514a25
movsd xmm0, qword [ebp + 0x30]
mov ecx, dword [esp + 0x7c]
movsd qword [esp + 0xa0], xmm1
movsd qword [esp + 0xb0], xmm0
mov ecx, dword [ecx + 0x60]
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x514a71
lea edx, [esp + 0x44]
mov ecx, eax
push edx
call fcn.004d7113
lea esi, [esp + 0xa0]
push dword [eax]
push 1
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
call fcn.00510fe4
jmp 0x514a99
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
call fcn.004d7113
lea esi, [esp + 0xa0]
push dword [eax]
push 1
sub esp, 0x20
push 8
pop ecx
mov edi, esp
push dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
call dword [esp + 0x50]
add esp, 0x2c
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x50