Function at 0x1400d0d40
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 - 0x3d0]
sub rsp, 0x4d0
mov rax, qword [0x14014d030]
xor rax, rsp
mov qword [rbp + 0x3c0], rax
mov dword [rbp - 0x78], r8d
mov r12, rdx
mov r13, rcx
mov ebx, 0x206
xor esi, esi
lea rcx, [rbp - 0x5e]
mov r8d, ebx
mov word [rbp - 0x60], si
xor edx, edx
call sub.msvcrt.dll_memset
mov r8d, ebx
mov word [rbp + 0x1b0], si
xor edx, edx
lea rcx, [rbp + 0x1b2]
call sub.msvcrt.dll_memset
xor eax, eax
mov word [rbp - 0x70], si
lea rcx, [rbp - 0x70]
mov qword [rbp - 0x6e], rax
mov dword [rbp - 0x66], eax
mov r15d, esi
mov word [rbp - 0x62], ax
mov dword [rbp - 0x7c], esi
mov dword [rbp - 0x80], esi
call qword [sym.imp.KERNEL32.dll_GetSystemTime]
mov r8, qword [r12]
lea rcx, [rbp + 0x1b0]
mov edx, 0x104
call fcn.140036ea4
mov ebx, eax
test eax, eax
jns 0x1400d0e26
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d135c
test byte [rcx + 0x1c], 2
je 0x1400d135c
lea edx, [rsi + 0x4c]
mov rcx, qword [rcx + 0x10]
lea r8, [0x140128308]
mov r9d, ebx
call fcn.1400036d4
jmp 0x1400d135c
lea rcx, [rbp + 0x1b0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rdx, rax
test rax, rax
jne 0x1400d0e8e
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d0e69
test byte [rcx + 0x1c], 2
je 0x1400d0e69
mov rcx, qword [rcx + 0x10]
lea r8, [0x140128308]
mov edx, 0x4d
call fcn.140003614
call sub.KERNEL32.dll_GetLastError
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
js 0x1400d1360
mov ebx, 0x80004005
jmp 0x1400d1360
mov eax, dword [r12 + 0x188]
movzx ecx, word [rbp - 0x62]
movzx r8d, word [rbp - 0x64]
movzx r10d, word [rbp - 0x66]
movzx r11d, word [rbp - 0x68]
movzx ebx, word [rbp - 0x6a]
movzx edi, word [rbp - 0x6e]
movzx esi, word [rbp - 0x70]
mov r14, qword [r12 + 0x20]
mov r9, qword [r13 + 0xa8]
mov dword [rsp + 0x70], eax
mov eax, dword [rbp - 0x78]
mov dword [rsp + 0x68], eax
mov dword [rsp + 0x60], ecx
lea rcx, [rbp - 0x60]
mov dword [rsp + 0x58], r8d
lea r8, str._s_s__s__d__d__d__d__d__d__d._d._d.Uploaded
mov dword [rsp + 0x50], r10d
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x40], ebx
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rdx
mov edx, 0x104
mov qword [rsp + 0x20], r14
call fcn.140069190
xor esi, esi
mov ebx, eax
test eax, eax
jns 0x1400d0f3b
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d135c
test byte [rcx + 0x1c], 2
je 0x1400d135c
lea edx, [rsi + 0x4e]
jmp 0x1400d0e0e
mov rcx, qword [r12 + 0x168]
cmp rcx, 0xffffffffffffffff
je 0x1400d1213
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetFileSize]
or r14d, 0xffffffff
mov ebx, eax
cmp eax, r14d
jne 0x1400d0fc9
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 [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d135c
test byte [rcx + 0x1c], 2
je 0x1400d135c
call sub.KERNEL32.dll_GetLastError
mov edx, 0x4f
mov rcx, qword [0x14014dd40]
lea r8, [0x140128308]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
jmp 0x1400d135c
mov rcx, rbx
call fcn.1401061b4
mov r15, rax
test rax, rax
jne 0x1400d1018
mov ebx, 0x8007000e
mov rcx, qword [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d1360
test byte [rcx + 0x1c], 2
je 0x1400d1360
mov rcx, qword [rcx + 0x10]
lea edx, [r15 + 0x50]
lea r8, [0x140128308]
call fcn.140003614
jmp 0x1400d1360
mov rcx, qword [r12 + 0x168]
lea r9, [rbp - 0x7c]
mov r8d, ebx
mov qword [rsp + 0x20], rsi
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400d10a2
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 [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d134e
test byte [rcx + 0x1c], 2
je 0x1400d134e
call sub.KERNEL32.dll_GetLastError
mov edx, 0x51
mov rcx, qword [0x14014dd40]
lea r8, [0x140128308]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
jmp 0x1400d134e
cmp dword [rbp - 0x7c], ebx
je 0x1400d10b1
mov ebx, 0x8007012b
jmp 0x1400d134e
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80
lea rcx, [rbp - 0x60]
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 1]
call sub.KERNEL32.dll_CreateFileW
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400d1131
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 [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d134e
test byte [rcx + 0x1c], 2
je 0x1400d134e
call sub.KERNEL32.dll_GetLastError
lea edx, [rdi + 0x53]
jmp 0x1400d1083
lea r9, [rbp - 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, ebx
mov rdx, r15
mov rcx, rax
call sub.KERNEL32.dll_WriteFile
test eax, eax
jne 0x1400d119b
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 [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d1340
test byte [rcx + 0x1c], 2
je 0x1400d1340
call sub.KERNEL32.dll_GetLastError
mov edx, 0x53
jmp 0x1400d1313
cmp dword [rbp - 0x80], ebx
je 0x1400d11aa
mov ebx, 0x8007012b
jmp 0x1400d1340
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, r14d
jne 0x1400d12ae
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 [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d1340
test byte [rcx + 0x1c], 2
je 0x1400d1340
call sub.KERNEL32.dll_GetLastError
mov edx, 0x54
jmp 0x1400d1313
mov rcx, qword [r12]
lea rdx, [rbp - 0x60]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1400d0e69
mov qword [rsp + 0x30], rsi
lea rcx, [rbp - 0x60]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x40000000
call sub.KERNEL32.dll_CreateFileW
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1400d12ae
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 [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d135c
test byte [rcx + 0x1c], 2
je 0x1400d135c
call sub.KERNEL32.dll_GetLastError
lea edx, [rdi + 0x56]
jmp 0x1400d0faa
lea rdx, [r12 + 0xe0]
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x80]
mov r8d, 0x78
mov rcx, rdi
call sub.KERNEL32.dll_WriteFile
test eax, eax
jne 0x1400d132f
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 [0x14014dd40]
lea rax, [0x14014dd40]
cmp rcx, rax
je 0x1400d1340
test byte [rcx + 0x1c], 2
je 0x1400d1340
call sub.KERNEL32.dll_GetLastError
mov edx, 0x56
mov rcx, qword [0x14014dd40]
lea r8, [0x140128308]
mov r9d, eax
mov rcx, qword [rcx + 0x10]
call fcn.1400036d4
jmp 0x1400d1340
mov eax, dword [rbp - 0x80]
mov ebx, 0x8007012b
sub eax, 0x78
neg eax
sbb eax, eax
and ebx, eax
cmp rdi, 0xffffffffffffffff
je 0x1400d134e
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x1400d135c
mov rcx, r15
call qword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void____ptr64_]
test ebx, ebx
jns 0x1400d136a
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, ebx
mov rcx, qword [rbp + 0x3c0]
xor rcx, rsp
call fcn.140106ed0
mov rbx, qword [rsp + 0x528]
add rsp, 0x4d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret