Function at 0x1600ce984
Capabilities:
Copy file
Delete file

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rbx, rcx
lea rsi, [rcx + 0x60]
mov r14, qword [rcx + 0x48]
mov edi, dword [rcx + 0x50]
sub edi, r14d
lea ebp, [rdi + 1]
cmp ebp, dword [rsi + 0x10]
jbe 0x1600ce9e9
mov rcx, qword [rsi]
test rcx, rcx
je 0x1600ce9cd
call fcn.160031c48
and qword [rsi], 0
mov ecx, ebp
mov rax, qword [0x1601c0fd0]
call qword [case.0x16003fc5a.0]
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov dword [rsi + 0x10], ebp
mov byte [rax], 0
mov r8, rdi
mov rdx, r14
mov rcx, qword [rsi]
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsi]
add rcx, rdi
mov qword [rsi + 8], rcx
mov byte [rcx], 0
lea r8, [0x1601fbcc8]
mov edx, 1
mov rcx, rsi
call fcn.1600ce4bc
mov r8, qword [rbx + 0x30]
mov edx, dword [rbx + 0x38]
sub edx, r8d
mov rcx, rsi
call fcn.1600ce4bc
lea r8, str..xml
mov edx, 4
mov rcx, rsi
call fcn.1600ce4bc
lea rax, [0x1601bf168]
mov qword [rsp + 0x28], rax
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x28]
mov rcx, rbx
call fcn.1600ce520
nop
mov rcx, qword [rsp + 0x30]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1600cea73
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov rcx, qword [rbx + 0xc0]
test rcx, rcx
je 0x1600cea91
mov eax, dword [rbx + 0xcc]
test eax, eax
je 0x1600cea91
mov edx, eax
call qword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_FlushViewOfFile]
xor r8d, r8d
mov rdx, qword [rbx + 0x78]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_CopyFileA]
mov eax, dword [rbx + 0xac]
or rbp, 0xffffffffffffffff
cmp eax, dword [rbx + 0xa8]
jne 0x1600ceb7d
test eax, eax
jne 0x1600ceac0
xor r14d, r14d
jmp 0x1600ceaea
mov ecx, dword [rbx + 0xb0]
dec eax
mov dword [rbx + 0xac], eax
lea eax, [rcx + 1]
xor edx, edx
div dword [rbx + 0xa8]
mov dword [rbx + 0xb0], edx
imul r14, rcx, 0x53
add r14, qword [rbx + 0xb8]
mov r12, qword [rbx + 0x48]
mov edi, dword [rbx + 0x50]
sub edi, r12d
lea r15d, [rdi + 1]
cmp r15d, dword [rsi + 0x10]
jbe 0x1600ceb2d
mov rcx, qword [rsi]
test rcx, rcx
je 0x1600ceb0f
call fcn.160031c48
and qword [rsi], 0
mov ecx, r15d
mov rax, qword [0x1601c0fd0]
call qword [case.0x16003fc5a.0]
mov qword [rsi], rax
mov qword [rsi + 8], rax
mov dword [rsi + 0x10], r15d
mov byte [rax], 0
mov r8, rdi
mov rdx, r12
mov rcx, qword [rsi]
call sub.msvcrt.dll_memcpy
mov rcx, qword [rsi]
add rcx, rdi
mov qword [rsi + 8], rcx
mov byte [rcx], 0
lea r8, [0x1601fbcc8]
mov edx, 1
mov rcx, rsi
call fcn.1600ce4bc
mov rdx, rbp
inc rdx
cmp byte [r14 + rdx], 0
jne 0x1600ceb5f
mov r8, r14
mov rcx, rsi
call fcn.1600ce4bc
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileA]
mov rdx, qword [rbx + 0x90]
mov eax, dword [rbx + 0xa8]
cmp dword [rbx + 0xac], eax
je 0x1600cebec
mov eax, dword [rbx + 0xb4]
imul rcx, rax, 0x53
mov rax, qword [rbx + 0xb8]
mov byte [rcx + rax], 0
inc rbp
cmp byte [rdx + rbp], 0
jne 0x1600ceba7
inc ebp
cmp ebp, 0x52
ja 0x1600cebd0
mov r8d, ebp
mov eax, dword [rbx + 0xb4]
imul rcx, rax, 0x53
add rcx, qword [rbx + 0xb8]
call sub.msvcrt.dll_memcpy
inc dword [rbx + 0xac]
mov eax, dword [rbx + 0xb4]
inc eax
xor edx, edx
div dword [rbx + 0xa8]
mov dword [rbx + 0xb4], edx
mov rdx, qword [rbx + 0xc0]
lea rdi, [rdx + 0x10]
lea rax, [rdx + 0x80000]
cmp rax, rdi
sbb rcx, rcx
not rcx
and ecx, 0x1fffc
jbe 0x1600cec16
mov eax, 0x200020
rep stosd dword [rdi], eax
movups xmm0, xmmword [str._r_n__LOG_]
movdqu xmmword [rdx + 0x7fff0], xmm0
mov dword [rbx + 0xc8], reloc.OLEAUT32.dll_SafeArrayGetDim
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret