Function at 0x1400c6a90
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x228
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rsi, qword [rcx]
mov qword [rcx], 0
test rsi, rsi
je 0x1400c6b50
cmp byte [rsi + 0x48], 0
jne 0x1400c6b75
xorps xmm0, xmm0
lea rax, [rsp + 0x70]
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 0x1400c6be8
mov rbx, qword [rsi + 0x50]
test rbx, rbx
jne 0x1400c6c4d
lea rcx, [rsi + 0x30]
call fcn.14015ebb0
lea rcx, [rsi + 0x18]
call fcn.14015ebb0
lea rax, str._n__
mov qword [rsi], rax
cmp byte [rsi + 0x10], 0
jne 0x1400c6c96
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400c6b48
call fcn.1400eb4f0
mov rcx, rsi
call fcn.1401b9ce8
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1401bb0d0
nop
add rsp, 0x228
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsi + 8]
xor edx, edx
xor r8d, r8d
call fcn.1400f50e0
test rax, rax
je 0x1400c6c99
mov ecx, 2
call fcn.140160660
test al, al
je 0x1400c6ad2
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov r8d, 0x203
mov r9d, 2
call fcn.140076020
lea rcx, [rsp + 0xd0]
lea rdx, str.failed_to_rewind_to_write
mov r8d, 0x19
call fcn.1401f9cc0
mov rcx, rdi
call fcn.140076510
jmp 0x1400c6ad2
mov ecx, 2
call fcn.140160660
test al, al
je 0x1400c6b06
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov r8d, 0x13b
mov r9d, 2
call fcn.140224610
lea rcx, [rsp + 0xd0]
lea rdx, [0x140376bca]
mov r8d, ntohl
call fcn.1401f9cc0
mov rcx, rdi
call fcn.140224690
jmp 0x1400c6b06
mov rdi, qword [rsi + 0x58]
mov rcx, rbx
cmp rdi, rbx
je 0x1400c6c88
add rdi, 0xffffffffffffffa0
cmp byte [rdi + 0x2f], 0
jns 0x1400c6c6c
mov rcx, qword [rdi + 0x18]
call fcn.1401b9ce8
mov rcx, rdi
call fcn.14015ebb0
lea rax, [rdi - 0x70]
add rdi, 0xfffffffffffffff0
cmp rdi, rbx
mov rdi, rax
jne 0x1400c6c5d
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x58], rbx
call fcn.1401b9ce8
jmp 0x1400c6b13
int3
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400c7053
mov rbx, qword [rsi + 0x50]
mov rbp, qword [rsi + 0x58]
mov rdi, rbp
sub rdi, rbx
sar rdi, 4
movabs rax, 0x6db6db6db6db6db7
imul rdi, rax
mov dword [rsp + 0xbc], 0
movabs rax, 0x143504144
mov qword [rsp + 0xb0], rax
mov rax, rdi
shr rax, 0x20
jne 0x1400c7327
mov eax, edi
lea rdx, [rsp + 0xb0]
mov dword [rdx + 8], eax
mov rcx, qword [rsi + 8]
mov r8d, 0x10
call fcn.1400f5550
test al, al
je 0x1400c70b8
cmp rbp, rbx
je 0x1400c6ad2
movabs rax, 0x492492492492492
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], 0
cmp rdi, rax
ja 0x1400c732f
imul rdi, rdi, 0x38
mov rcx, rdi
call fcn.1401b9cac
mov r12, rax
mov r13, qword [rsi + 0x50]
mov rax, qword [rsi + 0x58]
mov qword [rsp + 0x68], rax
cmp r13, rax
je 0x1400c714b
mov r15, r12
add r15, rdi
lea rax, [rsi + 0x18]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], r12
lea rdi, [r13 + 0x10]
mov rcx, rdi
lea rbp, [rsp + 0xc0]
mov rdx, rbp
call fcn.14015ec70
mov rcx, rbp
mov rdx, qword [rsp + 0x60]
call fcn.1400736c0
mov ebx, eax
mov rcx, rbp
call fcn.14015ebb0
test bl, bl
jne 0x1400c7107
movups xmm0, xmmword [r13]
movaps xmmword [rsp + 0x210], xmm0
mov rcx, rdi
lea rdi, [rsp + 0x70]
mov rdx, rdi
call fcn.14015f080
movzx eax, byte [rsp + 0x87]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rsp + 0x70]
cmovns rax, rdi
mov qword [rsp + 0x200], rax
cmovs rcx, qword [rsp + 0x78]
mov qword [rsp + 0x208], rcx
lea rdi, [rsp + 0xc0]
mov rcx, rdi
lea rdx, [rsp + 0x200]
call fcn.14016a3b0
lea rcx, [rsp + 0x90]
mov rdx, rdi
call fcn.140283a90
mov dword [rsp + 0x38], eax
cmp byte [rsp + 0xd7], 0
jns 0x1400c6e53
mov rcx, qword [rsp + 0xc0]
call fcn.1401b9ce8
lea rcx, [rsp + 0x70]
call fcn.14015ebb0
lea rdx, [r13 + 0x28]
lea rcx, [rsp + 0x90]
call fcn.140283a90
mov edi, eax
mov rax, qword [r13 + 0x40]
mov qword [rsp + 0x50], rax
mov rax, qword [r13 + 0x50]
mov qword [rsp + 0x58], rax
mov eax, dword [r13 + 0x58]
mov dword [rsp + 0x40], eax
mov eax, dword [r13 + 0x68]
mov dword [rsp + 0x44], eax
mov bl, byte [r13 + 0x5c]
add bl, bl
or bl, byte [r13 + 0x48]
cmp r12, r15
jae 0x1400c6f05
movaps xmm0, xmmword [rsp + 0x210]
movups xmmword [r12], xmm0
mov eax, dword [rsp + 0x38]
mov dword [r12 + 0x10], eax
mov dword [r12 + 0x14], edi
mov rax, qword [rsp + 0x50]
mov qword [r12 + 0x18], rax
mov rax, qword [rsp + 0x58]
mov qword [r12 + 0x20], rax
mov eax, dword [rsp + 0x40]
mov dword [r12 + 0x28], eax
mov eax, dword [rsp + 0x44]
mov dword [r12 + 0x2c], eax
mov byte [r12 + 0x30], bl
xor eax, eax
mov dword [r12 + 0x31], eax
mov dword [r12 + 0x34], eax
mov rbp, r12
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
jmp 0x1400c7030
sub r12, qword [rsp + 0x30]
mov rbp, r12
sar rbp, 3
movabs rax, 0x6db6db6db6db6db7
imul rbp, rax
lea r14, [rbp + 1]
movabs rax, 0x492492492492492
cmp r14, rax
ja 0x1400c732f
sub r15, qword [rsp + 0x30]
sar r15, 3
movabs rax, 0x6db6db6db6db6db7
imul r15, rax
lea rax, [r15 + r15]
cmp rax, r14
cmova r14, rax
movabs rax, 0x249249249249249
cmp r15, rax
movabs rax, 0x492492492492492
cmovae r14, rax
test r14, r14
je 0x1400c704b
movabs rax, 0x492492492492492
cmp r14, rax
ja 0x1400c7334
imul rcx, r14, 0x38
call fcn.1401b9cac
mov r15, rax
imul rax, rbp, 0x38
lea rbp, [r15 + rax]
movaps xmm0, xmmword [rsp + 0x210]
movups xmmword [r15 + rax], xmm0
mov ecx, dword [rsp + 0x38]
mov dword [r15 + rax + 0x10], ecx
mov dword [r15 + rax + 0x14], edi
mov rcx, qword [rsp + 0x50]
mov qword [r15 + rax + 0x18], rcx
mov rcx, qword [rsp + 0x58]
mov qword [r15 + rax + 0x20], rcx
mov ecx, dword [rsp + 0x40]
mov dword [r15 + rax + 0x28], ecx
mov ecx, dword [rsp + 0x44]
mov dword [r15 + rax + 0x2c], ecx
mov byte [r15 + rax + 0x30], bl
xor ecx, ecx
mov dword [r15 + rax + 0x31], ecx
mov dword [r15 + rax + 0x34], ecx
mov rcx, rbp
sub rcx, r12
mov qword [rsp + 0x38], rcx
mov rdi, qword [rsp + 0x30]
mov rdx, rdi
mov r8, r12
call fcn.1401bcb50
imul rbx, r14, 0x38
test rdi, rdi
je 0x1400c7023
mov rcx, qword [rsp + 0x30]
call fcn.1401b9ce8
add r15, rbx
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
add rbp, 0x38
add r13, 0x70
mov r12, rbp
cmp r13, qword [rsp + 0x68]
jne 0x1400c6d8f
jmp 0x1400c7153
xor r15d, r15d
jmp 0x1400c6f9b
mov ecx, 2
call fcn.140160660
test al, al
je 0x1400c6ad2
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov r8d, 0x20a
mov r9d, 2
call fcn.140224610
lea rcx, [rsp + 0xd0]
lea rdx, str.failed_to_truncate
mov r8d, 0x12
call fcn.1401f9cc0
mov rcx, rdi
call fcn.140224690
jmp 0x1400c6ad2
mov ecx, 2
call fcn.140160660
test al, al
je 0x1400c6ad2
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov r8d, 0x216
mov r9d, 2
call fcn.140076020
lea rcx, [rsp + 0xd0]
lea rdx, str.failed_to_write_header
mov r8d, 0x16
jmp 0x1400c6bd6
mov ecx, 2
call fcn.140160660
test al, al
jne 0x1400c7202
cmp qword [rsp + 0x30], 0
je 0x1400c712b
mov rcx, qword [rsp + 0x30]
call fcn.1401b9ce8
cmp byte [rsp + 0xa7], 0
jns 0x1400c6ad2
mov rcx, qword [rsp + 0x90]
call fcn.1401b9ce8
jmp 0x1400c6ad2
mov qword [rsp + 0x38], r12
mov rbp, r12
mov rdx, qword [rsp + 0x38]
sub rbp, rdx
mov rcx, qword [rsi + 8]
mov r8, rbp
call fcn.1400f5550
test al, al
je 0x1400c71e1
lea rdx, [rsp + 0x90]
movzx eax, byte [rdx + 0x17]
mov r8d, eax
and r8d, 0x7f
test al, al
cmovs r8, qword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [rsi + 8]
call fcn.1400f5550
test al, al
jne 0x1400c71f3
mov ecx, 2
call fcn.140160660
test al, al
je 0x1400c71f3
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rbx, [rsp + 0xc0]
mov rcx, rbx
mov r8d, 0x233
mov r9d, 2
call fcn.140076020
lea rcx, [rsp + 0xd0]
lea rdx, str.failed_to_write_string_table
mov r8d, 0x1c
jmp 0x1400c7315
mov ecx, 2
call fcn.140160660
test al, al
jne 0x1400c72dd
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x30], rax
jmp 0x1400c7119
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0xc0]
mov r8d, 0x224
mov r9d, 2
call fcn.140076020
lea rcx, [rsp + 0xd0]
cmp byte [r13 + 0x27], 0
jns 0x1400c7234
mov rdi, qword [rdi]
mov rdx, rdi
call fcn.140224750
lea rdx, str._expected_to_start_with
mov r8d, 0x18
mov rcx, rax
call fcn.1401f9cc0
movzx edx, byte [rsi + 0x2f]
mov ecx, edx
and ecx, 0x7f
test dl, dl
mov rbp, qword [rsp + 0x60]
cmovs rbp, qword [rsi + 0x18]
mov rdi, rax
lea rdx, [rsp + 0x200]
mov qword [rdx], rbp
cmovs rcx, qword [rsi + 0x20]
mov qword [rdx + 8], rcx
lea rcx, [rsp + 0x70]
call fcn.14016a3b0
movzx r8d, byte [rsp + 0x87]
test r8b, r8b
jns 0x1400c72a6
mov r8, qword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
jmp 0x1400c72aa
and r8d, 0x7f
mov rcx, rdi
mov rdx, qword [rsp + 0x48]
call fcn.1401f9cc0
cmp byte [rsp + 0x87], 0
jns 0x1400c72cb
mov rcx, qword [rsp + 0x70]
call fcn.1401b9ce8
lea rcx, [rsp + 0xc0]
call fcn.140076510
jmp 0x1400c7119
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rbx, [rsp + 0xc0]
mov rcx, rbx
mov r8d, 0x22e
mov r9d, 2
call fcn.140076020
lea rcx, [rsp + 0xd0]
lea rdx, str.failed_to_write_records
mov r8d, 0x17
call fcn.1401f9cc0
mov rcx, rbx
call fcn.140076510
jmp 0x1400c71f3
int3
call fcn.1401f9cb0
call fcn.1401f9cb0
int3