Function at 0x14006dfd0
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 [0x1401e8718], 1
mov rdi, rcx
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
jne 0x14006e315
cmp byte [0x1401e8fdd], al
je 0x14006e315
cmp word [0x1401e8fee], 0xa
jb 0x14006e315
cmp dword [0x1401a03e4], eax
je 0x14006e315
cmp dword [0x1401a0414], eax
je 0x14006e315
lea rax, [0x1401e83a0]
mov qword [rsp + 0x2f0], rsi
lea r9, str._sSecureBootUpdatesSKUSiPolicy.p7b
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea r8, [rbx - 1]
lea rcx, [rsp + 0x80]
call fcn.140004960
lea r9, str._sEFIMicrosoftBootSKUSiPolicy.p7b
mov byte [rsp + 0x183], bl
mov edx, 0x104
mov qword [rsp + 0x20], rdi
lea r8, [rbx - 1]
lea rcx, [rsp + 0x190]
call fcn.140004960
lea rcx, [rsp + 0x190]
mov byte [rsp + 0x293], bl
call fcn.14006c740
lea rdx, [rsp + 0x40]
mov rcx, rax
mov rdi, rax
call fcn.1401077e4
mov esi, eax
test rdi, rdi
je 0x14006e0d9
mov rcx, rdi
call fcn.1400e9080
test esi, esi
je 0x14006e30b
lea rcx, [rsp + 0x80]
call fcn.14006c740
lea rdx, [rsp + 0x40]
mov rcx, rax
mov rdi, rax
call fcn.1401077e4
mov esi, eax
test rdi, rdi
je 0x14006e10d
mov rcx, rdi
call fcn.1400e9080
test esi, esi
jne 0x14006e30b
cmp dword [0x14019f510], ebx
lea rdi, [0x140166080]
mov rcx, qword [rsp + 0x58]
lea rax, [0x14015644e]
cmove rdi, rax
mov qword [rsp + 0x2e8], rbp
movaps xmmword [rsp + 0x2b0], xmm8
xorps xmm8, xmm8
test rcx, rcx
js 0x14006e153
cvtsi2sd xmm8, rcx
jmp 0x14006e169
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
cvtsi2sd xmm8, rax
addsd xmm8, xmm8
mov rsi, qword [0x14019f4e0]
movsd xmm1, qword [0x140176f70]
movsd xmm0, qword [0x140176ef8]
comisd xmm1, xmm8
ja 0x14006e193
inc ebx
mulsd xmm8, xmm0
cmp ebx, 5
jl 0x14006e180
test ebx, ebx
jne 0x14006e1d5
mov rax, qword [rsi + 0xa0]
lea edx, [rbx + 0x20]
mov qword [rsp + 0x38], rax
lea r9, str._s_d_s__s
cvttsd2si ecx, xmm8
mov qword [rsp + 0x30], rdi
lea r8, [rdx - 0x21]
mov dword [rsp + 0x28], ecx
lea rcx, [0x1401e2e80]
mov qword [rsp + 0x20], rdi
call fcn.140004960
jmp 0x14006e25a
movaps xmmword [rsp + 0x2c0], xmm7
movaps xmm0, xmm8
movaps xmm7, xmm8
movsxd rbx, ebx
mulsd xmm7, qword [0x140176f50]
call fcn.140135fe0
mulsd xmm0, qword [0x140176f50]
lea rax, str._s_0.0f_s__s
mov edx, 0x20
lea r9, str._s_0.1f_s__s
lea rcx, [0x1401e2e80]
subsd xmm7, xmm0
movsd xmm0, qword [0x140176f20]
lea r8, [rdx - 0x21]
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.140004960
movaps xmm7, xmmword [rsp + 0x2c0]
lea r9, [rsp + 0x80]
mov byte [0x1401e2e9f], 0
lea r8, [0x1401e2e80]
lea rdx, [rsp + 0x190]
lea rcx, str.Copying:__s___s___from__s_
call fcn.14004f910
lea rcx, [rsp + 0x80]
call fcn.14006c740
lea rcx, [rsp + 0x190]
mov rsi, rax
call fcn.14006c740
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 0x14006e2d6
mov rcx, rsi
call fcn.1400e9080
test rdi, rdi
je 0x14006e2e3
mov rcx, rdi
call fcn.1400e9080
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rsp + 0x2e8]
test ebx, ebx
jne 0x14006e30b
call fcn.140050120
mov rdx, rax
lea rcx, str.__Error_writing_file:__s
call fcn.14004f910
mov rsi, qword [rsp + 0x2f0]
mov eax, ebx
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1400b1f80
mov rbx, qword [rsp + 0x2f8]
add rsp, 0x2d0
pop rdi
ret