Function at 0x14004fef0
Capabilities:
Clear file content

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x248
mov rax, qword [0x1400e05d8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, qword [rcx]
mov qword [rcx], 0
test rsi, rsi
je 0x140050498
cmp byte [rsi + 0x30], 0
je 0x14004ff57
mov rcx, qword [rsi + 8]
xor edx, edx
xor r8d, r8d
call fcn.140062f20
test rax, rax
je 0x14004ffe3
mov ecx, 2
call fcn.14004a3e0
test al, al
jne 0x14005056e
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 0x14004ff99
mov ecx, 2
call fcn.14004a3e0
test al, al
jne 0x1400505b8
mov rbx, qword [rsi + 0x38]
test rbx, rbx
je 0x140050464
mov rdi, qword [rsi + 0x40]
cmp rdi, rbx
je 0x140050458
lea rbp, [rdi - 0x70]
cmp byte [rdi - 0x31], 0
jns 0x14004ffc6
mov rcx, qword [rdi - 0x48]
call fcn.140089d80
add rdi, 0xffffffffffffffa0
mov rcx, rdi
call fcn.14002d560
mov rdi, rbp
cmp rbx, rbp
jne 0x14004ffb3
mov rcx, qword [rsi + 0x38]
jmp 0x14005045b
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1400504bd
mov rbx, qword [rsi + 0x40]
sub rbx, qword [rsi + 0x38]
mov rdi, rbx
sar rdi, 4
movabs rax, 0x6db6db6db6db6db7
imul rdi, rax
mov qword [rsp + 0xc8], 0
movabs rax, 0x143504144
mov qword [rsp + 0xc0], rax
mov rax, rdi
shr rax, 0x20
jne 0x14005080f
mov eax, edi
lea rdx, [rsp + 0xc0]
mov dword [rdx + 8], eax
mov rcx, qword [rsi + 8]
mov r8d, 0x10
call fcn.140063390
test al, al
je 0x140050522
test rbx, rbx
je 0x14004ff57
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 0x140050827
imul rdi, rdi, 0x38
mov rcx, rdi
call fcn.140089d30
add rdi, rax
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x90], rdi
mov r12, qword [rsi + 0x38]
mov rcx, qword [rsi + 0x40]
mov qword [rsp + 0x58], rcx
cmp r12, rcx
je 0x14005060b
mov qword [rsp + 0x28], rsi
lea r15, [rsi + 0x18]
lea rbp, [rsp + 0xf8]
lea r13, [rsp + 0x60]
lea r14, [rsp + 0xa0]
mov qword [rsp + 0x30], r15
lea rdi, [r12 + 0x10]
mov rcx, rdi
mov rdx, rbp
call fcn.14002e030
mov rcx, rbp
mov rdx, r15
call fcn.14002d840
mov ebx, eax
mov rcx, rbp
call fcn.14002d560
test bl, bl
jne 0x140050613
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0xe0], xmm0
mov rcx, rdi
mov rdx, r13
call fcn.14002e4d0
movzx eax, byte [rsp + 0x77]
test al, al
mov rcx, qword [rsp + 0x60]
cmovns rcx, r13
mov qword [rsp + 0xd0], rcx
cmovs rax, qword [rsp + 0x68]
mov qword [rsp + 0xd8], rax
mov rcx, rbp
lea rdx, [rsp + 0xd0]
call fcn.140033340
movzx edi, byte [rsp + 0xb7]
test dil, dil
jns 0x14005019f
mov rdi, qword [rsp + 0xa8]
mov rax, rdi
shr rax, 0x20
jne 0x140050448
movzx r8d, byte [rsp + 0x10f]
test r8b, r8b
cmovs r8, qword [rsp + 0x100]
mov rdx, qword [rsp + 0xf8]
cmovns rdx, rbp
mov rcx, r14
call fcn.140027700
mov rcx, r14
xor edx, edx
call fcn.1400279a0
cmp byte [rsp + 0x10f], 0
jns 0x1400501e9
mov rcx, qword [rsp + 0xf8]
call fcn.140089d80
mov rcx, r13
call fcn.14002d560
movzx ebp, byte [rsp + 0xb7]
test bpl, bpl
jns 0x140050213
mov rbp, qword [rsp + 0xa8]
mov rax, rbp
shr rax, 0x20
jne 0x140050450
movzx r8d, byte [r12 + 0x3f]
test r8b, r8b
jns 0x14005022a
mov r8, qword [r12 + 0x30]
mov rdx, qword [r12 + 0x28]
jmp 0x14005022f
lea rdx, [r12 + 0x28]
mov rcx, r14
call fcn.140027700
mov rcx, r14
xor edx, edx
call fcn.1400279a0
mov r11, qword [r12 + 0x40]
mov r10, qword [r12 + 0x50]
mov r9d, dword [r12 + 0x58]
mov r8d, dword [r12 + 0x68]
mov r14b, byte [r12 + 0x5c]
add r14b, r14b
or r14b, byte [r12 + 0x48]
xor eax, eax
mov dword [rsp + 0xfb], eax
mov dword [rsp + 0xf8], eax
mov rbx, qword [rsp + 0x88]
mov rax, qword [rsp + 0x90]
cmp rbx, rax
jae 0x1400502e1
movaps xmm0, xmmword [rsp + 0xe0]
movups xmmword [rbx], xmm0
mov dword [rbx + 0x10], edi
mov dword [rbx + 0x14], ebp
mov qword [rbx + 0x18], r11
mov qword [rbx + 0x20], r10
mov dword [rbx + 0x28], r9d
mov dword [rbx + 0x2c], r8d
mov byte [rbx + 0x30], r14b
mov eax, dword [rsp + 0xf8]
mov ecx, dword [rsp + 0xfb]
mov dword [rbx + 0x31], eax
mov dword [rbx + 0x34], ecx
add rbx, 0x38
mov qword [rsp + 0x88], rbx
lea rbp, [rsp + 0xf8]
lea r14, [rsp + 0xa0]
jmp 0x140050434
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rdi
mov rsi, qword [rsp + 0x80]
sub rbx, rsi
mov rdi, rbx
sar rdi, 3
movabs rbp, 0x6db6db6db6db6db7
imul rdi, rbp
lea rcx, [rdi + 1]
movabs rdx, 0x492492492492492
cmp rcx, rdx
ja 0x14005081a
sub rax, rsi
sar rax, 3
imul rax, rbp
lea r13, [rax + rax]
cmp r13, rcx
cmovb r13, rcx
movabs rcx, 0x249249249249249
cmp rax, rcx
cmovae r13, rdx
test r13, r13
je 0x140050382
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x40], r10
cmp r13, rdx
ja 0x140050827
mov r15d, r9d
mov ebp, r8d
imul rcx, r13, 0x38
call fcn.140089d30
mov r8d, ebp
mov r9d, r15d
mov r10, qword [rsp + 0x40]
mov r11, qword [rsp + 0x38]
jmp 0x140050384
xor eax, eax
imul rcx, rdi, 0x38
lea r15, [rax + rcx]
imul rdi, r13, 0x38
add rdi, rax
movaps xmm0, xmmword [rsp + 0xe0]
lea rbp, [rax + rcx]
add rbp, 0x38
movups xmmword [rbp - 0x38], xmm0
mov rax, qword [rsp + 0x50]
mov dword [rbp - 0x28], eax
mov rax, qword [rsp + 0x48]
mov dword [rbp - 0x24], eax
mov qword [rbp - 0x20], r11
mov qword [rbp - 0x18], r10
mov dword [rbp - 0x10], r9d
mov dword [rbp - 0xc], r8d
mov byte [rbp - 8], r14b
mov eax, dword [rsp + 0xf8]
mov ecx, dword [rsp + 0xfb]
mov dword [rbp - 7], eax
mov dword [rbp - 4], ecx
sub r15, rbx
test rbx, rbx
jle 0x1400503f5
mov rcx, r15
mov rdx, rsi
mov r8, rbx
call fcn.14008cff0
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x88], rbp
mov qword [rsp + 0x90], rdi
test rsi, rsi
lea r13, [rsp + 0x60]
mov r15, qword [rsp + 0x30]
lea rbp, [rsp + 0xf8]
lea r14, [rsp + 0xa0]
je 0x140050434
mov rcx, rsi
call fcn.140089d80
add r12, 0x70
cmp qword [rsp + 0x58], r12
jne 0x140050102
jmp 0x1400506e4
int3
int3
mov rcx, rbx
mov qword [rsi + 0x40], rbx
call fcn.140089d80
lea rcx, [rsi + 0x18]
call fcn.14002d560
lea rax, [0x1400bac98]
mov qword [rsi], rax
cmp byte [rsi + 0x10], 0
jne 0x140050817
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
je 0x140050490
call fcn.140053d60
mov rcx, rsi
call fcn.140089d80
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14008a0f0
nop
add rsp, 0x248
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 2
call fcn.14004a3e0
test al, al
je 0x14004ff57
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 + 0xf8]
mov rcx, rdi
mov r8d, 0x1e7
mov r9d, 2
call fcn.14004b090
lea rcx, [rsp + 0x108]
lea rdx, str.failed_to_truncate
mov r8d, 0x12
call fcn.1400048d0
mov rcx, rdi
call fcn.14004b180
jmp 0x14004ff57
mov ecx, 2
call fcn.14004a3e0
test al, al
je 0x14004ff57
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf8]
mov rcx, rdi
mov r8d, 0x1f3
mov r9d, 2
call fcn.14004a490
lea rcx, [rsp + 0x108]
lea rdx, str.failed_to_write_header
mov r8d, 0x16
jmp 0x1400505a6
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf8]
mov rcx, rdi
mov r8d, 0x1e0
mov r9d, 2
call fcn.14004a490
lea rcx, [rsp + 0x108]
lea rdx, str.failed_to_rewind_to_write
mov r8d, 0x19
call fcn.1400048d0
mov rcx, rdi
call fcn.14004a920
jmp 0x14004ff57
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 + 0xf8]
mov rcx, rdi
mov r8d, 0x129
mov r9d, 2
call fcn.14004b090
lea rcx, [rsp + 0x108]
lea rdx, [0x1400bbb90]
mov r8d, 0xc
call fcn.1400048d0
mov rcx, rdi
call fcn.14004b180
jmp 0x14004ff99
mov r8, rax
jmp 0x1400506f9
mov ecx, 2
call fcn.14004a3e0
test al, al
mov rsi, qword [rsp + 0x28]
je 0x14005078b
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rcx, [rsp + 0xf8]
mov r8d, 0x201
mov r9d, 2
call fcn.14004a490
lea rcx, [rsp + 0x108]
cmp byte [r12 + 0x27], 0
jns 0x14005065f
mov rdi, qword [r12 + 0x10]
mov rdx, rdi
call fcn.14004b230
lea rdx, str._expected_to_start_with
mov r8d, 0x18
mov rcx, rax
call fcn.1400048d0
movzx ecx, byte [rsi + 0x2f]
test cl, cl
cmovs r15, qword [rsi + 0x18]
mov rdi, rax
lea rdx, [rsp + 0xd0]
mov qword [rdx], r15
cmovs rcx, qword [rsi + 0x20]
mov qword [rdx + 8], rcx
mov rcx, r13
call fcn.140033340
movzx r8d, byte [rsp + 0x77]
test r8b, r8b
jns 0x1400506bb
mov r8, qword [rsp + 0x68]
mov r13, qword [rsp + 0x60]
mov rcx, rdi
mov rdx, r13
call fcn.1400048d0
cmp byte [rsp + 0x77], 0
jns 0x1400506d7
mov rcx, qword [rsp + 0x60]
call fcn.140089d80
lea rcx, [rsp + 0xf8]
jmp 0x140050805
mov rax, qword [rsp + 0x80]
mov r8, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x28]
sub r8, rax
mov rcx, qword [rsi + 8]
mov rdx, rax
call fcn.140063390
test al, al
je 0x14005077d
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.140063390
test al, al
jne 0x14005078b
mov ecx, 2
call fcn.14004a3e0
test al, al
je 0x14005078b
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf8]
mov rcx, rdi
mov r8d, 0x210
mov r9d, 2
call fcn.14004a490
lea rcx, [rsp + 0x108]
lea rdx, str.failed_to_write_string_table
mov r8d, 0x1c
jmp 0x1400507fd
mov ecx, 2
call fcn.14004a3e0
test al, al
jne 0x1400507c5
mov rcx, qword [rsp + 0x80]
test rcx, rcx
je 0x1400507a5
mov qword [rsp + 0x88], rcx
call fcn.140089d80
cmp byte [rsp + 0xb7], 0
jns 0x14004ff57
mov rcx, qword [rsp + 0xa0]
call fcn.140089d80
jmp 0x14004ff57
lea rdx, str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea rdi, [rsp + 0xf8]
mov rcx, rdi
mov r8d, 0x20b
mov r9d, 2
call fcn.14004a490
lea rcx, [rsp + 0x108]
lea rdx, str.failed_to_write_records
mov r8d, 0x17
call fcn.1400048d0
mov rcx, rdi
call fcn.14004a920
jmp 0x14005078b
int3
int3
lea rcx, [rsp + 0x80]
call fcn.140029590
call fcn.14009be5c
int3