Function at 0x140149480
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 [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov rsi, qword [rcx]
mov qword [rcx], 0
test rsi, rsi
jne 0x1401494d9
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.14010fba0
nop
add rsp, 0x218
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp byte [rsi + 0x48], 0
je 0x140149544
mov rcx, qword [rsi + 8]
xor edx, edx
xor r8d, r8d
call fcn.1400fbefb
test rax, rax
je 0x140149623
cmp dword [0x1402f4050], 2
jg 0x140149544
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8d, 0x215
mov r9d, 2
call fcn.1400c0e80
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_rewind_to_write
mov r8d, 0x19
call fcn.14017d289
mov rcx, rdi
call fcn.140089d40
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 0x1401495cc
cmp dword [0x1402f4050], 2
jg 0x1401495cc
call qword [sym.imp.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, 0x146
mov r9d, 2
call fcn.1401cdc40
lea rcx, [rsp + 0xc0]
lea rdx, [0x1402ae60c]
mov r8d, 0xc
call fcn.14017d289
mov rcx, rdi
call fcn.1401cdcc0
lea rcx, [rsi + 0x50]
call fcn.14006b3ba
cmp byte [rsi + 0x47], 0
jns 0x1401495e4
mov rcx, qword [rsi + 0x30]
call fcn.14010cc0c
cmp byte [rsi + 0x2f], 0
jns 0x1401495f3
mov rcx, qword [rsi + 0x18]
call fcn.14010cc0c
lea rax, [0x14029d590]
mov qword [rsi], rax
cmp byte [rsi + 0x10], 0
jne 0x140149c3b
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
je 0x140149616
call fcn.140055b5d
mov rcx, rsi
call fcn.14010cc0c
jmp 0x1401494b4
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140149692
cmp dword [0x1402f4050], 2
jg 0x140149544
call qword [sym.imp.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, 0x21c
mov r9d, 2
call fcn.1401cdc40
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_truncate
mov r8d, 0x12
call fcn.14017d289
mov rcx, rdi
call fcn.1401cdcc0
jmp 0x140149544
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, 0x843504144
mov qword [rsp + 0xa0], rax
mov rax, rdi
shr rax, 0x20
jne 0x140149c33
mov eax, edi
lea rdx, [rsp + 0xa0]
mov dword [rdx + 8], eax
mov rcx, qword [rsi + 8]
mov r8d, 0x10
call fcn.1400fc877
test al, al
jne 0x140149746
cmp dword [0x1402f4050], 2
jg 0x140149544
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8d, 0x228
mov r9d, 2
call fcn.1400c0e80
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_write_header
mov r8d, 0x16
jmp 0x140149537
cmp r14, rbx
je 0x140149544
movabs rax, 0x492492492492492
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], 0
cmp rdi, rax
ja 0x140149c76
imul rdi, rdi, 0x38
mov rcx, rdi
call fcn.14010cc14
mov r13, rax
mov r14, qword [rsi + 0x50]
mov rax, qword [rsi + 0x58]
mov qword [rsp + 0x58], rax
cmp r14, rax
je 0x140149c73
add rdi, r13
lea rax, [rsi + 0x18]
mov qword [rsp + 0x38], rax
lea r15, [rsp + 0x80]
mov rbx, r13
jmp 0x140149807
test rbx, rbx
je 0x140149c41
movaps xmm0, xmmword [rsp + 0x200]
movups xmmword [rbx], xmm0
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x10], eax
mov dword [rbx + 0x14], r11d
mov qword [rbx + 0x18], r12
mov qword [rbx + 0x20], r10
mov dword [rbx + 0x28], r9d
mov dword [rbx + 0x2c], edx
mov byte [rbx + 0x30], bpl
xor eax, eax
mov dword [rbx + 0x31], eax
mov dword [rbx + 0x34], eax
mov rdi, r8
add rbx, 0x38
add r14, 0x70
cmp r14, qword [rsp + 0x58]
je 0x140149b31
lea r12, [r14 + 0x10]
mov rcx, r12
lea rbp, [rsp + 0xb0]
mov rdx, rbp
call fcn.1400a0f20
mov rcx, rbp
mov rdx, qword [rsp + 0x38]
call fcn.1401010b0
mov ebp, eax
cmp byte [rsp + 0xc7], 0
jns 0x140149844
mov rcx, qword [rsp + 0xb0]
call fcn.14010cc0c
test bpl, bpl
jne 0x140149a8e
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0x200], xmm0
mov rcx, r12
lea r12, [rsp + 0x60]
mov rdx, r12
call fcn.1400a0ae0
movzx eax, byte [rsp + 0x77]
test al, al
js 0x140149877
and eax, 0x7f
jmp 0x140149881
mov rax, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov qword [rsp + 0x1f0], r12
mov qword [rsp + 0x1f8], rax
test rax, rax
js 0x140149c3e
test r12, r12
jne 0x1401498a8
test rax, rax
jne 0x140149c44
lea r12, [rsp + 0xb0]
mov rcx, r12
lea rdx, [rsp + 0x1f0]
call fcn.1400952c0
mov rcx, r15
mov rdx, r12
call fcn.140204f0c
mov dword [rsp + 0x30], eax
cmp byte [rsp + 0xc7], 0
jns 0x1401498e6
mov rcx, qword [rsp + 0xb0]
call fcn.14010cc0c
cmp byte [rsp + 0x77], 0
jns 0x1401498f7
mov rcx, qword [rsp + 0x60]
call fcn.14010cc0c
lea rdx, [r14 + 0x28]
mov rcx, r15
call fcn.140204f0c
mov r11d, eax
mov r12, qword [r14 + 0x40]
mov r10, qword [r14 + 0x50]
mov r9d, dword [r14 + 0x58]
mov edx, dword [r14 + 0x68]
mov bpl, byte [r14 + 0x5c]
add bpl, bpl
or bpl, byte [r14 + 0x48]
mov r8, rdi
cmp rbx, rdi
jb 0x1401497b7
mov rdi, rbx
sub rdi, r13
sar rdi, 3
movabs rax, 0x6db6db6db6db6db7
imul rdi, rax
lea r15, [rdi + 1]
movabs rcx, 0x492492492492492
cmp r15, rcx
ja 0x140149c47
sub r8, r13
sar r8, 3
imul r8, rax
lea rax, [r8 + r8]
cmp rax, r15
cmova r15, rax
movabs rax, 0x249249249249249
cmp r8, rax
cmovae r15, rcx
test r15, r15
je 0x140149a86
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x34], r11d
mov qword [rsp + 0x48], r10
mov qword [rsp + 0x50], rbx
cmp r15, rcx
ja 0x140149c5a
mov rbx, r13
mov r13d, r9d
mov r12d, edx
imul rcx, r15, 0x38
call fcn.14010cc14
mov r8, rax
mov edx, r12d
mov r9d, r13d
mov r13, rbx
mov rbx, qword [rsp + 0x50]
mov r10, qword [rsp + 0x48]
mov r11d, dword [rsp + 0x34]
mov r12, qword [rsp + 0x40]
imul rdi, rdi, 0x38
add rdi, r8
je 0x140149c4a
movaps xmm0, xmmword [rsp + 0x200]
movups xmmword [rdi], xmm0
mov eax, dword [rsp + 0x30]
mov dword [rdi + 0x10], eax
mov dword [rdi + 0x14], r11d
mov qword [rdi + 0x18], r12
mov qword [rdi + 0x20], r10
mov dword [rdi + 0x28], r9d
mov dword [rdi + 0x2c], edx
mov byte [rdi + 0x30], bpl
xor eax, eax
mov dword [rdi + 0x31], eax
mov dword [rdi + 0x34], eax
mov r12, rdi
cmp rbx, r13
je 0x140149a5a
mov rax, rdi
mov rcx, rbx
mov rdx, qword [rcx - 8]
mov qword [rax - 8], rdx
movups xmm0, xmmword [rcx - 0x38]
movups xmm1, xmmword [rcx - 0x28]
movups xmm2, xmmword [rcx - 0x18]
lea rdx, [rcx - 0x38]
lea r12, [rax - 0x38]
movups xmmword [rax - 0x18], xmm2
movups xmmword [rax - 0x28], xmm1
movups xmmword [rax - 0x38], xmm0
mov rax, r12
mov rcx, rdx
cmp rdx, r13
jne 0x140149a27
imul rax, r15, 0x38
add r8, rax
cmp rbx, r13
lea r15, [rsp + 0x80]
jne 0x140149c4d
test r13, r13
jne 0x140149c5d
mov r13, r12
mov rbx, rdi
jmp 0x1401497f1
xor r8d, r8d
jmp 0x1401499db
cmp dword [0x1402f4050], 2
jg 0x140149af4
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea r14, [rsp + 0xb0]
mov rcx, r14
mov r8d, 0x236
mov r9d, 2
call fcn.1400c0e80
lea rcx, [rsp + 0xc0]
mov rdx, r12
call fcn.1400fdfa0
lea rdx, str._expected_to_start_with
mov r8d, 0x18
mov rcx, rax
call fcn.14017d289
mov rcx, rax
mov rdx, qword [rsp + 0x38]
call fcn.1400fdfa0
mov rcx, r14
call fcn.140089d40
test r13, r13
je 0x140149b11
cmp rbx, r13
je 0x140149b09
add rbx, 0xffffffffffffffc8
jne 0x140149af9
jmp 0x140149c70
mov rcx, r13
call fcn.14010cc0c
cmp byte [rsp + 0x97], 0
jns 0x140149544
mov rcx, qword [rsp + 0x80]
call fcn.14010cc0c
jmp 0x140149544
mov r8, rbx
sub r8, r13
je 0x140149c73
mov r15, rbx
mov rcx, qword [rsi + 8]
mov rdi, r13
mov rdx, r13
call fcn.1400fc877
test al, al
je 0x140149bda
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.1400fc877
test al, al
jne 0x140149c28
cmp dword [0x1402f4050], 2
jg 0x140149c28
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea r14, [rsp + 0xb0]
mov rcx, r14
mov r8d, 0x244
mov r9d, 2
call fcn.1400c0e80
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_write_string_table
mov r8d, 0x1c
jmp 0x140149c1b
cmp dword [0x1402f4050], 2
jg 0x140149c28
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea r14, [rsp + 0xb0]
mov rcx, r14
mov r8d, 0x23f
mov r9d, 2
call fcn.1400c0e80
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_write_records
mov r8d, 0x17
call fcn.14017d289
mov rcx, r14
call fcn.140089d40
mov r13, rdi
mov rbx, r15
jmp 0x140149af4
int3
int3
int3
int3
int3
int3
int3
add rbx, 0xffffffffffffffc8
jne 0x140149a61
int3
int3
mov rcx, r13
mov rbx, r8
call fcn.14010cc0c
mov r8, rbx
jmp 0x140149a7b
int3
int3
int3