Function at 0x140233560
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 [0x14040b018]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rsi, qword [rcx]
mov qword [rcx], 0
test rsi, rsi
je 0x140233696
cmp byte [rsi + 0x48], 0
je 0x1402335c7
mov rcx, qword [rsi + 8]
xor edx, edx
xor r8d, r8d
call fcn.140241dd0
test rax, rax
je 0x1402336bb
mov ecx, 2
call fcn.140317c40
test al, al
jne 0x140233c02
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
jne 0x14023360c
mov ecx, 2
call fcn.140317c40
test al, al
jne 0x140233c4c
mov rbx, qword [rsi + 0x50]
test rbx, rbx
je 0x140233659
mov rdi, qword [rsi + 0x58]
mov rcx, rbx
cmp rdi, rbx
je 0x140233650
add rdi, 0xffffffffffffffa0
cmp byte [rdi + 0x2f], 0
jns 0x140233634
mov rcx, qword [rdi + 0x18]
call fcn.1403336f4
mov rcx, rdi
call fcn.140318a80
lea rax, [rdi - 0x70]
add rdi, 0xfffffffffffffff0
cmp rdi, rbx
mov rdi, rax
jne 0x140233625
mov rcx, qword [rsi + 0x50]
mov qword [rsi + 0x58], rbx
call fcn.1403336f4
lea rcx, [rsi + 0x30]
call fcn.140318a80
lea rcx, [rsi + 0x18]
call fcn.140318a80
lea rax, [0x1403de738]
mov qword [rsi], rax
cmp byte [rsi + 0x10], 0
jne 0x140233edd
mov rcx, qword [rsi + 8]
cmp rcx, 0xffffffffffffffff
je 0x14023368e
call fcn.1402381a0
mov rcx, rsi
call fcn.1403336f4
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140334bf0
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 0x140233b10
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 0x140233e73
mov eax, edi
lea rdx, [rsp + 0xc0]
mov dword [rdx + 8], eax
mov rcx, qword [rsi + 8]
mov r8d, reloc.WS2_32.dll_recv
call fcn.140242260
test al, al
je 0x140233b75
cmp r14, rbx
je 0x1402335c7
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 0x140233ea7
imul rbp, rdi, 0x38
mov rcx, rbp
call fcn.1403336b8
mov r13, rax
mov r12, qword [rsi + 0x50]
mov rax, qword [rsi + 0x58]
mov qword [rsp + 0x60], rax
cmp r12, rax
je 0x140233eac
add rbp, r13
lea rbx, [rsi + 0x18]
lea rdi, [rsp + 0xd0]
lea r15, [rsp + 0x80]
mov rdx, r13
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rdx
lea r14, [r12 + 0x10]
mov rcx, r14
mov rdx, rdi
call fcn.140318ad0
mov rcx, rdi
mov rdx, rbx
call fcn.140214780
mov ebx, eax
mov rcx, rdi
call fcn.140318a80
test bl, bl
jne 0x140233bc1
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x220], xmm0
mov rcx, r14
mov r14, r15
mov rdx, r15
call fcn.140319020
movzx eax, byte [rsp + 0x97]
test al, al
mov rcx, qword [rsp + 0x80]
cmovns rcx, r15
mov qword [rsp + 0x210], rcx
cmovs rax, qword [rsp + 0x88]
mov qword [rsp + 0x218], rax
mov rcx, rdi
lea rdx, [rsp + 0x210]
call fcn.14030fa40
movzx ecx, byte [rsp + 0xb7]
test cl, cl
jns 0x140233862
mov rcx, qword [rsp + 0xa8]
mov rax, rcx
shr rax, 0x20
jne 0x140233afa
mov qword [rsp + 0x40], rcx
movzx r8d, byte [rsp + 0xe7]
test r8b, r8b
cmovs r8, qword [rsp + 0xd8]
mov rdx, qword [rsp + 0xd0]
cmovns rdx, rdi
lea rbx, [rsp + 0xa0]
mov rcx, rbx
call fcn.140308dd0
mov rcx, rbx
xor edx, edx
call fcn.140309180
cmp byte [rsp + 0xe7], 0
jns 0x1402338b9
mov rcx, qword [rsp + 0xd0]
call fcn.1403336f4
mov rcx, r14
call fcn.140318a80
movzx r14d, byte [rsp + 0xb7]
test r14b, r14b
jns 0x1402338e4
mov r14, qword [rsp + 0xa8]
mov rax, r14
shr rax, 0x20
jne 0x140233b07
movzx r8d, byte [r12 + 0x3f]
test r8b, r8b
jns 0x1402338fb
mov r8, qword [r12 + 0x30]
mov rdx, qword [r12 + 0x28]
jmp 0x140233900
lea rdx, [r12 + 0x28]
lea rbx, [rsp + 0xa0]
mov rcx, rbx
call fcn.140308dd0
mov rcx, rbx
xor edx, edx
call fcn.140309180
mov r11, qword [r12 + 0x40]
mov r10, qword [r12 + 0x50]
mov r9d, dword [r12 + 0x58]
mov r8d, dword [r12 + 0x68]
mov bl, byte [r12 + 0x5c]
add bl, bl
or bl, byte [r12 + 0x48]
cmp r13, rbp
jae 0x14023398a
test r13, r13
mov rdx, qword [rsp + 0x30]
je 0x140233e7b
movaps xmm0, xmmword [rsp + 0x220]
movups xmmword [r13], xmm0
mov rax, qword [rsp + 0x40]
mov dword [r13 + 0x10], eax
mov dword [r13 + 0x14], r14d
mov qword [r13 + 0x18], r11
mov qword [r13 + 0x20], r10
mov dword [r13 + 0x28], r9d
mov dword [r13 + 0x2c], r8d
mov byte [r13 + 0x30], bl
xor eax, eax
mov dword [r13 + 0x31], eax
mov dword [r13 + 0x34], eax
jmp 0x140233ad5
mov rdi, r13
mov rcx, qword [rsp + 0x30]
sub rdi, rcx
sar rdi, 3
movabs rax, 0x6db6db6db6db6db7
imul rdi, rax
lea r15, [rdi + 1]
movabs rdx, 0x492492492492492
cmp r15, rdx
ja 0x140233ea7
sub rbp, rcx
sar rbp, 3
imul rbp, rax
lea rax, [rbp*2]
cmp rax, r15
cmova r15, rax
movabs rax, 0x249249249249249
cmp rbp, rax
cmovae r15, rdx
test r15, r15
je 0x140233a34
mov qword [rsp + 0x48], r11
mov qword [rsp + 0x50], r10
mov qword [rsp + 0x58], r14
cmp r15, rdx
ja 0x140233ed8
mov r14d, r9d
mov ebp, r8d
imul rcx, r15, 0x38
call fcn.1403336b8
mov rcx, qword [rsp + 0x30]
mov r8d, ebp
mov rbp, rax
mov r9d, r14d
mov r14, qword [rsp + 0x58]
mov r10, qword [rsp + 0x50]
mov r11, qword [rsp + 0x48]
jmp 0x140233a36
xor ebp, ebp
imul rdi, rdi, 0x38
add rdi, rbp
je 0x140233e7b
movaps xmm0, xmmword [rsp + 0x220]
movups xmmword [rdi], xmm0
mov rax, qword [rsp + 0x40]
mov dword [rdi + 0x10], eax
mov dword [rdi + 0x14], r14d
mov qword [rdi + 0x18], r11
mov qword [rdi + 0x20], r10
mov dword [rdi + 0x28], r9d
mov dword [rdi + 0x2c], r8d
mov byte [rdi + 0x30], bl
xor eax, eax
mov dword [rdi + 0x31], eax
mov dword [rdi + 0x34], eax
mov rbx, rdi
cmp r13, rcx
je 0x140233ab6
mov rax, rdi
mov rdx, qword [r13 - 8]
mov qword [rax - 8], rdx
movups xmm0, xmmword [r13 - 0x38]
movups xmm1, xmmword [r13 - 0x28]
movups xmm2, xmmword [r13 - 0x18]
lea rdx, [r13 - 0x38]
lea rbx, [rax - 0x38]
movups xmmword [rax - 0x18], xmm2
movups xmmword [rax - 0x28], xmm1
movups xmmword [rax - 0x38], xmm0
mov rax, rbx
mov r13, rdx
cmp rdx, rcx
jne 0x140233a80
imul r14, r15, 0x38
test rcx, rcx
je 0x140233ac4
call fcn.1403336f4
add rbp, r14
mov rdx, rbx
mov r13, rdi
lea r15, [rsp + 0x80]
add r13, 0x38
add r12, 0x70
cmp r12, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x38]
lea rdi, [rsp + 0xd0]
jne 0x1402337b5
jmp 0x140233c9f
int3
int3
mov ecx, 2
call fcn.140317c40
test al, al
je 0x1402335c7
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.14038d190
lea rcx, [rsp + 0xe0]
lea rdx, str.failed_to_truncate
mov r8d, sendto
call fcn.14036f000
mov rcx, rdi
call fcn.14038d210
jmp 0x1402335c7
mov ecx, 2
call fcn.140317c40
test al, al
je 0x1402335c7
lea rdx, str........._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xd0]
mov rcx, rdi
mov r8d, 0x216
mov r9d, 2
call fcn.140212ee0
lea rcx, [rsp + 0xe0]
lea rdx, str.failed_to_write_header
mov r8d, reloc.WS2_32.dll_shutdown
jmp 0x140233c3a
mov ecx, 2
call fcn.140317c40
test al, al
jne 0x140233d45
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140233be2
call fcn.1403336f4
cmp byte [rsp + 0xb7], 0
jns 0x1402335c7
mov rcx, qword [rsp + 0xa0]
call fcn.1403336f4
jmp 0x1402335c7
lea rdx, str........._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rdi, [rsp + 0xd0]
mov rcx, rdi
mov r8d, 0x203
mov r9d, 2
call fcn.140212ee0
lea rcx, [rsp + 0xe0]
lea rdx, str.failed_to_rewind_to_write
mov r8d, 0x19
call fcn.14036f000
mov rcx, rdi
call fcn.1402133d0
jmp 0x1402335c7
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.14038d190
lea rcx, [rsp + 0xe0]
lea rdx, [0x1403ed66a]
mov r8d, recv
call fcn.14036f000
mov rcx, rdi
call fcn.14038d210
jmp 0x14023360c
sub r13, rdx
je 0x140233eac
mov rcx, qword [rsi + 8]
mov rdi, rdx
mov r8, r13
call fcn.140242260
test al, al
je 0x140233e16
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.140242260
test al, al
jne 0x140233e24
mov ecx, 2
call fcn.140317c40
test al, al
je 0x140233e24
lea rdx, str........._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rbx, [rsp + 0xd0]
mov rcx, rbx
mov r8d, 0x233
mov r9d, 2
call fcn.140212ee0
lea rcx, [rsp + 0xe0]
lea rdx, str.failed_to_write_string_table
mov r8d, 0x1c
jmp 0x140233e64
lea rdx, str........._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rcx, [rsp + 0xd0]
mov r8d, 0x224
mov r9d, 2
call fcn.140212ee0
lea rcx, [rsp + 0xe0]
cmp byte [r12 + 0x27], 0
jns 0x140233d78
mov r14, qword [r14]
mov rbx, qword [rsp + 0x38]
mov rdx, r14
call fcn.14038d2c0
lea rdx, str._expected_to_start_with
mov r8d, 0x18
mov rcx, rax
call fcn.14036f000
movzx ecx, byte [rsi + 0x2f]
test cl, cl
cmovs rbx, qword [rsi + 0x18]
mov r14, rax
lea rdx, [rsp + 0x210]
mov qword [rdx], rbx
cmovs rcx, qword [rsi + 0x20]
mov qword [rdx + 8], rcx
mov rcx, r15
call fcn.14030fa40
movzx r8d, byte [rsp + 0x97]
test r8b, r8b
jns 0x140233de2
mov r8, qword [rsp + 0x88]
mov r15, qword [rsp + 0x80]
mov rcx, r14
mov rdx, r15
call fcn.14036f000
cmp byte [rsp + 0x97], 0
jns 0x140233e04
mov rcx, qword [rsp + 0x80]
call fcn.1403336f4
lea rcx, [rsp + 0xd0]
call fcn.1402133d0
jmp 0x140233bd3
mov ecx, 2
call fcn.140317c40
test al, al
jne 0x140233e2c
mov rcx, rdi
jmp 0x140233bd8
lea rdx, str........._third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea rbx, [rsp + 0xd0]
mov rcx, rbx
mov r8d, 0x22e
mov r9d, 2
call fcn.140212ee0
lea rcx, [rsp + 0xe0]
lea rdx, str.failed_to_write_records
mov r8d, 0x17
call fcn.14036f000
mov rcx, rbx
call fcn.1402133d0
jmp 0x140233e24
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.14036f7d0
call fcn.140234fa0
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.14036f7d0
call fcn.14036ee50
int3