Function at 0x140118930
Capabilities:
Timestomp file

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r14, r8
mov r12, rdx
mov rsi, rcx
mov r13d, dword [rcx + 0x150]
mov dword [rsp + 0xa0], r13d
mov r8d, dword [r8]
and r8d, 8
test byte [r14], 3
jne 0x14011898d
mov ecx, 0x3ec
mov dword [rsi + 0x14c], ecx
call fcn.14011bfd0
movsxd rcx, eax
mov qword [rsi + 0x88], rcx
jmp 0x140118c04
cmp byte [r14 + 4], 0
je 0x1401189a5
mov dword [rcx + 0x14c], 1
mov ecx, 1
jmp 0x140118979
xor r15d, r15d
mov eax, dword [rcx + 0x170]
test eax, eax
je 0x1401189ca
mov rcx, qword [rcx + 0x178]
mov edx, eax
mov eax, dword [rcx]
add r15, rax
lea rcx, [rcx + 0x10]
sub rdx, 1
jne 0x1401189bb
test r15, r15
jne 0x1401189db
and qword [rsi + 0x88], r15
jmp 0x140118c04
test r8d, r8d
je 0x1401189e6
mov rbx, qword [r14 + 0x10]
jmp 0x1401189f7
mov rbx, qword [rsi + 0x180]
cmp rbx, 0xffffffffffffffff
jne 0x1401189f7
mov rbx, qword [r14 + 0x18]
lea rdi, [rbx + r15]
mov qword [rsp + 0xa8], rdi
cmp rdi, qword [r14 + 0x10]
jle 0x140118a9b
mov rcx, qword [r14 + 8]
cmp rcx, 0xffffffffffffffff
je 0x140118a1d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0x28], 0
mov dword [rsp + 0x20], edi
mov r9d, dword [rsp + 0xac]
xor edx, edx
lea r8d, [rdx + 4]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [r14 + 8], rax
test rax, rax
jne 0x140118a8c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.14011bfd0
movsxd rdx, eax
mov qword [rsi + 0x88], rdx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or qword [r14 + 8], 0xffffffffffffffff
and qword [r14 + 0x10], 0
and qword [r14 + 0x18], 0
mov rdx, r14
mov ecx, r13d
call fcn.140118c90
jmp 0x140118c04
mov qword [r14 + 0x10], rdi
mov rdx, r14
mov ecx, r13d
call fcn.140118c90
mov ecx, dword [0x1401daa88]
mov rax, rbx
cqo
idiv rcx
mov rax, rdx
mov qword [rsp + 0xa8], rdx
sub rbx, rdx
add rax, r15
mov r8, rbx
shr r8, 0x20
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov edx, 2
mov rcx, qword [r14 + 8]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r15, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x140118af8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
jmp 0x140118979
xor r12d, r12d
xor ebx, ebx
cmp ebx, dword [rsi + 0x170]
jae 0x140118b75
and dword [rsp + 0x30], 0
mov r13d, ebx
add r13, r13
mov rdx, qword [rsi + 0x178]
mov r8d, dword [rdx + r13*8]
lea rcx, [r12 + r15]
add rcx, qword [rsp + 0xa8]
mov rdx, qword [rdx + r13*8 + 8]
call fcn.140145200
nop
mov rax, qword [rsi + 0x178]
mov ecx, dword [rax + r13*8]
add r12, rcx
inc ebx
jmp 0x140118afd
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FlushViewOfFile]
test eax, eax
jne 0x140118bac
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.14011bfd0
movsxd rcx, eax
mov qword [rsi + 0x88], rcx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x140118c04
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x140118ae5
cmp qword [rsi + 0x180], 0xffffffffffffffff
jne 0x140118bda
mov qword [r14 + 0x18], rdi
mov rdx, r14
mov ecx, dword [rsp + 0xa0]
call fcn.140118c90
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea r9, [rsp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov qword [rsi + 0x88], r12
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret