Function at 0x140116f44
Capabilities:
Copy file
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rax, qword [0x140148058]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
mov qword [rbp - 0x60], rcx
mov dword [rbp - 0x78], r8d
mov rbx, rdx
mov qword [rbp - 0x70], rdx
mov edi, 0x206
lea rcx, [rbp - 0x3e]
xor r15d, r15d
xor edx, edx
mov r8d, edi
mov word [rbp - 0x40], r15w
call sub.msvcrt.dll_memset
lea rcx, [rbp + 0x1d2]
mov r8d, edi
xor edx, edx
mov word [rbp + 0x1d0], r15w
call sub.msvcrt.dll_memset
xor eax, eax
lea rcx, [rbp - 0x50]
mov word [rbp - 0x50], r15w
mov qword [rbp - 0x4e], rax
mov dword [rbp - 0x46], eax
mov word [rbp - 0x42], ax
mov dword [rbp - 0x7c], r15d
mov dword [rbp - 0x80], r15d
call sub.KERNEL32.dll_GetSystemTime
mov rcx, rbx
call fcn.140109d20
lea rcx, [rbp + 0x1d0]
mov edx, 0x104
mov r8, rax
call fcn.140044bb0
mov ebx, eax
test eax, eax
jns 0x140117039
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011758e
test byte [rcx + 0x1c], 2
je 0x14011758e
lea edx, [r15 + 0x4c]
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400016a8]
mov r9d, ebx
call fcn.14000fd64
jmp 0x14011758e
lea rcx, [rbp + 0x1d0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov qword [rbp - 0x68], rax
test rax, rax
jne 0x1401170a2
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011707d
test byte [rcx + 0x1c], 2
je 0x14011707d
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400016a8]
mov edx, 0x4d
call fcn.14000fcb0
call sub.KERNEL32.dll_GetLastError
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x140117592
mov ebx, 0x80004005
jmp 0x140117592
mov rcx, qword [rbp - 0x70]
movzx ebx, word [rbp - 0x42]
movzx edi, word [rbp - 0x44]
movzx esi, word [rbp - 0x46]
movzx r14d, word [rbp - 0x48]
movzx r15d, word [rbp - 0x4a]
movzx r12d, word [rbp - 0x4e]
movzx r13d, word [rbp - 0x50]
add rcx, 0x20
call fcn.140109d20
mov r9, qword [rbp - 0x60]
lea r8, [0x1401175d0]
mov r9, qword [r9 + 0xa8]
mov rcx, rax
mov rax, qword [rbp - 0x70]
mov eax, dword [rax + 0x188]
mov edx, 0x104
mov dword [rsp + 0x70], eax
mov eax, dword [rbp - 0x78]
mov dword [rsp + 0x68], eax
mov rax, qword [rbp - 0x68]
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x58], edi
mov dword [rsp + 0x50], esi
mov dword [rsp + 0x48], r14d
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], r12d
mov dword [rsp + 0x30], r13d
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rbp - 0x40]
call fcn.1400780b0
xor r15d, r15d
mov ebx, eax
test eax, eax
jns 0x140117168
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011758e
test byte [rcx + 0x1c], 2
je 0x14011758e
lea edx, [r15 + 0x4e]
jmp 0x140117021
mov r14, qword [rbp - 0x70]
mov rcx, qword [r14 + 0x168]
cmp rcx, 0xffffffffffffffff
je 0x14011743e
xor edx, edx
call sub.KERNEL32.dll_GetFileSize
or r12d, 0xffffffff
mov ebx, eax
cmp eax, r12d
jne 0x1401171f8
call sub.KERNEL32.dll_GetLastError
mov ebx, 0x80004005
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns ecx, ebx
mov ebx, ecx
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011758e
test byte [rcx + 0x1c], 2
je 0x14011758e
call sub.KERNEL32.dll_GetLastError
mov edx, 0x4f
mov rcx, qword [0x140148ea8]
lea r8, [0x1400016a8]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
jmp 0x14011758e
mov rcx, rbx
call fcn.140105b34
mov rsi, rax
test rax, rax
jne 0x140117246
mov ebx, 0x8007000e
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x140117592
test byte [rcx + 0x1c], 2
je 0x140117592
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x50]
lea r8, [0x1400016a8]
call fcn.14000fcb0
jmp 0x140117592
mov rcx, qword [r14 + 0x168]
lea r9, [rbp - 0x7c]
mov r8d, ebx
mov rdx, rax
mov qword [rsp + 0x20], r15
call sub.KERNEL32.dll_ReadFile
test eax, eax
jne 0x1401172ce
call sub.KERNEL32.dll_GetLastError
mov ebx, 0x80004005
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns ecx, ebx
mov ebx, ecx
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x140117581
test byte [rcx + 0x1c], 2
je 0x140117581
call sub.KERNEL32.dll_GetLastError
mov edx, 0x51
mov rcx, qword [0x140148ea8]
lea r8, [0x1400016a8]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
jmp 0x140117581
cmp dword [rbp - 0x7c], ebx
je 0x1401172dd
mov ebx, 0x8007012b
jmp 0x140117581
xor r9d, r9d
mov qword [rsp + 0x30], r15
lea rcx, [rbp - 0x40]
lea r8d, [r9 + 1]
mov edx, 0xc0000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call sub.KERNEL32.dll_CreateFileW
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14011735d
call sub.KERNEL32.dll_GetLastError
mov ebx, 0x80004005
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns ecx, ebx
mov ebx, ecx
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x140117581
test byte [rcx + 0x1c], 2
je 0x140117581
call sub.KERNEL32.dll_GetLastError
lea edx, [rdi + 0x53]
jmp 0x1401172af
lea r9, [rbp - 0x80]
mov r8d, ebx
mov rdx, rsi
mov rcx, rax
mov qword [rsp + 0x20], r15
call sub.KERNEL32.dll_WriteFile
test eax, eax
jne 0x1401173c7
call sub.KERNEL32.dll_GetLastError
mov ebx, 0x80004005
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns ecx, ebx
mov ebx, ecx
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x140117573
test byte [rcx + 0x1c], 2
je 0x140117573
call sub.KERNEL32.dll_GetLastError
mov edx, 0x53
jmp 0x140117546
cmp dword [rbp - 0x80], ebx
je 0x1401173d6
mov ebx, 0x8007012b
jmp 0x140117573
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call sub.KERNEL32.dll_SetFilePointer
cmp eax, r12d
jne 0x1401174e2
call sub.KERNEL32.dll_GetLastError
mov ebx, 0x80004005
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns ecx, ebx
mov ebx, ecx
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x140117573
test byte [rcx + 0x1c], 2
je 0x140117573
call sub.KERNEL32.dll_GetLastError
mov edx, 0x54
jmp 0x140117546
mov rcx, r14
call fcn.140109d20
lea rdx, [rbp - 0x40]
mov r8d, 1
mov rcx, rax
call sub.KERNEL32.dll_CopyFileW
test eax, eax
je 0x14011707d
mov qword [rsp + 0x30], r15
lea rcx, [rbp - 0x40]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call sub.KERNEL32.dll_CreateFileW
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1401174df
call sub.KERNEL32.dll_GetLastError
mov ebx, 0x80004005
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns ecx, ebx
mov ebx, ecx
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x14011758e
test byte [rcx + 0x1c], 2
je 0x14011758e
call sub.KERNEL32.dll_GetLastError
lea edx, [rdi + 0x56]
jmp 0x1401171d9
mov rsi, r15
lea rdx, [r14 + 0xe0]
lea r9, [rbp - 0x80]
mov r8d, 0x78
mov rcx, rdi
mov qword [rsp + 0x20], r15
call sub.KERNEL32.dll_WriteFile
test eax, eax
jne 0x140117562
call sub.KERNEL32.dll_GetLastError
mov ebx, 0x80004005
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
test ecx, ecx
cmovns ecx, ebx
mov ebx, ecx
mov rcx, qword [0x140148ea8]
lea rax, [0x140148ea8]
cmp rcx, rax
je 0x140117573
test byte [rcx + 0x1c], 2
je 0x140117573
call sub.KERNEL32.dll_GetLastError
mov edx, 0x56
mov rcx, qword [0x140148ea8]
lea r8, [0x1400016a8]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.14000fd64
jmp 0x140117573
mov eax, dword [rbp - 0x80]
mov ebx, 0x8007012b
sub eax, 0x78
neg eax
sbb eax, eax
and ebx, eax
cmp rdi, 0xffffffffffffffff
je 0x140117581
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
test rsi, rsi
je 0x14011758e
mov rcx, rsi
call sub.msvcrt.dll_free
test ebx, ebx
jns 0x14011759b
lea rcx, [rbp - 0x40]
call sub.KERNEL32.dll_DeleteFileW
mov eax, ebx
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.140001000
mov rbx, qword [rsp + 0x548]
add rsp, 0x4f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret