Function at 0x1400d5a58
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x238
mov rax, qword [0x140267e38]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, qword [rcx]
xor eax, eax
mov qword [rcx], rax
test rsi, rsi
je 0x1400d5bac
cmp byte [rsi + 0x30], 0
je 0x1400d5afe
mov rcx, qword [rsi + 8]
xor edx, edx
xor r8d, r8d
call fcn.1400a734f
test rax, rax
je 0x1400d5bd1
mov ecx, 2
call fcn.140060b40
test al, al
je 0x1400d5afe
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf0]
mov rcx, rdi
mov r8d, 0x1e5
mov r9d, 2
call fcn.140060c10
lea rcx, [rsp + 0xf8]
lea rdx, str.failed_to_rewind_to_write
mov r8d, 0x19
call fcn.140007184
mov rcx, rdi
call fcn.140061070
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 0x1400d5b8a
mov ecx, 2
call fcn.140060b40
test al, al
je 0x1400d5b8a
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf0]
mov rcx, rdi
mov r8d, 0x12a
mov r9d, 2
call fcn.1400618b0
lea rcx, [rsp + 0x100]
lea rdx, [0x140211a74]
mov r8d, 0xc
call fcn.140007184
mov rcx, rdi
call fcn.140061980
lea rcx, [rsi + 0x38]
call fcn.1400d7268
lea rcx, [rsi + 0x18]
call fcn.14005baa0
mov rcx, rsi
call fcn.1400a4ad2
mov rcx, rsi
call fcn.1401c9f6c
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1401ca2e0
nop
add rsp, 0x238
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 0x1400d5fb8
mov rbx, qword [rsi + 0x40]
sub rbx, qword [rsi + 0x38]
mov rdi, rbx
sar rdi, 4
movabs r12, 0x6db6db6db6db6db7
imul rdi, r12
mov qword [rsp + 0xc8], 0
movabs rax, 0x143504144
mov qword [rsp + 0xc0], rax
mov rax, rdi
shr rax, 0x20
jne 0x1400d625e
mov eax, edi
lea rdx, [rsp + 0xc0]
mov dword [rdx + 8], eax
mov rcx, qword [rsi + 8]
mov r8d, 0x10
call fcn.1400a57eb
test al, al
je 0x1400d601d
test rbx, rbx
je 0x1400d5afe
movabs rcx, 0x492492492492492
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
xor eax, eax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x90], rax
movaps xmmword [rsp + 0x80], xmm0
cmp rdi, rcx
ja 0x1400d6273
imul rdi, rdi, 0x38
mov rcx, rdi
call fcn.1401c9f10
add rdi, rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rdi
mov r13, qword [rsi + 0x38]
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x58], rcx
cmp r13, rcx
je 0x1400d606c
mov qword [rsp + 0x38], rsi
lea rax, [rsi + 0x18]
mov qword [rsp + 0x40], rax
lea rbp, [rsp + 0xf0]
lea r14, [rsp + 0x60]
lea rsi, [rsp + 0xa0]
xor r15d, r15d
lea rdi, [r13 + 0x10]
mov rcx, rdi
mov rdx, rbp
call fcn.14005c570
mov rcx, rbp
mov rdx, qword [rsp + 0x40]
call fcn.14005bd90
mov ebx, eax
mov rcx, rbp
call fcn.14005baa0
test bl, bl
jne 0x1400d614f
movups xmm0, xmmword [r13]
movaps xmmword [rsp + 0xe0], xmm0
mov rcx, rdi
mov rdx, r14
call fcn.14005c720
movzx eax, byte [rsp + 0x77]
test al, al
mov rcx, qword [rsp + 0x60]
cmovns rcx, r14
mov qword [rsp + 0xd0], rcx
cmovs rax, qword [rsp + 0x68]
mov qword [rsp + 0xd8], rax
mov rcx, rbp
lea rdx, [rsp + 0xd0]
call fcn.14006f5f0
mov rcx, rsi
mov rdx, rbp
call fcn.1400d72b4
mov edi, eax
cmp byte [rsp + 0x107], r15b
jns 0x1400d5d93
mov rcx, qword [rsp + 0xf0]
call fcn.1401c9f6c
mov rcx, r14
call fcn.14005baa0
lea rdx, [r13 + 0x28]
mov rcx, rsi
call fcn.1400d72b4
mov r10d, eax
mov r11, qword [r13 + 0x40]
mov r9, qword [r13 + 0x50]
mov r8d, dword [r13 + 0x58]
mov esi, dword [r13 + 0x68]
mov bl, byte [r13 + 0x5c]
add bl, bl
or bl, byte [r13 + 0x48]
mov dword [rsp + 0xf3], r15d
mov dword [rsp + 0xf0], r15d
mov rbp, qword [rsp + 0x88]
mov rax, qword [rsp + 0x90]
cmp rbp, rax
jae 0x1400d5e33
movaps xmm0, xmmword [rsp + 0xe0]
movups xmmword [rbp], xmm0
mov dword [rbp + 0x10], edi
mov dword [rbp + 0x14], r10d
mov qword [rbp + 0x18], r11
mov qword [rbp + 0x20], r9
mov dword [rbp + 0x28], r8d
mov dword [rbp + 0x2c], esi
mov byte [rbp + 0x30], bl
mov eax, dword [rsp + 0xf0]
mov ecx, dword [rsp + 0xf3]
mov dword [rbp + 0x31], eax
mov dword [rbp + 0x34], ecx
add rbp, 0x38
mov qword [rsp + 0x88], rbp
jmp 0x1400d5f79
mov dword [rsp + 0x34], edi
mov r15, qword [rsp + 0x80]
sub rbp, r15
mov rdi, rbp
sar rdi, 3
imul rdi, r12
lea rcx, [rdi + 1]
movabs rdx, 0x492492492492492
cmp rcx, rdx
ja 0x1400d6266
sub rax, r15
sar rax, 3
imul rax, r12
lea r14, [rax + rax]
cmp r14, rcx
cmovb r14, rcx
movabs rcx, 0x249249249249249
cmp rax, rcx
jb 0x1400d5e8c
mov r14, rdx
test r14, r14
je 0x1400d5ecf
mov qword [rsp + 0x48], r11
mov dword [rsp + 0x30], r10d
mov qword [rsp + 0x50], r15
cmp r14, rdx
ja 0x1400d6273
mov r15, r9
mov r12d, r8d
imul rcx, r14, 0x38
call fcn.1401c9f10
mov r8d, r12d
mov r9, r15
mov r15, qword [rsp + 0x50]
mov r10d, dword [rsp + 0x30]
mov r11, qword [rsp + 0x48]
jmp 0x1400d5ed1
xor eax, eax
imul rcx, rdi, 0x38
lea r12, [rax + rcx]
imul rdi, r14, 0x38
add rdi, rax
movaps xmm0, xmmword [rsp + 0xe0]
movups xmmword [rax + rcx], xmm0
mov edx, dword [rsp + 0x34]
mov dword [rax + rcx + 0x10], edx
mov dword [rax + rcx + 0x14], r10d
mov qword [rax + rcx + 0x18], r11
mov qword [rax + rcx + 0x20], r9
mov dword [rax + rcx + 0x28], r8d
mov dword [rax + rcx + 0x2c], esi
mov byte [rax + rcx + 0x30], bl
mov edx, dword [rsp + 0xf0]
mov ebx, dword [rsp + 0xf3]
mov dword [rax + rcx + 0x31], edx
mov dword [rax + rcx + 0x34], ebx
mov eax, 0x38
lea rbx, [r12 + rax]
sub r12, rbp
test rbp, rbp
jle 0x1400d5f45
mov rcx, r12
mov rdx, r15
mov r8, rbp
call fcn.1401cccd0
mov qword [rsp + 0x80], r12
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x90], rdi
test r15, r15
lea r14, [rsp + 0x60]
movabs r12, 0x6db6db6db6db6db7
je 0x1400d5f79
mov rcx, r15
call fcn.1401c9f6c
add r13, 0x70
cmp qword [rsp + 0x58], r13
lea rbp, [rsp + 0xf0]
lea rsi, [rsp + 0xa0]
mov r15d, 0
jne 0x1400d5cf3
mov rax, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x38]
jmp 0x1400d606f
mov ecx, 2
call fcn.140060b40
test al, al
je 0x1400d5afe
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf0]
mov rcx, rdi
mov r8d, 0x1ec
mov r9d, 2
call fcn.1400618b0
lea rcx, [rsp + 0x100]
lea rdx, str.failed_to_truncate
mov r8d, 0x12
call fcn.140007184
mov rcx, rdi
call fcn.140061980
jmp 0x1400d5afe
mov ecx, 2
call fcn.140060b40
test al, al
je 0x1400d5afe
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf0]
mov rcx, rdi
mov r8d, 0x1f8
mov r9d, 2
call fcn.140060c10
lea rcx, [rsp + 0xf8]
lea rdx, str.failed_to_write_header
mov r8d, 0x16
jmp 0x1400d5af1
mov r8, rax
sub r8, rax
mov rcx, qword [rsi + 8]
mov rdx, rax
call fcn.1400a57eb
test al, al
je 0x1400d60f8
lea rdx, [rsp + 0xa0]
movzx r8d, byte [rdx + 0x17]
test r8b, r8b
cmovs r8, qword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [rsi + 8]
call fcn.1400a57eb
test al, al
jne 0x1400d6224
mov ecx, 2
call fcn.140060b40
test al, al
je 0x1400d6224
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf0]
mov rcx, rdi
mov r8d, 0x215
mov r9d, 2
call fcn.140060c10
lea rcx, [rsp + 0xf8]
lea rdx, str.failed_to_write_string_table
mov r8d, 0x1c
jmp 0x1400d6142
mov ecx, 2
call fcn.140060b40
test al, al
je 0x1400d6224
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf0]
mov rcx, rdi
mov r8d, 0x210
mov r9d, 2
call fcn.140060c10
lea rcx, [rsp + 0xf8]
lea rdx, str.failed_to_write_records
mov r8d, 0x17
call fcn.140007184
mov rcx, rdi
jmp 0x1400d621f
mov ecx, 2
call fcn.140060b40
test al, al
mov rsi, qword [rsp + 0x38]
je 0x1400d6224
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0xf0]
mov r8d, 0x206
mov r9d, 2
call fcn.140060c10
lea rcx, [rsp + 0xf8]
cmp byte [r13 + 0x27], 0
jns 0x1400d6199
mov rdi, qword [r13 + 0x10]
mov rdx, rdi
call fcn.140061a30
lea rdx, str._expected_to_start_with
mov r8d, 0x18
mov rcx, rax
call fcn.140007184
movzx ecx, byte [rsi + 0x2f]
test cl, cl
mov rbp, qword [rsp + 0x40]
cmovs rbp, qword [rsi + 0x18]
mov rdi, rax
lea rdx, [rsp + 0xd0]
mov qword [rdx], rbp
cmovs rcx, qword [rsi + 0x20]
mov qword [rdx + 8], rcx
mov rcx, r14
call fcn.14006f5f0
movzx r8d, byte [rsp + 0x77]
test r8b, r8b
jns 0x1400d61fa
mov r8, qword [rsp + 0x68]
mov r14, qword [rsp + 0x60]
mov rcx, rdi
mov rdx, r14
call fcn.140007184
xor eax, eax
cmp byte [rsp + 0x77], al
jns 0x1400d6217
mov rcx, qword [rsp + 0x60]
call fcn.1401c9f6c
lea rcx, [rsp + 0xf0]
call fcn.140061070
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1400d623e
mov qword [rsp + 0x88], rcx
call fcn.1401c9f6c
cmp byte [rsp + 0xb7], 0
jns 0x1400d5afe
mov rcx, qword [rsp + 0xa0]
call fcn.1401c9f6c
jmp 0x1400d5afe
int3
lea rcx, [rsp + 0x80]
call fcn.14003d05c
call fcn.1401dedf4
int3