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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x130
mov eax, dword [0x5a8564]
xor eax, ebp
mov dword [esp + 0x128], eax
mov ebx, dword [ecx]
mov dword [ecx], 0
test ebx, ebx
je 0x4c7336
cmp byte [ebx + 0x24], 0
je 0x4c729f
xor eax, eax
push eax
push eax
push eax
push dword [ebx + 4]
call fcn.004e2e91
add esp, 0x10
or edx, eax
je 0x4c734c
push 2
call fcn.0044f030
add esp, 4
test al, al
je 0x4c729f
lea esi, [esp + 0x80]
mov ecx, esi
push 2
push 0x203
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.0044f100
lea eax, [esp + 0x88]
push 0x19
push str.failed_to_rewind_to_write
push eax
call fcn.0040218b
add esp, 0xc
mov ecx, esi
call fcn.0044f510
xor eax, eax
lea ecx, [esp + 0x40]
mov dword [ecx + 0x10], eax
xorps xmm0, xmm0
movaps xmmword [ecx], xmm0
xor edx, edx
dec edx
push ecx
push edx
push edx
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_UnlockFileEx]
test eax, eax
jne 0x4c730e
push 2
call fcn.0044f030
add esp, 4
test al, al
je 0x4c730e
call fcn.0044ff30
lea esi, [esp + 0x80]
mov ecx, esi
push eax
push 2
push 0x13b
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.004500d0
lea eax, [esp + 0x88]
push 0xc
push 0x574259
push eax
call fcn.0040218b
add esp, 0xc
mov ecx, esi
call fcn.00450180
lea ecx, [ebx + 0x28]
call fcn.004c8fc0
lea ecx, [ebx + 0x18]
call fcn.00452ba0
lea ecx, [ebx + 0xc]
call fcn.00452ba0
mov ecx, ebx
call fcn.004c8f42
push ebx
call fcn.005327b0
add esp, 4
mov ecx, dword [esp + 0x128]
xor ecx, ebp
call fcn.005327f1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4c76f6
mov edi, dword [ebx + 0x28]
mov ecx, ebx
mov ebx, dword [ebx + 0x2c]
mov eax, ebx
sub eax, edi
sar eax, 3
imul esi, eax, 0xba2e8ba3
lea eax, [esp + 0x40]
mov dword [eax + 0xc], 0
mov dword [eax], 0x43504144
mov dword [eax + 4], 1
mov dword [eax + 8], esi
push 0x10
push eax
mov dword [esp + 0x14], ecx
push dword [ecx + 4]
call fcn.004e3279
add esp, 0xc
test al, al
je 0x4c774b
cmp ebx, edi
mov ebx, dword [esp + 0xc]
je 0x4c729f
xor eax, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], eax
cmp esi, 0x4924925
jae 0x4c78f4
mov ecx, esi
call fcn.004c8ff8
mov edi, eax
mov esi, dword [ebx + 0x28]
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x3c], eax
cmp esi, eax
je 0x4c78f9
imul eax, edx, 0x38
add eax, edi
mov dword [esp + 8], eax
lea eax, [ebx + 0xc]
mov dword [esp + 0x1c], eax
mov eax, edi
mov dword [esp + 0x14], eax
lea ebx, [esi + 0x10]
mov ecx, ebx
lea eax, [esp + 0x80]
push eax
call fcn.00453200
lea ecx, [esp + 0x80]
push dword [esp + 0x1c]
call fcn.00452dc0
mov byte [esp + 0x18], al
lea ecx, [esp + 0x80]
call fcn.00452ba0
cmp byte [esp + 0x18], 0
jne 0x4c778e
mov dword [esp + 0x18], esi
movups xmm0, xmmword [esi]
movaps xmmword [esp + 0x80], xmm0
mov ecx, ebx
lea esi, [esp + 0x68]
push esi
call fcn.00453480
movzx eax, byte [esp + 0x73]
mov ecx, esi
test al, al
jns 0x4c7469
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
push eax
push ecx
lea esi, [esp + 0x7c]
push esi
call fcn.00442160
add esp, 0xc
lea ebx, [esp + 0x58]
mov ecx, ebx
mov edx, esi
call fcn.004c901c
mov dword [esp + 0x10], eax
cmp byte [esp + 0x7f], 0
jns 0x4c749c
push dword [esp + 0x74]
call fcn.005327b0
add esp, 4
lea ecx, [esp + 0x68]
call fcn.00452ba0
mov esi, dword [esp + 0x18]
lea edx, [esi + 0x1c]
mov ecx, ebx
call fcn.004c901c
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x2c]
mov dword [esp + 0x34], eax
mov edx, dword [esi + 0x3c]
mov bl, byte [esi + 0x44]
add bl, bl
or bl, byte [esi + 0x30]
mov eax, dword [esi + 0x38]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x40]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x28], eax
cmp edi, dword [esp + 8]
jae 0x4c7546
test edi, edi
mov eax, dword [esp + 0x14]
je 0x4c78d9
movaps xmm0, xmmword [esp + 0x80]
movups xmmword [edi], xmm0
mov ecx, dword [esp + 0x10]
mov dword [edi + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword [edi + 0x14], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0x18], ecx
mov ecx, dword [esp + 0x34]
mov dword [edi + 0x1c], ecx
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x20], ecx
mov dword [edi + 0x24], edx
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x28], ecx
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x2c], ecx
mov byte [edi + 0x30], bl
xor ecx, ecx
mov dword [edi + 0x31], ecx
mov dword [edi + 0x34], ecx
jmp 0x4c765a
mov dword [esp + 0x38], edx
mov eax, edi
mov edx, dword [esp + 0x14]
sub eax, edx
sar eax, 3
imul esi, eax, 0xb6db6db7
lea ecx, [esi + 1]
cmp ecx, 0x4924925
jae 0x4c78f4
mov eax, dword [esp + 8]
sub eax, edx
sar eax, 3
imul eax, eax, 0xb6db6db7
lea edx, [eax + eax]
cmp edx, ecx
cmova ecx, edx
cmp eax, 0x2492492
mov eax, 0x4924924
cmovae ecx, eax
test ecx, ecx
je 0x4c7599
call fcn.004c8ff8
jmp 0x4c759d
xor eax, eax
xor edx, edx
imul ecx, esi, 0x38
mov dword [esp + 8], eax
add ecx, eax
je 0x4c78d9
movaps xmm0, xmmword [esp + 0x80]
movups xmmword [ecx], xmm0
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [ecx + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [ecx + 0x18], eax
mov eax, dword [esp + 0x34]
mov dword [ecx + 0x1c], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x38]
mov dword [ecx + 0x24], eax
mov eax, dword [esp + 0x24]
mov dword [ecx + 0x28], eax
mov eax, dword [esp + 0x28]
mov dword [ecx + 0x2c], eax
mov byte [ecx + 0x30], bl
xor eax, eax
mov dword [ecx + 0x31], eax
mov dword [ecx + 0x34], eax
mov dword [esp + 0x10], ecx
mov ebx, ecx
mov esi, dword [esp + 0x14]
cmp edi, esi
je 0x4c763c
mov eax, dword [esp + 0x10]
movsd xmm0, qword [edi - 8]
movsd qword [eax - 8], xmm0
movups xmm0, xmmword [edi - 0x18]
movups xmmword [eax - 0x18], xmm0
movups xmm0, xmmword [edi - 0x38]
movups xmm1, xmmword [edi - 0x28]
lea ecx, [edi - 0x38]
lea ebx, [eax - 0x38]
movups xmmword [eax - 0x28], xmm1
movups xmmword [eax - 0x38], xmm0
mov eax, ebx
mov edi, ecx
cmp ecx, esi
jne 0x4c760c
imul edi, edx, 0x38
test esi, esi
je 0x4c764c
push esi
call fcn.005327b0
add esp, 4
add dword [esp + 8], edi
mov eax, ebx
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x18]
add edi, 0x38
add esi, 0x58
cmp esi, dword [esp + 0x3c]
jne 0x4c73fa
sub edi, eax
mov ebx, dword [esp + 0xc]
je 0x4c78f9
push edi
mov edi, eax
push eax
push dword [ebx + 4]
call fcn.004e3279
add esp, 0xc
test al, al
je 0x4c77dc
movzx eax, byte [esp + 0x63]
test al, al
cmovs eax, dword [esp + 0x5c]
lea ecx, [esp + 0x58]
cmovs ecx, dword [esp + 0x58]
push eax
push ecx
push dword [ebx + 4]
call fcn.004e3279
add esp, 0xc
test al, al
jne 0x4c78b0
push 2
call fcn.0044f030
add esp, 4
test al, al
je 0x4c78b0
lea esi, [esp + 0x80]
mov ecx, esi
push 2
push 0x233
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.0044f100
lea eax, [esp + 0x88]
push 0x1c
push str.failed_to_write_string_table
jmp 0x4c7816
push 2
call fcn.0044f030
add esp, 4
test al, al
je 0x4c729f
call fcn.0044ff30
lea esi, [esp + 0x80]
mov ecx, esi
push eax
push 2
push 0x20a
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.004500d0
lea eax, [esp + 0x88]
push 0x12
push str.failed_to_truncate
push eax
call fcn.0040218b
add esp, 0xc
mov ecx, esi
call fcn.00450180
jmp 0x4c729f
push 2
call fcn.0044f030
add esp, 4
test al, al
mov ebx, dword [esp + 0xc]
je 0x4c729f
lea esi, [esp + 0x80]
mov ecx, esi
push 2
push 0x216
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.0044f100
lea eax, [esp + 0x88]
push 0x16
push str.failed_to_write_header
jmp 0x4c728f
mov dword [esp + 8], ebx
push 2
call fcn.0044f030
add esp, 4
test al, al
je 0x4c77d3
lea ecx, [esp + 0x80]
push 2
push 0x224
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.0044f100
lea eax, [esp + 0x88]
cmp byte [esi + 0x1b], 0
mov ebx, dword [esp + 0xc]
js 0x4c782b
lea edi, [esp + 0x74]
mov ecx, dword [esp + 8]
jmp 0x4c7835
mov ebx, dword [esp + 0xc]
jmp 0x4c78ac
push 2
call fcn.0044f030
add esp, 4
test al, al
je 0x4c78b0
lea esi, [esp + 0x80]
mov ecx, esi
push 2
push 0x22e
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.0044f100
lea eax, [esp + 0x88]
push 0x17
push str.failed_to_write_records
push eax
call fcn.0040218b
add esp, 0xc
mov ecx, esi
call fcn.0044f510
jmp 0x4c78b0
mov ecx, dword [esp + 8]
mov ecx, dword [ecx]
lea edi, [esp + 0x74]
push ecx
push eax
call fcn.00450220
add esp, 8
push 0x18
push str._expected_to_start_with
push eax
call fcn.0040218b
add esp, 0xc
mov esi, eax
movzx eax, byte [ebx + 0x17]
test al, al
jns 0x4c7863
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x10]
push eax
push dword [esp + 0x20]
push edi
call fcn.00442160
add esp, 0xc
movzx eax, byte [esp + 0x7f]
test al, al
jns 0x4c7882
mov eax, dword [esp + 0x78]
mov edi, dword [esp + 0x74]
push eax
push edi
push esi
call fcn.0040218b
add esp, 0xc
cmp byte [esp + 0x7f], 0
jns 0x4c78a0
push dword [esp + 0x74]
call fcn.005327b0
add esp, 4
lea ecx, [esp + 0x80]
call fcn.0044f510
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4c78bd
push edi
call fcn.005327b0
add esp, 4
cmp byte [esp + 0x63], 0
jns 0x4c729f
push dword [esp + 0x58]
call fcn.005327b0
add esp, 4
jmp 0x4c729f
push str.null_pointer_given_to_construct_at
push str.__location___nullptr
push 0x25
push str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
push str._s:_d:_assertion__s_failed:__s
call fcn.00404fa4
call fcn.00403480
push str.vector___index_out_of_bounds
push str.__n___size__
push 0x5b5
push str....._buildtools_third_partylibc_trunkinclude_vector
jmp 0x4c78ea