Function at 0x14003ddf0
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x258
mov rax, qword [0x14010c038]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, qword [rcx]
mov qword [rcx], 0
test rsi, rsi
je 0x14003deaf
cmp byte [rsi + 0x30], 0
jne 0x14003ded4
xorps xmm0, xmm0
lea rax, [rsp + 0x70]
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
je 0x14003df47
mov rbx, qword [rsi + 0x38]
test rbx, rbx
jne 0x14003dfac
lea rcx, [rsi + 0x18]
call fcn.140059e20
lea rax, [0x1400edbc8]
mov qword [rsi], rax
cmp byte [rsi + 0x10], 0
jne 0x14003dff2
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
je 0x14003dea7
call fcn.14003fe50
mov qword [rsi + 8], 0xffffffffffffffff
mov rcx, rsi
call fcn.140078974
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1400797f0
nop
add rsp, 0x258
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsi + 8]
xor edx, edx
xor r8d, r8d
call fcn.140046ea0
test rax, rax
je 0x14003dff5
mov ecx, 2
call fcn.140064750
test al, al
je 0x14003de32
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xe0]
mov rcx, rdi
mov r8d, 0x1fb
mov r9d, 2
call fcn.140033a00
lea rcx, [rsp + 0xf0]
lea rdx, str.failed_to_rewind_to_write
mov r8d, 0x19
call fcn.140051090
mov rcx, rdi
call fcn.140033ea0
jmp 0x14003de32
mov ecx, 2
call fcn.140064750
test al, al
je 0x14003de66
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 + 0xe0]
mov rcx, rdi
mov r8d, 0x136
mov r9d, 2
call fcn.1400cb600
lea rcx, [rsp + 0xf0]
lea rdx, [0x1400f89a0]
mov r8d, 0xc
call fcn.140051090
mov rcx, rdi
call fcn.1400cb6f0
jmp 0x14003de66
mov rdi, qword [rsi + 0x40]
cmp rdi, rbx
je 0x14003e432
lea rbp, [rdi - 0x70]
cmp byte [rdi - 0x31], 0
jns 0x14003dfcc
mov rcx, qword [rdi - 0x48]
call fcn.140078974
add rdi, 0xffffffffffffffa0
mov rcx, rdi
call fcn.140059e20
mov rdi, rbp
cmp rbx, rbp
jne 0x14003dfb9
mov rcx, qword [rsi + 0x38]
mov qword [rsi + 0x40], rbx
call fcn.140078974
jmp 0x14003de73
int3
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14003e43a
mov rbx, qword [rsi + 0x40]
sub rbx, qword [rsi + 0x38]
mov rdi, rbx
sar rdi, 4
movabs rax, 0x6db6db6db6db6db7
imul rdi, rax
mov dword [rsp + 0xdc], 0
movabs rax, 0x143504144
mov qword [rsp + 0xd0], rax
mov rax, rdi
shr rax, 0x20
jne 0x14003e703
mov eax, edi
lea rdx, [rsp + 0xd0]
mov dword [rdx + 8], eax
mov rcx, qword [rsi + 8]
mov r8d, 0x10
call fcn.140047300
test al, al
je 0x14003e49f
test rbx, rbx
je 0x14003de32
movabs rcx, 0x492492492492492
xorps xmm0, xmm0
movaps xmmword [rsp + 0xb0], xmm0
xor eax, eax
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0xa0], rax
movaps xmmword [rsp + 0x90], xmm0
cmp rdi, rcx
ja 0x14003e70b
imul rdi, rdi, 0x38
mov rcx, rdi
call fcn.140078938
add rdi, rax
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rdi
mov rdx, qword [rsi + 0x38]
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x30], rdx
cmp rdx, rcx
je 0x14003e60f
lea rax, [rsi + 0x18]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
lea rdi, [rax + 0x10]
mov rcx, rdi
lea rbp, [rsp + 0xe0]
mov rdx, rbp
call fcn.140059fe0
mov rcx, rbp
mov rdx, qword [rsp + 0x60]
call fcn.140059e70
mov ebx, eax
mov rcx, rbp
call fcn.140059e20
test bl, bl
jne 0x14003e4ee
mov rax, qword [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x240], xmm0
mov rcx, rdi
lea rdi, [rsp + 0x70]
mov rdx, rdi
call fcn.14005a4a0
movzx eax, byte [rsp + 0x87]
test al, al
mov rcx, qword [rsp + 0x70]
cmovns rcx, rdi
mov qword [rsp + 0x228], rcx
cmovs rax, qword [rsp + 0x78]
mov qword [rsp + 0x230], rax
lea rdi, [rsp + 0xe0]
mov rcx, rdi
lea rdx, [rsp + 0x228]
call fcn.14005d050
lea rcx, [rsp + 0xb0]
mov rdx, rdi
call fcn.1400d33f0
mov dword [rsp + 0x44], eax
cmp byte [rsp + 0xf7], 0
jns 0x14003e1cf
mov rcx, qword [rsp + 0xe0]
call fcn.140078974
lea rcx, [rsp + 0x70]
call fcn.140059e20
mov rdi, qword [rsp + 0x30]
lea rdx, [rdi + 0x28]
lea rcx, [rsp + 0xb0]
call fcn.1400d33f0
mov dword [rsp + 0x38], eax
mov rax, qword [rdi + 0x40]
mov qword [rsp + 0x50], rax
mov rax, qword [rdi + 0x50]
mov qword [rsp + 0x58], rax
mov eax, dword [rdi + 0x58]
mov dword [rsp + 0x3c], eax
mov eax, dword [rdi + 0x68]
mov dword [rsp + 0x40], eax
mov bl, byte [rdi + 0x5c]
add bl, bl
or bl, byte [rdi + 0x48]
xor eax, eax
mov dword [rsp + 0x23b], eax
mov dword [rsp + 0x238], eax
mov r12, qword [rsp + 0x98]
mov rax, qword [rsp + 0xa0]
cmp r12, rax
jae 0x14003e2d0
movaps xmm0, xmmword [rsp + 0x240]
movups xmmword [r12], xmm0
mov eax, dword [rsp + 0x44]
mov dword [r12 + 0x10], eax
mov eax, dword [rsp + 0x38]
mov dword [r12 + 0x14], eax
mov rax, qword [rsp + 0x50]
mov qword [r12 + 0x18], rax
mov rax, qword [rsp + 0x58]
mov qword [r12 + 0x20], rax
mov eax, dword [rsp + 0x3c]
mov dword [r12 + 0x28], eax
mov eax, dword [rsp + 0x40]
mov dword [r12 + 0x2c], eax
mov byte [r12 + 0x30], bl
mov eax, dword [rsp + 0x238]
mov ecx, dword [rsp + 0x23b]
mov dword [r12 + 0x31], eax
mov dword [r12 + 0x34], ecx
add r12, 0x38
mov qword [rsp + 0x98], r12
mov rax, qword [rsp + 0x30]
add rax, 0x70
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x68], rax
jne 0x14003e108
jmp 0x14003e6ee
mov rcx, qword [rsp + 0x90]
mov rbp, rcx
sub r12, rcx
mov rdi, r12
sar rdi, 3
movabs rcx, 0x6db6db6db6db6db7
imul rdi, rcx
lea rcx, [rdi + 1]
movabs rdx, 0x492492492492492
cmp rcx, rdx
ja 0x14003e710
sub rax, rbp
sar rax, 3
movabs rdx, 0x6db6db6db6db6db7
imul rax, rdx
lea r13, [rax + rax]
cmp r13, rcx
cmovb r13, rcx
movabs rcx, 0x249249249249249
cmp rax, rcx
movabs rax, 0x492492492492492
cmovae r13, rax
test r13, r13
je 0x14003e42a
movabs rax, 0x492492492492492
cmp r13, rax
ja 0x14003e70b
imul rcx, r13, 0x38
call fcn.140078938
mov r14, rax
imul r15, rdi, 0x38
lea rdi, [r14 + r15]
imul r13, r13, 0x38
add r13, r14
movaps xmm0, xmmword [rsp + 0x240]
movups xmmword [r14 + r15], xmm0
mov eax, dword [rsp + 0x44]
mov dword [r14 + r15 + 0x10], eax
mov eax, dword [rsp + 0x38]
mov dword [r14 + r15 + 0x14], eax
mov rax, qword [rsp + 0x50]
mov qword [r14 + r15 + 0x18], rax
mov rax, qword [rsp + 0x58]
mov qword [r14 + r15 + 0x20], rax
mov eax, dword [rsp + 0x3c]
mov dword [r14 + r15 + 0x28], eax
mov eax, dword [rsp + 0x40]
mov dword [r14 + r15 + 0x2c], eax
mov byte [r14 + r15 + 0x30], bl
mov eax, dword [rsp + 0x238]
mov ecx, dword [rsp + 0x23b]
mov dword [r14 + r15 + 0x31], eax
mov dword [r14 + r15 + 0x34], ecx
sub rdi, r12
test r12, r12
jle 0x14003e3f4
mov rcx, rdi
mov rdx, rbp
mov r8, r12
call fcn.14007bca0
lea rax, [r14 + r15]
add rax, 0x38
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], r13
test rbp, rbp
je 0x14003e2b2
mov rcx, rbp
call fcn.140078974
jmp 0x14003e2b2
xor r14d, r14d
jmp 0x14003e36d
mov rcx, rbx
jmp 0x14003dfe4
mov ecx, 2
call fcn.140064750
test al, al
je 0x14003de32
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 + 0xe0]
mov rcx, rdi
mov r8d, 0x202
mov r9d, 2
call fcn.1400cb600
lea rcx, [rsp + 0xf0]
lea rdx, str.failed_to_truncate
mov r8d, 0x12
call fcn.140051090
mov rcx, rdi
call fcn.1400cb6f0
jmp 0x14003de32
mov ecx, 2
call fcn.140064750
test al, al
je 0x14003de32
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xe0]
mov rcx, rdi
mov r8d, 0x20e
mov r9d, 2
call fcn.140033a00
lea rcx, [rsp + 0xf0]
lea rdx, str.failed_to_write_header
mov r8d, 0x16
jmp 0x14003df35
mov ecx, 2
call fcn.140064750
test al, al
je 0x14003e5d5
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0xe0]
mov r8d, 0x21c
mov r9d, 2
call fcn.140033a00
lea rcx, [rsp + 0xf0]
mov rax, qword [rsp + 0x30]
cmp byte [rax + 0x27], 0
jns 0x14003e53c
mov rax, qword [rsp + 0x30]
mov rdi, qword [rax + 0x10]
mov rdx, rdi
call fcn.1400cb8e0
lea rdx, str._expected_to_start_with
mov r8d, 0x18
mov rcx, rax
call fcn.140051090
movzx ecx, byte [rsi + 0x2f]
test cl, cl
mov rbp, qword [rsp + 0x60]
cmovs rbp, qword [rsi + 0x18]
mov rdi, rax
lea rdx, [rsp + 0x228]
mov qword [rdx], rbp
cmovs rcx, qword [rsi + 0x20]
mov qword [rdx + 8], rcx
lea rcx, [rsp + 0x70]
call fcn.14005d050
movzx r8d, byte [rsp + 0x87]
test r8b, r8b
jns 0x14003e5a7
mov r8, qword [rsp + 0x78]
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x48], rax
mov rcx, rdi
mov rdx, qword [rsp + 0x48]
call fcn.140051090
cmp byte [rsp + 0x87], 0
jns 0x14003e5c8
mov rcx, qword [rsp + 0x70]
call fcn.140078974
lea rcx, [rsp + 0xe0]
call fcn.140033ea0
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x14003e5ef
mov qword [rsp + 0x98], rcx
call fcn.140078974
cmp byte [rsp + 0xc7], 0
jns 0x14003de32
mov rcx, qword [rsp + 0xb0]
call fcn.140078974
jmp 0x14003de32
mov r8, rax
sub r8, rax
mov rcx, qword [rsi + 8]
mov rdx, rax
call fcn.140047300
test al, al
je 0x14003e697
lea rdx, [rsp + 0xb0]
movzx r8d, byte [rdx + 0x17]
test r8b, r8b
cmovs r8, qword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, qword [rsi + 8]
call fcn.140047300
test al, al
jne 0x14003e5d5
mov ecx, 2
call fcn.140064750
test al, al
je 0x14003e5d5
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xe0]
mov rcx, rdi
mov r8d, 0x22b
mov r9d, 2
call fcn.140033a00
lea rcx, [rsp + 0xf0]
lea rdx, str.failed_to_write_string_table
mov r8d, 0x1c
jmp 0x14003e6e1
mov ecx, 2
call fcn.140064750
test al, al
je 0x14003e5d5
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xe0]
mov rcx, rdi
mov r8d, 0x226
mov r9d, 2
call fcn.140033a00
lea rcx, [rsp + 0xf0]
lea rdx, str.failed_to_write_records
mov r8d, 0x17
call fcn.140051090
mov rcx, rdi
jmp 0x14003e5d0
mov rax, qword [rsp + 0x90]
mov r8, qword [rsp + 0x98]
jmp 0x14003e612
int3
call fcn.14008bd20
lea rcx, [rsp + 0x90]
call fcn.1400a5790
int3