Function at 0x1401afcbe
Capabilities:
Clear file content
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x218
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0x210], rax
mov rsi, qword [rcx]
mov qword [rcx], 0
test rsi, rsi
jne 0x1401afd17
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.140156fe0
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 0x1401afd82
mov rcx, qword [rsi + 8]
xor edx, edx
xor r8d, r8d
call fcn.140147d1e
test rax, rax
je 0x1401afe61
cmp dword [0x1403629c0], 2
jg 0x1401afd82
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8d, 0x214
mov r9d, 2
call fcn.140117f40
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_rewind_to_write
mov r8d, 0x19
call fcn.140097cc9
mov rcx, rdi
call fcn.14009caf0
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 0x1401afe0a
cmp dword [0x1403629c0], 2
jg 0x1401afe0a
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, 0x145
mov r9d, 2
call fcn.14009c6a0
lea rcx, [rsp + 0xc0]
lea rdx, [0x14031422c]
mov r8d, 0xc
call fcn.140097cc9
mov rcx, rdi
call fcn.14009c720
lea rcx, [rsi + 0x50]
call fcn.14009aeb2
cmp byte [rsi + 0x47], 0
jns 0x1401afe22
mov rcx, qword [rsi + 0x30]
call fcn.140153bcc
cmp byte [rsi + 0x2f], 0
jns 0x1401afe31
mov rcx, qword [rsi + 0x18]
call fcn.140153bcc
lea rax, [0x1402ff0f0]
mov qword [rsi], rax
cmp byte [rsi + 0x10], 0
jne 0x1401b0520
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
je 0x1401afe54
call fcn.14005f119
mov rcx, rsi
call fcn.140153bcc
jmp 0x1401afcf2
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1401afed0
cmp dword [0x1403629c0], 2
jg 0x1401afd82
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, 0x21b
mov r9d, 2
call fcn.14009c6a0
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_truncate
mov r8d, 0x12
call fcn.140097cc9
mov rcx, rdi
call fcn.14009c720
jmp 0x1401afd82
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 0x1401b0518
mov eax, edi
lea rdx, [rsp + 0xa0]
mov dword [rdx + 8], eax
mov rcx, qword [rsi + 8]
mov r8d, 0x10
call fcn.140149820
test al, al
jne 0x1401aff84
cmp dword [0x1403629c0], 2
jg 0x1401afd82
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8d, 0x227
mov r9d, 2
call fcn.140117f40
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_write_header
mov r8d, 0x16
jmp 0x1401afd75
cmp r14, rbx
je 0x1401afd82
movabs rax, 0x492492492492492
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], 0
cmp rdi, rax
ja 0x1401b0535
imul rdi, rdi, 0x38
mov rcx, rdi
call fcn.140153bd4
mov rbx, rax
mov r14, qword [rsi + 0x50]
mov rax, qword [rsi + 0x58]
mov qword [rsp + 0x58], rax
cmp r14, rax
je 0x1401b0532
add rdi, rbx
mov r13, rdi
lea r15, [rsi + 0x18]
mov rdi, rbx
mov qword [rsp + 0x40], r15
jmp 0x1401b003d
test rdi, rdi
je 0x1401b0526
movaps xmm0, xmmword [rsp + 0x200]
movups xmmword [rdi], xmm0
mov dword [rdi + 0x10], r12d
mov dword [rdi + 0x14], r11d
mov qword [rdi + 0x18], rax
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 r13, r8
add rdi, 0x38
add r14, 0x70
cmp r14, qword [rsp + 0x58]
je 0x1401b046d
lea r12, [r14 + 0x10]
mov rcx, r12
lea rbp, [rsp + 0xb0]
mov rdx, rbp
call fcn.1400df8d0
mov rcx, rbp
mov rdx, r15
call fcn.140147420
mov ebp, eax
cmp byte [rsp + 0xc7], 0
jns 0x1401b0078
mov rcx, qword [rsp + 0xb0]
call fcn.140153bcc
test bpl, bpl
jne 0x1401b02e2
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0x200], xmm0
mov rcx, r12
lea r12, [rsp + 0x60]
mov rdx, r12
call fcn.1400e0100
movzx eax, byte [rsp + 0x77]
test al, al
js 0x1401b00ab
and eax, 0x7f
jmp 0x1401b00b5
mov rax, qword [rsp + 0x68]
mov r12, qword [rsp + 0x60]
mov qword [rsp + 0x1f0], r12
mov qword [rsp + 0x1f8], rax
test rax, rax
js 0x1401b0523
test r12, r12
jne 0x1401b00dc
test rax, rax
jne 0x1401b0529
lea r12, [rsp + 0xb0]
mov rcx, r12
lea rdx, [rsp + 0x1f0]
call fcn.1400c7180
lea rcx, [rsp + 0x80]
mov rdx, r12
call fcn.14009fce8
mov r12d, eax
cmp byte [rsp + 0xc7], 0
jns 0x1401b011e
mov rcx, qword [rsp + 0xb0]
call fcn.140153bcc
cmp byte [rsp + 0x77], 0
jns 0x1401b012f
mov rcx, qword [rsp + 0x60]
call fcn.140153bcc
lea rdx, [r14 + 0x28]
lea rcx, [rsp + 0x80]
call fcn.14009fce8
mov r11d, eax
mov rax, 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, r13
cmp rdi, r13
jb 0x1401afff0
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x3c], r12d
mov r12, rdi
sub r12, rbx
sar r12, 3
movabs rax, 0x6db6db6db6db6db7
imul r12, rax
lea r15, [r12 + 1]
movabs rcx, 0x492492492492492
cmp r15, rcx
ja 0x1401b052c
sub r8, rbx
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 0x1401b02bc
mov dword [rsp + 0x34], r11d
mov qword [rsp + 0x48], r10
mov dword [rsp + 0x38], r9d
cmp r15, rcx
ja 0x1401b052f
mov r13d, edx
imul rcx, r15, 0x38
call fcn.140153bd4
mov r8, rax
mov edx, r13d
mov r9d, dword [rsp + 0x38]
mov r10, qword [rsp + 0x48]
mov r11d, dword [rsp + 0x34]
imul r12, r12, 0x38
add r12, r8
je 0x1401b0515
movaps xmm0, xmmword [rsp + 0x200]
movups xmmword [r12], xmm0
mov eax, dword [rsp + 0x3c]
mov dword [r12 + 0x10], eax
mov dword [r12 + 0x14], r11d
mov rax, qword [rsp + 0x50]
mov qword [r12 + 0x18], rax
mov qword [r12 + 0x20], r10
mov dword [r12 + 0x28], r9d
mov dword [r12 + 0x2c], edx
mov byte [r12 + 0x30], bpl
xor eax, eax
mov dword [r12 + 0x31], eax
mov dword [r12 + 0x34], eax
mov rbp, r12
cmp rdi, rbx
je 0x1401b02a0
mov rax, r12
mov rcx, rdi
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 rbp, [rax - 0x38]
movups xmmword [rax - 0x18], xmm2
movups xmmword [rax - 0x28], xmm1
movups xmmword [rax - 0x38], xmm0
mov rax, rbp
mov rcx, rdx
cmp rdx, rbx
jne 0x1401b026d
imul rax, r15, 0x38
add r8, rax
mov r15, qword [rsp + 0x40]
cmp rdi, rbx
je 0x1401b02c4
add rdi, 0xffffffffffffffc8
jne 0x1401b02ac
jmp 0x1401b050f
xor r8d, r8d
jmp 0x1401b020d
test rbx, rbx
je 0x1401b02d7
mov rcx, rbx
mov rdi, r8
call fcn.140153bcc
mov r8, rdi
mov rbx, rbp
mov rdi, r12
jmp 0x1401b0027
cmp dword [0x1403629c0], 2
jg 0x1401b03e2
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0xb0]
mov r8d, 0x235
mov r9d, 2
call fcn.140117f40
lea rcx, [rsp + 0xc0]
cmp byte [r14 + 0x27], 0
jns 0x1401b0322
mov r12, qword [r12]
mov rdx, r12
call fcn.1402403e0
lea rdx, str._expected_to_start_with
mov r8d, 0x18
mov rcx, rax
call fcn.140097cc9
mov r14, rax
movzx eax, byte [rsi + 0x2f]
test al, al
jns 0x1401b036c
mov r15, qword [rsi + 0x18]
mov rax, qword [rsi + 0x20]
mov qword [rsp + 0x1f0], r15
mov qword [rsp + 0x1f8], rax
test rax, rax
jns 0x1401b037c
jmp 0x1401b0538
mov qword [rsp + 0x1f0], r15
mov qword [rsp + 0x1f8], rax
test r15, r15
jne 0x1401b038a
test rax, rax
jne 0x1401b053b
lea r15, [rsp + 0x60]
lea rdx, [rsp + 0x1f0]
mov rcx, r15
call fcn.1400c7180
movzx r8d, byte [r15 + 0x17]
test r8b, r8b
js 0x1401b03af
and r8d, 0x7f
jmp 0x1401b03b9
mov r8, qword [rsp + 0x68]
mov r15, qword [rsp + 0x60]
mov rcx, r14
mov rdx, r15
call fcn.140097cc9
cmp byte [rsp + 0x77], 0
jns 0x1401b03d5
mov rcx, qword [rsp + 0x60]
call fcn.140153bcc
lea rcx, [rsp + 0xb0]
call fcn.14009caf0
test rbx, rbx
je 0x1401b03ff
cmp rdi, rbx
je 0x1401b03f7
add rdi, 0xffffffffffffffc8
jne 0x1401b03e7
jmp 0x1401b0512
mov rcx, rbx
call fcn.140153bcc
cmp byte [rsp + 0x97], 0
jns 0x1401afd82
mov rcx, qword [rsp + 0x80]
call fcn.140153bcc
jmp 0x1401afd82
cmp dword [0x1403629c0], 2
jg 0x1401b03e2
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea r14, [rsp + 0xb0]
mov rcx, r14
mov r8d, 0x23f
mov r9d, 2
call fcn.140117f40
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_write_records
mov r8d, 0x17
call fcn.140097cc9
mov rcx, r14
jmp 0x1401b03dd
mov r8, rdi
sub r8, rbx
je 0x1401b0532
mov rcx, qword [rsi + 8]
mov rdx, rbx
call fcn.140149820
test al, al
je 0x1401b041f
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.140149820
test al, al
jne 0x1401b03e2
cmp dword [0x1403629c0], 2
jg 0x1401b03e2
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea r14, [rsp + 0xb0]
mov rcx, r14
mov r8d, 0x244
mov r9d, 2
call fcn.140117f40
lea rcx, [rsp + 0xc0]
lea rdx, str.failed_to_write_string_table
mov r8d, 0x1c
jmp 0x1401b0460
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3