Function at 0x14006d4a0
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x2d0
mov rax, qword [0x140193440]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
xorps xmm0, xmm0
xor eax, eax
xor ebx, ebx
mov qword [rsp + 0x70], rax
cmp dword [0x1401e8698], 1
mov rdi, rcx
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
jne 0x14006d7f3
cmp byte [0x1401e8f5d], al
je 0x14006d7f3
cmp word [0x1401e8f6e], 0xa
jb 0x14006d7f3
cmp dword [0x1401a0464], eax
je 0x14006d7f3
cmp dword [0x1401a0494], eax
je 0x14006d7f3
lea rax, [0x1401e8320]
mov qword [rsp + 0x2f0], rsi
lea r9, str._sSecureBootUpdatesSKUSiPolicy.p7b
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rsp + 0x80]
mov r8, 0xffffffffffffffff
call fcn.140004fd0
lea r9, str._sEFIMicrosoftBootSKUSiPolicy.p7b
mov byte [rsp + 0x183], bl
mov edx, 0x104
mov qword [rsp + 0x20], rdi
mov r8, 0xffffffffffffffff
lea rcx, [rsp + 0x190]
call fcn.140004fd0
lea rcx, [rsp + 0x190]
mov byte [rsp + 0x293], bl
call fcn.14006bbf0
lea rdx, [rsp + 0x40]
mov rcx, rax
mov rdi, rax
call fcn.1401073d4
mov esi, eax
test rdi, rdi
je 0x14006d5af
mov rcx, rdi
call fcn.1400e8c70
test esi, esi
je 0x14006d7e9
lea rcx, [rsp + 0x80]
call fcn.14006bbf0
lea rdx, [rsp + 0x40]
mov rcx, rax
mov rdi, rax
call fcn.1401073d4
mov esi, eax
test rdi, rdi
je 0x14006d5e3
mov rcx, rdi
call fcn.1400e8c70
test esi, esi
jne 0x14006d7e9
cmp dword [0x14019f590], ebx
lea rdi, [0x140166140]
mov rcx, qword [rsp + 0x58]
lea rax, [0x1401564ce]
cmove rdi, rax
mov qword [rsp + 0x2e8], rbp
movaps xmmword [rsp + 0x2b0], xmm8
xorps xmm8, xmm8
test rcx, rcx
js 0x14006d629
cvtsi2sd xmm8, rcx
jmp 0x14006d63f
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm8, rax
addsd xmm8, xmm8
mov rsi, qword [0x14019f560]
movsd xmm1, qword [0x140176fe0]
movsd xmm0, qword [0x140176f68]
comisd xmm1, xmm8
ja 0x14006d669
inc ebx
mulsd xmm8, xmm0
cmp ebx, 5
jl 0x14006d656
test ebx, ebx
jne 0x14006d6b0
mov rax, qword [rsi + 0xa0]
lea r9, str._s_d_s__s
mov qword [rsp + 0x38], rax
mov edx, 0x20
cvttsd2si ecx, xmm8
mov qword [rsp + 0x30], rdi
mov r8, 0xffffffffffffffff
mov dword [rsp + 0x28], ecx
lea rcx, [0x1401e2e30]
mov qword [rsp + 0x20], rdi
call fcn.140004fd0
jmp 0x14006d738
movaps xmmword [rsp + 0x2c0], xmm7
movaps xmm0, xmm8
movaps xmm7, xmm8
movsxd rbx, ebx
mulsd xmm7, qword [0x140176fc0]
call fcn.140135bc0
mulsd xmm0, qword [0x140176fc0]
lea rax, str._s_0.0f_s__s
lea r9, str._s_0.1f_s__s
mov edx, 0x20
mov r8, 0xffffffffffffffff
lea rcx, [0x1401e2e30]
subsd xmm7, xmm0
movsd xmm0, qword [0x140176f90]
comisd xmm0, xmm7
cmova r9, rax
mov rax, qword [rsi + rbx*8 + 0xa0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
movsd qword [rsp + 0x28], xmm8
mov qword [rsp + 0x20], rdi
call fcn.140004fd0
movaps xmm7, xmmword [rsp + 0x2c0]
lea r9, [rsp + 0x80]
mov byte [0x1401e2e4f], 0
lea r8, [0x1401e2e30]
lea rdx, [rsp + 0x190]
lea rcx, str.Copying:__s___s___from__s_
call fcn.14004f2f0
lea rcx, [rsp + 0x80]
call fcn.14006bbf0
lea rcx, [rsp + 0x190]
mov rsi, rax
call fcn.14006bbf0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
movaps xmm8, xmmword [rsp + 0x2b0]
mov ebp, eax
test rsi, rsi
je 0x14006d7b4
mov rcx, rsi
call fcn.1400e8c70
test rdi, rdi
je 0x14006d7c1
mov rcx, rdi
call fcn.1400e8c70
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x2e8]
test ebx, ebx
jne 0x14006d7e9
call fcn.14004fba0
mov rdx, rax
lea rcx, str.__Error_writing_file:__s
call fcn.14004f2f0
mov rsi, qword [rsp + 0x2f0]
mov eax, ebx
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1400b2a30
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2d0
pop rdi
ret