Function at 0x4a7baa
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, 0x140
mov eax, dword [0x596ff8]
xor eax, ebp
mov dword [esp + 0x138], eax
mov ebx, dword [ecx]
mov dword [ecx], 0
test ebx, ebx
je 0x4a7cca
cmp byte [ebx + 0x18], 0
je 0x4a7c3b
xor eax, eax
push eax
push eax
push eax
push dword [ebx + 4]
call fcn.004c845f
add esp, 0x10
or edx, eax
je 0x4a7ce0
push 2
call fcn.0042ae10
add esp, 4
test al, al
je 0x4a7c3b
lea edi, [esp + 0x80]
mov ecx, edi
push 2
push 0x1fb
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.0042aea0
lea eax, [esp + 0x88]
push 0x19
push str.failed_to_rewind_to_write
push eax
call fcn.00401c91
add esp, 0xc
mov ecx, edi
call fcn.0042b2a0
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 0x4a7caa
push 2
call fcn.0042ae10
add esp, 4
test al, al
je 0x4a7caa
call fcn.0042b8e0
lea edi, [esp + 0x80]
mov ecx, edi
push eax
push 2
push 0x136
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.0042ba80
lea eax, [esp + 0x88]
push 0xc
push 0x552228
push eax
call fcn.00401c91
add esp, 0xc
mov ecx, edi
call fcn.0042bb30
lea ecx, [ebx + 0x1c]
call fcn.004a994e
lea ecx, [ebx + 0xc]
call fcn.00428200
mov ecx, ebx
call fcn.004a5c82
push ebx
call fcn.005128f8
add esp, 4
mov ecx, dword [esp + 0x138]
xor ecx, ebp
call fcn.00512931
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 0x4a8056
mov edi, dword [ebx + 0x20]
sub edi, dword [ebx + 0x1c]
mov 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
push dword [ebx + 4]
call fcn.004c87ed
add esp, 0xc
test al, al
je 0x4a80ab
test edi, edi
je 0x4a7c3b
xor eax, eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
cmp esi, 0x4924925
jae 0x4a82d8
imul esi, esi, 0x38
push esi
call fcn.00512878
add esp, 4
add esi, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], esi
mov edx, dword [ebx + 0x1c]
mov esi, dword [ebx + 0x20]
mov dword [esp + 0x3c], esi
cmp edx, esi
je 0x4a80ea
mov ecx, edx
mov dword [esp + 0x14], ebx
lea eax, [ebx + 0xc]
mov dword [esp + 0x18], eax
mov ebx, edx
lea edi, [ebx + 0x10]
mov ecx, edi
lea esi, [esp + 0x80]
push esi
call fcn.00428b20
mov ecx, esi
push dword [esp + 0x18]
call fcn.004284a0
mov byte [esp + 0x10], al
mov ecx, esi
call fcn.00428200
cmp byte [esp + 0x10], 0
jne 0x4a8158
movups xmm0, xmmword [ebx]
movaps xmmword [esp + 0x80], xmm0
mov ecx, edi
lea eax, [esp + 0x74]
push eax
call fcn.00428cb0
movzx eax, byte [esp + 0x74]
test al, 1
je 0x4a7df9
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
jmp 0x4a7dff
shr eax, 1
lea ecx, [esp + 0x76]
push eax
push ecx
lea edi, [esp + 0x134]
push edi
call fcn.00438930
add esp, 0xc
lea ecx, [esp + 0x68]
mov edx, edi
call fcn.004a9988
mov dword [esp + 8], eax
test byte [esp + 0x12c], 1
je 0x4a7e39
push dword [esp + 0x134]
call fcn.005128f8
add esp, 4
lea ecx, [esp + 0x74]
call fcn.00428200
lea edx, [ebx + 0x1c]
lea ecx, [esp + 0x68]
call fcn.004a9988
mov edi, eax
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0xc], eax
mov cl, byte [ebx + 0x44]
add cl, cl
or cl, byte [ebx + 0x30]
mov esi, dword [ebx + 0x38]
mov edx, dword [ebx + 0x40]
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 0x50]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x12f], eax
mov dword [esp + 0x12c], eax
mov ebx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
cmp ebx, eax
jae 0x4a7ef4
movaps xmm0, xmmword [esp + 0x80]
movups xmmword [ebx], xmm0
mov eax, dword [esp + 8]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edi
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], esi
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x28], edx
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x2c], eax
mov byte [ebx + 0x30], cl
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x12f]
mov dword [ebx + 0x31], eax
mov dword [ebx + 0x34], ecx
add ebx, 0x38
mov dword [esp + 0x60], ebx
jmp 0x4a8034
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edi
mov byte [esp + 7], cl
mov edx, dword [esp + 0x5c]
sub ebx, edx
mov ecx, ebx
sar ecx, 3
imul esi, ecx, 0xb6db6db7
lea ecx, [esi + 1]
cmp ecx, 0x4924925
jae 0x4a82cf
sub eax, edx
sar eax, 3
imul eax, eax, 0xb6db6db7
lea edi, [eax + eax]
cmp edi, ecx
cmovb edi, ecx
cmp eax, 0x2492492
mov eax, 0x4924924
cmovae edi, eax
test edi, edi
mov dword [esp + 0x2c], edi
je 0x4a7f74
mov dword [esp + 0x28], esi
cmp edi, 0x4924925
jae 0x4a82d8
mov esi, edx
imul eax, edi, 0x38
push eax
call fcn.00512878
add esp, 4
mov edi, eax
mov edx, esi
mov esi, dword [esp + 0x28]
jmp 0x4a7f76
xor edi, edi
imul esi, esi, 0x38
movaps xmm0, xmmword [esp + 0x80]
movups xmmword [edi + esi], xmm0
mov eax, dword [esp + 8]
mov dword [edi + esi + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [edi + esi + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [edi + esi + 0x1c], eax
mov eax, dword [esp + 0x24]
mov dword [edi + esi + 0x18], eax
mov eax, dword [esp + 0xc]
mov dword [edi + esi + 0x24], eax
mov eax, dword [esp + 0x30]
mov dword [edi + esi + 0x20], eax
mov eax, dword [esp + 0x34]
mov dword [edi + esi + 0x28], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + esi + 0x2c], eax
mov al, byte [esp + 7]
mov byte [edi + esi + 0x30], al
mov eax, dword [esp + 0x12c]
mov ecx, dword [esp + 0x12f]
mov dword [edi + esi + 0x31], eax
mov dword [edi + esi + 0x34], ecx
lea eax, [edi + esi]
imul ecx, dword [esp + 0x2c], 0x38
add ecx, edi
sub eax, ebx
mov dword [esp + 8], eax
test ebx, ebx
jle 0x4a8011
push ebx
push edx
push dword [esp + 0x10]
mov dword [esp + 0x18], edx
mov ebx, ecx
call fcn.005162a0
mov ecx, ebx
mov edx, dword [esp + 0x18]
add esp, 0xc
lea eax, [edi + esi]
add eax, 0x38
mov esi, dword [esp + 8]
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
test edx, edx
je 0x4a8034
push edx
call fcn.005128f8
add esp, 4
mov ebx, dword [esp + 0x10]
add ebx, 0x58
cmp dword [esp + 0x3c], ebx
jne 0x4a7d9c
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x14]
jmp 0x4a80ec
push 2
call fcn.0042ae10
add esp, 4
test al, al
je 0x4a7c3b
call fcn.0042b8e0
lea edi, [esp + 0x80]
mov ecx, edi
push eax
push 2
push 0x202
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.0042ba80
lea eax, [esp + 0x88]
push 0x12
push str.failed_to_truncate
push eax
call fcn.00401c91
add esp, 0xc
mov ecx, edi
call fcn.0042bb30
jmp 0x4a7c3b
push 2
call fcn.0042ae10
add esp, 4
test al, al
je 0x4a7c3b
lea edi, [esp + 0x80]
mov ecx, edi
push 2
push 0x20e
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.0042aea0
lea eax, [esp + 0x88]
push 0x16
push str.failed_to_write_header
jmp 0x4a7c2b
mov ecx, eax
sub ecx, eax
push ecx
push eax
push dword [ebx + 4]
call fcn.004c87ed
add esp, 0xc
test al, al
je 0x4a8119
movzx eax, byte [esp + 0x68]
test al, 1
je 0x4a819a
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
jmp 0x4a81a0
push 2
call fcn.0042ae10
add esp, 4
test al, al
je 0x4a829e
lea edi, [esp + 0x80]
mov ecx, edi
push 2
push 0x226
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.0042aea0
lea eax, [esp + 0x88]
push 0x17
push str.failed_to_write_records
jmp 0x4a81ef
mov edi, ebx
push 2
call fcn.0042ae10
add esp, 4
test al, al
mov ebx, dword [esp + 0x14]
je 0x4a829e
lea ecx, [esp + 0x80]
push 2
push 0x21c
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.0042aea0
lea eax, [esp + 0x88]
test byte [edi + 0x10], 1
jne 0x4a81ff
add edi, 0x12
jmp 0x4a8202
shr eax, 1
lea ecx, [esp + 0x69]
push eax
push ecx
push dword [ebx + 4]
call fcn.004c87ed
add esp, 0xc
test al, al
jne 0x4a829e
push 2
call fcn.0042ae10
add esp, 4
test al, al
je 0x4a829e
lea edi, [esp + 0x80]
mov ecx, edi
push 2
push 0x22b
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.0042aea0
lea eax, [esp + 0x88]
push 0x1c
push str.failed_to_write_string_table
push eax
call fcn.00401c91
add esp, 0xc
mov ecx, edi
jmp 0x4a8299
mov edi, dword [edi + 0x18]
push edi
push eax
call fcn.0042bbd0
add esp, 8
push 0x18
push str._expected_to_start_with
push eax
call fcn.00401c91
add esp, 0xc
mov edi, eax
movzx eax, byte [ebx + 0xc]
test al, 1
je 0x4a822e
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
jmp 0x4a8237
mov ecx, dword [esp + 0x18]
add ecx, 2
shr eax, 1
push eax
push ecx
lea eax, [esp + 0x134]
push eax
call fcn.00438930
add esp, 0xc
movzx eax, byte [esp + 0x12c]
test al, 1
je 0x4a8265
mov eax, dword [esp + 0x130]
mov ecx, dword [esp + 0x134]
jmp 0x4a826e
shr eax, 1
lea ecx, [esp + 0x12d]
push eax
push ecx
push edi
call fcn.00401c91
add esp, 0xc
test byte [esp + 0x12c], 1
je 0x4a8292
push dword [esp + 0x134]
call fcn.005128f8
add esp, 4
lea ecx, [esp + 0x80]
call fcn.0042b2a0
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4a82b3
mov dword [esp + 0x60], eax
push eax
call fcn.005128f8
add esp, 4
test byte [esp + 0x68], 1
je 0x4a7c3b
push dword [esp + 0x70]
call fcn.005128f8
add esp, 4
jmp 0x4a7c3b
lea ecx, [esp + 0x5c]
call fcn.00422b1c
call fcn.00525b7d
int3