Function at 0x4d6710
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
mov eax, dword [0x5cc9b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov ebx, ecx
push 0
push 0
mov dword [ebp - 0xb8], ebx
push dword [ebx]
call fcn.00504360
add esp, 0x10
or eax, edx
jne 0x4d6d3f
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4d679e
push str.failed_to_truncate
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x20a
push str..._.._.._client_crash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x184]
call fcn.0050c390
push eax
call fcn.00439550
add esp, 8
lea ecx, [ebp - 0x184]
call fcn.0050c5b0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514f0c
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 - 0x70], 0
sar edx, 6
lea eax, [ebp - 0x7c]
mov edi, edx
mov dword [ebp - 0x7c], 0x43504144
push eax
push dword [ebx]
shr edi, 0x1f
add edi, edx
mov dword [ebp - 0x78], 1
mov dword [ebp - 0x74], edi
call fcn.00503c70
add esp, 0xc
test al, al
jne 0x4d67f4
push str.failed_to_write_header
push 2
push 0x216
jmp 0x4d6d4b
test edi, edi
je 0x4d6d74
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
cmp edi, 0x4924924
ja 0x4d6d85
push edi
lea ecx, [ebp - 0xd4]
call fcn.004d6dd0
lea ecx, [edi*8]
mov esi, eax
sub ecx, edi
mov edi, esi
lea eax, [esi + ecx*8]
mov ecx, dword [ebx + 0x3c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebx + 0x38]
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xb4], ecx
cmp eax, ecx
je 0x4d6b77
lea ecx, [ebx + 4]
lea ebx, [eax + 0x10]
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0x9c], ebx
nop dword [eax + eax]
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.0050b880
push dword [ebp - 0xa8]
mov ecx, eax
call fcn.0050b5b0
lea ecx, [ebp - 0x34]
mov bl, al
call fcn.00416700
test bl, bl
jne 0x4d6bbd
mov eax, dword [ebp - 0xa4]
mov ebx, dword [ebp - 0x9c]
mov ecx, ebx
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x94]
push eax
movups xmmword [ebp - 0xc8], xmm0
call fcn.0050b800
sub esp, 8
mov ecx, eax
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x4d68cd
mov ecx, dword [eax]
mov dword [edx], ecx
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
lea eax, [ebp - 0x34]
push eax
call fcn.0050d0c0
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004d44f0
mov edx, dword [ebp - 0x20]
add esp, 0x14
mov dword [ebp - 0xa0], eax
cmp edx, 0x10
jb 0x4d692b
mov ecx, dword [ebp - 0x34]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d691b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d6d8a
push edx
push ecx
call fcn.004b9160
mov eax, dword [ebp - 0xa0]
add esp, 8
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], 0
mov dword [ebp - 0x5c], eax
call fcn.00416700
lea eax, [ebx + 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004d44f0
mov ecx, dword [ebx + 0x34]
add esp, 8
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebx + 0x44]
mov dword [ebp - 0x48], ecx
mov cl, byte [ebx + 0x4c]
mov dword [ebp - 0x58], eax
neg cl
mov eax, dword [ebx + 0x30]
mov dword [ebp - 0x54], eax
sbb cl, cl
mov eax, dword [ebx + 0x40]
and cl, 2
cmp byte [ebx + 0x38], 0
mov dword [ebp - 0x4c], eax
mov eax, dword [ebx + 0x48]
mov dword [ebp - 0x44], eax
mov eax, dword [ebx + 0x58]
mov dword [ebp - 0x40], eax
setne al
or cl, al
xor eax, eax
mov byte [ebp - 0x3c], cl
mov dword [ebp - 0x3b], eax
mov word [ebp - 0x37], ax
mov byte [ebp - 0x35], al
cmp esi, dword [ebp - 0x98]
je 0x4d69d8
movups xmm0, xmmword [ebp - 0xc8]
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebp - 0x5c]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x4c]
movups xmmword [esi + 0x20], xmm0
movq xmm0, qword [ebp - 0x3c]
movq qword [esi + 0x30], xmm0
add esi, 0x38
jmp 0x4d6b4b
mov ecx, esi
mov eax, 0x92492493
sub ecx, edi
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xac], eax
cmp eax, 0x4924924
je 0x4d6d85
mov ecx, dword [ebp - 0x98]
inc eax
sub ecx, edi
mov dword [ebp - 0xa0], eax
mov eax, 0x92492493
imul ecx
mov eax, 0x4924924
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, ecx
mov dword [ebp - 0xb0], ecx
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4d6a3e
mov eax, 0x4924924
jmp 0x4d6a4e
lea eax, [ecx + edx]
cmp eax, dword [ebp - 0xa0]
cmovb eax, dword [ebp - 0xa0]
push eax
lea ecx, [ebp - 0xd4]
mov dword [ebp - 0x98], eax
call fcn.004d6dd0
mov edx, dword [ebp - 0xac]
movups xmm0, xmmword [ebp - 0xc8]
mov dword [ebp - 0x9c], eax
lea ecx, [edx*8]
sub ecx, edx
mov edx, eax
mov eax, edi
movups xmmword [edx + ecx*8], xmm0
movups xmm0, xmmword [ebp - 0x5c]
movups xmmword [edx + ecx*8 + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x4c]
movups xmmword [edx + ecx*8 + 0x20], xmm0
movq xmm0, qword [ebp - 0x3c]
movq qword [edx + ecx*8 + 0x30], xmm0
cmp eax, esi
je 0x4d6adb
mov ecx, edx
sub ecx, edi
nop dword [eax]
movups xmm0, xmmword [eax]
movups xmmword [ecx + eax], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ecx + eax + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ecx + eax + 0x20], xmm0
movq xmm0, qword [eax + 0x30]
movq qword [ecx + eax + 0x30], xmm0
add eax, 0x38
cmp eax, esi
jne 0x4d6ab0
test edi, edi
je 0x4d6b1f
mov eax, dword [ebp - 0xb0]
lea ecx, [eax*8]
sub ecx, eax
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x4d6b0f
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d6d8a
push ecx
push edi
call fcn.004b9160
mov edx, dword [ebp - 0x9c]
add esp, 8
mov ecx, dword [ebp - 0xa0]
mov edi, edx
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebp - 0x98]
lea esi, [edx + eax*8]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [edx + eax*8]
mov dword [ebp - 0x98], eax
mov ecx, dword [ebp - 0xa4]
add ebx, 0x70
add ecx, 0x70
mov dword [ebp - 0x9c], ebx
mov eax, esi
mov dword [ebp - 0xa4], ecx
cmp ecx, dword [ebp - 0xb4]
jne 0x4d6870
mov ebx, dword [ebp - 0xb8]
sub esi, edi
mov eax, 0x92492493
imul esi
add edx, esi
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 edi
push dword [ebx]
call fcn.00503c70
add esp, 0xc
test al, al
jne 0x4d6c59
push str.failed_to_write_records
push 2
push 0x22e
jmp 0x4d6c82
mov edx, dword [ebp - 0xa8]
sub esp, 8
mov ecx, esp
mov eax, edx
cmp dword [edx + 0x14], 8
jb 0x4d6bd2
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 0x10]
mov dword [ecx + 4], eax
lea eax, [ebp - 0x94]
push eax
call fcn.0050d0c0
add esp, 0xc
lea ecx, [ebp - 0x17c]
mov esi, eax
push 2
push 0x224
push str..._.._.._client_crash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
call fcn.0050c270
mov ecx, dword [ebp - 0x9c]
cmp dword [ecx + 0x14], 8
jb 0x4d6c15
mov ecx, dword [ecx]
push str._expected_to_start_with
push ecx
mov ecx, eax
call fcn.004cf3b0
push eax
call fcn.00439550
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x4d6c36
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.0049d120
add esp, 0xc
lea ecx, [ebp - 0x17c]
call fcn.0050c3e0
lea ecx, [ebp - 0x94]
call fcn.004166b0
jmp 0x4d6cab
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.00503c70
add esp, 0xc
test al, al
jne 0x4d6cab
push str.failed_to_write_string_table
push 2
push 0x233
push str..._.._.._client_crash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x17c]
call fcn.0050c270
push eax
call fcn.00439550
add esp, 8
lea ecx, [ebp - 0x17c]
call fcn.0050c3e0
test edi, edi
je 0x4d6cfe
mov ecx, dword [ebp - 0x98]
mov eax, 0x92492493
sub ecx, edi
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x4d6cf4
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d6d8a
push ecx
push edi
call fcn.004b9160
add esp, 8
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x4d6d74
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4d6d24
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4d6d8a
push edx
push ecx
call fcn.004b9160
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00514f0c
mov esp, ebp
pop ebp
ret
push str.failed_to_rewind_to_write
push 2
push 0x203
push str..._.._.._client_crash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x17c]
call fcn.0050c270
push eax
call fcn.00439550
add esp, 8
lea ecx, [ebp - 0x17c]
call fcn.0050c3e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00514f0c
mov esp, ebp
pop ebp
ret
call fcn.0041fac0
call fcn.0051bb5f
int3