Function at 0x14008f8d0
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x248
mov rax, qword [0x14020eb28]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, qword [rcx]
mov qword [rcx], 0
test rsi, rsi
je 0x14008fe78
cmp byte [rsi + 0x30], 0
je 0x14008f937
mov rcx, qword [rsi + 8]
xor edx, edx
xor r8d, r8d
call fcn.1400d2430
test rax, rax
je 0x14008f9c3
mov ecx, 2
call fcn.140055330
test al, al
jne 0x14008ff4e
xorps xmm0, xmm0
lea rax, [rsp + 0x60]
movaps xmmword [rax + 0x10], xmm0
movaps xmmword [rax], xmm0
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x20], rax
xor edx, edx
mov r8d, 0xffffffff
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_UnlockFileEx]
test eax, eax
jne 0x14008f979
mov ecx, 2
call fcn.140055330
test al, al
jne 0x14008ff98
mov rbx, qword [rsi + 0x38]
test rbx, rbx
je 0x14008fe44
mov rdi, qword [rsi + 0x40]
cmp rdi, rbx
je 0x14008fe38
lea rbp, [rdi - 0x70]
cmp byte [rdi - 0x31], 0
jns 0x14008f9a6
mov rcx, qword [rdi - 0x48]
call fcn.140180390
add rdi, 0xffffffffffffffa0
mov rcx, rdi
call fcn.140050690
mov rdi, rbp
cmp rbx, rbp
jne 0x14008f993
mov rcx, qword [rsi + 0x38]
jmp 0x14008fe3b
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14008fe9d
mov rbx, qword [rsi + 0x40]
sub rbx, qword [rsi + 0x38]
mov rdi, rbx
sar rdi, 4
movabs rax, 0x6db6db6db6db6db7
imul rdi, rax
mov qword [rsp + 0xc8], 0
movabs rax, 0x143504144
mov qword [rsp + 0xc0], rax
mov rax, rdi
shr rax, 0x20
jne 0x1400901ef
mov eax, edi
lea rdx, [rsp + 0xc0]
mov dword [rdx + 8], eax
mov rcx, qword [rsi + 8]
mov r8d, 0x10
call fcn.1400d28a0
test al, al
je 0x14008ff02
test rbx, rbx
je 0x14008f937
movabs rcx, 0x492492492492492
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
xor eax, eax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x90], rax
movaps xmmword [rsp + 0x80], xmm0
cmp rdi, rcx
ja 0x140090207
imul rdi, rdi, 0x38
mov rcx, rdi
call fcn.140180340
add rdi, rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rdi
mov r12, qword [rsi + 0x38]
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x58], rcx
cmp r12, rcx
je 0x14008ffeb
mov qword [rsp + 0x28], rsi
lea r15, [rsi + 0x18]
lea rbp, [rsp + 0xf8]
lea r13, [rsp + 0x60]
lea r14, [rsp + 0xa0]
mov qword [rsp + 0x30], r15
lea rdi, [r12 + 0x10]
mov rcx, rdi
mov rdx, rbp
call fcn.140051160
mov rcx, rbp
mov rdx, r15
call fcn.140050970
mov ebx, eax
mov rcx, rbp
call fcn.140050690
test bl, bl
jne 0x14008fff3
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0xe0], xmm0
mov rcx, rdi
mov rdx, r13
call fcn.140051600
movzx eax, byte [rsp + 0x77]
test al, al
mov rcx, qword [rsp + 0x60]
cmovns rcx, r13
mov qword [rsp + 0xd0], rcx
cmovs rax, qword [rsp + 0x68]
mov qword [rsp + 0xd8], rax
mov rcx, rbp
lea rdx, [rsp + 0xd0]
call fcn.14005fea0
movzx edi, byte [rsp + 0xb7]
test dil, dil
jns 0x14008fb7f
mov rdi, qword [rsp + 0xa8]
mov rax, rdi
shr rax, 0x20
jne 0x14008fe28
movzx r8d, byte [rsp + 0x10f]
test r8b, r8b
cmovs r8, qword [rsp + 0x100]
mov rdx, qword [rsp + 0xf8]
cmovns rdx, rbp
mov rcx, r14
call fcn.1400371f0
mov rcx, r14
xor edx, edx
call fcn.140037490
cmp byte [rsp + 0x10f], 0
jns 0x14008fbc9
mov rcx, qword [rsp + 0xf8]
call fcn.140180390
mov rcx, r13
call fcn.140050690
movzx ebp, byte [rsp + 0xb7]
test bpl, bpl
jns 0x14008fbf3
mov rbp, qword [rsp + 0xa8]
mov rax, rbp
shr rax, 0x20
jne 0x14008fe30
movzx r8d, byte [r12 + 0x3f]
test r8b, r8b
jns 0x14008fc0a
mov r8, qword [r12 + 0x30]
mov rdx, qword [r12 + 0x28]
jmp 0x14008fc0f
lea rdx, [r12 + 0x28]
mov rcx, r14
call fcn.1400371f0
mov rcx, r14
xor edx, edx
call fcn.140037490
mov r11, qword [r12 + 0x40]
mov r10, qword [r12 + 0x50]
mov r9d, dword [r12 + 0x58]
mov r8d, dword [r12 + 0x68]
mov r14b, byte [r12 + 0x5c]
add r14b, r14b
or r14b, byte [r12 + 0x48]
xor eax, eax
mov dword [rsp + 0xfb], eax
mov dword [rsp + 0xf8], eax
mov rbx, qword [rsp + 0x88]
mov rax, qword [rsp + 0x90]
cmp rbx, rax
jae 0x14008fcc1
movaps xmm0, xmmword [rsp + 0xe0]
movups xmmword [rbx], xmm0
mov dword [rbx + 0x10], edi
mov dword [rbx + 0x14], ebp
mov qword [rbx + 0x18], r11
mov qword [rbx + 0x20], r10
mov dword [rbx + 0x28], r9d
mov dword [rbx + 0x2c], r8d
mov byte [rbx + 0x30], r14b
mov eax, dword [rsp + 0xf8]
mov ecx, dword [rsp + 0xfb]
mov dword [rbx + 0x31], eax
mov dword [rbx + 0x34], ecx
add rbx, 0x38
mov qword [rsp + 0x88], rbx
lea rbp, [rsp + 0xf8]
lea r14, [rsp + 0xa0]
jmp 0x14008fe14
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rdi
mov rsi, qword [rsp + 0x80]
sub rbx, rsi
mov rdi, rbx
sar rdi, 3
movabs rbp, 0x6db6db6db6db6db7
imul rdi, rbp
lea rcx, [rdi + 1]
movabs rdx, 0x492492492492492
cmp rcx, rdx
ja 0x1400901fa
sub rax, rsi
sar rax, 3
imul rax, rbp
lea r13, [rax + rax]
cmp r13, rcx
cmovb r13, rcx
movabs rcx, 0x249249249249249
cmp rax, rcx
cmovae r13, rdx
test r13, r13
je 0x14008fd62
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x40], r10
cmp r13, rdx
ja 0x140090207
mov r15d, r9d
mov ebp, r8d
imul rcx, r13, 0x38
call fcn.140180340
mov r8d, ebp
mov r9d, r15d
mov r10, qword [rsp + 0x40]
mov r11, qword [rsp + 0x38]
jmp 0x14008fd64
xor eax, eax
imul rcx, rdi, 0x38
lea r15, [rax + rcx]
imul rdi, r13, 0x38
add rdi, rax
movaps xmm0, xmmword [rsp + 0xe0]
lea rbp, [rax + rcx]
add rbp, 0x38
movups xmmword [rbp - 0x38], xmm0
mov rax, qword [rsp + 0x50]
mov dword [rbp - 0x28], eax
mov rax, qword [rsp + 0x48]
mov dword [rbp - 0x24], eax
mov qword [rbp - 0x20], r11
mov qword [rbp - 0x18], r10
mov dword [rbp - 0x10], r9d
mov dword [rbp - 0xc], r8d
mov byte [rbp - 8], r14b
mov eax, dword [rsp + 0xf8]
mov ecx, dword [rsp + 0xfb]
mov dword [rbp - 7], eax
mov dword [rbp - 4], ecx
sub r15, rbx
test rbx, rbx
jle 0x14008fdd5
mov rcx, r15
mov rdx, rsi
mov r8, rbx
call fcn.1401836f0
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x90], rdi
test rsi, rsi
lea r13, [rsp + 0x60]
mov r15, qword [rsp + 0x30]
lea rbp, [rsp + 0xf8]
lea r14, [rsp + 0xa0]
je 0x14008fe14
mov rcx, rsi
call fcn.140180390
add r12, 0x70
cmp qword [rsp + 0x58], r12
jne 0x14008fae2
jmp 0x1400900c4
int3
int3
mov rcx, rbx
mov qword [rsi + 0x40], rbx
call fcn.140180390
lea rcx, [rsi + 0x18]
call fcn.140050690
lea rax, [0x1401c5318]
mov qword [rsi], rax
cmp byte [rsi + 0x10], 0
jne 0x1400901f7
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
je 0x14008fe70
call fcn.1400cc740
mov rcx, rsi
call fcn.140180390
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140180700
nop
add rsp, 0x248
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 2
call fcn.140055330
test al, al
je 0x14008f937
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf8]
mov rcx, rdi
mov r8d, 0x1e7
mov r9d, 2
call fcn.140055fe0
lea rcx, [rsp + 0x108]
lea rdx, str.failed_to_truncate
mov r8d, 0x12
call fcn.140006490
mov rcx, rdi
call fcn.1400560d0
jmp 0x14008f937
mov ecx, 2
call fcn.140055330
test al, al
je 0x14008f937
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf8]
mov rcx, rdi
mov r8d, 0x1f3
mov r9d, 2
call fcn.1400553e0
lea rcx, [rsp + 0x108]
lea rdx, str.failed_to_write_header
mov r8d, 0x16
jmp 0x14008ff86
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf8]
mov rcx, rdi
mov r8d, 0x1e0
mov r9d, 2
call fcn.1400553e0
lea rcx, [rsp + 0x108]
lea rdx, str.failed_to_rewind_to_write
mov r8d, 0x19
call fcn.140006490
mov rcx, rdi
call fcn.140055870
jmp 0x14008f937
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf8]
mov rcx, rdi
mov r8d, 0x129
mov r9d, 2
call fcn.140055fe0
lea rcx, [rsp + 0x108]
lea rdx, [0x1401c5670]
mov r8d, ntohl
call fcn.140006490
mov rcx, rdi
call fcn.1400560d0
jmp 0x14008f979
mov r8, rax
jmp 0x1400900d9
mov ecx, 2
call fcn.140055330
test al, al
mov rsi, qword [rsp + 0x28]
je 0x14009016b
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0xf8]
mov r8d, 0x201
mov r9d, 2
call fcn.1400553e0
lea rcx, [rsp + 0x108]
cmp byte [r12 + 0x27], 0
jns 0x14009003f
mov rdi, qword [r12 + 0x10]
mov rdx, rdi
call fcn.140056180
lea rdx, str._expected_to_start_with
mov r8d, 0x18
mov rcx, rax
call fcn.140006490
movzx ecx, byte [rsi + 0x2f]
test cl, cl
cmovs r15, qword [rsi + 0x18]
mov rdi, rax
lea rdx, [rsp + 0xd0]
mov qword [rdx], r15
cmovs rcx, qword [rsi + 0x20]
mov qword [rdx + 8], rcx
mov rcx, r13
call fcn.14005fea0
movzx r8d, byte [rsp + 0x77]
test r8b, r8b
jns 0x14009009b
mov r8, qword [rsp + 0x68]
mov r13, qword [rsp + 0x60]
mov rcx, rdi
mov rdx, r13
call fcn.140006490
cmp byte [rsp + 0x77], 0
jns 0x1400900b7
mov rcx, qword [rsp + 0x60]
call fcn.140180390
lea rcx, [rsp + 0xf8]
jmp 0x1400901e5
mov rax, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x28]
sub r8, rax
mov rcx, qword [rsi + 8]
mov rdx, rax
call fcn.1400d28a0
test al, al
je 0x14009015d
lea rdx, [rsp + 0xa0]
movzx r8d, byte [rdx + 0x17]
test r8b, r8b
cmovs r8, qword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [rsi + 8]
call fcn.1400d28a0
test al, al
jne 0x14009016b
mov ecx, 2
call fcn.140055330
test al, al
je 0x14009016b
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf8]
mov rcx, rdi
mov r8d, 0x210
mov r9d, 2
call fcn.1400553e0
lea rcx, [rsp + 0x108]
lea rdx, str.failed_to_write_string_table
mov r8d, 0x1c
jmp 0x1400901dd
mov ecx, 2
call fcn.140055330
test al, al
jne 0x1400901a5
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x140090185
mov qword [rsp + 0x88], rcx
call fcn.140180390
cmp byte [rsp + 0xb7], 0
jns 0x14008f937
mov rcx, qword [rsp + 0xa0]
call fcn.140180390
jmp 0x14008f937
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf8]
mov rcx, rdi
mov r8d, 0x20b
mov r9d, 2
call fcn.1400553e0
lea rcx, [rsp + 0x108]
lea rdx, str.failed_to_write_records
mov r8d, 0x17
call fcn.140006490
mov rcx, rdi
call fcn.140055870
jmp 0x14009016b
int3
int3
lea rcx, [rsp + 0x80]
call fcn.1400399c0
call fcn.140194834
int3