Function at 0x1400d35d0
Capabilities:
Check for time delay via gettickcount
Check if file exists
Delete file
Get file attributes
Read file on windows
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1288
call sub.ntdll.dll___chkstk
sub rsp, rax
mov rax, qword [0x14042d950]
xor rax, rsp
mov qword [rsp + reloc.MFC80U.DLL_Ordinal_4704], rax
mov eax, dword [0x1404347e4]
mov r15, qword [rsp + 0x12f8]
mov rdi, qword [rsp + 0x1300]
test al, 1
mov rbx, r9
mov rbp, r8
mov r12, rdx
mov qword [rsp + 0x48], rdx
mov rsi, rcx
jne 0x1400d363c
or eax, 1
mov dword [0x1404347e4], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1404347e0], eax
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, 0xfe
mov word [rsp + 0x60], 0
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x162]
xor edx, edx
mov r8d, 0xfe
mov word [rsp + 0x160], 0
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x262]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0x260], 0
call sub.ntdll.dll_memset
xor r13d, r13d
xor r9d, r9d
mov qword [rsp + 0x30], r13
lea r8d, [r13 + 3]
mov edx, 0x80000000
mov rcx, rsi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, 1
mov rcx, r12
cmp rax, 0xffffffffffffffff
mov r14, rax
cmove esi, r13d
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1400d36ee
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400d39aa
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov edx, 0x40000000
lea r8d, [r9 + 3]
mov rcx, r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, 0x200000
cmp rax, 0xffffffffffffffff
mov r12, rax
cmove esi, r13d
mov dword [rsp + 0x44], esi
call sub.MFC80U.DLL_Ordinal_265
test esi, esi
mov r13, rax
je 0x1400d3975
mov rsi, qword [rsp + 0x12f0]
movaps xmmword [rsp + Ordinal_4723], xmm6
movsd xmm6, qword [0x1403b85a8]
nop
nop
nop
lea r9, [rsp + 0x40]
mov r8d, 0x200000
mov rdx, r13
mov rcx, r14
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400d395b
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x50]
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rdi], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
jne 0x1400d37d1
cmp dword [rdi], 0
je 0x1400d39ce
mov edx, dword [rsp + 0x40]
mov dword [rdi], 1
mov rax, qword [rbx]
lea rcx, [rdx + rax]
cmp rcx, rsi
jge 0x1400d37ee
add qword [rbp], rdx
add qword [rbx], rdx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x1404347e0]
cmp eax, 0x3e8
jb 0x1400d395b
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x100
call sub.ntdll.dll_memset
lea rcx, [rsp + 0x160]
xor edx, edx
mov r8d, 0x100
call sub.ntdll.dll_memset
mov rdx, qword [rbx]
lea rcx, [rsp + 0x60]
call fcn.140055850
lea rcx, [rsp + 0x160]
mov rdx, rsi
call fcn.140055850
lea rcx, [rsp + 0x260]
xor edx, edx
mov r8d, 0x800
call sub.ntdll.dll_memset
lea rcx, [rsp + 0xa62]
xor edx, edx
mov r8d, 0x7fe
mov word [rsp + 0xa60], 0
call sub.ntdll.dll_memset
cmp qword [rbx], rsi
jle 0x1400d38c8
lea r9, [rsp + 0x160]
lea r8, [rsp + 0x60]
lea rdx, str.Copying_files:__s__s
lea rcx, [rsp + 0x260]
call qword [sym.imp.MSVCR80.dll__swprintf]
lea r9, [rsp + 0x160]
lea r8, [rsp + 0x60]
lea rdx, str.Copying:__s__s
lea rcx, [rsp + 0xa60]
call qword [sym.imp.MSVCR80.dll__swprintf]
jmp 0x1400d390c
lea r9, [rsp + 0x160]
lea r8, [rsp + 0x60]
lea rdx, str.Copying_files:__s__s
lea rcx, [rsp + 0x260]
call qword [sym.imp.MSVCR80.dll__swprintf]
lea r9, [rsp + 0x160]
lea r8, [rsp + 0x60]
lea rdx, str.Copying:__s__s
lea rcx, [rsp + 0xa60]
call qword [sym.imp.MSVCR80.dll__swprintf]
mov rax, qword [r15]
lea rdx, [rsp + 0x260]
mov rcx, r15
call qword [rax + 0x70]
mov r11, qword [r15]
lea rdx, [rsp + 0xa60]
mov rcx, r15
call qword [r11 + 0x78]
mov r11, qword [r15]
mov rcx, r15
cvtsi2sd xmm1, qword [rbx]
cvtsi2sd xmm0, rsi
divsd xmm1, xmm0
mulsd xmm1, xmm6
cvttsd2si edx, xmm1
call qword [r11 + 0x10]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x1404347e0], eax
cmp dword [rsp + 0x40], 0x200000
je 0x1400d3760
mov esi, dword [rsp + 0x44]
movaps xmm6, xmmword [rsp + 0x1270]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call sub.MFC80U.DLL_Ordinal_266
cmp dword [rdi], 0
jne 0x1400d39a8
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
mov rcx, qword [rsp + reloc.MFC80U.DLL_Ordinal_4704]
xor rcx, rsp
call fcn.140161080
add rsp, 0x1288
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov esi, dword [rsp + 0x44]
mov dword [rdi], 0
jmp 0x1400d396d