Function at 0x14007e480
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 [0x14034e040]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rsi, qword [rcx]
mov qword [rcx], 0
test rsi, rsi
je 0x14007e538
cmp byte [rsi + 0x48], 1
je 0x14007e5db
xorps xmm0, xmm0
lea rax, [rsp + 0x50]
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 0x14007e576
mov rdx, qword [rsi + 0x50]
test rdx, rdx
jne 0x14007e560
lea rcx, [rsi + 0x30]
call fcn.14006c480
lea rcx, [rsi + 0x18]
call fcn.14006c480
lea rax, [0x1402d31c8]
mov qword [rsi], rax
cmp byte [rsi + 0x10], 1
je 0x14007e55d
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
je 0x14007e530
call fcn.140096a20
mov rcx, rsi
call fcn.14010f42c
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.140110970
nop
add rsp, 0x228
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
int3
lea rdi, [rsi + 0x50]
mov rcx, rdi
call fcn.1401f46f0
mov rcx, qword [rdi]
call fcn.14010f42c
jmp 0x14007e4ff
mov ecx, 2
call fcn.14006a140
test al, al
je 0x14007e4f6
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, 0x13c
mov r9d, 2
call fcn.14018e580
lea rcx, [rsp + 0xd0]
lea rdx, [0x1402f157a]
mov r8d, ntohl
call fcn.1400cdd30
mov rcx, rdi
call fcn.14018e5f0
jmp 0x14007e4f6
mov rcx, qword [rsi + 8]
xor edx, edx
xor r8d, r8d
call fcn.140098a20
test rax, rax
je 0x14007e64a
mov ecx, 2
call fcn.14006a140
test al, al
je 0x14007e4c2
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov r8d, 0x204
mov r9d, 2
call fcn.14018d7b0
lea rcx, [rsp + 0xd0]
lea rdx, str.failed_to_rewind_to_write
mov r8d, 0x19
call fcn.1400cdd30
mov rcx, rdi
call fcn.14018dbe0
jmp 0x14007e4c2
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14007e719
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 + 0xbc], 0
movabs rax, 0x143504144
mov qword [rsp + 0xb0], rax
mov rax, rdi
shr rax, 0x20
jne 0x14007ec74
mov eax, edi
lea rdx, [rsp + 0xb0]
mov dword [rdx + 8], eax
mov rcx, qword [rsi + 8]
mov r8d, 0x10
call fcn.140098d40
test al, al
jne 0x14007e77e
mov ecx, 2
call fcn.14006a140
test al, al
je 0x14007e4c2
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov r8d, 0x217
mov r9d, 2
call fcn.14018d7b0
lea rcx, [rsp + 0xd0]
lea rdx, str.failed_to_write_header
mov r8d, 0x16
jmp 0x14007e638
mov ecx, 2
call fcn.14006a140
test al, al
je 0x14007e4c2
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, 0x20b
mov r9d, 2
call fcn.14018e580
lea rcx, [rsp + 0xd0]
lea rdx, str.failed_to_truncate
mov r8d, 0x12
call fcn.1400cdd30
mov rcx, rdi
call fcn.14018e5f0
jmp 0x14007e4c2
cmp r14, rbx
je 0x14007e4c2
movabs rax, 0x492492492492492
xorps xmm0, xmm0
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0xa0], 0
movaps xmm0, xmmword [0x1402cdfe0]
movaps xmmword [rsp + 0x70], xmm0
cmp rdi, rax
ja 0x14007ec7c
imul rdi, rdi, 0x38
mov rcx, rdi
call fcn.14010f3f0
add rdi, rax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], rdi
mov rdi, qword [rsi + 0x50]
mov rax, qword [rsi + 0x58]
mov qword [rsp + 0x48], rax
cmp rdi, rax
je 0x14007eb5a
lea rax, [rsi + 0x18]
mov qword [rsp + 0x40], rax
jmp 0x14007e864
test r13, r13
je 0x14007eb5a
movaps xmm0, xmmword [rsp + 0x210]
movups xmmword [r13], xmm0
mov eax, dword [rsp + 0x34]
mov dword [r13 + 0x10], eax
mov dword [r13 + 0x14], r12d
mov qword [r13 + 0x18], rbp
mov rax, qword [rsp + 0x38]
mov qword [r13 + 0x20], rax
mov eax, dword [rsp + 0x2c]
mov dword [r13 + 0x28], eax
mov eax, dword [rsp + 0x30]
mov dword [r13 + 0x2c], eax
mov byte [r13 + 0x30], bl
xor eax, eax
mov dword [r13 + 0x31], eax
mov dword [r13 + 0x34], eax
add r13, 0x38
mov qword [rsp + 0x78], r13
add rdi, 0x70
cmp rdi, qword [rsp + 0x48]
je 0x14007eb81
lea r12, [rdi + 0x10]
mov rcx, r12
lea rbx, [rsp + 0xc0]
mov rdx, rbx
call fcn.14006c530
mov rcx, rbx
mov rdx, qword [rsp + 0x40]
call fcn.14018ffa0
mov ebp, eax
mov rcx, rbx
call fcn.14006c480
test bpl, bpl
jne 0x14007ead5
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0x210], xmm0
mov rcx, r12
lea rbx, [rsp + 0x50]
mov rdx, rbx
call fcn.14006c700
movsx rcx, byte [rsp + 0x67]
test rcx, rcx
jns 0x14007e8cb
mov rcx, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov qword [rsp + 0x1f8], rbx
mov qword [rsp + 0x200], rcx
test rcx, rcx
js 0x14007eb5a
sete cl
test rbx, rbx
setne al
or al, cl
je 0x14007eb5a
lea rbx, [rsp + 0xc0]
mov rcx, rbx
lea rdx, [rsp + 0x1f8]
call fcn.1400dcf50
lea rcx, [rsp + 0x90]
mov rdx, rbx
call fcn.1401f48a0
mov dword [rsp + 0x34], eax
cmp byte [rsp + 0xd7], 0
jns 0x14007e938
mov rcx, qword [rsp + 0xc0]
call fcn.14010f42c
lea rcx, [rsp + 0x50]
call fcn.14006c480
lea rdx, [rdi + 0x28]
lea rcx, [rsp + 0x90]
call fcn.1401f48a0
mov r12d, eax
mov rbp, qword [rdi + 0x40]
mov rax, qword [rdi + 0x50]
mov qword [rsp + 0x38], rax
mov eax, dword [rdi + 0x58]
mov dword [rsp + 0x2c], eax
mov eax, dword [rdi + 0x68]
mov dword [rsp + 0x30], eax
mov bl, byte [rdi + 0x5c]
add bl, bl
or bl, byte [rdi + 0x48]
xor eax, eax
mov dword [rsp + 0x20b], eax
mov dword [rsp + 0x208], eax
mov r13, qword [rsp + 0x78]
mov rax, qword [rsp + 0x80]
cmp r13, rax
jb 0x14007e7ff
mov rcx, qword [rsp + 0x70]
sub r13, rcx
sar r13, 3
movabs rdx, 0x6db6db6db6db6db7
imul r13, rdx
lea r14, [r13 + 1]
movabs rdx, 0x492492492492492
cmp r14, rdx
ja 0x14007ec7c
sub rax, rcx
sar rax, 3
movabs rcx, 0x6db6db6db6db6db7
imul rax, rcx
lea rcx, [rax + rax]
cmp rcx, r14
cmova r14, rcx
movabs rcx, 0x249249249249249
cmp rax, rcx
movabs rax, 0x492492492492492
cmovae r14, rax
test r14, r14
je 0x14007eacd
cmp r14, rax
ja 0x14007ec81
imul rcx, r14, 0x38
call fcn.14010f3f0
mov r15, rax
imul r13, r13, 0x38
add r13, r15
je 0x14007eb5a
imul rax, r14, 0x38
add r15, rax
movaps xmm0, xmmword [rsp + 0x210]
movups xmmword [r13], xmm0
mov eax, dword [rsp + 0x34]
mov dword [r13 + 0x10], eax
mov dword [r13 + 0x14], r12d
mov qword [r13 + 0x18], rbp
mov rax, qword [rsp + 0x38]
mov qword [r13 + 0x20], rax
mov eax, dword [rsp + 0x2c]
mov dword [r13 + 0x28], eax
mov eax, dword [rsp + 0x30]
mov dword [r13 + 0x2c], eax
mov byte [r13 + 0x30], bl
mov eax, dword [rsp + 0x208]
mov ecx, dword [rsp + 0x20b]
mov dword [r13 + 0x31], eax
mov dword [r13 + 0x34], ecx
mov rdx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x78]
sub r8, rdx
mov r12, r13
sub r12, r8
mov rcx, r12
call fcn.140149050
mov rcx, qword [rsp + 0x70]
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x80], r15
test rcx, rcx
je 0x14007e84c
call fcn.14010f42c
jmp 0x14007e84c
xor r15d, r15d
jmp 0x14007ea29
mov ecx, 2
call fcn.14006a140
test al, al
je 0x14007eb40
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rbx, [rsp + 0xc0]
mov rcx, rbx
mov r8d, 0x225
mov r9d, 2
call fcn.14018d7b0
lea rcx, [rsp + 0xd0]
mov rdx, r12
call fcn.140190050
lea rdx, str._expected_to_start_with
mov r8d, 0x18
mov rcx, rax
call fcn.1400cdd30
mov rcx, rax
mov rdx, qword [rsp + 0x40]
call fcn.140190050
mov rcx, rbx
call fcn.14018dbe0
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14007eb61
mov rax, qword [rsp + 0x78]
cmp rax, rcx
je 0x14007eb5c
add rax, 0xffffffffffffffc8
jne 0x14007eb4f
ud2
call fcn.14010f42c
cmp byte [rsp + 0xa7], 0
jns 0x14007e4c2
mov rcx, qword [rsp + 0x90]
call fcn.14010f42c
jmp 0x14007e4c2
mov rdx, qword [rsp + 0x70]
sub r13, rdx
je 0x14007eb5a
mov rcx, qword [rsi + 8]
mov r8, r13
call fcn.140098d40
test al, al
jne 0x14007ebee
mov ecx, 2
call fcn.14006a140
test al, al
je 0x14007eb40
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov r8d, 0x22e
mov r9d, 2
call fcn.14018d7b0
lea rcx, [rsp + 0xd0]
lea rdx, str.failed_to_write_records
mov r8d, 0x17
call fcn.1400cdd30
mov rcx, rdi
jmp 0x14007eb3b
movsx r8, byte [rsp + 0xa7]
test r8, r8
cmovs r8, qword [rsp + 0x98]
lea rdx, [rsp + 0x90]
cmovs rdx, qword [rsp + 0x90]
mov rcx, qword [rsi + 8]
call fcn.140098d40
test al, al
jne 0x14007eb40
mov ecx, 2
call fcn.14006a140
test al, al
je 0x14007eb40
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xc0]
mov rcx, rdi
mov r8d, 0x233
mov r9d, 2
call fcn.14018d7b0
lea rcx, [rsp + 0xd0]
lea rdx, str.failed_to_write_string_table
mov r8d, 0x1c
jmp 0x14007ebe1
int3
call fcn.14014aee0
call fcn.14014aec0
int3