Function at 0x1400065d0
Capabilities:
Move file
Write file on windows

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
mov eax, 0x1120
call fcn.14002b1d0
sub rsp, rax
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rsp + 0x1160], rbx
mov rax, qword [0x140065ec0]
xor rax, rsp
mov qword [rsp + 0x1110], rax
mov r13, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
or edx, 0xffffffff
mov rcx, qword [rcx + 0x2020]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
xor r14d, r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r14 + 3]
lea rcx, [rbx + 0x1018]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400069e5
cmp dword [rbx + 0x14], r14d
jle 0x14000689f
lea r9d, [r14 + 2]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, dword [rbx + 0x14]
jle 0x14000689f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
mov word [rsp + 0x110], r14w
xor edx, edx
mov r8d, 0xffe
lea rcx, [rsp + 0x112]
call fcn.14002a2d0
movzx edx, word [rsp + 0xb4]
movzx eax, word [rsp + 0xb2]
movzx ecx, word [rsp + 0xb0]
movzx edi, word [rsp + 0xae]
movzx r9d, word [rsp + 0xaa]
movzx r8d, word [rsp + 0xa8]
mov dword [rsp + 0x38], edx
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edi
lea rdx, str._04d_02d_02d_02d_02d_02d
lea rcx, [rsp + 0x110]
call fcn.1400058d0
mov qword [rsp + 0xd0], 7
mov qword [rsp + 0xc8], r14
mov word [rsp + 0xb8], r14w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x110]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x110]
lea rcx, [rsp + 0xb8]
call fcn.140002b50
nop
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], r14
mov word [rsp + 0x80], r14w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rbx + 0x1018]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rbx + 0x1018]
lea rcx, [rsp + 0x80]
call fcn.140002b50
nop
lea r8, [rsp + 0xb8]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0xe0]
call fcn.140007590
nop
cmp qword [rsp + 0x98], 8
jb 0x1400067dd
mov rcx, qword [rsp + 0x80]
call fcn.14002747c
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], r14
mov word [rsp + 0x80], r14w
cmp qword [rsp + 0xd0], 8
jb 0x140006812
mov rcx, qword [rsp + 0xb8]
call fcn.14002747c
lea rdx, [rsp + 0xe0]
cmp qword [rsp + 0xf8], 8
cmovae rdx, qword [rsp + 0xe0]
lea rcx, [rbx + 0x1018]
call qword [sym.imp.KERNEL32.dll_MoveFileW]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
mov edx, 0xc0000000
lea r8d, [r9 + 3]
lea rcx, [rbx + 0x1018]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp qword [rsp + 0xf8], 8
jb 0x140006882
mov rcx, qword [rsp + 0xe0]
call fcn.14002747c
mov qword [rsp + 0xf8], 7
mov qword [rsp + 0xf0], r14
mov word [rsp + 0xe0], r14w
cmp rsi, 0xffffffffffffffff
je 0x1400069e5
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1400069e5
mov qword [rsp + 0xd0], 0xf
mov qword [rsp + 0xc8], r14
mov byte [rsp + 0xb8], 0
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], r14
mov word [rsp + 0x80], r14w
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r13
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
mov rdx, r13
lea rcx, [rsp + 0x80]
call fcn.140002b50
nop
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], r14
mov word [rsp + 0x58], r14w
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x58]
call fcn.140003080
lea rdx, [rsp + 0xb8]
lea rcx, [rsp + 0x58]
call fcn.140013fc0
lea rdx, [rsp + 0xb8]
cmp qword [rsp + 0xd0], 0x10
cmovae rdx, qword [rsp + 0xb8]
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0xc8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
cmp qword [rsp + 0x98], 8
jb 0x1400069b0
mov rcx, qword [rsp + 0x80]
call fcn.14002747c
mov qword [rsp + 0x98], 7
mov qword [rsp + 0x90], r14
mov word [rsp + 0x80], r14w
cmp qword [rsp + 0xd0], 0x10
jb 0x1400069e5
mov rcx, qword [rsp + 0xb8]
call fcn.14002747c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x1400069f6
mov rcx, qword [rbx + 0x2020]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rsp + 0x1110]
xor rcx, rsp
call fcn.1400274a0
mov rbx, qword [rsp + 0x1160]
add rsp, 0x1120
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret