Function at 0x140021d40
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x250
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x140090030]
xor rax, rsp
mov qword [rbp + 0x138], rax
mov rdi, rcx
mov qword [rbp - 0x60], rcx
xor r14d, r14d
mov dword [rsp + 0x30], r14d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx]
call fcn.14001b200
test rax, rax
je 0x140021de8
mov dword [rsp + 0x20], 2
mov r9d, 0x202
lea r8, str................._artifacts_sentry0.4.186crashpadclientcrash_report_database_win.cc
lea rdx, str.void___cdecl_crashpad::_anonymous_namespace::Metadata::Write_void_
lea rcx, [rbp - 0x40]
call fcn.14000d640
nop
mov dword [rsp + 0x30], 1
lea rdx, str.failed_to_rewind_to_write
mov rcx, rax
call fcn.140001010
nop
lea rcx, [rbp - 0x40]
call fcn.14000d850
jmp 0x14002256d
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140021e4a
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0x209
lea r8, str................._artifacts_sentry0.4.186crashpadclientcrash_report_database_win.cc
lea rdx, str.void___cdecl_crashpad::_anonymous_namespace::Metadata::Write_void_
lea rcx, [rbp - 0x40]
call fcn.14000d7d0
nop
mov dword [rsp + 0x30], 2
lea rdx, str.failed_to_truncate
mov rcx, rax
call fcn.140001010
nop
lea rcx, [rbp - 0x40]
call fcn.14000dae0
jmp 0x14002256d
mov rbx, qword [rdi + 0x58]
sub rbx, qword [rdi + 0x50]
sar rbx, 7
mov dword [rbp + 0xf4], r14d
mov dword [rbp + 0xe8], 0x43504144
mov dword [rbp + 0xec], 1
mov r12d, 0xffffffff
cmp rbx, r12
ja 0x140021e84
mov dword [rbp + 0xf0], ebx
jmp 0x140021e8c
int3
mov r8d, 0x10
lea rdx, [rbp + 0xe8]
mov rcx, qword [rdi]
call fcn.14001a020
test al, al
jne 0x140021ef2
mov dword [rsp + 0x20], 2
mov r9d, 0x215
lea r8, str................._artifacts_sentry0.4.186crashpadclientcrash_report_database_win.cc
lea rdx, str.void___cdecl_crashpad::_anonymous_namespace::Metadata::Write_void_
lea rcx, [rbp - 0x40]
call fcn.14000d640
nop
or r14d, 4
mov dword [rsp + 0x30], r14d
lea rdx, str.failed_to_write_header
mov rcx, rax
call fcn.140001010
nop
lea rcx, [rbp - 0x40]
call fcn.14000d850
jmp 0x14002256d
test rbx, rbx
je 0x14002256d
mov qword [rbp + 0xc8], r14
mov qword [rbp + 0xd8], r14
mov qword [rbp + 0xe0], 0xf
mov byte [rbp + 0xc8], r14b
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r14
movabs rax, 0x492492492492492
cmp rbx, rax
ja 0x1400225a2
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140022660
mov r13, qword [rdi + 0x50]
mov rax, qword [rdi + 0x58]
mov qword [rsp + 0x30], rax
movabs r15, 0x4924924924924925
mov rsi, qword [rsp + 0x40]
cmp r13, rax
je 0x1400223f0
lea r15, [rdi + 8]
mov qword [rbp - 0x68], r15
lea rdi, [r13 + 0x10]
nop word [rax + rax]
lea rdx, [rbp + 0xf8]
mov rcx, rdi
call fcn.14000c720
nop
mov rdx, r15
mov rcx, rax
call fcn.14000c220
movzx ebx, al
lea rcx, [rbp + 0xf8]
call fcn.1400048f0
test bl, bl
jne 0x1400222d1
movups xmm6, xmmword [r13]
movups xmmword [rsp + 0x60], xmm6
lea rdx, [rbp + 0x118]
mov rcx, rdi
call fcn.14000c560
nop
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x140021fd9
mov rcx, qword [rax]
mov qword [rsp + 0x50], rcx
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0xf8]
call fcn.14000ea50
nop
mov rcx, qword [rbp + 0xd8]
cmp rcx, r12
ja 0x140022013
mov r12d, ecx
jmp 0x140022017
int3
mov r9, rax
cmp qword [rax + 0x18], 0x10
jb 0x140022024
mov r9, qword [rax]
mov r15, qword [rax + 0x10]
mov rdx, qword [rbp + 0xe0]
mov rax, rdx
sub rax, rcx
cmp r15, rax
ja 0x140022070
lea rax, [rcx + r15]
mov qword [rbp + 0xd8], rax
lea rbx, [rbp + 0xc8]
cmp rdx, 0x10
cmovae rbx, qword [rbp + 0xc8]
add rbx, rcx
mov r8, r15
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + r15], 0
jmp 0x140022087
mov qword [rsp + 0x20], r15
xor r8d, r8d
mov rdx, r15
lea rcx, [rbp + 0xc8]
call fcn.140001970
mov rcx, qword [rbp + 0xd8]
mov rdx, qword [rbp + 0xe0]
cmp rcx, rdx
jae 0x1400220c0
lea rax, [rcx + 1]
mov qword [rbp + 0xd8], rax
lea rax, [rbp + 0xc8]
cmp rdx, 0x10
cmovae rax, qword [rbp + 0xc8]
mov word [rax + rcx], 0
jmp 0x1400220d7
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, [rbp + 0xc8]
call fcn.140001800
nop
mov rdx, qword [rbp + 0x110]
cmp rdx, 0x10
jb 0x140022118
inc rdx
mov rcx, qword [rbp + 0xf8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022113
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400222ca
call fcn.140058888
mov qword [rbp + 0x108], r14
mov qword [rbp + 0x110], 0xf
mov byte [rbp + 0xf8], 0
mov dword [rsp + 0x70], r12d
lea rcx, [rbp + 0x118]
call fcn.1400048f0
mov rcx, qword [rbp + 0xd8]
mov eax, 0xffffffff
cmp rcx, rax
ja 0x140022158
mov r12d, ecx
jmp 0x14002215c
int3
lea r9, [rdi + 0x20]
cmp qword [rdi + 0x38], 0x10
jb 0x14002216a
mov r9, qword [r9]
mov r15, qword [rdi + 0x30]
mov rdx, qword [rbp + 0xe0]
mov rax, rdx
sub rax, rcx
cmp r15, rax
ja 0x1400221b6
lea rax, [rcx + r15]
mov qword [rbp + 0xd8], rax
lea rbx, [rbp + 0xc8]
cmp rdx, 0x10
cmovae rbx, qword [rbp + 0xc8]
add rbx, rcx
mov r8, r15
mov rdx, r9
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + r15], 0
jmp 0x1400221cd
mov qword [rsp + 0x20], r15
xor r8d, r8d
mov rdx, r15
lea rcx, [rbp + 0xc8]
call fcn.140001970
mov rcx, qword [rbp + 0xd8]
mov rdx, qword [rbp + 0xe0]
cmp rcx, rdx
jae 0x140022206
lea rax, [rcx + 1]
mov qword [rbp + 0xd8], rax
lea rax, [rbp + 0xc8]
cmp rdx, 0x10
cmovae rax, qword [rbp + 0xc8]
mov word [rax + rcx], 0
jmp 0x14002221c
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, [rbp + 0xc8]
call fcn.140001800
mov dword [rsp + 0x74], r12d
mov rax, qword [rdi + 0x40]
mov qword [rsp + 0x78], rax
mov rax, qword [rdi + 0x50]
mov qword [rbp - 0x80], rax
mov eax, dword [rdi + 0x58]
mov dword [rbp - 0x78], eax
mov eax, dword [rdi + 0x68]
mov dword [rbp - 0x74], eax
movzx eax, byte [rdi + 0x5c]
neg al
sbb cl, cl
and cl, 2
cmp byte [rdi + 0x48], 0
setne al
or cl, al
mov byte [rbp - 0x70], cl
xor eax, eax
mov dword [rbp - 0x6f], eax
mov word [rbp - 0x6b], ax
mov byte [rbp - 0x69], al
cmp rsi, qword [rsp + 0x48]
je 0x140022291
movups xmmword [rsi], xmm6
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x10], xmm0
movups xmm1, xmmword [rbp - 0x80]
movups xmmword [rsi + 0x20], xmm1
movsd xmm0, qword [rbp - 0x70]
movsd qword [rsi + 0x30], xmm0
add rsi, 0x38
mov qword [rsp + 0x40], rsi
jmp 0x1400222a8
lea r8, [rsp + 0x60]
mov rdx, rsi
lea rcx, [rsp + 0x38]
call fcn.14001e8b0
mov rsi, qword [rsp + 0x40]
sub r13, 0xffffffffffffff80
sub rdi, 0xffffffffffffff80
cmp r13, qword [rsp + 0x30]
je 0x1400223e2
mov r15, qword [rbp - 0x68]
mov r12d, 0xffffffff
jmp 0x140021f80
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rax, r15
cmp qword [r15 + 0x18], 8
jb 0x1400222de
mov rax, qword [r15]
mov qword [rsp + 0x50], rax
mov rax, qword [r15 + 0x10]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rbp - 0x50], xmm0
lea rdx, [rbp - 0x50]
lea rcx, [rbp + 0xf8]
call fcn.14000ea50
mov rbx, rax
or r14d, 8
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x20], 2
mov r9d, 0x223
lea r8, str................._artifacts_sentry0.4.186crashpadclientcrash_report_database_win.cc
lea rdx, str.void___cdecl_crashpad::_anonymous_namespace::Metadata::Write_void_
lea rcx, [rbp - 0x40]
call fcn.14000d640
nop
or r14d, 0x10
mov dword [rsp + 0x30], r14d
cmp qword [rdi + 0x18], 8
jb 0x14002234b
mov rdi, qword [rdi]
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, str._expected_to_start_with
call fcn.140001010
mov rdx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140022373
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
mov rcx, rax
call fcn.140001640
nop
lea rcx, [rbp - 0x40]
call fcn.14000d850
nop
mov rdx, qword [rbp + 0x110]
cmp rdx, 0x10
jb 0x1400223ce
inc rdx
mov rcx, qword [rbp + 0xf8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400223c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400223c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140058888
mov rbx, qword [rsp + 0x38]
movabs r15, 0x4924924924924925
jmp 0x1400224d3
mov rdi, qword [rbp - 0x60]
movabs r15, 0x4924924924924925
mov rbx, qword [rsp + 0x38]
sub rsi, rbx
mov rax, r15
imul rsi
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul r8, rdx, 0x38
mov rdx, rbx
mov rcx, qword [rdi]
call fcn.14001a020
test al, al
jne 0x140022460
mov dword [rsp + 0x20], 2
mov r9d, 0x22d
lea r8, str................._artifacts_sentry0.4.186crashpadclientcrash_report_database_win.cc
lea rdx, str.void___cdecl_crashpad::_anonymous_namespace::Metadata::Write_void_
lea rcx, [rbp - 0x40]
call fcn.14000d640
nop
or r14d, 0x20
mov dword [rsp + 0x30], r14d
lea rdx, str.failed_to_write_records
mov rcx, rax
call fcn.140001010
nop
jmp 0x1400224c9
lea rdx, [rbp + 0xc8]
cmp qword [rbp + 0xe0], 0x10
cmovae rdx, qword [rbp + 0xc8]
mov r8, qword [rbp + 0xd8]
mov rcx, qword [rdi]
call fcn.14001a020
test al, al
jne 0x1400224d3
mov dword [rsp + 0x20], 2
mov r9d, 0x232
lea r8, str................._artifacts_sentry0.4.186crashpadclientcrash_report_database_win.cc
lea rdx, str.void___cdecl_crashpad::_anonymous_namespace::Metadata::Write_void_
lea rcx, [rbp - 0x40]
call fcn.14000d640
nop
or r14d, 0x40
mov dword [rsp + 0x30], r14d
lea rdx, str.failed_to_write_string_table
mov rcx, rax
call fcn.140001010
nop
lea rcx, [rbp - 0x40]
call fcn.14000d850
nop
test rbx, rbx
je 0x140022529
mov rcx, qword [rsp + 0x48]
sub rcx, rbx
mov rax, r15
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0x38
mov rax, rbx
cmp rdx, 0x1000
jb 0x140022520
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022520
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.140058888
nop
mov rdx, qword [rbp + 0xe0]
cmp rdx, 0x10
jb 0x14002256d
inc rdx
mov rcx, qword [rbp + 0xc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140022568
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140022568
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140058888
mov rcx, qword [rbp + 0x138]
xor rcx, rsp
call fcn.140058920
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140022770
nop
int3