Function at 0x1400ae580
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 0x1400ae8b0
cmp byte [rbp + 4], 0
jne 0x1400ae9c5
mov eax, dword [rcx + 0x170]
test eax, eax
je 0x1400ae890
mov rdx, qword [rcx + 0x178]
lea ecx, [rax - 1]
xor edi, edi
shl rcx, 4
lea rax, [rdx + 0x10]
add rcx, rax
jmp 0x1400ae5e4
add rax, 0x10
mov edx, dword [rdx]
add rdi, rdx
mov rdx, rax
cmp rax, rcx
jne 0x1400ae5e0
test rdi, rdi
je 0x1400ae890
mov rax, qword [rbp + 0x10]
and r8d, 8
mov r14, rax
jne 0x1400ae618
mov r14, qword [rsi + 0x180]
cmp r14, 0xffffffffffffffff
je 0x1400ae935
lea rdx, [r14 + rdi]
mov rcx, qword [rbp + 8]
mov qword [rsp + 0x38], rdx
cmp rdx, rax
jle 0x1400ae756
cmp rcx, 0xffffffffffffffff
je 0x1400ae63a
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 0x1400ae9e7
mov rax, qword [rsp + 0x38]
lea r8, [0x140584520]
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, [0x1402fb520]
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 0x1400ae95f
test cl, cl
je 0x1400ae95f
mov r11, qword [rdx + 8]
mov eax, 0x10
mov rcx, r11
xor edx, edx
jmp 0x1400ae6f1
add rdx, 1
add rcx, 0x28
cmp rdx, rax
jae 0x1400ae974
cmp ebx, dword [rcx]
jne 0x1400ae6e0
lea rax, [rdx + rdx*4]
lea rax, [r11 + rax*8]
test rax, rax
jne 0x1400ae738
mov r12d, r10d
and r12d, 0xf
jne 0x1400ae714
test r13b, r13b
jne 0x1400aeafc
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.1400c35f0
mov rcx, qword [rbp + 8]
mov rax, r14
mov r11d, dword [0x1402fb500]
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 0x1400ae93e
mov r8d, dword [rsi + 0x170]
xor r13d, r13d
test r8d, r8d
je 0x1400ae8cf
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 0x1400ae7c8
mov rsi, rbx
mov ebx, dword [rsp + 0x40]
cmp r13, rdi
jne 0x1400ae8cf
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FlushViewOfFile]
test eax, eax
je 0x1400ae8ff
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x1400ae93e
cmp qword [rsi + 0x180], 0xffffffffffffffff
je 0x1400aebad
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 0x1400ae89b
mov r8d, 0x419
lea rdx, str.src_win_fs.c
lea rcx, str.req__result____1
call qword [sym.imp.msvcrt.dll__assert]
jmp 0x1400ae89b
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.1400ab4e0
cdqe
mov qword [rsi + 0x88], rax
jmp 0x1400ae89b
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 0x1400ae821
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.1400ab4e0
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 0x1400ae618
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.1400ab4e0
cdqe
mov qword [rsi + 0x88], rax
jmp 0x1400ae89b
mov rdx, r15
shl rdx, 4
mov r11, qword [r9 + rdx + 8]
test rax, rax
jne 0x1400ae6d1
mov rdx, qword [r11 + 0x280]
test rdx, rdx
je 0x1400ae702
nop dword [rax]
mov rcx, rdx
xor eax, eax
nop dword [rax]
cmp ebx, dword [rcx]
je 0x1400ae9b8
add eax, 1
add rcx, 0x28
cmp eax, 0x10
jne 0x1400ae990
mov rdx, qword [rdx + 0x280]
test rdx, rdx
jne 0x1400ae988
jmp 0x1400ae702
lea rax, [rax + rax*4]
lea rax, [rdx + rax*8]
jmp 0x1400ae738
mov dword [rcx + 0x14c], 1
mov ecx, 1
call fcn.1400ab4e0
cdqe
mov qword [rsi + 0x88], rax
jmp 0x1400ae89b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.1400ab4e0
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, [0x140584520]
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, [0x1402fb520]
shl rax, 4
add rax, r9
mov r10, qword [rax]
test r10, r10
mov rcx, r10
setne r11b
and ecx, 0xf
jne 0x1400aeb47
test r11b, r11b
je 0x1400aeb47
mov rsi, qword [rax + 8]
mov ecx, 0x10
mov rdx, rsi
xor eax, eax
jmp 0x1400aea91
add rax, 1
add rdx, 0x28
cmp rcx, rax
jbe 0x1400aeb5c
cmp ebx, dword [rdx]
jne 0x1400aea80
lea rax, [rax + rax*4]
lea rax, [rsi + rax*8]
test rax, rax
jne 0x1400aead2
mov esi, r10d
and esi, 0xf
jne 0x1400aeab3
test r11b, r11b
jne 0x1400aed34
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.1400c35f0
mov ecx, 0x288
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], r9
call fcn.1400a6950
mov rcx, rax
test rax, rax
je 0x1400aed7b
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 0x1400ae714
mov rax, r15
shl rax, 4
mov rsi, qword [r9 + rax + 8]
test rcx, rcx
jne 0x1400aea78
mov rcx, qword [rsi + 0x280]
test rcx, rcx
je 0x1400aeaa2
nop dword [rax]
mov rdx, rcx
xor eax, eax
nop dword [rax]
cmp ebx, dword [rdx]
je 0x1400aeba0
add eax, 1
add rdx, 0x28
cmp eax, 0x10
jne 0x1400aeb78
mov rcx, qword [rcx + 0x280]
test rcx, rcx
jne 0x1400aeb70
jmp 0x1400aeaa2
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8]
jmp 0x1400aead2
mov rax, qword [rsp + 0x38]
lea r8, [0x140584520]
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, [0x1402fb520]
shl rax, 4
add rax, r9
mov r10, qword [rax]
test r10, r10
mov rcx, r10
setne r11b
and ecx, 0xf
jne 0x1400aec8b
test r11b, r11b
je 0x1400aec8b
mov r13, qword [rax + 8]
mov ecx, 0x10
mov rdx, r13
xor eax, eax
jmp 0x1400aec25
add rax, 1
add rdx, 0x28
cmp rax, rcx
jae 0x1400aeca0
cmp ebx, dword [rdx]
jne 0x1400aec18
lea rax, [rax + rax*4]
lea rax, [r13 + rax*8]
test rax, rax
jne 0x1400aec6c
mov r13d, r10d
and r13d, 0xf
jne 0x1400aec49
test r11b, r11b
jne 0x1400aeced
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.1400c35f0
jmp 0x1400ae840
mov rax, r14
shl rax, 4
mov r13, qword [r9 + rax + 8]
test rcx, rcx
jne 0x1400aec0c
mov rcx, qword [r13 + 0x280]
test rcx, rcx
je 0x1400aec37
nop dword [rax]
mov rdx, rcx
xor eax, eax
nop dword [rax]
cmp ebx, dword [rdx]
je 0x1400aece0
add eax, 1
add rdx, 0x28
cmp eax, 0x10
jne 0x1400aecb8
mov rcx, qword [rcx + 0x280]
test rcx, rcx
jne 0x1400aecb0
jmp 0x1400aec37
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8]
jmp 0x1400aec6c
mov ecx, 0x288
mov qword [rsp + 0x40], r8
mov qword [rsp + 0x38], r9
call fcn.1400a6950
mov rdx, rax
test rax, rax
je 0x1400aed7b
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 0x1400aec49
mov ecx, 0x288
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], r9
call fcn.1400a6950
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
test rax, rax
mov rdx, rax
je 0x1400aed7b
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 0x1400aeab3
lea rdx, [0x14029c947]
mov ecx, 0xe
call fcn.1400ab420
nop
nop dword [rax]