Function at 0x1400829e0
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 - 0x198]
sub rsp, 0x270
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x1400cc038]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rsi, rcx
mov qword [rbp - 0x78], rcx
xor r13d, r13d
mov dword [rsp + 0x30], r13d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx]
call fcn.14004c130
test rax, rax
je 0x140082a88
mov dword [rsp + 0x20], 2
mov r9d, 0x202
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpadclientcrash_report_database_win.cc
lea rdx, str.void___cdecl_crashpad::_anonymous_namespace::Metadata::Write_void_
lea rcx, [rbp - 0x60]
call fcn.14004dc10
nop
mov dword [rsp + 0x30], 1
lea rdx, str.failed_to_rewind_to_write
mov rcx, rax
call fcn.1400012e0
nop
lea rcx, [rbp - 0x60]
call fcn.14004de20
jmp 0x1400832ef
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140082aea
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
mov r9d, 0x209
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpadclientcrash_report_database_win.cc
lea rdx, str.void___cdecl_crashpad::_anonymous_namespace::Metadata::Write_void_
lea rcx, [rbp - 0x60]
call fcn.14004dda0
nop
mov dword [rsp + 0x30], 2
lea rdx, str.failed_to_truncate
mov rcx, rax
call fcn.1400012e0
nop
lea rcx, [rbp - 0x60]
call fcn.14004e080
jmp 0x1400832ef
mov rbx, qword [rsi + 0x58]
sub rbx, qword [rsi + 0x50]
sar rbx, 7
mov dword [rbp + 0xd4], r13d
mov dword [rbp + 0xc8], 0x43504144
mov dword [rbp + 0xcc], 1
mov eax, 0xffffffff
cmp rbx, rax
ja 0x140082b23
mov dword [rbp + 0xd0], ebx
jmp 0x140082b2b
int3
mov r8d, 0x10
lea rdx, [rbp + 0xc8]
mov rcx, qword [rsi]
call fcn.140049f80
test al, al
jne 0x140082b91
mov dword [rsp + 0x20], 2
mov r9d, 0x215
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpadclientcrash_report_database_win.cc
lea rdx, str.void___cdecl_crashpad::_anonymous_namespace::Metadata::Write_void_
lea rcx, [rbp - 0x60]
call fcn.14004dc10
nop
or r13d, 4
mov dword [rsp + 0x30], r13d
lea rdx, str.failed_to_write_header
mov rcx, rax
call fcn.1400012e0
nop
lea rcx, [rbp - 0x60]
call fcn.14004de20
jmp 0x1400832ef
test rbx, rbx
je 0x1400832ef
xorps xmm0, xmm0
movups xmmword [rbp + 0xa8], xmm0
mov qword [rbp + 0xb8], r13
mov qword [rbp + 0xc0], 0xf
mov byte [rbp + 0xa8], r13b
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r13
movabs rax, 0x492492492492492
cmp rbx, rax
ja 0x1400833a5
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140083470
mov r14, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x40], rax
imul r15, rbx, 0x38
add r15, rax
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov r12, qword [rsi + 0x50]
mov qword [rsp + 0x58], r12
mov rax, qword [rsi + 0x58]
mov qword [rbp - 0x80], rax
mov rcx, rdi
movabs rbx, 0x4924924924924925
cmp r12, rax
je 0x1400830dd
lea rbx, [rsi + 8]
mov qword [rsp + 0x60], rbx
lea rsi, [r12 + 0x10]
nop
lea rdx, [rbp + 0xd8]
mov rcx, rsi
call fcn.14004cc30
nop
mov rdx, rbx
mov rcx, rax
call fcn.14004c770
movzx ebx, al
lea rcx, [rbp + 0xd8]
call fcn.140016710
test bl, bl
jne 0x140083158
movups xmm6, xmmword [r12]
lea rdx, [rbp + 0x130]
mov rcx, rsi
call fcn.14004cba0
nop
mov rcx, rax
cmp qword [rax + 0x18], 8
jb 0x140082c94
mov rcx, qword [rax]
mov qword [rsp + 0x70], rcx
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x78], rax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x70], xmm0
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0xd8]
call fcn.14004f0a0
mov r9, rax
mov r12, qword [rbp + 0xb8]
mov ebx, 0xffffffff
cmp r12, rbx
ja 0x140082cd7
mov dword [rsp + 0x30], r12d
jmp 0x140082cdd
int3
mov r15, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x140082ceb
mov r9, qword [rax]
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
sub rax, r12
cmp r15, rax
ja 0x140082d3a
lea rax, [r12 + r15]
mov qword [rbp + 0xb8], rax
lea rbx, [rbp + 0xa8]
cmp rcx, 0x10
cmovae rbx, qword [rbp + 0xa8]
lea rcx, [rbx + r12]
mov r8, r15
mov rdx, r9
call fcn.140058620
lea rax, [r15 + rbx]
mov byte [rax + r12], 0
mov ebx, 0xffffffff
jmp 0x140082d51
mov qword [rsp + 0x20], r15
xor r8d, r8d
mov rdx, r15
lea rcx, [rbp + 0xa8]
call fcn.140002370
mov rcx, qword [rbp + 0xb8]
mov rdx, qword [rbp + 0xc0]
cmp rcx, rdx
jae 0x140082d8a
lea rax, [rcx + 1]
mov qword [rbp + 0xb8], rax
lea rax, [rbp + 0xa8]
cmp rdx, 0x10
cmovae rax, qword [rbp + 0xa8]
mov word [rax + rcx], 0
jmp 0x140082da1
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, [rbp + 0xa8]
call fcn.140029ba0
nop
mov rdx, qword [rbp + 0xf0]
cmp rdx, 0x10
jb 0x140082de2
inc rdx
mov rcx, qword [rbp + 0xd8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140082ddd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400833ab
call fcn.1400567fc
mov qword [rbp + 0xe8], r13
mov qword [rbp + 0xf0], 0xf
mov byte [rbp + 0xd8], 0
mov eax, dword [rsp + 0x30]
mov dword [rbp + 0x108], eax
lea rcx, [rbp + 0x130]
call fcn.140016710
mov r15, qword [rbp + 0xb8]
cmp r15, rbx
ja 0x140082e24
mov dword [rsp + 0x30], r15d
jmp 0x140082e2a
int3
mov r12, qword [rsi + 0x30]
lea r9, [rsi + 0x20]
cmp qword [rsi + 0x38], 0x10
jb 0x140082e3c
mov r9, qword [r9]
mov rcx, qword [rbp + 0xc0]
mov rax, rcx
sub rax, r15
cmp r12, rax
ja 0x140082e86
lea rax, [r15 + r12]
mov qword [rbp + 0xb8], rax
lea rbx, [rbp + 0xa8]
cmp rcx, 0x10
cmovae rbx, qword [rbp + 0xa8]
lea rcx, [rbx + r15]
mov r8, r12
mov rdx, r9
call fcn.140058620
lea rax, [rbx + r12]
mov byte [rax + r15], 0
jmp 0x140082e9d
mov qword [rsp + 0x20], r12
xor r8d, r8d
mov rdx, r12
lea rcx, [rbp + 0xa8]
call fcn.140002370
mov rcx, qword [rbp + 0xb8]
mov rdx, qword [rbp + 0xc0]
cmp rcx, rdx
jae 0x140082ed6
lea rax, [rcx + 1]
mov qword [rbp + 0xb8], rax
lea rax, [rbp + 0xa8]
cmp rdx, 0x10
cmovae rax, qword [rbp + 0xa8]
mov word [rax + rcx], 0
jmp 0x140082eec
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, [rbp + 0xa8]
call fcn.140029ba0
mov eax, dword [rsp + 0x30]
mov dword [rbp + 0x10c], eax
mov rax, qword [rsi + 0x40]
mov qword [rbp + 0x110], rax
mov rax, qword [rsi + 0x50]
mov qword [rbp + 0x118], rax
mov eax, dword [rsi + 0x58]
mov dword [rbp + 0x120], eax
mov eax, dword [rsi + 0x68]
mov dword [rbp + 0x124], eax
movzx eax, byte [rsi + 0x5c]
neg al
sbb cl, cl
and cl, 2
cmp byte [rsi + 0x48], 0
setne al
or cl, al
mov byte [rbp + 0x128], cl
xor eax, eax
mov dword [rbp + 0x129], eax
mov word [rbp + 0x12d], ax
mov byte [rbp + 0x12f], al
mov r15, qword [rsp + 0x50]
cmp rdi, r15
je 0x140082f86
movups xmmword [rdi], xmm6
movups xmm0, xmmword [rbp + 0x108]
movups xmmword [rdi + 0x10], xmm0
movups xmm1, xmmword [rbp + 0x118]
movups xmmword [rdi + 0x20], xmm1
movsd xmm0, qword [rbp + 0x128]
movsd qword [rdi + 0x30], xmm0
add rdi, 0x38
jmp 0x1400830a5
sub rdi, r14
movabs rcx, 0x4924924924924925
mov rax, rcx
imul rdi
mov r13, rdx
sar r13, 4
mov rax, r13
shr rax, 0x3f
add r13, rax
movabs r9, 0x492492492492492
cmp r13, r9
je 0x1400833b7
lea r8, [r13 + 1]
sub r15, r14
mov rax, rcx
imul r15
mov r15, rdx
sar r15, 4
mov rax, r15
shr rax, 0x3f
add r15, rax
mov rcx, r15
shr rcx, 1
mov rax, r9
sub rax, rcx
cmp r15, rax
jbe 0x140082ff1
mov rbx, r9
jmp 0x140082ffc
lea rbx, [rcx + r15]
cmp rbx, r8
cmovb rbx, r8
mov rdx, rbx
lea rcx, [rsp + 0x38]
call fcn.140083470
mov r12, rax
imul rcx, r13, 0x38
movups xmmword [rcx + rax], xmm6
movups xmm0, xmmword [rbp + 0x108]
movups xmmword [rcx + rax + 0x10], xmm0
movups xmm1, xmmword [rbp + 0x118]
movups xmmword [rcx + rax + 0x20], xmm1
movsd xmm0, qword [rbp + 0x128]
movsd qword [rcx + rax + 0x30], xmm0
mov r8, rdi
mov rdx, r14
mov rcx, rax
call fcn.140058620
test r14, r14
je 0x14008307e
imul rdx, r15, 0x38
mov rax, r14
cmp rdx, 0x1000
jb 0x140083076
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400833b1
mov rcx, r14
call fcn.1400567fc
mov r14, r12
mov qword [rsp + 0x38], r12
lea rax, [r13 + 1]
imul rdi, rax, 0x38
add rdi, r12
imul r15, rbx, 0x38
add r15, r12
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
xor r13d, r13d
mov rcx, rdi
mov qword [rsp + 0x40], rdi
mov r12, qword [rsp + 0x58]
sub r12, 0xffffffffffffff80
mov qword [rsp + 0x58], r12
sub rsi, 0xffffffffffffff80
cmp r12, qword [rbp - 0x80]
je 0x1400830cf
mov rbx, qword [rsp + 0x60]
jmp 0x140082c40
mov rsi, qword [rbp - 0x78]
movabs rbx, 0x4924924924924925
sub rcx, r14
mov rax, rbx
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul r8, rdx, 0x38
mov rdx, r14
mov rcx, qword [rsi]
call fcn.140049f80
test al, al
jne 0x140083324
mov dword [rsp + 0x20], 2
mov r9d, 0x22d
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpadclientcrash_report_database_win.cc
lea rdx, str.void___cdecl_crashpad::_anonymous_namespace::Metadata::Write_void_
lea rcx, [rbp - 0x60]
call fcn.14004dc10
nop
or r13d, 0x20
mov dword [rsp + 0x30], r13d
lea rdx, str.failed_to_write_records
mov rcx, rax
call fcn.1400012e0
nop
lea rcx, [rbp - 0x60]
call fcn.14004de20
jmp 0x140083260
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp qword [rcx + 0x18], 8
jb 0x14008316a
mov rax, qword [rcx]
mov qword [rsp + 0x70], rax
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x78], rax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x70], xmm0
lea rdx, [rbp - 0x70]
lea rcx, [rbp + 0xd8]
call fcn.14004f0a0
mov rbx, rax
or r13d, 8
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x20], 2
mov r9d, 0x223
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpadclientcrash_report_database_win.cc
lea rdx, str.void___cdecl_crashpad::_anonymous_namespace::Metadata::Write_void_
lea rcx, [rbp - 0x60]
call fcn.14004dc10
nop
or r13d, 0x10
mov dword [rsp + 0x30], r13d
cmp qword [rsi + 0x18], 8
jb 0x1400831d7
mov rsi, qword [rsi]
mov rdx, rsi
mov rcx, rax
call fcn.140003e40
mov rcx, rax
lea rdx, str._expected_to_start_with
call fcn.1400012e0
mov r8, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x1400831ff
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, rax
call fcn.1400020f0
nop
lea rcx, [rbp - 0x60]
call fcn.14004de20
nop
mov rdx, qword [rbp + 0xf0]
cmp rdx, 0x10
jb 0x140083256
inc rdx
mov rcx, qword [rbp + 0xd8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140083251
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400833bd
call fcn.1400567fc
movabs rbx, 0x4924924924924925
test r14, r14
je 0x1400832ae
sub r15, r14
mov rax, rbx
imul r15
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rdx, rdx, 0x38
mov rax, r14
cmp rdx, 0x1000
jb 0x1400832a5
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400833c3
mov rcx, r14
call fcn.1400567fc
nop
mov rdx, qword [rbp + 0xc0]
cmp rdx, 0x10
jb 0x1400832ef
inc rdx
mov rcx, qword [rbp + 0xa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400832ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14008339f
call fcn.1400567fc
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140056a30
lea r11, [rsp + 0x270]
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
lea rdx, [rbp + 0xa8]
cmp qword [rbp + 0xc0], 0x10
cmovae rdx, qword [rbp + 0xa8]
mov r8, qword [rbp + 0xb8]
mov rcx, qword [rsi]
call fcn.140049f80
test al, al
jne 0x140083260
mov dword [rsp + 0x20], 2
mov r9d, 0x232
lea r8, str.D:projects_netease_nrd_nrd_pc_client_vcpkg_buildtrees_sentry_native_srcy_native_0_bf71db22ea.cleanexternalcrashpadclientcrash_report_database_win.cc
lea rdx, str.void___cdecl_crashpad::_anonymous_namespace::Metadata::Write_void_
lea rcx, [rbp - 0x60]
call fcn.14004dc10
nop
or r13d, 0x40
mov dword [rsp + 0x30], r13d
lea rdx, str.failed_to_write_string_table
mov rcx, rax
call fcn.1400012e0
nop
lea rcx, [rbp - 0x60]
call fcn.14004de20
jmp 0x140083260
call fcn.14005d0ac
nop
call fcn.140083450
nop
call fcn.14005d0ac
nop
call fcn.14005d0ac
int3
call fcn.140083450
int3
call fcn.14005d0ac
nop
call fcn.14005d0ac
int3