Function at 0x140147210
Capabilities:
Clear file content
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x238
mov rax, qword [0x140448038]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, qword [rcx]
mov qword [rcx], 0
test rsi, rsi
je 0x1401472d3
cmp byte [rsi + 0x48], 0
jne 0x1401472f8
xorps xmm0, xmm0
lea rax, [rsp + 0x80]
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 0x14014736b
mov rbx, qword [rsi + 0x50]
test rbx, rbx
jne 0x1401473d0
lea rcx, [rsi + 0x30]
call fcn.140207950
lea rcx, [rsi + 0x18]
call fcn.140207950
lea rax, [0x1403cfbe8]
mov qword [rsi], rax
cmp byte [rsi + 0x10], 0
jne 0x1401473ff
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
je 0x1401472cb
call fcn.140175010
mov rcx, rsi
call fcn.1402523c4
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140253b80
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]
xor edx, edx
xor r8d, r8d
call fcn.14017b270
test rax, rax
je 0x140147402
mov ecx, 2
call fcn.140206de0
test al, al
je 0x140147252
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xd0]
mov rcx, rdi
mov r8d, 0x203
mov r9d, 2
call fcn.140110ed0
lea rcx, [rsp + 0xe0]
lea rdx, str.failed_to_rewind_to_write
mov r8d, 0x19
call fcn.140294040
mov rcx, rdi
call fcn.1401113c0
jmp 0x140147252
mov ecx, 2
call fcn.140206de0
test al, al
je 0x140147289
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xd0]
mov rcx, rdi
mov r8d, 0x13b
mov r9d, 2
call fcn.1402d7130
lea rcx, [rsp + 0xe0]
lea rdx, [0x14041ed3a]
mov r8d, ntohl
call fcn.140294040
mov rcx, rdi
call fcn.1402d71b0
jmp 0x140147289
mov rdi, qword [rsi + 0x58]
mov rcx, rbx
cmp rdi, rbx
je 0x1401473f1
add rdi, 0xffffffffffffff90
mov rcx, rdi
call fcn.1402da170
cmp rdi, rbx
jne 0x1401473dc
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x58], rbx
call fcn.1402523c4
jmp 0x140147296
int3
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1401477cd
mov rbx, qword [rsi + 0x50]
mov r14, qword [rsi + 0x58]
mov rdi, r14
sub rdi, rbx
sar rdi, 4
movabs rax, 0x6db6db6db6db6db7
imul rdi, rax
mov dword [rsp + 0xcc], 0
movabs rax, 0x143504144
mov qword [rsp + 0xc0], rax
mov rax, rdi
shr rax, 0x20
jne 0x140147a91
mov eax, edi
lea rdx, [rsp + 0xc0]
mov dword [rdx + 8], eax
mov rcx, qword [rsi + 8]
mov r8d, 0x10
call fcn.14017b710
test al, al
je 0x140147832
cmp r14, rbx
je 0x140147252
movabs rcx, 0x492492492492492
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
xor eax, eax
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0x68], rax
cmp rdi, rcx
ja 0x140147ac5
imul rbp, rdi, 0x38
mov rcx, rbp
call fcn.140252388
mov r13, rax
mov rbx, qword [rsi + 0x50]
mov rax, qword [rsi + 0x58]
mov qword [rsp + 0x60], rax
cmp rbx, rax
je 0x140147aca
add rbp, r13
lea rax, [rsi + 0x18]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rdi, r13
lea r14, [rbx + 0x10]
mov rcx, r14
lea r12, [rsp + 0xd0]
mov rdx, r12
call fcn.1402079a0
mov rcx, r12
mov rdx, qword [rsp + 0x58]
call fcn.140113210
mov r15d, eax
mov rcx, r12
call fcn.140207950
test r15b, r15b
jne 0x140147881
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x220], xmm0
mov rcx, r14
lea r14, [rsp + 0x80]
mov rdx, r14
call fcn.140207ef0
movzx eax, byte [rsp + 0x97]
test al, al
mov rcx, qword [rsp + 0x80]
cmovns rcx, r14
mov qword [rsp + 0x210], rcx
cmovs rax, qword [rsp + 0x88]
mov qword [rsp + 0x218], rax
lea r14, [rsp + 0xd0]
mov rcx, r14
lea rdx, [rsp + 0x210]
call fcn.1401fd710
lea rcx, [rsp + 0xa0]
mov rdx, r14
call fcn.14031c040
mov dword [rsp + 0x3c], eax
cmp byte [rsp + 0xe7], 0
jns 0x1401475c1
mov rcx, qword [rsp + 0xd0]
call fcn.1402523c4
lea rcx, [rsp + 0x80]
call fcn.140207950
lea rdx, [rbx + 0x28]
lea rcx, [rsp + 0xa0]
call fcn.14031c040
mov dword [rsp + 0x30], eax
mov rax, qword [rbx + 0x40]
mov qword [rsp + 0x48], rax
mov rax, qword [rbx + 0x50]
mov qword [rsp + 0x50], rax
mov eax, dword [rbx + 0x58]
mov dword [rsp + 0x34], eax
mov eax, dword [rbx + 0x68]
mov dword [rsp + 0x38], eax
mov r14b, byte [rbx + 0x5c]
add r14b, r14b
or r14b, byte [rbx + 0x48]
cmp r13, rbp
jae 0x14014766e
test r13, r13
je 0x140147a99
movaps xmm0, xmmword [rsp + 0x220]
movups xmmword [r13], xmm0
mov eax, dword [rsp + 0x3c]
mov dword [r13 + 0x10], eax
mov eax, dword [rsp + 0x30]
mov dword [r13 + 0x14], eax
mov rax, qword [rsp + 0x48]
mov qword [r13 + 0x18], rax
mov rax, qword [rsp + 0x50]
mov qword [r13 + 0x20], rax
mov eax, dword [rsp + 0x34]
mov dword [r13 + 0x28], eax
mov eax, dword [rsp + 0x38]
mov dword [r13 + 0x2c], eax
mov byte [r13 + 0x30], r14b
xor eax, eax
mov dword [r13 + 0x31], eax
mov dword [r13 + 0x34], eax
jmp 0x1401477ae
mov r15, r13
sub r15, rdi
sar r15, 3
movabs rax, 0x6db6db6db6db6db7
imul r15, rax
lea r12, [r15 + 1]
movabs rax, 0x492492492492492
cmp r12, rax
ja 0x140147ac5
sub rbp, rdi
sar rbp, 3
movabs rax, 0x6db6db6db6db6db7
imul rbp, rax
lea rax, [rbp*2]
cmp rax, r12
cmova r12, rax
movabs rax, 0x249249249249249
cmp rbp, rax
movabs rax, 0x492492492492492
cmovae r12, rax
test r12, r12
je 0x1401477c6
cmp r12, rax
ja 0x140147af6
imul rcx, r12, 0x38
call fcn.140252388
mov rbp, rax
imul r15, r15, 0x38
add r15, rbp
je 0x140147a99
movaps xmm0, xmmword [rsp + 0x220]
movups xmmword [r15], xmm0
mov eax, dword [rsp + 0x3c]
mov dword [r15 + 0x10], eax
mov eax, dword [rsp + 0x30]
mov dword [r15 + 0x14], eax
mov rax, qword [rsp + 0x48]
mov qword [r15 + 0x18], rax
mov rax, qword [rsp + 0x50]
mov qword [r15 + 0x20], rax
mov eax, dword [rsp + 0x34]
mov dword [r15 + 0x28], eax
mov eax, dword [rsp + 0x38]
mov dword [r15 + 0x2c], eax
mov byte [r15 + 0x30], r14b
xor eax, eax
mov dword [r15 + 0x31], eax
mov dword [r15 + 0x34], eax
mov r14, r15
cmp r13, rdi
je 0x140147794
mov rax, r15
mov rcx, qword [r13 - 8]
mov qword [rax - 8], rcx
movups xmm0, xmmword [r13 - 0x38]
movups xmm1, xmmword [r13 - 0x28]
movups xmm2, xmmword [r13 - 0x18]
lea rcx, [r13 - 0x38]
lea r14, [rax - 0x38]
movups xmmword [rax - 0x18], xmm2
movups xmmword [rax - 0x28], xmm1
movups xmmword [rax - 0x38], xmm0
mov rax, r14
mov r13, rcx
cmp rcx, rdi
jne 0x14014775e
imul r12, r12, 0x38
test rdi, rdi
je 0x1401477a5
mov rcx, rdi
call fcn.1402523c4
add rbp, r12
mov rdi, r14
mov r13, r15
add r13, 0x38
add rbx, 0x70
cmp rbx, qword [rsp + 0x60]
jne 0x1401474f9
jmp 0x1401478c0
xor ebp, ebp
jmp 0x1401476fa
mov ecx, 2
call fcn.140206de0
test al, al
je 0x140147252
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xd0]
mov rcx, rdi
mov r8d, 0x20a
mov r9d, 2
call fcn.1402d7130
lea rcx, [rsp + 0xe0]
lea rdx, str.failed_to_truncate
mov r8d, 0x12
call fcn.140294040
mov rcx, rdi
call fcn.1402d71b0
jmp 0x140147252
mov ecx, 2
call fcn.140206de0
test al, al
je 0x140147252
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xd0]
mov rcx, rdi
mov r8d, 0x216
mov r9d, 2
call fcn.140110ed0
lea rcx, [rsp + 0xe0]
lea rdx, str.failed_to_write_header
mov r8d, 0x16
jmp 0x140147359
mov ecx, 2
call fcn.140206de0
test al, al
jne 0x140147962
test rdi, rdi
je 0x1401478a0
mov rcx, rdi
call fcn.1402523c4
cmp byte [rsp + 0xb7], 0
jns 0x140147252
mov rcx, qword [rsp + 0xa0]
call fcn.1402523c4
jmp 0x140147252
sub r13, rdi
je 0x140147aca
mov rcx, qword [rsi + 8]
mov rdx, rdi
mov r8, r13
call fcn.14017b710
test al, al
je 0x140147a3d
movzx r8d, byte [rsp + 0xb7]
test r8b, r8b
cmovs r8, qword [rsp + 0xa8]
lea rdx, [rsp + 0xa0]
cmovs rdx, qword [rsp + 0xa0]
mov rcx, qword [rsi + 8]
call fcn.14017b710
test al, al
jne 0x140147893
mov ecx, 2
call fcn.140206de0
test al, al
je 0x140147893
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rbx, [rsp + 0xd0]
mov rcx, rbx
mov r8d, 0x233
mov r9d, 2
call fcn.140110ed0
lea rcx, [rsp + 0xe0]
lea rdx, str.failed_to_write_string_table
mov r8d, 0x1c
jmp 0x140147a87
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0xd0]
mov r8d, 0x224
mov r9d, 2
call fcn.140110ed0
lea rcx, [rsp + 0xe0]
cmp byte [rbx + 0x27], 0
jns 0x140147993
mov r14, qword [r14]
mov rdx, r14
call fcn.1402d7260
lea rdx, str._expected_to_start_with
mov r8d, 0x18
mov rcx, rax
call fcn.140294040
movzx ecx, byte [rsi + 0x2f]
test cl, cl
mov r8, qword [rsp + 0x58]
cmovs r8, qword [rsi + 0x18]
mov r14, rax
lea rdx, [rsp + 0x210]
mov qword [rdx], r8
cmovs rcx, qword [rsi + 0x20]
mov qword [rdx + 8], rcx
lea rcx, [rsp + 0x80]
call fcn.1401fd710
movzx r8d, byte [rsp + 0x97]
test r8b, r8b
jns 0x140147a07
mov r8, qword [rsp + 0x88]
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov rcx, r14
mov rdx, qword [rsp + 0x40]
call fcn.140294040
cmp byte [rsp + 0x97], 0
jns 0x140147a2b
mov rcx, qword [rsp + 0x80]
call fcn.1402523c4
lea rcx, [rsp + 0xd0]
call fcn.1401113c0
jmp 0x140147893
mov ecx, 2
call fcn.140206de0
test al, al
je 0x140147893
lea rdx, str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rbx, [rsp + 0xd0]
mov rcx, rbx
mov r8d, 0x22e
mov r9d, 2
call fcn.140110ed0
lea rcx, [rsp + 0xe0]
lea rdx, str.failed_to_write_records
mov r8d, 0x17
call fcn.140294040
mov rcx, rbx
jmp 0x140147a33
int3
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x25
call fcn.1402984b0
call fcn.140293fe0
lea rax, str.vector___index_out_of_bounds
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude_vector
lea r9, str.__n___size__
mov r8d, 0x5b6
call fcn.1402984b0
call fcn.140293fc0
int3