Function at 0x1400e839c
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 [0x1401c1028]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov rsi, qword [rcx]
mov qword [rcx], 0
test rsi, rsi
je 0x1400e84fe
cmp byte [rsi + 0x48], 0
je 0x1400e843f
mov rcx, qword [rsi + 8]
xor edx, edx
xor r8d, r8d
call fcn.14010f100
test rax, rax
je 0x1400e8523
cmp dword [0x1401d3120], 2
jg 0x1400e843f
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8d, 0x204
mov r9d, 2
call fcn.140072e00
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_rewind_to_write
mov r8d, 0x19
call fcn.140027941
mov rcx, rdi
call fcn.140073340
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 0x1400e84c7
cmp dword [0x1401d3120], 2
jg 0x1400e84c7
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, 0x13c
mov r9d, 2
call fcn.140073fd0
lea rcx, [rsp + 0xc0]
lea rdx, [0x1401ab18c]
mov r8d, 0xc
call fcn.140027941
mov rcx, rdi
call fcn.140074160
lea rcx, [rsi + 0x50]
call fcn.1400ea732
cmp byte [rsi + 0x47], 0
jns 0x1400e84df
mov rcx, qword [rsi + 0x30]
call fcn.14014b4e4
cmp byte [rsi + 0x2f], 0
jns 0x1400e84ee
mov rcx, qword [rsi + 0x18]
call fcn.14014b4e4
mov rcx, rsi
call fcn.1400ea5a6
mov rcx, rsi
call fcn.14014b4e4
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.14014c9b0
nop
add rsp, 0x218
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400e8945
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 0x1400e8aeb
mov eax, edi
lea rdx, [rsp + 0xa0]
mov dword [rdx + 8], eax
mov rcx, qword [rsi + 8]
mov r8d, 0x10
call fcn.14010f436
test al, al
je 0x1400e89a6
cmp r14, rbx
je 0x1400e843f
movabs rax, 0x492492492492492
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], 0
cmp rdi, rax
ja 0x1400e8b08
imul rbp, rdi, 0x38
mov rcx, rbp
call fcn.14014b4a8
mov rdi, rax
mov r12, qword [rsi + 0x50]
mov rax, qword [rsi + 0x58]
mov qword [rsp + 0x58], rax
cmp r12, rax
je 0x1400e8b05
add rbp, rdi
mov qword [rsp + 0x38], rsi
lea rax, [rsi + 0x18]
mov qword [rsp + 0x48], rax
lea r13, [rsp + 0xb0]
lea r15, [rsp + 0x80]
mov rdx, rdi
mov qword [rsp + 0x30], rdx
lea r14, [r12 + 0x10]
mov rcx, r14
mov rdx, r13
call fcn.140079140
mov rcx, r13
mov rdx, qword [rsp + 0x48]
call fcn.1400788d0
mov ebx, eax
cmp byte [rsp + 0xc7], 0
jns 0x1400e865a
mov rcx, qword [rsp + 0xb0]
call fcn.14014b4e4
test bl, bl
jne 0x1400e89f0
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x200], xmm0
mov rcx, r14
lea rbx, [rsp + 0x60]
mov rdx, rbx
call fcn.140079400
movzx ecx, byte [rsp + 0x77]
test cl, cl
jns 0x1400e8692
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov qword [rsp + 0x1f0], rbx
mov qword [rsp + 0x1f8], rcx
test rcx, rcx
js 0x1400e8af3
je 0x1400e86b6
test rbx, rbx
je 0x1400e8af6
mov rcx, r13
lea rdx, [rsp + 0x1f0]
call fcn.1400658f0
mov rcx, r15
mov rdx, r13
call fcn.1400ea77d
mov ebx, eax
cmp byte [rsp + 0xc7], 0
jns 0x1400e86ea
mov rcx, qword [rsp + 0xb0]
call fcn.14014b4e4
cmp byte [rsp + 0x77], 0
jns 0x1400e86fb
mov rcx, qword [rsp + 0x60]
call fcn.14014b4e4
lea rdx, [r12 + 0x28]
mov rcx, r15
call fcn.1400ea77d
mov esi, eax
mov r11, qword [r12 + 0x40]
mov r10, qword [r12 + 0x50]
mov r13d, dword [r12 + 0x58]
mov r8d, dword [r12 + 0x68]
mov r15b, byte [r12 + 0x5c]
add r15b, r15b
or r15b, byte [r12 + 0x48]
cmp rdi, rbp
jae 0x1400e8774
test rdi, rdi
mov rdx, qword [rsp + 0x30]
je 0x1400e8af9
movaps xmm0, xmmword [rsp + 0x200]
movups xmmword [rdi], xmm0
mov dword [rdi + 0x10], ebx
mov dword [rdi + 0x14], esi
mov qword [rdi + 0x18], r11
mov qword [rdi + 0x20], r10
mov dword [rdi + 0x28], r13d
mov dword [rdi + 0x2c], r8d
mov byte [rdi + 0x30], r15b
xor eax, eax
mov dword [rdi + 0x31], eax
mov dword [rdi + 0x34], eax
add rdi, 0x38
jmp 0x1400e8885
mov dword [rsp + 0x44], ebx
mov rax, qword [rsp + 0x30]
sub rdi, rax
mov rbx, rdi
sar rbx, 3
movabs rcx, 0x6db6db6db6db6db7
imul rbx, rcx
lea r14, [rbx + 1]
movabs rdx, 0x492492492492492
cmp r14, rdx
ja 0x1400e8afc
sub rbp, rax
sar rbp, 3
imul rbp, rcx
lea rax, [rbp*2]
cmp rax, r14
cmova r14, rax
movabs rax, 0x249249249249249
cmp rbp, rax
cmovae r14, rdx
test r14, r14
je 0x1400e8811
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x50], r11
cmp r14, rdx
ja 0x1400e8b02
mov rbp, r10
mov esi, r8d
imul rcx, r14, 0x38
call fcn.14014b4a8
mov r8d, esi
mov r10, rbp
mov rbp, rax
mov r11, qword [rsp + 0x50]
mov esi, dword [rsp + 0x40]
jmp 0x1400e8813
xor ebp, ebp
imul rbx, rbx, 0x38
add rbx, rbp
je 0x1400e8aff
imul rax, r14, 0x38
add rbp, rax
movaps xmm0, xmmword [rsp + 0x200]
movups xmmword [rbx], xmm0
mov eax, dword [rsp + 0x44]
mov dword [rbx + 0x10], eax
mov dword [rbx + 0x14], esi
mov qword [rbx + 0x18], r11
mov qword [rbx + 0x20], r10
mov dword [rbx + 0x28], r13d
mov dword [rbx + 0x2c], r8d
mov byte [rbx + 0x30], r15b
xor eax, eax
mov dword [rbx + 0x31], eax
mov dword [rbx + 0x34], eax
lea r14, [rbx + 0x38]
sub rbx, rdi
mov rcx, rbx
mov r15, qword [rsp + 0x30]
mov rdx, r15
mov r8, rdi
call fcn.14014e420
test r15, r15
je 0x1400e887f
mov rcx, r15
call fcn.14014b4e4
mov rdx, rbx
mov rdi, r14
lea r15, [rsp + 0x80]
lea r13, [rsp + 0xb0]
add r12, 0x70
cmp r12, qword [rsp + 0x58]
jne 0x1400e861f
mov r8, rdi
sub r8, rdx
mov rsi, qword [rsp + 0x38]
je 0x1400e8b05
mov rcx, qword [rsi + 8]
mov r14, rdx
call fcn.14010f436
test al, al
je 0x1400e8a62
movzx r8d, byte [rsp + 0x97]
test r8b, r8b
cmovs r8, qword [rsp + 0x88]
cmovs r15, qword [rsp + 0x80]
mov rcx, qword [rsi + 8]
mov rdx, r15
call fcn.14010f436
test al, al
jne 0x1400e8ab0
cmp dword [0x1401d3120], 2
jg 0x1400e8ab0
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov r8d, 0x233
mov r9d, 2
call fcn.140072e00
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_write_string_table
mov r8d, 0x1c
jmp 0x1400e8aa3
cmp dword [0x1401d3120], 2
jg 0x1400e843f
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, 0x20b
mov r9d, 2
call fcn.140073fd0
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_truncate
mov r8d, 0x12
call fcn.140027941
mov rcx, rdi
call fcn.140074160
jmp 0x1400e843f
cmp dword [0x1401d3120], 2
jg 0x1400e843f
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8d, 0x217
mov r9d, 2
call fcn.140072e00
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_write_header
mov r8d, 0x16
jmp 0x1400e8432
cmp dword [0x1401d3120], 2
jg 0x1400e8a56
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov r8d, 0x225
mov r9d, 2
call fcn.140072e00
lea rcx, [rsp + 0xc0]
mov rdx, r14
call fcn.140065fe0
lea rdx, str._expected_to_start_with
mov r8d, 0x18
mov rcx, rax
call fcn.140027941
mov rcx, rax
mov rdx, qword [rsp + 0x48]
call fcn.140065fe0
mov rcx, rbx
call fcn.140073340
mov rcx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
jmp 0x1400e8ab3
cmp dword [0x1401d3120], 2
jg 0x1400e8ab0
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rbx, [rsp + 0xb0]
mov rcx, rbx
mov r8d, 0x22e
mov r9d, 2
call fcn.140072e00
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_write_records
mov r8d, 0x17
call fcn.140027941
mov rcx, rbx
call fcn.140073340
mov rcx, r14
test rcx, rcx
je 0x1400e8acb
cmp rdi, rcx
je 0x1400e8ac6
add rdi, 0xffffffffffffffc8
jne 0x1400e8ab8
int3
call fcn.14014b4e4
cmp byte [rsp + 0x97], 0
jns 0x1400e843f
mov rcx, qword [rsp + 0x80]
call fcn.14014b4e4
jmp 0x1400e843f
int3
int3
int3
int3
int3
int3
int3
int3
int3