Function at 0x140149140
Capabilities:
Timestomp file

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rdi, r8
mov r8d, dword [r8]
mov qword [rsp + 0x40], rdx
mov rsi, rcx
test r8b, 3
je 0x140149460
cmp byte [rdi + 4], 0
jne 0x140149575
mov eax, dword [rcx + 0x170]
test eax, eax
je 0x140149440
mov rdx, qword [rcx + 0x178]
lea ecx, [rax - 1]
xor r13d, r13d
shl rcx, 4
lea rax, [rdx + 0x10]
add rcx, rax
jmp 0x1401491a4
add rax, 0x10
mov edx, dword [rdx]
add r13, rdx
mov rdx, rax
cmp rax, rcx
jne 0x1401491a0
test r13, r13
je 0x140149440
mov rax, qword [rdi + 0x10]
and r8d, 8
mov r14, rax
jne 0x1401491d8
mov r14, qword [rsi + 0x180]
cmp r14, 0xffffffffffffffff
je 0x1401494e5
lea rcx, [r14 + r13]
mov ebx, dword [rsi + 0x150]
mov rdx, rcx
mov qword [rsp + 0x48], rcx
mov rcx, qword [rdi + 8]
cmp rdx, rax
jle 0x140149311
cmp rcx, 0xffffffffffffffff
je 0x140149203
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
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 [rdi + 8], rax
test rax, rax
je 0x140149597
mov rax, qword [rsp + 0x48]
lea rcx, [0x1407b2aa0]
mov qword [rdi + 0x10], rax
call sub.KERNEL32.dll_EnterCriticalSection
mov rax, r15
lea r8, [0x140529aa0]
shl rax, 4
add rax, r8
mov r9, qword [rax]
test r9, r9
mov rcx, r9
setne r10b
and ecx, 0xf
jne 0x14014950f
test r10b, r10b
je 0x14014950f
mov r11, qword [rax + 8]
mov ecx, 0x10
mov rdx, r11
xor eax, eax
jmp 0x1401492a9
add rax, 1
add rdx, 0x28
cmp rax, rcx
jae 0x140149524
cmp ebx, dword [rdx]
jne 0x140149298
lea rax, [rax + rax*4]
lea rax, [r11 + rax*8]
test rax, rax
jne 0x1401492f0
mov ebp, r9d
and ebp, 0xf
jne 0x1401492cb
test r10b, r10b
jne 0x1401496a6
shl r15, 4
add r9, 1
mov edx, ebp
add r8, r15
lea rax, [rdx + rdx*4]
mov qword [r8], r9
mov r9, qword [r8 + 8]
lea rax, [r9 + rax*8]
mov dword [rax], ebx
nop dword [rax]
movdqu xmm0, xmmword [rdi]
lea rcx, [0x1407b2aa0]
movups xmmword [rax + 8], xmm0
movdqu xmm1, xmmword [rdi + 0x10]
movups xmmword [rax + 0x18], xmm1
call fcn.14015d780
mov rcx, qword [rdi + 8]
mov rax, r14
mov r10d, dword [0x140529a80]
cqo
idiv r10
sub r14, rdx
lea rax, [rdx + r13]
mov qword [rsp + 0x38], 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 0x1401494ee
mov ecx, dword [rsi + 0x170]
xor ebp, ebp
test ecx, ecx
je 0x14014947f
mov rax, qword [rsi + 0x178]
xor r12d, r12d
xor ebp, ebp
nop
mov r9d, r12d
mov rcx, qword [rsp + 0x38]
add r12d, 1
shl r9, 4
add rax, r9
add rcx, rbp
mov r15, r9
mov rdx, qword [rax + 8]
mov r8d, dword [rax]
add rcx, r14
call sub.msvcrt.dll_memcpy
mov rax, qword [rsi + 0x178]
mov edx, dword [rax + r15]
add rbp, rdx
cmp dword [rsi + 0x170], r12d
ja 0x140149370
cmp rbp, r13
jne 0x14014947f
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FlushViewOfFile]
test eax, eax
je 0x1401494af
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x1401494ee
cmp qword [rsi + 0x180], 0xffffffffffffffff
je 0x14014974d
lea rbx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov rcx, qword [rsp + 0x40]
mov r9, rbx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov qword [rsi + 0x88], r13
cmp r13, 0xffffffffffffffff
jne 0x14014944b
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rsi + 0x14c], ecx
call fcn.140146240
cdqe
mov qword [rsi + 0x88], rax
jmp 0x14014944b
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], 5
mov ecx, 5
call fcn.140146240
cdqe
mov qword [rsi + 0x88], rax
jmp 0x14014944b
lea rdx, str.src_win_fs.c
lea rcx, str.done_write__write_size
mov r8d, 0x40b
mov r13, rbp
call qword [sym.imp.msvcrt.dll__assert]
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FlushViewOfFile]
test eax, eax
jne 0x1401493cb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.140146240
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 [rdi + 0x18]
jmp 0x1401491d8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.140146240
cdqe
mov qword [rsi + 0x88], rax
jmp 0x14014944b
mov rax, r15
shl rax, 4
mov r11, qword [r8 + rax + 8]
test rcx, rcx
jne 0x14014928c
mov rax, qword [r11 + 0x280]
test rax, rax
je 0x1401492ba
nop dword [rax]
mov rcx, rax
xor edx, edx
nop dword [rax]
cmp ebx, dword [rcx]
je 0x140149568
add edx, 1
add rcx, 0x28
cmp edx, 0x10
jne 0x140149540
mov rax, qword [rax + 0x280]
test rax, rax
jne 0x140149538
jmp 0x1401492ba
lea rdx, [rdx + rdx*4]
lea rax, [rax + rdx*8]
jmp 0x1401492f0
mov dword [rcx + 0x14c], 1
mov ecx, 1
call fcn.140146240
cdqe
mov qword [rsi + 0x88], rax
jmp 0x14014944b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.140146240
mov rcx, qword [rsp + 0x40]
cdqe
mov qword [rsi + 0x88], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
lea rcx, [0x1407b2aa0]
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0
call sub.KERNEL32.dll_EnterCriticalSection
mov rax, r15
lea r8, [0x140529aa0]
shl rax, 4
add rax, r8
mov r9, qword [rax]
test r9, r9
mov rcx, r9
setne r11b
and ecx, 0xf
jne 0x1401496e7
test r11b, r11b
je 0x1401496e7
mov r10, qword [rax + 8]
mov ecx, 0x10
mov rdx, r10
xor eax, eax
jmp 0x140149639
add rax, 1
add rdx, 0x28
cmp rcx, rax
jbe 0x1401496fc
cmp ebx, dword [rdx]
jne 0x140149628
lea rax, [rax + rax*4]
lea rax, [r10 + rax*8]
test rax, rax
jne 0x140149679
mov esi, r9d
and esi, 0xf
jne 0x14014965b
test r11b, r11b
jne 0x1401498ba
shl r15, 4
mov esi, esi
add r9, 1
add r8, r15
lea rax, [rsi + rsi*4]
mov r10, qword [r8 + 8]
mov qword [r8], r9
lea rax, [r10 + rax*8]
mov dword [rax], ebx
movdqu xmm2, xmmword [rdi]
lea rcx, [0x1407b2aa0]
movups xmmword [rax + 8], xmm2
movdqu xmm3, xmmword [rdi + 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.14015d780
mov ecx, 0x288
mov qword [rsp + 0x38], r8
call fcn.1401419c0
mov rcx, rax
test rax, rax
je 0x1401498f7
mov r8, qword [rsp + 0x38]
mov rax, r15
shl rax, 4
add rax, r8
mov r9, qword [rax + 8]
mov qword [rcx + 0x280], r9
mov r9, qword [rax]
mov qword [rax + 8], rcx
jmp 0x1401492cb
mov rax, r15
shl rax, 4
mov r10, qword [r8 + rax + 8]
test rcx, rcx
jne 0x14014961b
mov rcx, qword [r10 + 0x280]
test rcx, rcx
je 0x14014964a
nop dword [rax]
mov rdx, rcx
xor eax, eax
nop dword [rax]
cmp ebx, dword [rdx]
je 0x140149740
add eax, 1
add rdx, 0x28
cmp eax, 0x10
jne 0x140149718
mov rcx, qword [rcx + 0x280]
test rcx, rcx
jne 0x140149710
jmp 0x14014964a
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8]
jmp 0x140149679
mov rax, qword [rsp + 0x48]
lea rcx, [0x1407b2aa0]
movzx ebp, bl
mov qword [rdi + 0x18], rax
call sub.KERNEL32.dll_EnterCriticalSection
mov rax, rbp
lea r8, [0x140529aa0]
shl rax, 4
add rax, r8
mov r9, qword [rax]
test r9, r9
mov rcx, r9
setne r10b
and ecx, 0xf
jne 0x140149819
test r10b, r10b
je 0x140149819
mov r11, qword [rax + 8]
mov ecx, 0x10
mov rdx, r11
xor eax, eax
jmp 0x1401497b5
add rax, 1
add rdx, 0x28
cmp rax, rcx
jae 0x14014982e
cmp ebx, dword [rdx]
jne 0x1401497a8
lea rax, [rax + rax*4]
lea rax, [r11 + rax*8]
test rax, rax
jne 0x1401497f7
mov r14d, r9d
and r14d, 0xf
jne 0x1401497d8
test r10b, r10b
jne 0x14014987d
shl rbp, 4
mov r14d, r14d
add r9, 1
add r8, rbp
lea rax, [r14 + r14*4]
mov rdx, qword [r8 + 8]
mov qword [r8], r9
lea rax, [rdx + rax*8]
mov dword [rax], ebx
movdqu xmm4, xmmword [rdi]
lea rcx, [0x1407b2aa0]
movups xmmword [rax + 8], xmm4
movdqu xmm5, xmmword [rdi + 0x10]
movups xmmword [rax + 0x18], xmm5
call fcn.14015d780
jmp 0x1401493ea
mov rax, rbp
shl rax, 4
mov r11, qword [r8 + rax + 8]
test rcx, rcx
jne 0x14014979e
mov rcx, qword [r11 + 0x280]
test rcx, rcx
je 0x1401497c6
nop word [rax + rax]
mov rdx, rcx
xor eax, eax
nop dword [rax]
cmp ebx, dword [rdx]
je 0x140149870
add eax, 1
add rdx, 0x28
cmp eax, 0x10
jne 0x140149848
mov rcx, qword [rcx + 0x280]
test rcx, rcx
jne 0x140149840
jmp 0x1401497c6
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8]
jmp 0x1401497f7
mov ecx, 0x288
mov qword [rsp + 0x38], r8
call fcn.1401419c0
mov rdx, rax
test rax, rax
je 0x1401498f7
mov r8, qword [rsp + 0x38]
mov rax, rbp
shl rax, 4
add rax, r8
mov rcx, qword [rax + 8]
mov r9, qword [rax]
mov qword [rdx + 0x280], rcx
mov qword [rax + 8], rdx
jmp 0x1401497d8
mov ecx, 0x288
mov qword [rsp + 0x38], r8
call fcn.1401419c0
mov r8, qword [rsp + 0x38]
test rax, rax
mov rdx, rax
je 0x1401498f7
mov rax, r15
shl rax, 4
add rax, r8
mov rcx, qword [rax + 8]
mov r9, qword [rax]
mov qword [rdx + 0x280], rcx
mov qword [rax + 8], rdx
jmp 0x14014965b
lea rdx, [0x140471907]
mov ecx, 0xe
call fcn.140146180
nop
nop dword [rax]