Function at 0x413f70
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x45702c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x98], ebx
call fcn.00413e00
test al, al
jne 0x413fdd
push 2
push 0x202
push str..._src_client_crash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x140]
call fcn.00408ea0
push str.failed_to_rewind_to_write
push eax
call fcn.004011c0
add esp, 8
lea ecx, [ebp - 0x140]
call fcn.00409090
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c18a
mov esp, ebp
pop ebp
ret
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x414035
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x209
push str..._src_client_crash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x148]
call fcn.00409060
push str.failed_to_truncate
push eax
call fcn.004011c0
add esp, 8
lea ecx, [ebp - 0x148]
call fcn.00409240
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043c18a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x3c]
mov eax, 0x92492493
sub ecx, dword [ebx + 0x38]
imul ecx
push 0x10
add edx, ecx
mov dword [ebp - 0x20], 0
sar edx, 6
lea eax, [ebp - 0x2c]
mov esi, edx
mov dword [ebp - 0x2c], 0x43504144
push eax
push dword [ebx]
shr esi, 0x1f
add esi, edx
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], esi
call fcn.0040eb70
add esp, 0xc
test al, al
jne 0x4140a0
push 2
push 0x215
push str..._src_client_crash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x140]
call fcn.00408ea0
push str.failed_to_write_header
jmp 0x413fb8
test esi, esi
je 0x414378
mov dword [ebp - 0xc], 0
xorps xmm0, xmm0
mov dword [ebp - 8], 0xf
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
movups xmmword [ebp - 0x1c], xmm0
mov byte [ebp - 0x1c], 0
cmp esi, 0x4924924
ja 0x414389
lea eax, [esi*8]
sub eax, esi
shl eax, 3
cmp eax, 0x1000
jb 0x41410b
push eax
call fcn.00401720
add esp, 4
mov edi, eax
jmp 0x41411e
test eax, eax
je 0x41411c
push eax
call fcn.0043bf67
add esp, 4
mov edi, eax
jmp 0x41411e
xor edi, edi
push edi
push 0
push 0
call fcn.004052d0
add esp, 0xc
lea ecx, [ebp - 0x8c]
push esi
push 0
push edi
call fcn.00414390
mov eax, dword [ebx + 0x3c]
mov esi, dword [ebx + 0x38]
mov edi, dword [ebp - 0x88]
mov dword [ebp - 0x94], eax
cmp esi, eax
je 0x4141ff
add ebx, 4
lea eax, [esi + 0x10]
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x80], eax
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.004080a0
push ebx
mov ecx, eax
call fcn.00407de0
lea ecx, [ebp - 0x44]
mov bl, al
call fcn.00407d80
test bl, bl
jne 0x414260
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp - 0x7c]
call fcn.00411720
cmp edi, dword [ebp - 0x84]
je 0x4141c8
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [edi + 0x20], xmm0
movq xmm0, qword [eax + 0x30]
movq qword [edi + 0x30], xmm0
add edi, 0x38
mov dword [ebp - 0x88], edi
jmp 0x4141db
push eax
push edi
lea ecx, [ebp - 0x8c]
call fcn.00411330
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp - 0x80]
add esi, 0x70
mov ebx, dword [ebp - 0x90]
add eax, 0x70
mov dword [ebp - 0x80], eax
cmp esi, dword [ebp - 0x94]
jne 0x414163
mov ebx, dword [ebp - 0x98]
mov esi, dword [ebp - 0x8c]
mov eax, 0x92492493
sub edi, esi
imul edi
add edx, edi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
lea eax, [ecx*8]
sub eax, ecx
shl eax, 3
push eax
push esi
push dword [ebx]
call fcn.0040eb70
add esp, 0xc
test al, al
jne 0x4142e5
push 2
push 0x22d
push str..._src_client_crash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x140]
call fcn.00408ea0
push str.failed_to_write_records
jmp 0x414323
mov eax, dword [ebp - 0x90]
sub esp, 8
mov edx, esp
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x414275
mov ecx, dword [eax]
mov dword [edx], ecx
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
lea eax, [ebp - 0x44]
push eax
call fcn.00409d90
add esp, 0xc
lea ecx, [ebp - 0x140]
mov esi, eax
push 2
push 0x223
push str..._src_client_crash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
call fcn.00408ea0
mov ecx, dword [ebp - 0x80]
cmp dword [ecx + 0x14], 8
jb 0x4142b2
mov ecx, dword [ecx]
push str._expected_to_start_with
push ecx
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const__]
push eax
call fcn.004011c0
push esi
push eax
call fcn.00401060
add esp, 0x10
lea ecx, [ebp - 0x140]
call fcn.00409090
lea ecx, [ebp - 0x44]
call fcn.00402050
jmp 0x414337
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
push dword [ebp - 0xc]
cmovae eax, dword [ebp - 0x1c]
push eax
push dword [ebx]
call fcn.0040eb70
add esp, 0xc
test al, al
jne 0x414337
push 2
push 0x232
push str..._src_client_crash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x140]
call fcn.00408ea0
push str.failed_to_write_string_table
push eax
call fcn.004011c0
add esp, 8
lea ecx, [ebp - 0x140]
call fcn.00409090
lea ecx, [ebp - 0x8c]
call fcn.00414420
mov ecx, dword [ebp - 8]
cmp ecx, 0x10
jb 0x414378
mov edx, dword [ebp - 0x1c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41436e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41436e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043bf97
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043c18a
mov esp, ebp
pop ebp
ret
call fcn.00403fb0
int3