Function at 0x1400c0fb0
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x218
mov rax, qword [0x14039c038]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov rsi, qword [rcx]
mov qword [rcx], 0
test rsi, rsi
je 0x1400c106c
cmp byte [rsi + 0x48], 0
jne 0x1400c1121
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
je 0x1400c1091
mov rbx, qword [rsi + 0x50]
test rbx, rbx
jne 0x1400c10f2
lea rcx, [rsi + 0x30]
call fcn.1401528f0
lea rcx, [rsi + 0x18]
call fcn.1401528f0
lea rax, [0x140326ec8]
mov qword [rsi], rax
cmp byte [rsi + 0x10], 0
jne 0x1400c1835
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400c1064
call fcn.1400ef540
mov rcx, rsi
call fcn.1401a10a4
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.1401a2850
nop
add rsp, 0x218
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 2
call fcn.140151cb0
test al, al
je 0x1400c1022
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8d, 0x13b
mov r9d, 2
call fcn.140215ce0
lea rcx, [rsp + 0xc0]
lea rdx, [0x140372aea]
mov r8d, ntohl
call fcn.1401e2460
mov rcx, rdi
call fcn.140215d60
jmp 0x1400c1022
mov rdi, qword [rsi + 0x58]
mov rcx, rbx
cmp rdi, rbx
je 0x1400c1113
add rdi, 0xffffffffffffff90
mov rcx, rdi
call fcn.140218ef0
cmp rdi, rbx
jne 0x1400c10fe
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x58], rbx
call fcn.1401a10a4
jmp 0x1400c102f
mov rcx, qword [rsi + 8]
xor edx, edx
xor r8d, r8d
call fcn.1400f3860
test rax, rax
je 0x1400c11f9
mov ecx, 2
call fcn.140151cb0
test al, al
je 0x1400c0ff2
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8d, 0x203
mov r9d, 2
call fcn.1400882f0
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_rewind_to_write
mov r8d, 0x19
call fcn.1401e2460
mov rcx, rdi
call fcn.1400887d0
jmp 0x1400c0ff2
mov ecx, 2
call fcn.140151cb0
test al, al
je 0x1400c0ff2
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8d, 0x20a
mov r9d, 2
call fcn.140215ce0
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_truncate
mov r8d, 0x12
call fcn.1401e2460
mov rcx, rdi
call fcn.140215d60
jmp 0x1400c0ff2
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400c1194
mov rbx, qword [rsi + 0x50]
mov r14, qword [rsi + 0x58]
mov rdi, r14
sub rdi, rbx
sar rdi, 4
movabs rax, 0x6db6db6db6db6db7
imul rdi, rax
mov dword [rsp + 0xac], 0
movabs rax, 0x143504144
mov qword [rsp + 0xa0], rax
mov rax, rdi
shr rax, 0x20
jne 0x1400c1838
mov eax, edi
lea rdx, [rsp + 0xa0]
mov dword [rdx + 8], eax
mov rcx, qword [rsi + 8]
mov r8d, 0x10
call fcn.1400f3cf0
test al, al
jne 0x1400c12c0
mov ecx, 2
call fcn.140151cb0
test al, al
je 0x1400c0ff2
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8d, 0x216
mov r9d, 2
call fcn.1400882f0
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_write_header
mov r8d, 0x16
jmp 0x1400c1182
cmp r14, rbx
je 0x1400c0ff2
movabs rax, 0x492492492492492
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], 0
cmp rdi, rax
ja 0x1400c1840
imul r13, rdi, 0x38
mov rcx, r13
call fcn.1401a1068
mov rbp, rax
mov rbx, qword [rsi + 0x50]
mov rax, qword [rsi + 0x58]
mov qword [rsp + 0x58], rax
cmp rbx, rax
je 0x1400c184a
add r13, rbp
lea rax, [rsi + 0x18]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rdi, rbp
jmp 0x1400c13d6
mov ecx, 2
call fcn.140151cb0
test al, al
jne 0x1400c1733
test rbp, rbp
je 0x1400c1355
mov rcx, rbp
call fcn.1401a10a4
cmp byte [rsp + 0x97], 0
jns 0x1400c0ff2
mov rcx, qword [rsp + 0x80]
call fcn.1401a10a4
jmp 0x1400c0ff2
test rdi, rdi
je 0x1400c1809
movaps xmm0, xmmword [rsp + 0x200]
movups xmmword [rdi], xmm0
mov eax, dword [rsp + 0x34]
mov dword [rdi + 0x10], eax
mov eax, dword [rsp + 0x28]
mov dword [rdi + 0x14], eax
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x18], rax
mov rax, qword [rsp + 0x48]
mov qword [rdi + 0x20], rax
mov eax, dword [rsp + 0x2c]
mov dword [rdi + 0x28], eax
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x2c], eax
mov byte [rdi + 0x30], r12b
xor eax, eax
mov dword [rdi + 0x31], eax
mov dword [rdi + 0x34], eax
add rdi, 0x38
add rbx, 0x70
cmp rbx, qword [rsp + 0x58]
je 0x1400c1635
lea r14, [rbx + 0x10]
mov rcx, r14
lea r12, [rsp + 0xb0]
mov rdx, r12
call fcn.140153220
mov rcx, r12
mov rdx, qword [rsp + 0x50]
call fcn.14008a5e0
mov r15d, eax
mov rcx, r12
call fcn.1401528f0
test r15b, r15b
jne 0x1400c1336
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x200], xmm0
mov rcx, r14
lea r14, [rsp + 0x60]
mov rdx, r14
call fcn.1401537c0
movzx eax, byte [rsp + 0x77]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsp + 0x60]
cmovns rax, r14
mov qword [rsp + 0x1f0], rax
cmovs rcx, qword [rsp + 0x68]
mov qword [rsp + 0x1f8], rcx
lea r14, [rsp + 0xb0]
mov rcx, r14
lea rdx, [rsp + 0x1f0]
call fcn.140149030
lea rcx, [rsp + 0x80]
mov rdx, r14
call fcn.140258c90
mov dword [rsp + 0x34], eax
cmp byte [rsp + 0xc7], 0
jns 0x1400c1497
mov rcx, qword [rsp + 0xb0]
call fcn.1401a10a4
lea rcx, [rsp + 0x60]
call fcn.1401528f0
lea rdx, [rbx + 0x28]
lea rcx, [rsp + 0x80]
call fcn.140258c90
mov dword [rsp + 0x28], eax
mov rax, qword [rbx + 0x40]
mov qword [rsp + 0x40], rax
mov rax, qword [rbx + 0x50]
mov qword [rsp + 0x48], rax
mov eax, dword [rbx + 0x58]
mov dword [rsp + 0x2c], eax
mov eax, dword [rbx + 0x68]
mov dword [rsp + 0x30], eax
mov r12b, byte [rbx + 0x5c]
add r12b, r12b
or r12b, byte [rbx + 0x48]
cmp rdi, r13
jb 0x1400c1375
mov r15, rdi
sub r15, rbp
sar r15, 3
movabs rax, 0x6db6db6db6db6db7
imul r15, rax
lea r14, [r15 + 1]
movabs rax, 0x492492492492492
cmp r14, rax
ja 0x1400c1840
sub r13, rbp
sar r13, 3
movabs rax, 0x6db6db6db6db6db7
imul r13, rax
lea rax, [r13*2]
cmp rax, r14
cmova r14, rax
movabs rax, 0x249249249249249
cmp r13, rax
movabs rax, 0x492492492492492
cmovae r14, rax
test r14, r14
je 0x1400c162d
cmp r14, rax
ja 0x1400c1845
imul rcx, r14, 0x38
call fcn.1401a1068
mov r13, rax
imul r15, r15, 0x38
add r15, r13
je 0x1400c1809
movaps xmm0, xmmword [rsp + 0x200]
movups xmmword [r15], xmm0
mov eax, dword [rsp + 0x34]
mov dword [r15 + 0x10], eax
mov eax, dword [rsp + 0x28]
mov dword [r15 + 0x14], eax
mov rax, qword [rsp + 0x40]
mov qword [r15 + 0x18], rax
mov rax, qword [rsp + 0x48]
mov qword [r15 + 0x20], rax
mov eax, dword [rsp + 0x2c]
mov dword [r15 + 0x28], eax
mov eax, dword [rsp + 0x30]
mov dword [r15 + 0x2c], eax
mov byte [r15 + 0x30], r12b
xor eax, eax
mov dword [r15 + 0x31], eax
mov dword [r15 + 0x34], eax
mov r12, r15
cmp rdi, rbp
je 0x1400c160e
mov rax, qword [rdi - 8]
mov qword [r12 - 8], rax
movups xmm0, xmmword [rdi - 0x38]
movups xmm1, xmmword [rdi - 0x28]
movups xmm2, xmmword [rdi - 0x18]
lea rax, [rdi - 0x38]
movups xmmword [r12 - 0x18], xmm2
movups xmmword [r12 - 0x28], xmm1
movups xmmword [r12 - 0x38], xmm0
add r12, 0xffffffffffffffc8
mov rdi, rax
cmp rax, rbp
jne 0x1400c15d7
imul rdi, r14, 0x38
test rbp, rbp
je 0x1400c161f
mov rcx, rbp
call fcn.1401a10a4
add r13, rdi
mov rbp, r12
mov rdi, r15
jmp 0x1400c13c3
xor r13d, r13d
jmp 0x1400c1576
sub rdi, rbp
je 0x1400c184a
mov rcx, qword [rsi + 8]
mov rdx, rbp
mov r8, rdi
call fcn.1400f3cf0
test al, al
jne 0x1400c16a8
mov ecx, 2
call fcn.140151cb0
test al, al
je 0x1400c1348
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8d, 0x22e
mov r9d, 2
call fcn.1400882f0
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_write_records
mov r8d, 0x17
call fcn.1401e2460
mov rcx, rdi
jmp 0x1400c17ff
movzx eax, byte [rsp + 0x97]
mov r8d, eax
and r8d, 0x7f
test al, al
cmovs r8, qword [rsp + 0x88]
lea rdx, [rsp + 0x80]
cmovs rdx, qword [rsp + 0x80]
mov rcx, qword [rsi + 8]
call fcn.1400f3cf0
test al, al
jne 0x1400c1348
mov ecx, 2
call fcn.140151cb0
test al, al
je 0x1400c1348
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8d, 0x233
mov r9d, 2
call fcn.1400882f0
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_write_string_table
mov r8d, 0x1c
jmp 0x1400c169b
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0xb0]
mov r8d, 0x224
mov r9d, 2
call fcn.1400882f0
lea rcx, [rsp + 0xc0]
cmp byte [rbx + 0x27], 0
jns 0x1400c1764
mov r14, qword [r14]
mov rdx, r14
call fcn.140215e20
lea rdx, str._expected_to_start_with
mov r8d, 0x18
mov rcx, rax
call fcn.1401e2460
movzx ecx, byte [rsi + 0x2f]
mov r8d, ecx
and r8d, 0x7f
test cl, cl
mov rcx, qword [rsp + 0x50]
cmovs rcx, qword [rsi + 0x18]
mov rdi, rax
lea rdx, [rsp + 0x1f0]
mov qword [rdx], rcx
cmovs r8, qword [rsi + 0x20]
mov qword [rdx + 8], r8
lea rcx, [rsp + 0x60]
call fcn.140149030
movzx r8d, byte [rsp + 0x77]
test r8b, r8b
js 0x1400c17ca
and r8d, 0x7f
jmp 0x1400c17d9
mov r8, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x38], rax
mov rcx, rdi
mov rdx, qword [rsp + 0x38]
call fcn.1401e2460
cmp byte [rsp + 0x77], 0
jns 0x1400c17f7
mov rcx, qword [rsp + 0x60]
call fcn.1401a10a4
lea rcx, [rsp + 0xb0]
call fcn.1400887d0
jmp 0x1400c1348
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1401e44d0
int3
int3
call fcn.1401e2400
call fcn.1401e23e0
lea rax, str.vector___index_out_of_bounds
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_vector
lea r9, str.__n___size__
mov r8d, 0x5b5
call fcn.1401e44d0
int3