Function at 0x140001ec8
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
mov rdi, rdx
mov r14, rcx
call fcn.140001de4
xor r12d, r12d
mov ebx, eax
test eax, eax
jns 0x140001f61
cmp dword [section..data], 2
jbe 0x140001f5a
mov r8d, 0x800
test qword [0x14000a010], r8
je 0x140001f5a
mov rax, qword [0x14000a018]
and rax, r8
cmp rax, qword [0x14000a018]
jne 0x140001f5a
mov dword [rbp + 0x58], 0x41
lea rdx, [0x140007d29]
lea rax, [0x1400075b8]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov dword [rbp + 0x50], ebx
call fcn.140001008
mov eax, ebx
jmp 0x1400020c8
mov r13d, 1
cmp ebx, r13d
jne 0x140001f74
mov eax, r13d
jmp 0x1400020c8
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l2_1_2.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400020c6
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x20
jne 0x140002196
or rcx, 0xffffffffffffffff
mov rbx, rcx
inc rbx
cmp word [rdi + rbx*2], r12w
jne 0x140001faf
add rbx, 6
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, qword gs:[0x60]
mov r8, rax
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r15, rax
test rax, rax
jne 0x140002064
cmp dword [section..data], 2
mov ebx, 0x8007000e
jbe 0x140001f5a
mov r8d, 0x800
test qword [0x14000a010], r8
je 0x140001f5a
mov rax, qword [0x14000a018]
and rax, r8
cmp rax, qword [0x14000a018]
jne 0x140001f5a
lea rcx, [rbp + 0x50]
mov dword [rbp + 0x58], 0x4e
mov qword [rsp + 0x30], rcx
lea rax, [0x1400075b8]
lea rcx, [rbp + 0x58]
mov qword [rbp - 0x10], rax
mov qword [rsp + 0x28], rcx
lea rdx, [0x140007d66]
lea rcx, [rbp - 0x10]
mov qword [rsp + 0x20], rcx
jmp 0x140001f52
movzx esi, r12w
movzx eax, si
lea r8, str._ws._x
mov r9, rdi
mov dword [rsp + 0x20], eax
mov rdx, rbx
mov rcx, r15
call qword [sym.imp.ntdll.dll_swprintf_s]
nop dword [rax + rax]
mov rcx, r15
call qword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
nop dword [rax + rax]
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_kernel32_legacy_l1_1_0.dll_MoveFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400020e1
add si, r13w
mov eax, 0xffff
cmp si, ax
jb 0x140002068
mov rcx, r15
call fcn.140005f94
xor eax, eax
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
mov rcx, r15
lea r8d, [rdx + 4]
call qword [sym.imp.api_ms_win_core_file_l2_1_0.dll_MoveFileExW]
nop dword [rax + rax]
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.api_ms_win_core_file_l2_1_2.dll_CopyFileW]
nop dword [rax + rax]
test eax, eax
jne 0x1400020be
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
nop dword [rax + rax]
cmp dword [section..data], 2
mov ebx, eax
jbe 0x140002184
mov r8d, 0x800
test qword [0x14000a010], r8
je 0x140002184
mov rcx, qword [0x14000a018]
and rcx, r8
cmp rcx, qword [0x14000a018]
jne 0x140002184
mov dword [rbp + 0x50], eax
lea rdx, [0x140007db6]
lea rax, [0x1400075b8]
mov dword [rbp + 0x58], 0x58
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
call fcn.140001008
test ebx, ebx
jne 0x140002265
mov eax, 0x8000ffff
jmp 0x1400020c8
cmp ebx, 5
jne 0x1400021fa
mov rdx, rdi
mov rcx, r14
call fcn.140004c10
mov ebx, eax
test eax, eax
jns 0x1400020c6
cmp dword [section..data], 2
jbe 0x140001f5a
mov r8d, 0x800
test qword [0x14000a010], r8
je 0x140001f5a
mov rcx, qword [0x14000a018]
and rcx, r8
cmp rcx, qword [0x14000a018]
jne 0x140001f5a
mov dword [rbp + 0x58], 0x61
lea rdx, [0x140007d29]
jmp 0x140001f2c
test ebx, ebx
je 0x140002265
cmp dword [section..data], 2
jbe 0x140002265
mov r8d, 0x800
test qword [0x14000a010], r8
je 0x140002265
mov rax, qword [0x14000a018]
and rax, r8
cmp rax, qword [0x14000a018]
jne 0x140002265
lea rax, [0x1400075b8]
mov dword [rbp + 0x50], ebx
mov qword [rbp - 0x10], rax
lea rdx, [0x140007db6]
lea rax, [rbp + 0x50]
mov dword [rbp + 0x58], 0x65
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
call fcn.140001008
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
cmovle eax, ebx
jmp 0x1400020c8