Function at 0x6a2820
Capabilities:
Timestomp file

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbp, r8
mov r8d, dword [r8]
mov rdi, rcx
mov qword [rsp + 0xb8], rdx
test r8b, 3
je 0x6a2bf0
cmp byte [rbp + 4], 0
jne 0x6a2c80
mov eax, dword [rcx + 0x170]
test eax, eax
je 0x6a29e3
mov rdx, qword [rcx + 0x178]
lea ecx, [rax - 1]
xor esi, esi
shl rcx, 4
lea rax, [rdx + 0x10]
add rcx, rax
jmp 0x6a2884
add rax, 0x10
mov edx, dword [rdx]
add rsi, rdx
mov rdx, rax
cmp rax, rcx
jne 0x6a2880
test rsi, rsi
je 0x6a29e3
mov rax, qword [rbp + 0x10]
and r8d, 8
mov r14, rax
jne 0x6a28b8
mov r14, qword [rdi + 0x180]
cmp r14, 0xffffffffffffffff
je 0x6a2c31
lea rcx, [r14 + rsi]
mov ebx, dword [rdi + 0x150]
mov rdx, rcx
mov qword [rsp + 0x40], rcx
mov rcx, qword [rbp + 8]
cmp rdx, rax
jle 0x6a2aa7
cmp rcx, 0xffffffffffffffff
je 0x6a28e3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9, qword [rsp + 0x40]
mov r8d, 4
xor edx, edx
movzx r15d, bl
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0xb8]
mov dword [rsp + 0x20], r9d
shr r9, 0x20
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rbp + 8], rax
test rax, rax
je 0x6a2cdd
mov rax, qword [rsp + 0x40]
lea rcx, [0x00c2c540]
mov qword [rbp + 0x10], rax
call sub.KERNEL32.dll_EnterCriticalSection
mov eax, r15d
lea r9, [0x009a3540]
mov r13, rax
shl rax, 4
add rax, r9
mov r15, qword [rax]
test r15, r15
mov r11, r15
setne byte [rsp + 0x38]
movzx ecx, byte [rsp + 0x38]
and r11d, 0xf
jne 0x6a2c61
test cl, cl
je 0x6a2c61
mov r10, qword [rax + 8]
mov r11d, 0x10
lea rdx, [r10 + 0x28]
mov eax, 1
cmp ebx, dword [r10]
jne 0x6a29a5
jmp 0x6a2a83
mov ecx, dword [rdx]
lea r8, [rax + 1]
add rdx, 0x28
cmp ebx, ecx
je 0x6a2cd0
mov rax, r8
cmp rax, r11
jb 0x6a2990
mov rcx, qword [r10 + 0x280]
test rcx, rcx
je 0x6a2a0d
nop word cs:[rax + rax]
mov rdx, rcx
xor eax, eax
cmp ebx, dword [rdx]
je 0x6a2a00
add eax, 1
add rdx, 0x28
cmp eax, 0x10
jne 0x6a29c5
mov rcx, qword [rcx + 0x280]
test rcx, rcx
jne 0x6a29c0
jmp 0x6a2a0d
mov qword [rdi + 0x88], 0
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rax + rax*4]
lea r10, [rcx + rax*8]
test r10, r10
jne 0x6a2a83
mov r12d, r15d
and r12d, 0xf
jne 0x6a2a60
cmp byte [rsp + 0x38], 0
je 0x6a2a60
mov ecx, 0x288
mov qword [rsp + 0x38], r9
call fcn.0069b410
test rax, rax
je 0x6a3024
mov rcx, r13
mov r9, qword [rsp + 0x38]
shl rcx, 4
add rcx, r9
mov r8, qword [rcx + 8]
mov r15, qword [rcx]
mov qword [rax + 0x280], r8
mov qword [rcx + 8], rax
nop word cs:[rax + rax]
mov rax, r13
mov edx, r12d
add r15, 1
shl rax, 4
lea r10, [rdx + rdx*4]
add r9, rax
mov rcx, qword [r9 + 8]
mov qword [r9], r15
lea r10, [rcx + r10*8]
mov dword [r10], ebx
movdqu xmm0, xmmword [rbp]
lea rcx, [0x00c2c540]
movups xmmword [r10 + 8], xmm0
movdqu xmm1, xmmword [rbp + 0x10]
movups xmmword [r10 + 0x18], xmm1
call sub.KERNEL32.dll_LeaveCriticalSection
mov rcx, qword [rbp + 8]
mov r11d, dword [0x009a3520]
mov rax, r14
mov r8, r14
cqo
idiv r11
sub r8, rdx
lea rax, [rsi + rdx]
mov r15, rdx
mov edx, 2
mov r9d, r8d
mov qword [rsp + 0x20], rax
shr r8, 0x20
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x38], rax
test rax, rax
je 0x6a2c40
mov edx, dword [rdi + 0x170]
xor r13d, r13d
test edx, edx
je 0x6a2c12
xor r12d, r12d
mov rax, qword [rdi + 0x178]
mov dword [rsp + 0x4c], ebx
mov rbx, rdi
mov edi, r12d
mov r12, qword [rsp + 0x38]
xor r13d, r13d
mov r14d, edi
lea rcx, [r15 + r13]
add edi, 1
shl r14, 4
add rcx, r12
add rax, r14
mov rdx, qword [rax + 8]
mov r8d, dword [rax]
call sub.msvcrt.dll_memcpy
mov rax, qword [rbx + 0x178]
mov edx, dword [rax + r14]
add r13, rdx
cmp dword [rbx + 0x170], edi
ja 0x6a2b15
mov rdi, rbx
mov ebx, dword [rsp + 0x4c]
cmp rsi, r13
jne 0x6a2c12
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FlushViewOfFile]
test eax, eax
je 0x6a2ca2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x6a2c40
cmp qword [rdi + 0x180], 0xffffffffffffffff
je 0x6a2e62
lea rbx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r9, rbx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xb8]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov qword [rdi + 0x88], r13
cmp r13, 0xffffffffffffffff
jne 0x6a29ee
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rdi + 0x14c], ecx
call fcn.0069fed0
cdqe
mov qword [rdi + 0x88], rax
jmp 0x6a29ee
mov dword [rcx + 0x14c], 5
mov ecx, 5
call fcn.0069fed0
cdqe
mov qword [rdi + 0x88], rax
jmp 0x6a29ee
mov r8d, 0x3ea
lea rdx, str.src_win_fs.c
lea rcx, str.done_write__write_size
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x6a2b5b
mov r14, qword [rbp + 0x18]
jmp 0x6a28b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x14c], eax
mov ecx, eax
call fcn.0069fed0
cdqe
mov qword [rdi + 0x88], rax
jmp 0x6a29ee
mov rax, r13
shl rax, 4
mov r10, qword [r9 + rax + 8]
test r11, r11
jne 0x6a2979
jmp 0x6a29aa
mov dword [rcx + 0x14c], 1
mov ecx, 1
call fcn.0069fed0
cdqe
mov qword [rdi + 0x88], rax
jmp 0x6a29ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x14c], eax
mov ecx, eax
call fcn.0069fed0
mov rcx, qword [rsp + 0x38]
cdqe
mov qword [rdi + 0x88], rax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x6a29ee
lea rax, [rax + rax*4]
lea r10, [r10 + rax*8]
jmp 0x6a2a08
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x14c], eax
mov ecx, eax
call fcn.0069fed0
mov rcx, qword [rsp + 0xb8]
cdqe
mov qword [rdi + 0x88], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 8], 0xffffffffffffffff
lea rcx, [0x00c2c540]
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
call sub.KERNEL32.dll_EnterCriticalSection
mov eax, r15d
lea r9, [0x009a3540]
mov r13, rax
shl rax, 4
add rax, r9
mov r11, qword [rax]
test r11, r11
mov rdi, r11
setne sil
and edi, 0xf
jne 0x6a2e2d
test sil, sil
je 0x6a2e2d
mov r10, qword [rax + 8]
mov edi, 0x10
lea rdx, [r10 + 0x28]
mov eax, 1
cmp ebx, dword [r10]
jne 0x6a2d95
jmp 0x6a2e08
mov ecx, dword [rdx]
lea r8, [rax + 1]
add rdx, 0x28
cmp ebx, ecx
je 0x6a2f7f
mov rax, r8
cmp rax, rdi
jb 0x6a2d80
mov rcx, qword [r10 + 0x280]
test rcx, rcx
je 0x6a2dd5
nop word cs:[rax + rax]
mov rdx, rcx
xor eax, eax
cmp ebx, dword [rdx]
je 0x6a2e50
add eax, 1
add rdx, 0x28
cmp eax, 0x10
jne 0x6a2db5
mov rcx, qword [rcx + 0x280]
test rcx, rcx
jne 0x6a2db0
mov edi, r11d
and edi, 0xf
jne 0x6a2de6
test sil, sil
jne 0x6a2fb0
mov r15, r13
mov eax, edi
add r11, 1
shl r15, 4
lea r10, [rax + rax*4]
add r9, r15
mov r8, qword [r9 + 8]
mov qword [r9], r11
lea r10, [r8 + r10*8]
mov dword [r10], ebx
movdqu xmm2, xmmword [rbp]
lea rcx, [0x00c2c540]
movups xmmword [r10 + 8], xmm2
movdqu xmm3, xmmword [rbp + 0x10]
movups xmmword [r10 + 0x18], xmm3
call sub.KERNEL32.dll_LeaveCriticalSection
jmp 0x6a29ee
mov rax, r13
shl rax, 4
mov r10, qword [r9 + rax + 8]
test rdi, rdi
jne 0x6a2d67
jmp 0x6a2d9a
lea rax, [rax + rax*4]
lea r10, [rcx + rax*8]
test r10, r10
jne 0x6a2e08
jmp 0x6a2dd5
mov rax, qword [rsp + 0x40]
movzx esi, bl
lea rcx, [0x00c2c540]
mov qword [rbp + 0x18], rax
call sub.KERNEL32.dll_EnterCriticalSection
mov rax, rsi
lea r9, [0x009a3540]
shl rax, 4
add rax, r9
mov r8, qword [rax]
test r8, r8
mov r15, r8
setne r11b
and r15d, 0xf
jne 0x6a2f96
test r11b, r11b
je 0x6a2f96
mov r14, qword [rax + 8]
mov r15d, 0x10
lea rdx, [r14 + 0x28]
mov eax, 1
cmp ebx, dword [r14]
jne 0x6a2eda
jmp 0x6a2f43
mov ecx, dword [rdx]
lea r10, [rax + 1]
add rdx, 0x28
cmp ebx, ecx
je 0x6a2f8c
mov rax, r10
cmp rax, r15
jb 0x6a2ec5
mov rcx, qword [r14 + 0x280]
test rcx, rcx
je 0x6a2f11
nop dword [rax + rax]
mov rdx, rcx
xor eax, eax
cmp ebx, dword [rdx]
je 0x6a2f70
add eax, 1
add rdx, 0x28
cmp eax, 0x10
jne 0x6a2ef5
mov rcx, qword [rcx + 0x280]
test rcx, rcx
jne 0x6a2ef0
mov r12d, r8d
and r12d, 0xf
jne 0x6a2f23
test r11b, r11b
jne 0x6a2fea
shl rsi, 4
mov eax, r12d
add r8, 1
add r9, rsi
lea r14, [rax + rax*4]
mov rax, qword [r9 + 8]
mov qword [r9], r8
lea r14, [rax + r14*8]
mov dword [r14], ebx
movdqu xmm4, xmmword [rbp]
lea rcx, [0x00c2c540]
movups xmmword [r14 + 8], xmm4
movdqu xmm5, xmmword [rbp + 0x10]
movups xmmword [r14 + 0x18], xmm5
call sub.KERNEL32.dll_LeaveCriticalSection
jmp 0x6a2b91
lea rax, [rax + rax*4]
lea r14, [rcx + rax*8]
test r14, r14
jne 0x6a2f43
jmp 0x6a2f11
lea rax, [rax + rax*4]
lea r10, [r10 + rax*8]
jmp 0x6a2e58
lea rax, [rax + rax*4]
lea r14, [r14 + rax*8]
jmp 0x6a2f78
mov rax, rsi
shl rax, 4
mov r14, qword [r9 + rax + 8]
test r15, r15
jne 0x6a2eb5
jmp 0x6a2edf
mov ecx, 0x288
mov qword [rsp + 0x38], r9
call fcn.0069b410
mov r9, qword [rsp + 0x38]
test rax, rax
je 0x6a3024
mov rdx, r13
shl rdx, 4
add rdx, r9
mov rcx, qword [rdx + 8]
mov r11, qword [rdx]
mov qword [rax + 0x280], rcx
mov qword [rdx + 8], rax
jmp 0x6a2de6
mov ecx, 0x288
mov qword [rsp + 0x38], r9
call fcn.0069b410
test rax, rax
je 0x6a3024
mov rdx, rsi
mov r9, qword [rsp + 0x38]
shl rdx, 4
add rdx, r9
mov rcx, qword [rdx + 8]
mov r8, qword [rdx]
mov qword [rax + 0x280], rcx
mov qword [rdx + 8], rax
jmp 0x6a2f23
lea rdx, [0x0090d64e]
mov ecx, 0xe
call fcn.0069fe10
nop
nop word cs:[rax + rax]