Function at 0x1400a72a0
Capabilities:
Timestomp file

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov ebx, dword [rcx + 0x150]
mov rbp, r8
mov r8d, dword [r8]
mov qword [rsp + 0x30], rdx
mov rsi, rcx
test r8b, 3
je 0x1400a75d0
cmp byte [rbp + 4], 0
jne 0x1400a76e5
mov eax, dword [rcx + 0x170]
test eax, eax
je 0x1400a75b0
mov rdx, qword [rcx + 0x178]
lea ecx, [rax - 1]
xor edi, edi
shl rcx, 4
lea rax, [rdx + 0x10]
add rcx, rax
jmp 0x1400a7304
add rax, 0x10
mov edx, dword [rdx]
add rdi, rdx
mov rdx, rax
cmp rax, rcx
jne 0x1400a7300
test rdi, rdi
je 0x1400a75b0
mov rax, qword [rbp + 0x10]
and r8d, 8
mov r14, rax
jne 0x1400a7338
mov r14, qword [rsi + 0x180]
cmp r14, 0xffffffffffffffff
je 0x1400a7655
lea rdx, [r14 + rdi]
mov rcx, qword [rbp + 8]
mov qword [rsp + 0x38], rdx
cmp rdx, rax
jle 0x1400a7476
cmp rcx, 0xffffffffffffffff
je 0x1400a735a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
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 [rbp + 8], rax
test rax, rax
je 0x1400a7707
mov rax, qword [rsp + 0x38]
lea r8, [0x140587f00]
mov rcx, r8
mov qword [rsp + 0x40], r8
mov qword [rbp + 0x10], rax
call sub.KERNEL32.dll_EnterCriticalSection
mov rdx, r15
mov r8, qword [rsp + 0x40]
lea r9, [0x1402fef00]
shl rdx, 4
add rdx, r9
mov r10, qword [rdx]
test r10, r10
mov rax, r10
setne cl
and eax, 0xf
mov r13d, ecx
jne 0x1400a767f
test cl, cl
je 0x1400a767f
mov r11, qword [rdx + 8]
mov eax, 0x10
mov rcx, r11
xor edx, edx
jmp 0x1400a7411
add rdx, 1
add rcx, 0x28
cmp rdx, rax
jae 0x1400a7694
cmp ebx, dword [rcx]
jne 0x1400a7400
lea rax, [rdx + rdx*4]
lea rax, [r11 + rax*8]
test rax, rax
jne 0x1400a7458
mov r12d, r10d
and r12d, 0xf
jne 0x1400a7434
test r13b, r13b
jne 0x1400a781c
shl r15, 4
mov edx, r12d
add r10, 1
lea rcx, [r9 + r15]
lea rax, [rdx + rdx*4]
mov r9, qword [rcx + 8]
mov qword [rcx], r10
lea rax, [r9 + rax*8]
mov dword [rax], ebx
nop dword [rax]
movdqu xmm0, xmmword [rbp]
mov rcx, r8
movups xmmword [rax + 8], xmm0
movdqu xmm1, xmmword [rbp + 0x10]
movups xmmword [rax + 0x18], xmm1
call fcn.1400bc310
mov rcx, qword [rbp + 8]
mov rax, r14
mov r11d, dword [0x1402feee0]
cqo
idiv r11
sub r14, rdx
lea rax, [rdx + rdi]
mov r15, 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 0x1400a765e
mov r8d, dword [rsi + 0x170]
xor r13d, r13d
test r8d, r8d
je 0x1400a75ef
xor r12d, r12d
mov dword [rsp + 0x40], ebx
mov rax, qword [rsi + 0x178]
mov rbx, rsi
xor r13d, r13d
mov esi, r12d
mov r12, r15
nop word [rax + rax]
mov r15d, esi
lea rcx, [r12 + r13]
add esi, 1
shl r15, 4
add rcx, r14
add rax, r15
mov rdx, qword [rax + 8]
mov r8d, dword [rax]
call sub.msvcrt.dll_memcpy
mov rax, qword [rbx + 0x178]
mov edx, dword [rax + r15]
add r13, rdx
cmp dword [rbx + 0x170], esi
ja 0x1400a74e8
mov rsi, rbx
mov ebx, dword [rsp + 0x40]
cmp r13, rdi
jne 0x1400a75ef
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FlushViewOfFile]
test eax, eax
je 0x1400a761f
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x1400a765e
cmp qword [rsi + 0x180], 0xffffffffffffffff
je 0x1400a78cd
lea rbx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, qword [rsp + 0x30]
mov r9, rbx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov qword [rsi + 0x88], rdi
cmp rdi, 0xffffffffffffffff
jne 0x1400a75bb
mov r8d, 0x419
lea rdx, str.src_win_fs.c
lea rcx, str.req__result____1
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x1400a75bb
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], 0x3ec
mov ecx, 0x3ec
call fcn.1400a4200
cdqe
mov qword [rsi + 0x88], rax
jmp 0x1400a75bb
lea rdx, str.src_win_fs.c
lea rcx, str.done_write__write_size
mov r8d, 0x405
mov rdi, r13
call qword [sym.imp.msvcrt.dll__assert]
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FlushViewOfFile]
test eax, eax
jne 0x1400a7541
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.1400a4200
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 [rbp + 0x18]
jmp 0x1400a7338
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.1400a4200
cdqe
mov qword [rsi + 0x88], rax
jmp 0x1400a75bb
mov rdx, r15
shl rdx, 4
mov r11, qword [r9 + rdx + 8]
test rax, rax
jne 0x1400a73f1
mov rdx, qword [r11 + 0x280]
test rdx, rdx
je 0x1400a7422
nop dword [rax]
mov rcx, rdx
xor eax, eax
nop dword [rax]
cmp ebx, dword [rcx]
je 0x1400a76d8
add eax, 1
add rcx, 0x28
cmp eax, 0x10
jne 0x1400a76b0
mov rdx, qword [rdx + 0x280]
test rdx, rdx
jne 0x1400a76a8
jmp 0x1400a7422
lea rax, [rax + rax*4]
lea rax, [rdx + rax*8]
jmp 0x1400a7458
mov dword [rcx + 0x14c], 1
mov ecx, 1
call fcn.1400a4200
cdqe
mov qword [rsi + 0x88], rax
jmp 0x1400a75bb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.1400a4200
mov rcx, qword [rsp + 0x30]
cdqe
mov qword [rsi + 0x88], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 8], 0xffffffffffffffff
lea r8, [0x140587f00]
mov qword [rbp + 0x10], 0
mov rcx, r8
mov qword [rbp + 0x18], 0
mov qword [rsp + 0x30], r8
call sub.KERNEL32.dll_EnterCriticalSection
mov rax, r15
mov r8, qword [rsp + 0x30]
lea r9, [0x1402fef00]
shl rax, 4
add rax, r9
mov r10, qword [rax]
test r10, r10
mov rcx, r10
setne r11b
and ecx, 0xf
jne 0x1400a7867
test r11b, r11b
je 0x1400a7867
mov rsi, qword [rax + 8]
mov ecx, 0x10
mov rdx, rsi
xor eax, eax
jmp 0x1400a77b1
add rax, 1
add rdx, 0x28
cmp rcx, rax
jbe 0x1400a787c
cmp ebx, dword [rdx]
jne 0x1400a77a0
lea rax, [rax + rax*4]
lea rax, [rsi + rax*8]
test rax, rax
jne 0x1400a77f2
mov esi, r10d
and esi, 0xf
jne 0x1400a77d3
test r11b, r11b
jne 0x1400a7a54
shl r15, 4
add r10, 1
mov esi, esi
lea rdx, [r9 + r15]
lea rax, [rsi + rsi*4]
mov qword [rdx], r10
mov r10, qword [rdx + 8]
lea rax, [r10 + rax*8]
mov dword [rax], ebx
movdqu xmm2, xmmword [rbp]
mov rcx, r8
movups xmmword [rax + 8], xmm2
movdqu xmm3, xmmword [rbp + 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 fcn.1400bc310
mov ecx, 0x288
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], r9
call fcn.14009f970
mov rcx, rax
test rax, rax
je 0x1400a7a9b
mov r9, qword [rsp + 0x40]
mov rax, r15
mov r8, qword [rsp + 0x48]
shl rax, 4
add rax, r9
mov r10, qword [rax + 8]
mov qword [rcx + 0x280], r10
mov r10, qword [rax]
mov qword [rax + 8], rcx
jmp 0x1400a7434
mov rax, r15
shl rax, 4
mov rsi, qword [r9 + rax + 8]
test rcx, rcx
jne 0x1400a7798
mov rcx, qword [rsi + 0x280]
test rcx, rcx
je 0x1400a77c2
nop dword [rax]
mov rdx, rcx
xor eax, eax
nop dword [rax]
cmp ebx, dword [rdx]
je 0x1400a78c0
add eax, 1
add rdx, 0x28
cmp eax, 0x10
jne 0x1400a7898
mov rcx, qword [rcx + 0x280]
test rcx, rcx
jne 0x1400a7890
jmp 0x1400a77c2
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8]
jmp 0x1400a77f2
mov rax, qword [rsp + 0x38]
lea r8, [0x140587f00]
movzx r14d, bl
mov rcx, r8
mov qword [rsp + 0x38], r8
mov qword [rbp + 0x18], rax
call sub.KERNEL32.dll_EnterCriticalSection
mov rax, r14
mov r8, qword [rsp + 0x38]
lea r9, [0x1402fef00]
shl rax, 4
add rax, r9
mov r10, qword [rax]
test r10, r10
mov rcx, r10
setne r11b
and ecx, 0xf
jne 0x1400a79ab
test r11b, r11b
je 0x1400a79ab
mov r13, qword [rax + 8]
mov ecx, 0x10
mov rdx, r13
xor eax, eax
jmp 0x1400a7945
add rax, 1
add rdx, 0x28
cmp rax, rcx
jae 0x1400a79c0
cmp ebx, dword [rdx]
jne 0x1400a7938
lea rax, [rax + rax*4]
lea rax, [r13 + rax*8]
test rax, rax
jne 0x1400a798c
mov r13d, r10d
and r13d, 0xf
jne 0x1400a7969
test r11b, r11b
jne 0x1400a7a0d
mov rdx, r14
mov r13d, r13d
add r10, 1
shl rdx, 4
lea rax, [r13 + r13*4]
add rdx, r9
mov rcx, qword [rdx + 8]
mov qword [rdx], r10
lea rax, [rcx + rax*8]
mov dword [rax], ebx
movdqu xmm4, xmmword [rbp]
mov rcx, r8
movups xmmword [rax + 8], xmm4
movdqu xmm5, xmmword [rbp + 0x10]
movups xmmword [rax + 0x18], xmm5
call fcn.1400bc310
jmp 0x1400a7560
mov rax, r14
shl rax, 4
mov r13, qword [r9 + rax + 8]
test rcx, rcx
jne 0x1400a792c
mov rcx, qword [r13 + 0x280]
test rcx, rcx
je 0x1400a7957
nop dword [rax]
mov rdx, rcx
xor eax, eax
nop dword [rax]
cmp ebx, dword [rdx]
je 0x1400a7a00
add eax, 1
add rdx, 0x28
cmp eax, 0x10
jne 0x1400a79d8
mov rcx, qword [rcx + 0x280]
test rcx, rcx
jne 0x1400a79d0
jmp 0x1400a7957
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8]
jmp 0x1400a798c
mov ecx, 0x288
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], r9
call fcn.14009f970
mov rdx, rax
test rax, rax
je 0x1400a7a9b
mov r9, qword [rsp + 0x38]
mov rax, r14
mov r8, qword [rsp + 0x40]
shl rax, 4
add rax, r9
mov rcx, qword [rax + 8]
mov qword [rdx + 0x280], rcx
mov r10, qword [rax]
mov qword [rax + 8], rdx
jmp 0x1400a7969
mov ecx, 0x288
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], r9
call fcn.14009f970
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
test rax, rax
mov rdx, rax
je 0x1400a7a9b
mov rax, r15
shl rax, 4
add rax, r9
mov rcx, qword [rax + 8]
mov qword [rdx + 0x280], rcx
mov r10, qword [rax]
mov qword [rax + 8], rdx
jmp 0x1400a77d3
lea rdx, [0x14029d747]
mov ecx, 0xe
call fcn.1400a4140
nop
nop dword [rax]