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

Disassembly:
jmp 0x140012a10
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x40]
lea rcx, [0x1400250f9]
call fcn.140011429
nop
cmp dword [rbp + 0x120], 2
jge 0x140012a61
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x128]
mov rcx, qword [rcx + rax]
call fcn.140011285
nop
mov eax, 1
jmp 0x140012cde
mov eax, 8
imul rax, rax, 1
lea rdx, [0x14001be94]
mov rcx, qword [rbp + 0x128]
mov rcx, qword [rcx + rax]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x140012ab9
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rbp + 0x128]
mov rcx, qword [rcx + rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x140012ab4
call fcn.1400113a2
nop
mov eax, 1
jmp 0x140012cde
jmp 0x140012cdc
mov eax, 8
imul rax, rax, 1
lea rdx, [0x14001be98]
mov rcx, qword [rbp + 0x128]
mov rcx, qword [rcx + rax]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x140012b47
mov eax, 8
imul rax, rax, 2
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
mov rcx, qword [rbp + 0x128]
mov rcx, qword [rcx + rax]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x140012b37
call fcn.1400113a2
nop
mov eax, 1
jmp 0x140012cde
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x140012cdc
mov eax, 8
imul rax, rax, 1
lea rdx, [0x14001be9c]
mov rcx, qword [rbp + 0x128]
mov rcx, qword [rcx + rax]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x140012c55
mov eax, 8
imul rax, rax, 3
mov rcx, qword [rbp + 0x128]
mov rcx, qword [rcx + rax]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x140012c0b
lea rdx, str.The_file_exists._Overlay_or_not____y_n__:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011087
nop
call qword [sym.imp.ucrtbased.dll_getchar]
mov byte [rbp + 0x24], al
movsx eax, byte [rbp + 0x24]
cmp eax, 0x79
je 0x140012bbd
movsx eax, byte [rbp + 0x24]
cmp eax, 0x59
jne 0x140012c0b
mov eax, 8
imul rax, rax, 3
mov ecx, 8
imul rcx, rcx, 2
xor r8d, r8d
mov rdx, qword [rbp + 0x128]
mov rdx, qword [rdx + rax]
mov rax, qword [rbp + 0x128]
mov rcx, qword [rax + rcx]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x140012c04
call fcn.1400113a2
nop
mov eax, 1
jmp 0x140012cde
xor eax, eax
jmp 0x140012cde
mov eax, 8
imul rax, rax, 3
mov ecx, 8
imul rcx, rcx, 2
xor r8d, r8d
mov rdx, qword [rbp + 0x128]
mov rdx, qword [rdx + rax]
mov rax, qword [rbp + 0x128]
mov rcx, qword [rax + rcx]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x140012c50
call fcn.1400113a2
nop
mov eax, 1
jmp 0x140012cde
jmp 0x140012cdc
mov eax, 8
imul rax, rax, 1
lea rdx, [0x14001bed4]
mov rcx, qword [rbp + 0x128]
mov rcx, qword [rcx + rax]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x140012cbb
mov eax, 8
imul rax, rax, 3
mov ecx, 8
imul rcx, rcx, 2
mov rdx, qword [rbp + 0x128]
mov rdx, qword [rdx + rax]
mov rax, qword [rbp + 0x128]
mov rcx, qword [rax + rcx]
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x140012cb9
call fcn.1400113a2
nop
mov eax, 1
jmp 0x140012cde
jmp 0x140012cdc
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rbp + 0x128]
mov rcx, qword [rcx + rax]
call fcn.140011285
nop
mov eax, 1
jmp 0x140012cde
xor eax, eax
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret