Function at 0x5f6552
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 0x5f6614
mov ecx, esi
call fcn.005f1c76
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.005cca03
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 0x5f6618
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 0x5f6732
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 0x5f6668
mov eax, dword [ebp + 0x50]
jmp 0x5f667b
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 0x5f6738
cmp dword [esi + 0x7c], 0
jne 0x5f6738
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.005cca03
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.005cbe13
mov edi, dword [esp + 0x10]
mov ecx, edi
mov dword [esp + 0x14], esi
call fcn.005cc0aa
test eax, eax
jne 0x5f67a4
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
xor eax, eax
mov dword [esp + 0x1c], eax
cmp byte [esi + 0x78], al
je 0x5f675b
mov ecx, dword [esp + 0x3c]
cmp dword [ebp + 0x40], ecx
jne 0x5f675b
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
call fcn.005cce7e
mov dword [esp + 0x1c], eax
push eax
push esi
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push eax
call fcn.005fd3f7
mov eax, dword [esp + 0x4c]
add esp, 0x10
mov esi, dword [esp + 0x20]
cmp dword [ebp + 0x40], eax
jne 0x5f6c77
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0x1c]
mov dword [esp + 0xc], edx
cmp edx, dword [eax + 0x18]
jge 0x5f6c77
mov ecx, dword [ebp + 0xc]
lea edi, [ecx + 0x10]
mov dword [esp + 0x30], edi
jmp 0x5f68ed
mov edi, dword [esp + 0x10]
push esi
mov ecx, edi
call fcn.005cc534
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.005cc1f3
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x6c]
call fcn.005b8531
test al, al
jne 0x5f68c8
mov esi, dword [ebp + 0x14]
mov ecx, esi
call fcn.005f1c76
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 0x5f6869
movsd qword [esp + 0x48], xmm0
movsd xmm0, qword [ebp + 0x30]
comisd xmm0, xmm2
ja 0x5f687a
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.005cc549
push eax
push dword [ebp + 0x10]
lea eax, [esp + 0x2c]
push dword [ebp + 0xc]
push eax
call fcn.005fd3f7
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 0x5f68cb
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
inc esi
mov dword [esp + 0x14], esi
call fcn.005cc0aa
cmp esi, eax
jb 0x5f67a0
jmp 0x5f6735
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.005fd471
add esp, 0x10
cmp byte [esp + 0x6c], 0
je 0x5f691a
mov edi, dword [esp + 0x68]
jmp 0x5f6927
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.005f26cf
mov ecx, eax
test ecx, ecx
je 0x5f6963
mov edx, dword [edi + 0x18]
sub edx, dword [esp + 0xc]
jmp 0x5f697f
mov eax, dword [edi + 0x30]
add eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x30]
push 1
push eax
call fcn.005f26cf
xor edx, edx
mov ecx, eax
inc edx
test ecx, ecx
je 0x5f69ad
cmp dword [ecx + 0x14], 0x10
mov dword [esp + 0x10], ecx
jb 0x5f698f
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 0x5f6a0e
mov eax, dword [ecx + 0x1c]
mov dword [esp + 0x2c], eax
jmp 0x5f6a0e
mov eax, dword [edi + 0x30]
mov ecx, dword [esp + 0xc]
mov al, byte [ecx + eax]
mov byte [esp + 0x8c], al
cmp al, 0x80
jae 0x5f69e1
push dword [esp + 0x8c]
call fcn.005f1c29
pop ecx
mov ecx, eax
mov dword [esp + 0x10], eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5f69d8
jmp 0x5f6a05
movzx eax, al
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.005f1e9b
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 0x5f69fe
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.005fd66e
add esp, 0x28
cmp dword [esp + 0x1c], 0
je 0x5f6aec
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2ac]
call fcn.005c22d5
dec eax
cmp dword [ebp + 0x18], eax
jge 0x5f6aec
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 0x5f6acd
or esi, 0xff000000
push esi
jmp 0x5f6ad1
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 0x5f6b1c
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 0x5f6b99
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2ac]
call fcn.005c22d5
dec eax
cmp dword [ebp + 0x18], eax
jge 0x5f6b99
cmp dword [edi], 1
mov eax, dword [esp + 0x28]
mov byte [esp + 0xb], 1
jne 0x5f6ba2
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 [0x6b5810]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push eax
lea eax, [esp + 0x50]
push eax
call fcn.005e6bdd
mov eax, dword [eax]
jmp 0x5f6ba2
mov eax, dword [esp + 0x28]
mov byte [esp + 0xb], 0
test byte [esp + 0x34], 1
je 0x5f6be4
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.005fa287
add esp, 0x3c
jmp 0x5f6c2c
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 0x5f6c5f
mov eax, dword [esp + 0xc]
cmp dword [eax], 2
jne 0x5f6c5f
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 0x5f68ea
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 0x5f6d06
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2ac]
call fcn.005c22d5
dec eax
cmp dword [ebp + 0x18], eax
jge 0x5f6d06
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x7c], 0
jne 0x5f6d06
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 0x5f6dd8
cmp byte [ebp + 0x54], 0
je 0x5f6d11
push dword [ebp + 0x50]
jmp 0x5f6d79
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2ac]
call fcn.005c22d5
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 0x5f6d5d
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 0x5f6d91
mov ecx, dword [esp + 0x18]
imul edx, eax, 0x78
mov ecx, dword [ecx]
cmp byte [edx + ecx + 0x60], 0
je 0x5f6d73
push dword [edx + ecx + 0x5c]
jmp 0x5f6d79
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 0x5f6dd8
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2ac]
call fcn.005c22d5
mov edi, dword [ebp + 0x10]
dec eax
cmp dword [ebp + 0x18], eax
jge 0x5f6ddb
cmp dword [edi + 0x7c], 0
je 0x5f6ddb
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 0x5f6dfb
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 0x5f6e3c
push dword [ebp + 0x18]
lea eax, [esp + 0xa4]
push eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x2ac]
call fcn.005c013f
mov byte [esp + 0xb], 1
cmp dword [eax + 4], 0
jne 0x5f6e41
mov byte [esp + 0xb], 0
mov eax, dword [ebp + 0x40]
cmp eax, dword [esp + 0x3c]
jne 0x5f6e62
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
call fcn.005cce1f
test eax, eax
jne 0x5f6e8a
cmp byte [esp + 0xb], al
jne 0x5f6e8a
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.005fad0e
add esp, 0x38
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x40]
inc ecx
cmp ecx, dword [eax + 0x48]
jge 0x5f701d
test byte [edi + 0x178], 1
je 0x5f6eb7
push ecx
mov ecx, eax
call fcn.005f207d
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.005b8d34
test al, al
je 0x5f6f5c
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.005b8bb4
mov ecx, edi
mov dword [esp + 0x24], eax
call fcn.005b8cbe
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.005e6ebd
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 0x5f701d
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 0x5f6fa1
minsd xmm1, qword [esp + 0x68]
addsd xmm0, xmm1
jmp 0x5f6fa6
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 0x5f6ff2
lea edx, [esp + 0x44]
mov ecx, eax
push edx
call fcn.005b969c
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.005f3565
jmp 0x5f701a
lea ecx, [esp + 0x44]
push ecx
mov ecx, eax
call fcn.005b969c
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