Function at 0x6c9c40
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 0x6ca010
cmp byte [rbp + 4], 0
jne 0x6ca0a0
mov eax, dword [rcx + 0x170]
test eax, eax
je 0x6c9e03
mov rdx, qword [rcx + 0x178]
lea ecx, [rax - 1]
xor esi, esi
shl rcx, 4
lea rax, [rdx + 0x10]
add rcx, rax
jmp 0x6c9ca4
add rax, 0x10
mov edx, dword [rdx]
add rsi, rdx
mov rdx, rax
cmp rax, rcx
jne 0x6c9ca0
test rsi, rsi
je 0x6c9e03
mov rax, qword [rbp + 0x10]
and r8d, 8
mov r14, rax
jne 0x6c9cd8
mov r14, qword [rdi + 0x180]
cmp r14, 0xffffffffffffffff
je 0x6ca051
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 0x6c9ec7
cmp rcx, 0xffffffffffffffff
je 0x6c9d03
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 0x6ca0fd
mov rax, qword [rsp + 0x40]
lea rcx, [0x010a6200]
mov qword [rbp + 0x10], rax
call sub.KERNEL32.DLL_EnterCriticalSection
mov eax, r15d
lea r9, [0x00e1d200]
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 0x6ca081
test cl, cl
je 0x6ca081
mov r10, qword [rax + 8]
mov r11d, 0x10
lea rdx, [r10 + 0x28]
mov eax, 1
cmp ebx, dword [r10]
jne 0x6c9dc5
jmp 0x6c9ea3
mov ecx, dword [rdx]
lea r8, [rax + 1]
add rdx, 0x28
cmp ebx, ecx
je 0x6ca0f0
mov rax, r8
cmp rax, r11
jb 0x6c9db0
mov rcx, qword [r10 + 0x280]
test rcx, rcx
je 0x6c9e2d
nop word cs:[rax + rax]
mov rdx, rcx
xor eax, eax
cmp ebx, dword [rdx]
je 0x6c9e20
add eax, 1
add rdx, 0x28
cmp eax, 0x10
jne 0x6c9de5
mov rcx, qword [rcx + 0x280]
test rcx, rcx
jne 0x6c9de0
jmp 0x6c9e2d
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 0x6c9ea3
mov r12d, r15d
and r12d, 0xf
jne 0x6c9e80
cmp byte [rsp + 0x38], 0
je 0x6c9e80
mov ecx, 0x288
mov qword [rsp + 0x38], r9
call fcn.006c2830
test rax, rax
je 0x6ca444
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, [0x010a6200]
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 [0x00e1d1e0]
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 0x6ca060
mov edx, dword [rdi + 0x170]
xor r13d, r13d
test edx, edx
je 0x6ca032
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 0x6c9f35
mov rdi, rbx
mov ebx, dword [rsp + 0x4c]
cmp rsi, r13
jne 0x6ca032
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.DLL_FlushViewOfFile]
test eax, eax
je 0x6ca0c2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
test eax, eax
je 0x6ca060
cmp qword [rdi + 0x180], 0xffffffffffffffff
je 0x6ca282
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 0x6c9e0e
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rdi + 0x14c], ecx
call fcn.006c72f0
cdqe
mov qword [rdi + 0x88], rax
jmp 0x6c9e0e
mov dword [rcx + 0x14c], 5
mov ecx, 5
call fcn.006c72f0
cdqe
mov qword [rdi + 0x88], rax
jmp 0x6c9e0e
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 0x6c9f7b
mov r14, qword [rbp + 0x18]
jmp 0x6c9cd8
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rdi + 0x14c], eax
mov ecx, eax
call fcn.006c72f0
cdqe
mov qword [rdi + 0x88], rax
jmp 0x6c9e0e
mov rax, r13
shl rax, 4
mov r10, qword [r9 + rax + 8]
test r11, r11
jne 0x6c9d99
jmp 0x6c9dca
mov dword [rcx + 0x14c], 1
mov ecx, 1
call fcn.006c72f0
cdqe
mov qword [rdi + 0x88], rax
jmp 0x6c9e0e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rdi + 0x14c], eax
mov ecx, eax
call fcn.006c72f0
mov rcx, qword [rsp + 0x38]
cdqe
mov qword [rdi + 0x88], rax
call qword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
jmp 0x6c9e0e
lea rax, [rax + rax*4]
lea r10, [r10 + rax*8]
jmp 0x6c9e28
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rdi + 0x14c], eax
mov ecx, eax
call fcn.006c72f0
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, [0x010a6200]
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
call sub.KERNEL32.DLL_EnterCriticalSection
mov eax, r15d
lea r9, [0x00e1d200]
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 0x6ca24d
test sil, sil
je 0x6ca24d
mov r10, qword [rax + 8]
mov edi, 0x10
lea rdx, [r10 + 0x28]
mov eax, 1
cmp ebx, dword [r10]
jne 0x6ca1b5
jmp 0x6ca228
mov ecx, dword [rdx]
lea r8, [rax + 1]
add rdx, 0x28
cmp ebx, ecx
je 0x6ca39f
mov rax, r8
cmp rax, rdi
jb 0x6ca1a0
mov rcx, qword [r10 + 0x280]
test rcx, rcx
je 0x6ca1f5
nop word cs:[rax + rax]
mov rdx, rcx
xor eax, eax
cmp ebx, dword [rdx]
je 0x6ca270
add eax, 1
add rdx, 0x28
cmp eax, 0x10
jne 0x6ca1d5
mov rcx, qword [rcx + 0x280]
test rcx, rcx
jne 0x6ca1d0
mov edi, r11d
and edi, 0xf
jne 0x6ca206
test sil, sil
jne 0x6ca3d0
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, [0x010a6200]
movups xmmword [r10 + 8], xmm2
movdqu xmm3, xmmword [rbp + 0x10]
movups xmmword [r10 + 0x18], xmm3
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x6c9e0e
mov rax, r13
shl rax, 4
mov r10, qword [r9 + rax + 8]
test rdi, rdi
jne 0x6ca187
jmp 0x6ca1ba
lea rax, [rax + rax*4]
lea r10, [rcx + rax*8]
test r10, r10
jne 0x6ca228
jmp 0x6ca1f5
mov rax, qword [rsp + 0x40]
movzx esi, bl
lea rcx, [0x010a6200]
mov qword [rbp + 0x18], rax
call sub.KERNEL32.DLL_EnterCriticalSection
mov rax, rsi
lea r9, [0x00e1d200]
shl rax, 4
add rax, r9
mov r8, qword [rax]
test r8, r8
mov r15, r8
setne r11b
and r15d, 0xf
jne 0x6ca3b6
test r11b, r11b
je 0x6ca3b6
mov r14, qword [rax + 8]
mov r15d, 0x10
lea rdx, [r14 + 0x28]
mov eax, 1
cmp ebx, dword [r14]
jne 0x6ca2fa
jmp 0x6ca363
mov ecx, dword [rdx]
lea r10, [rax + 1]
add rdx, 0x28
cmp ebx, ecx
je 0x6ca3ac
mov rax, r10
cmp rax, r15
jb 0x6ca2e5
mov rcx, qword [r14 + 0x280]
test rcx, rcx
je 0x6ca331
nop dword [rax + rax]
mov rdx, rcx
xor eax, eax
cmp ebx, dword [rdx]
je 0x6ca390
add eax, 1
add rdx, 0x28
cmp eax, 0x10
jne 0x6ca315
mov rcx, qword [rcx + 0x280]
test rcx, rcx
jne 0x6ca310
mov r12d, r8d
and r12d, 0xf
jne 0x6ca343
test r11b, r11b
jne 0x6ca40a
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, [0x010a6200]
movups xmmword [r14 + 8], xmm4
movdqu xmm5, xmmword [rbp + 0x10]
movups xmmword [r14 + 0x18], xmm5
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x6c9fb1
lea rax, [rax + rax*4]
lea r14, [rcx + rax*8]
test r14, r14
jne 0x6ca363
jmp 0x6ca331
lea rax, [rax + rax*4]
lea r10, [r10 + rax*8]
jmp 0x6ca278
lea rax, [rax + rax*4]
lea r14, [r14 + rax*8]
jmp 0x6ca398
mov rax, rsi
shl rax, 4
mov r14, qword [r9 + rax + 8]
test r15, r15
jne 0x6ca2d5
jmp 0x6ca2ff
mov ecx, 0x288
mov qword [rsp + 0x38], r9
call fcn.006c2830
mov r9, qword [rsp + 0x38]
test rax, rax
je 0x6ca444
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 0x6ca206
mov ecx, 0x288
mov qword [rsp + 0x38], r9
call fcn.006c2830
test rax, rax
je 0x6ca444
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 0x6ca343
lea rdx, [0x00d119ce]
mov ecx, 0xe
call fcn.006c7230
nop
nop word cs:[rax + rax]