Function at 0x4bd880
Capabilities:
Timestomp file

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rdi, r8
mov r8d, dword [r8]
mov qword [rsp + 0xa8], rdx
mov rsi, rcx
test r8b, 3
je 0x4bdbb0
cmp byte [rdi + 4], 0
jne 0x4bdcd0
mov eax, dword [rcx + 0x170]
test eax, eax
je 0x4bdb90
mov rdx, qword [rcx + 0x178]
lea ecx, [rax - 1]
xor r13d, r13d
shl rcx, 4
lea rax, [rdx + 0x10]
add rcx, rax
jmp 0x4bd8e4
add rax, 0x10
mov edx, dword [rdx]
add r13, rdx
mov rdx, rax
cmp rax, rcx
jne 0x4bd8e0
test r13, r13
je 0x4bdb90
mov rax, qword [rdi + 0x10]
and r8d, 8
mov r14, rax
jne 0x4bd918
mov r14, qword [rsi + 0x180]
cmp r14, 0xffffffffffffffff
je 0x4bdc30
lea rcx, [r14 + r13]
mov ebx, dword [rsi + 0x150]
mov rdx, rcx
mov qword [rsp + 0x38], rcx
mov rcx, qword [rdi + 8]
cmp rdx, rax
jle 0x4bda59
cmp rcx, 0xffffffffffffffff
je 0x4bd943
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9, qword [rsp + 0x38]
mov rcx, qword [rsp + 0xa8]
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 0x4bdcf2
mov rax, qword [rsp + 0x38]
lea rcx, [0x00a09e00]
mov qword [rdi + 0x10], rax
call sub.KERNEL32.dll_EnterCriticalSection
mov rax, r15
lea r8, [0x00780e00]
shl rax, 4
add rax, r8
mov r9, qword [rax]
test r9, r9
mov rcx, r9
setne r10b
and ecx, 0xf
jne 0x4bdc61
test r10b, r10b
je 0x4bdc61
mov r11, qword [rax + 8]
mov ecx, 0x10
mov rdx, r11
xor eax, eax
jmp 0x4bd9f1
add rax, 1
add rdx, 0x28
cmp rax, rcx
jae 0x4bdc80
cmp ebx, dword [rdx]
jne 0x4bd9e0
lea rax, [rax + rax*4]
lea rax, [r11 + rax*8]
test rax, rax
jne 0x4bda38
mov ebp, r9d
and ebp, 0xf
jne 0x4bda13
test r10b, r10b
jne 0x4bddfa
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, [0x00a09e00]
movups xmmword [rax + 8], xmm0
movdqu xmm1, xmmword [rdi + 0x10]
movups xmmword [rax + 0x18], xmm1
call fcn.004d4240
mov rcx, qword [rdi + 8]
mov rax, r14
mov r10d, dword [0x00780de0]
cqo
idiv r10
sub r14, rdx
lea rax, [rdx + r13]
mov qword [rsp + 0x30], 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 0x4bdc40
mov ecx, dword [rsi + 0x170]
xor ebp, ebp
test ecx, ecx
je 0x4bdbd0
mov rax, qword [rsi + 0x178]
xor r12d, r12d
xor ebp, ebp
nop word cs:[rax + rax]
mov r9d, r12d
mov rcx, qword [rsp + 0x30]
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 0x4bdac0
cmp rbp, r13
jne 0x4bdbd0
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FlushViewOfFile]
test eax, eax
je 0x4bdbfd
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x4bdc40
cmp qword [rsi + 0x180], 0xffffffffffffffff
je 0x4bde9d
lea rbx, [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov r9, rbx
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_SetFileTime]
mov qword [rsi + 0x88], rbp
cmp rbp, 0xffffffffffffffff
jne 0x4bdb9b
call qword [sym.imp.msvcrt.dll___doserrno]
mov ecx, dword [rax]
mov dword [rsi + 0x14c], ecx
call fcn.004bb150
cdqe
mov qword [rsi + 0x88], rax
jmp 0x4bdb9b
mov qword [rsi + 0x88], 0
add rsp, 0x58
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.004bb150
cdqe
mov qword [rsi + 0x88], rax
jmp 0x4bdb9b
lea rdx, str.src_win_fs.c
lea rcx, str.done_write__write_size
mov r8d, 0x3e8
call qword [sym.imp.msvcrt.dll__assert]
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FlushViewOfFile]
test eax, eax
jne 0x4bdb1b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.004bb150
mov rcx, r14
cdqe
mov qword [rsi + 0x88], rax
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x4bdb9b
mov r14, qword [rdi + 0x18]
jmp 0x4bd918
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.004bb150
cdqe
mov qword [rsi + 0x88], rax
jmp 0x4bdb9b
mov rax, r15
shl rax, 4
mov r11, qword [r8 + rax + 8]
test rcx, rcx
jne 0x4bd9cf
nop word cs:[rax + rax]
mov rcx, qword [r11 + 0x280]
test rcx, rcx
je 0x4bda02
mov rdx, rcx
xor eax, eax
nop dword [rax]
cmp ebx, dword [rdx]
je 0x4bdcc0
add eax, 1
add rdx, 0x28
cmp eax, 0x10
jne 0x4bdc98
mov rcx, qword [rcx + 0x280]
test rcx, rcx
jne 0x4bdc90
jmp 0x4bda02
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8]
jmp 0x4bda38
mov dword [rcx + 0x14c], 1
mov ecx, 1
call fcn.004bb150
cdqe
mov qword [rsi + 0x88], rax
jmp 0x4bdb9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi + 0x14c], eax
mov ecx, eax
call fcn.004bb150
mov rcx, qword [rsp + 0xa8]
cdqe
mov qword [rsi + 0x88], rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 8], 0xffffffffffffffff
lea rcx, [0x00a09e00]
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0
call sub.KERNEL32.dll_EnterCriticalSection
mov rax, r15
lea r8, [0x00780e00]
shl rax, 4
add rax, r8
mov r9, qword [rax]
test r9, r9
mov rcx, r9
setne r11b
and ecx, 0xf
jne 0x4bde3b
test r11b, r11b
je 0x4bde3b
mov r10, qword [rax + 8]
mov ecx, 0x10
mov rdx, r10
xor eax, eax
jmp 0x4bdd91
add rax, 1
add rdx, 0x28
cmp rcx, rax
jbe 0x4bde50
cmp ebx, dword [rdx]
jne 0x4bdd80
lea rax, [rax + rax*4]
lea rax, [r10 + rax*8]
test rax, rax
jne 0x4bddd8
mov esi, r9d
and esi, 0xf
jne 0x4bddb3
test r11b, r11b
jne 0x4bdfe5
shl r15, 4
mov eax, esi
add r9, 1
add r8, r15
lea rax, [rax + rax*4]
mov r10, qword [r8 + 8]
mov qword [r8], r9
lea rax, [r10 + rax*8]
mov dword [rax], ebx
nop dword [rax]
movdqu xmm2, xmmword [rdi]
lea rcx, [0x00a09e00]
movups xmmword [rax + 8], xmm2
movdqu xmm3, xmmword [rdi + 0x10]
movups xmmword [rax + 0x18], xmm3
call fcn.004d4240
jmp 0x4bdb9b
mov ecx, 0x288
mov qword [rsp + 0x30], r8
call fcn.004b75d0
mov rcx, rax
test rax, rax
je 0x4be05f
mov r8, qword [rsp + 0x30]
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 0x4bda13
mov rax, r15
shl rax, 4
mov r10, qword [r8 + rax + 8]
test rcx, rcx
jne 0x4bdd79
mov rcx, qword [r10 + 0x280]
test rcx, rcx
je 0x4bdda2
mov rdx, rcx
xor eax, eax
nop dword [rax]
cmp ebx, dword [rdx]
je 0x4bde90
add eax, 1
add rdx, 0x28
cmp eax, 0x10
jne 0x4bde68
mov rcx, qword [rcx + 0x280]
test rcx, rcx
jne 0x4bde60
jmp 0x4bdda2
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8]
jmp 0x4bddd8
mov rax, qword [rsp + 0x38]
movzx r12d, bl
lea rcx, [0x00a09e00]
mov r12d, r12d
mov qword [rdi + 0x18], rax
call sub.KERNEL32.dll_EnterCriticalSection
mov rax, r12
lea r8, [0x00780e00]
shl rax, 4
add rax, r8
mov r9, qword [rax]
test r9, r9
mov rcx, r9
setne r11b
and ecx, 0xf
jne 0x4bdf82
test r11b, r11b
je 0x4bdf82
mov r13, qword [rax + 8]
mov ecx, 0x10
mov rdx, r13
xor eax, eax
jmp 0x4bdf11
add rax, 1
add rdx, 0x28
cmp rax, rcx
jae 0x4bdf97
cmp ebx, dword [rdx]
jne 0x4bdf00
lea rax, [rax + rax*4]
lea rax, [r13 + rax*8]
test rax, rax
jne 0x4bdf60
mov r13d, r9d
and r13d, 0xf
jne 0x4bdf35
test r11b, r11b
jne 0x4be022
mov rax, r12
add r9, 1
shl rax, 4
add r8, rax
mov eax, r13d
mov rdx, qword [r8 + 8]
lea rax, [rax + rax*4]
mov qword [r8], r9
lea rax, [rdx + rax*8]
mov dword [rax], ebx
nop word [rax + rax]
movdqu xmm4, xmmword [rdi]
lea rcx, [0x00a09e00]
movups xmmword [rax + 8], xmm4
movdqu xmm5, xmmword [rdi + 0x10]
movups xmmword [rax + 0x18], xmm5
call fcn.004d4240
jmp 0x4bdb3a
mov rax, r12
shl rax, 4
mov r13, qword [r8 + rax + 8]
test rcx, rcx
jne 0x4bdef2
mov rcx, qword [r13 + 0x280]
test rcx, rcx
je 0x4bdf23
nop dword [rax + rax]
mov rdx, rcx
xor eax, eax
nop dword [rax]
cmp ebx, dword [rdx]
je 0x4bdfd8
add eax, 1
add rdx, 0x28
cmp eax, 0x10
jne 0x4bdfb0
mov rcx, qword [rcx + 0x280]
test rcx, rcx
jne 0x4bdfa8
jmp 0x4bdf23
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8]
jmp 0x4bdf60
mov ecx, 0x288
mov qword [rsp + 0x30], r8
call fcn.004b75d0
mov r8, qword [rsp + 0x30]
test rax, rax
mov rdx, rax
je 0x4be05f
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 0x4bddb3
mov ecx, 0x288
mov qword [rsp + 0x30], r8
call fcn.004b75d0
mov rdx, rax
test rax, rax
je 0x4be05f
mov r8, qword [rsp + 0x30]
mov rax, r12
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 0x4bdf35
lea rdx, [0x0071ba8e]
mov ecx, 0xe
call fcn.004bb090
nop
nop word cs:[rax + rax]
nop dword [rax]