Function at 0x6c1b40
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 0x6c1f10
cmp byte [rbp + 4], 0
jne 0x6c1fa0
mov eax, dword [rcx + 0x170]
test eax, eax
je 0x6c1d03
mov rdx, qword [rcx + 0x178]
lea ecx, [rax - 1]
xor esi, esi
shl rcx, 4
lea rax, [rdx + 0x10]
add rcx, rax
jmp 0x6c1ba4
add rax, 0x10
mov edx, dword [rdx]
add rsi, rdx
mov rdx, rax
cmp rax, rcx
jne 0x6c1ba0
test rsi, rsi
je 0x6c1d03
mov rax, qword [rbp + 0x10]
and r8d, 8
mov r14, rax
jne 0x6c1bd8
mov r14, qword [rdi + 0x180]
cmp r14, 0xffffffffffffffff
je 0x6c1f51
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 0x6c1dc7
cmp rcx, 0xffffffffffffffff
je 0x6c1c03
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 0x6c1ffd
mov rax, qword [rsp + 0x40]
lea rcx, [0x00de2100]
mov qword [rbp + 0x10], rax
call sub.KERNEL32.DLL_EnterCriticalSection
mov eax, r15d
lea r9, [0x00b59100]
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 0x6c1f81
test cl, cl
je 0x6c1f81
mov r10, qword [rax + 8]
mov r11d, 0x10
lea rdx, [r10 + 0x28]
mov eax, 1
cmp ebx, dword [r10]
jne 0x6c1cc5
jmp 0x6c1da3
mov ecx, dword [rdx]
lea r8, [rax + 1]
add rdx, 0x28
cmp ebx, ecx
je 0x6c1ff0
mov rax, r8
cmp rax, r11
jb 0x6c1cb0
mov rcx, qword [r10 + 0x280]
test rcx, rcx
je 0x6c1d2d
nop word cs:[rax + rax]
mov rdx, rcx
xor eax, eax
cmp ebx, dword [rdx]
je 0x6c1d20
add eax, 1
add rdx, 0x28
cmp eax, 0x10
jne 0x6c1ce5
mov rcx, qword [rcx + 0x280]
test rcx, rcx
jne 0x6c1ce0
jmp 0x6c1d2d
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 0x6c1da3
mov r12d, r15d
and r12d, 0xf
jne 0x6c1d80
cmp byte [rsp + 0x38], 0
je 0x6c1d80
mov ecx, 0x288
mov qword [rsp + 0x38], r9
call fcn.006ba730
test rax, rax
je 0x6c2344
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, [0x00de2100]
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 [0x00b590e0]
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 0x6c1f60
mov edx, dword [rdi + 0x170]
xor r13d, r13d
test edx, edx
je 0x6c1f32
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 0x6c1e35
mov rdi, rbx
mov ebx, dword [rsp + 0x4c]
cmp rsi, r13
jne 0x6c1f32
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.DLL_FlushViewOfFile]
test eax, eax
je 0x6c1fc2
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
test eax, eax
je 0x6c1f60
cmp qword [rdi + 0x180], 0xffffffffffffffff
je 0x6c2182
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 0x6c1d0e
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rdi + 0x14c], ecx
call fcn.006bf1f0
cdqe
mov qword [rdi + 0x88], rax
jmp 0x6c1d0e
mov dword [rcx + 0x14c], 5
mov ecx, 5
call fcn.006bf1f0
cdqe
mov qword [rdi + 0x88], rax
jmp 0x6c1d0e
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 0x6c1e7b
mov r14, qword [rbp + 0x18]
jmp 0x6c1bd8
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rdi + 0x14c], eax
mov ecx, eax
call fcn.006bf1f0
cdqe
mov qword [rdi + 0x88], rax
jmp 0x6c1d0e
mov rax, r13
shl rax, 4
mov r10, qword [r9 + rax + 8]
test r11, r11
jne 0x6c1c99
jmp 0x6c1cca
mov dword [rcx + 0x14c], 1
mov ecx, 1
call fcn.006bf1f0
cdqe
mov qword [rdi + 0x88], rax
jmp 0x6c1d0e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rdi + 0x14c], eax
mov ecx, eax
call fcn.006bf1f0
mov rcx, qword [rsp + 0x38]
cdqe
mov qword [rdi + 0x88], rax
call qword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
jmp 0x6c1d0e
lea rax, [rax + rax*4]
lea r10, [r10 + rax*8]
jmp 0x6c1d28
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [rdi + 0x14c], eax
mov ecx, eax
call fcn.006bf1f0
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, [0x00de2100]
mov qword [rbp + 0x10], 0
mov qword [rbp + 0x18], 0
call sub.KERNEL32.DLL_EnterCriticalSection
mov eax, r15d
lea r9, [0x00b59100]
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 0x6c214d
test sil, sil
je 0x6c214d
mov r10, qword [rax + 8]
mov edi, 0x10
lea rdx, [r10 + 0x28]
mov eax, 1
cmp ebx, dword [r10]
jne 0x6c20b5
jmp 0x6c2128
mov ecx, dword [rdx]
lea r8, [rax + 1]
add rdx, 0x28
cmp ebx, ecx
je 0x6c229f
mov rax, r8
cmp rax, rdi
jb 0x6c20a0
mov rcx, qword [r10 + 0x280]
test rcx, rcx
je 0x6c20f5
nop word cs:[rax + rax]
mov rdx, rcx
xor eax, eax
cmp ebx, dword [rdx]
je 0x6c2170
add eax, 1
add rdx, 0x28
cmp eax, 0x10
jne 0x6c20d5
mov rcx, qword [rcx + 0x280]
test rcx, rcx
jne 0x6c20d0
mov edi, r11d
and edi, 0xf
jne 0x6c2106
test sil, sil
jne 0x6c22d0
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, [0x00de2100]
movups xmmword [r10 + 8], xmm2
movdqu xmm3, xmmword [rbp + 0x10]
movups xmmword [r10 + 0x18], xmm3
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x6c1d0e
mov rax, r13
shl rax, 4
mov r10, qword [r9 + rax + 8]
test rdi, rdi
jne 0x6c2087
jmp 0x6c20ba
lea rax, [rax + rax*4]
lea r10, [rcx + rax*8]
test r10, r10
jne 0x6c2128
jmp 0x6c20f5
mov rax, qword [rsp + 0x40]
movzx esi, bl
lea rcx, [0x00de2100]
mov qword [rbp + 0x18], rax
call sub.KERNEL32.DLL_EnterCriticalSection
mov rax, rsi
lea r9, [0x00b59100]
shl rax, 4
add rax, r9
mov r8, qword [rax]
test r8, r8
mov r15, r8
setne r11b
and r15d, 0xf
jne 0x6c22b6
test r11b, r11b
je 0x6c22b6
mov r14, qword [rax + 8]
mov r15d, 0x10
lea rdx, [r14 + 0x28]
mov eax, 1
cmp ebx, dword [r14]
jne 0x6c21fa
jmp 0x6c2263
mov ecx, dword [rdx]
lea r10, [rax + 1]
add rdx, 0x28
cmp ebx, ecx
je 0x6c22ac
mov rax, r10
cmp rax, r15
jb 0x6c21e5
mov rcx, qword [r14 + 0x280]
test rcx, rcx
je 0x6c2231
nop dword [rax + rax]
mov rdx, rcx
xor eax, eax
cmp ebx, dword [rdx]
je 0x6c2290
add eax, 1
add rdx, 0x28
cmp eax, 0x10
jne 0x6c2215
mov rcx, qword [rcx + 0x280]
test rcx, rcx
jne 0x6c2210
mov r12d, r8d
and r12d, 0xf
jne 0x6c2243
test r11b, r11b
jne 0x6c230a
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, [0x00de2100]
movups xmmword [r14 + 8], xmm4
movdqu xmm5, xmmword [rbp + 0x10]
movups xmmword [r14 + 0x18], xmm5
call sub.KERNEL32.DLL_LeaveCriticalSection
jmp 0x6c1eb1
lea rax, [rax + rax*4]
lea r14, [rcx + rax*8]
test r14, r14
jne 0x6c2263
jmp 0x6c2231
lea rax, [rax + rax*4]
lea r10, [r10 + rax*8]
jmp 0x6c2178
lea rax, [rax + rax*4]
lea r14, [r14 + rax*8]
jmp 0x6c2298
mov rax, rsi
shl rax, 4
mov r14, qword [r9 + rax + 8]
test r15, r15
jne 0x6c21d5
jmp 0x6c21ff
mov ecx, 0x288
mov qword [rsp + 0x38], r9
call fcn.006ba730
mov r9, qword [rsp + 0x38]
test rax, rax
je 0x6c2344
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 0x6c2106
mov ecx, 0x288
mov qword [rsp + 0x38], r9
call fcn.006ba730
test rax, rax
je 0x6c2344
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 0x6c2243
lea rdx, [0x00af28ae]
mov ecx, 0xe
call fcn.006bf130
nop
nop word cs:[rax + rax]