Function at 0x6d2760
Capabilities:
Timestomp file

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rdi, r8
mov r8d, dword [r8]
mov qword [rsp + 0x40], rdx
mov rsi, rcx
test r8b, 3
je 0x6d2a80
cmp byte [rdi + 4], 0
jne 0x6d2b95
mov eax, dword [rcx + 0x170]
test eax, eax
je 0x6d2a60
mov rdx, qword [rcx + 0x178]
lea ecx, [rax - 1]
xor r13d, r13d
shl rcx, 4
lea rax, [rdx + 0x10]
add rcx, rax
jmp 0x6d27c4
add rax, 0x10
mov edx, dword [rdx]
add r13, rdx
mov rdx, rax
cmp rax, rcx
jne 0x6d27c0
test r13, r13
je 0x6d2a60
mov rax, qword [rdi + 0x10]
and r8d, 8
mov r14, rax
jne 0x6d27f8
mov r14, qword [rsi + 0x180]
cmp r14, 0xffffffffffffffff
je 0x6d2b05
lea rcx, [r14 + r13]
mov ebx, dword [rsi + 0x150]
mov rdx, rcx
mov qword [rsp + 0x48], rcx
mov rcx, qword [rdi + 8]
cmp rdx, rax
jle 0x6d2931
cmp rcx, 0xffffffffffffffff
je 0x6d2823
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
xor edx, edx
movzx r15d, bl
mov qword [rsp + 0x28], 0
mov r8d, 4
mov dword [rsp + 0x20], r9d
shr r9, 0x20
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rdi + 8], rax
test rax, rax
je 0x6d2bb7
mov rax, qword [rsp + 0x48]
lea rcx, [0x00c807a0]
mov qword [rdi + 0x10], rax
call sub.KERNEL32.dll_EnterCriticalSection
mov rax, r15
lea r8, [0x009f77a0]
shl rax, 4
add rax, r8
mov r9, qword [rax]
test r9, r9
mov rcx, r9
setne r10b
and ecx, 0xf
jne 0x6d2b2f
test r10b, r10b
je 0x6d2b2f
mov r11, qword [rax + 8]
mov ecx, 0x10
mov rdx, r11
xor eax, eax
jmp 0x6d28c9
add rax, 1
add rdx, 0x28
cmp rax, rcx
jae 0x6d2b44
cmp ebx, dword [rdx]
jne 0x6d28b8
lea rax, [rax + rax*4]
lea rax, [r11 + rax*8]
test rax, rax
jne 0x6d2910
mov ebp, r9d
and ebp, 0xf
jne 0x6d28eb
test r10b, r10b
jne 0x6d2cc6
shl r15, 4
add r9, 1
mov edx, ebp
add r8, r15
lea rax, [rdx + rdx*4]
mov qword [r8], r9
mov r9, qword [r8 + 8]
lea rax, [r9 + rax*8]
mov dword [rax], ebx
nop dword [rax]
movdqu xmm0, xmmword [rdi]
lea rcx, [0x00c807a0]
movups xmmword [rax + 8], xmm0
movdqu xmm1, xmmword [rdi + 0x10]
movups xmmword [rax + 0x18], xmm1
call sub.KERNEL32.dll_LeaveCriticalSection
mov rcx, qword [rdi + 8]
mov rax, r14
mov r10d, dword [0x009f7780]
cqo
idiv r10
sub r14, rdx
lea rax, [rdx + r13]
mov qword [rsp + 0x38], rdx
mov edx, 2
mov r8, r14
mov r9d, r14d
mov qword [rsp + 0x20], rax
shr r8, 0x20
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
test rax, rax
je 0x6d2b0e
mov ecx, dword [rsi + 0x170]
xor ebp, ebp
test ecx, ecx
je 0x6d2a9f
mov rax, qword [rsi + 0x178]
xor r12d, r12d
xor ebp, ebp
nop
mov r9d, r12d
mov rcx, qword [rsp + 0x38]
add r12d, 1
shl r9, 4
add rax, r9
add rcx, rbp
mov r15, r9
mov rdx, qword [rax + 8]
mov r8d, dword [rax]
add rcx, r14
call sub.msvcrt.dll_memcpy
mov rax, qword [rsi + 0x178]
mov edx, dword [rax + r15]
add rbp, rdx
cmp dword [rsi + 0x170], r12d
ja 0x6d2990
cmp rbp, r13
jne 0x6d2a9f
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FlushViewOfFile]
test eax, eax
je 0x6d2acf
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x6d2b0e
cmp qword [rsi + 0x180], 0xffffffffffffffff
je 0x6d2d6d
lea rbx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, qword [rsp + 0x40]
mov r9, rbx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov qword [rsi + 0x88], r13
cmp r13, 0xffffffffffffffff
jne 0x6d2a6b
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rsi + 0x14c], ecx
call fcn.006cf860
cdqe
mov qword [rsi + 0x88], rax
jmp 0x6d2a6b
mov qword [rsi + 0x88], 0
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov dword [rcx + 0x14c], 5
mov ecx, 5
call fcn.006cf860
cdqe
mov qword [rsi + 0x88], rax
jmp 0x6d2a6b
lea rdx, str.src_win_fs.c
lea rcx, str.done_write__write_size
mov r8d, 0x40b
mov r13, rbp
call qword [sym.imp.msvcrt.dll__assert]
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FlushViewOfFile]
test eax, eax
jne 0x6d29eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.006cf860
mov rcx, r14
cdqe
mov qword [rsi + 0x88], rax
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov r14, qword [rdi + 0x18]
jmp 0x6d27f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.006cf860
cdqe
mov qword [rsi + 0x88], rax
jmp 0x6d2a6b
mov rax, r15
shl rax, 4
mov r11, qword [r8 + rax + 8]
test rcx, rcx
jne 0x6d28ac
mov rax, qword [r11 + 0x280]
test rax, rax
je 0x6d28da
nop dword [rax]
mov rcx, rax
xor edx, edx
nop dword [rax]
cmp ebx, dword [rcx]
je 0x6d2b88
add edx, 1
add rcx, 0x28
cmp edx, 0x10
jne 0x6d2b60
mov rax, qword [rax + 0x280]
test rax, rax
jne 0x6d2b58
jmp 0x6d28da
lea rdx, [rdx + rdx*4]
lea rax, [rax + rdx*8]
jmp 0x6d2910
mov dword [rcx + 0x14c], 1
mov ecx, 1
call fcn.006cf860
cdqe
mov qword [rsi + 0x88], rax
jmp 0x6d2a6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.006cf860
mov rcx, qword [rsp + 0x40]
cdqe
mov qword [rsi + 0x88], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
lea rcx, [0x00c807a0]
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0
call sub.KERNEL32.dll_EnterCriticalSection
mov rax, r15
lea r8, [0x009f77a0]
shl rax, 4
add rax, r8
mov r9, qword [rax]
test r9, r9
mov rcx, r9
setne r11b
and ecx, 0xf
jne 0x6d2d07
test r11b, r11b
je 0x6d2d07
mov r10, qword [rax + 8]
mov ecx, 0x10
mov rdx, r10
xor eax, eax
jmp 0x6d2c59
add rax, 1
add rdx, 0x28
cmp rcx, rax
jbe 0x6d2d1c
cmp ebx, dword [rdx]
jne 0x6d2c48
lea rax, [rax + rax*4]
lea rax, [r10 + rax*8]
test rax, rax
jne 0x6d2c99
mov esi, r9d
and esi, 0xf
jne 0x6d2c7b
test r11b, r11b
jne 0x6d2eda
shl r15, 4
mov esi, esi
add r9, 1
add r8, r15
lea rax, [rsi + rsi*4]
mov r10, qword [r8 + 8]
mov qword [r8], r9
lea rax, [r10 + rax*8]
mov dword [rax], ebx
movdqu xmm2, xmmword [rdi]
lea rcx, [0x00c807a0]
movups xmmword [rax + 8], xmm2
movdqu xmm3, xmmword [rdi + 0x10]
movups xmmword [rax + 0x18], xmm3
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp sub.KERNEL32.dll_LeaveCriticalSection
mov ecx, 0x288
mov qword [rsp + 0x38], r8
call fcn.006cb300
mov rcx, rax
test rax, rax
je 0x6d2f17
mov r8, qword [rsp + 0x38]
mov rax, r15
shl rax, 4
add rax, r8
mov r9, qword [rax + 8]
mov qword [rcx + 0x280], r9
mov r9, qword [rax]
mov qword [rax + 8], rcx
jmp 0x6d28eb
mov rax, r15
shl rax, 4
mov r10, qword [r8 + rax + 8]
test rcx, rcx
jne 0x6d2c3b
mov rcx, qword [r10 + 0x280]
test rcx, rcx
je 0x6d2c6a
nop dword [rax]
mov rdx, rcx
xor eax, eax
nop dword [rax]
cmp ebx, dword [rdx]
je 0x6d2d60
add eax, 1
add rdx, 0x28
cmp eax, 0x10
jne 0x6d2d38
mov rcx, qword [rcx + 0x280]
test rcx, rcx
jne 0x6d2d30
jmp 0x6d2c6a
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8]
jmp 0x6d2c99
mov rax, qword [rsp + 0x48]
lea rcx, [0x00c807a0]
movzx ebp, bl
mov qword [rdi + 0x18], rax
call sub.KERNEL32.dll_EnterCriticalSection
mov rax, rbp
lea r8, [0x009f77a0]
shl rax, 4
add rax, r8
mov r9, qword [rax]
test r9, r9
mov rcx, r9
setne r10b
and ecx, 0xf
jne 0x6d2e39
test r10b, r10b
je 0x6d2e39
mov r11, qword [rax + 8]
mov ecx, 0x10
mov rdx, r11
xor eax, eax
jmp 0x6d2dd5
add rax, 1
add rdx, 0x28
cmp rax, rcx
jae 0x6d2e4e
cmp ebx, dword [rdx]
jne 0x6d2dc8
lea rax, [rax + rax*4]
lea rax, [r11 + rax*8]
test rax, rax
jne 0x6d2e17
mov r14d, r9d
and r14d, 0xf
jne 0x6d2df8
test r10b, r10b
jne 0x6d2e9d
shl rbp, 4
mov r14d, r14d
add r9, 1
add r8, rbp
lea rax, [r14 + r14*4]
mov rdx, qword [r8 + 8]
mov qword [r8], r9
lea rax, [rdx + rax*8]
mov dword [rax], ebx
movdqu xmm4, xmmword [rdi]
lea rcx, [0x00c807a0]
movups xmmword [rax + 8], xmm4
movdqu xmm5, xmmword [rdi + 0x10]
movups xmmword [rax + 0x18], xmm5
call sub.KERNEL32.dll_LeaveCriticalSection
jmp 0x6d2a0a
mov rax, rbp
shl rax, 4
mov r11, qword [r8 + rax + 8]
test rcx, rcx
jne 0x6d2dbe
mov rcx, qword [r11 + 0x280]
test rcx, rcx
je 0x6d2de6
nop word [rax + rax]
mov rdx, rcx
xor eax, eax
nop dword [rax]
cmp ebx, dword [rdx]
je 0x6d2e90
add eax, 1
add rdx, 0x28
cmp eax, 0x10
jne 0x6d2e68
mov rcx, qword [rcx + 0x280]
test rcx, rcx
jne 0x6d2e60
jmp 0x6d2de6
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8]
jmp 0x6d2e17
mov ecx, 0x288
mov qword [rsp + 0x38], r8
call fcn.006cb300
mov rdx, rax
test rax, rax
je 0x6d2f17
mov r8, qword [rsp + 0x38]
mov rax, rbp
shl rax, 4
add rax, r8
mov rcx, qword [rax + 8]
mov r9, qword [rax]
mov qword [rdx + 0x280], rcx
mov qword [rax + 8], rdx
jmp 0x6d2df8
mov ecx, 0x288
mov qword [rsp + 0x38], r8
call fcn.006cb300
mov r8, qword [rsp + 0x38]
test rax, rax
mov rdx, rax
je 0x6d2f17
mov rax, r15
shl rax, 4
add rax, r8
mov rcx, qword [rax + 8]
mov r9, qword [rax]
mov qword [rdx + 0x280], rcx
mov qword [rax + 8], rdx
jmp 0x6d2c7b
lea rdx, [0x00958547]
mov ecx, 0xe
call fcn.006cf7a0
nop
nop dword [rax]