Function at 0x491b28
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 [0x5a05c4]
xor eax, ebp
mov dword [esp + 0x138], eax
xor eax, eax
mov ebx, dword [ecx]
mov dword [ecx], eax
test ebx, ebx
je 0x491c46
cmp byte [ebx + 0x18], 0
je 0x491bb7
xor eax, eax
push eax
push eax
push eax
push dword [ebx + 4]
call fcn.004c1b69
add esp, 0x10
or edx, eax
je 0x491c5c
push 2
call fcn.0043e5e0
add esp, 4
test al, al
je 0x491bb7
lea edi, [esp + 0x80]
mov ecx, edi
push 2
push 0x1e0
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.0043e680
lea eax, [esp + 0x84]
push 0x19
push str.failed_to_rewind_to_write
push eax
call fcn.004058b5
add esp, 0xc
mov ecx, edi
call fcn.0043ea30
xor eax, eax
xor edx, edx
lea ecx, [esp + 0x40]
xorps xmm0, xmm0
mov dword [ecx + 0x10], eax
movaps xmmword [ecx], xmm0
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 0x491c26
push 2
call fcn.0043e5e0
add esp, 4
test al, al
je 0x491c26
call fcn.0043ef80
lea edi, [esp + 0x80]
mov ecx, edi
push eax
push 2
push 0x129
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.0043f140
lea eax, [esp + 0x88]
push 0xc
push 0x567300
push eax
call fcn.004058b5
add esp, 0xc
mov ecx, edi
call fcn.0043f200
lea ecx, [ebx + 0x1c]
call fcn.0049313a
lea ecx, [ebx + 0xc]
call fcn.0043a4c0
mov ecx, ebx
call fcn.00473a2e
push ebx
call fcn.005272d6
add esp, 4
mov ecx, dword [esp + 0x138]
xor ecx, ebp
call fcn.00527311
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 0x491fef
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.004c1eed
add esp, 0xc
test al, al
je 0x492044
test edi, edi
je 0x491bb7
xor eax, eax
cmp esi, 0x4924925
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x64], eax
jae 0x49224a
imul esi, esi, 0x38
push esi
call fcn.00527256
add esp, 4
add esi, eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], esi
mov ecx, dword [ebx + 0x20]
mov esi, dword [ebx + 0x1c]
cmp esi, ecx
mov dword [esp + 0x3c], ecx
je 0x492083
lea eax, [ebx + 0xc]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
lea edi, [esi + 0x10]
lea ebx, [esp + 0x80]
mov ecx, edi
push ebx
call fcn.0043ad30
mov ecx, ebx
push dword [esp + 0x10]
call fcn.0043a700
lea ecx, [esp + 0x80]
mov ebx, eax
call fcn.0043a4c0
test bl, bl
jne 0x492144
movsd xmm0, qword [esi]
movsd xmm1, qword [esi + 8]
mov ecx, edi
lea edi, [esp + 0x74]
movsd qword [esp + 0x80], xmm0
movsd qword [esp + 0x88], xmm1
push edi
call fcn.0043ae40
movzx eax, byte [esp + 0x7f]
mov ecx, edi
test al, al
jns 0x491d81
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x78]
push eax
push ecx
lea edi, [esp + 0x134]
push edi
call fcn.00449130
add esp, 0xc
lea ecx, [esp + 0x68]
mov edx, edi
call fcn.00493186
xor ebx, ebx
mov dword [esp + 0xc], eax
cmp byte [esp + 0x137], bl
jns 0x491dbc
push dword [esp + 0x12c]
call fcn.005272d6
add esp, 4
lea ecx, [esp + 0x74]
call fcn.0043a4c0
lea edx, [esi + 0x1c]
lea ecx, [esp + 0x68]
call fcn.00493186
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x28]
mov cl, byte [esi + 0x44]
mov edx, dword [esi + 0x38]
mov edi, dword [esi + 0x40]
mov dword [esp + 8], eax
mov eax, dword [esi + 0x2c]
add cl, cl
or cl, byte [esi + 0x30]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x3c]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x12f], ebx
mov dword [esp + 0x12c], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x64]
cmp ebx, eax
jae 0x491e87
movsd xmm0, qword [esp + 0x80]
movsd xmm1, qword [esp + 0x88]
mov eax, dword [esp + 0xc]
movsd qword [ebx + 8], xmm1
movsd qword [ebx], xmm0
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x14], eax
mov eax, dword [esp + 8]
mov dword [ebx + 0x18], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x28], edi
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 0x491fd1
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x5c]
mov byte [esp + 7], cl
mov dword [esp + 0x34], edi
sub ebx, edx
mov ecx, ebx
sar ecx, 3
imul ecx, ecx, 0xb6db6db7
mov dword [esp + 0x2c], ecx
inc ecx
cmp ecx, 0x4924925
jae 0x492241
sub eax, edx
mov dword [esp + 0x38], edx
sar eax, 3
imul eax, eax, 0xb6db6db7
lea edi, [eax + eax]
cmp edi, ecx
cmovb edi, ecx
cmp eax, 0x2492492
mov ecx, 0x4924924
cmovae edi, ecx
test edi, edi
mov dword [esp + 0x28], edi
je 0x491efb
cmp edi, 0x4924925
jae 0x49224a
imul eax, edi, 0x38
push eax
call fcn.00527256
add esp, 4
jmp 0x491efd
xor eax, eax
imul ecx, dword [esp + 0x2c], 0x38
movsd xmm0, qword [esp + 0x80]
movsd xmm1, qword [esp + 0x88]
mov edx, dword [esp + 0xc]
movsd qword [eax + ecx + 8], xmm1
movsd qword [eax + ecx], xmm0
mov dword [eax + ecx + 0x10], edx
mov edx, dword [esp + 0x24]
mov dword [eax + ecx + 0x14], edx
mov edx, dword [esp + 0x20]
mov dword [eax + ecx + 0x1c], edx
mov edx, dword [esp + 8]
mov dword [eax + ecx + 0x18], edx
mov edx, dword [esp + 0x18]
mov dword [eax + ecx + 0x24], edx
mov edx, dword [esp + 0x30]
mov dword [eax + ecx + 0x20], edx
mov edx, dword [esp + 0x34]
mov dword [eax + ecx + 0x28], edx
mov edx, dword [esp + 0x1c]
mov dword [eax + ecx + 0x2c], edx
mov dl, byte [esp + 7]
mov byte [eax + ecx + 0x30], dl
mov edx, dword [esp + 0x12c]
mov edi, dword [esp + 0x12f]
mov dword [eax + ecx + 0x31], edx
mov dword [eax + ecx + 0x34], edi
lea edi, [eax + ecx]
imul ecx, dword [esp + 0x28], 0x38
add ecx, eax
mov eax, 0x38
lea edx, [edi + eax]
mov eax, dword [esp + 0x38]
sub edi, ebx
test ebx, ebx
jle 0x491fb8
push ebx
push eax
push edi
mov dword [esp + 0x18], ecx
mov ebx, eax
mov dword [esp + 0x14], edx
call fcn.0052acc0
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, ebx
add esp, 0xc
test eax, eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
je 0x491fd1
push eax
call fcn.005272d6
add esp, 4
add esi, 0x58
cmp dword [esp + 0x3c], esi
jne 0x491d14
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
mov ebx, dword [esp + 0x14]
jmp 0x492085
push 2
call fcn.0043e5e0
add esp, 4
test al, al
je 0x491bb7
call fcn.0043ef80
lea edi, [esp + 0x80]
mov ecx, edi
push eax
push 2
push 0x1e7
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.0043f140
lea eax, [esp + 0x88]
push 0x12
push str.failed_to_truncate
push eax
call fcn.004058b5
add esp, 0xc
mov ecx, edi
call fcn.0043f200
jmp 0x491bb7
push 2
call fcn.0043e5e0
add esp, 4
test al, al
je 0x491bb7
lea edi, [esp + 0x80]
mov ecx, edi
push 2
push 0x1f3
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.0043e680
lea eax, [esp + 0x84]
push 0x16
push str.failed_to_write_header
jmp 0x491ba7
mov ecx, eax
sub ecx, eax
push ecx
push eax
push dword [ebx + 4]
call fcn.004c1eed
add esp, 0xc
test al, al
je 0x4920fa
lea ecx, [esp + 0x68]
movzx eax, byte [ecx + 0xb]
test al, al
cmovs eax, dword [ecx + 4]
cmovs ecx, dword [ecx]
push eax
push ecx
push dword [ebx + 4]
call fcn.004c1eed
add esp, 0xc
test al, al
jne 0x492210
push 2
call fcn.0043e5e0
add esp, 4
test al, al
je 0x492210
lea edi, [esp + 0x80]
mov ecx, edi
push 2
push 0x210
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.0043e680
lea eax, [esp + 0x84]
push 0x1c
push str.failed_to_write_string_table
jmp 0x492134
push 2
call fcn.0043e5e0
add esp, 4
test al, al
je 0x492210
lea edi, [esp + 0x80]
mov ecx, edi
push 2
push 0x20b
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.0043e680
lea eax, [esp + 0x84]
push 0x17
push str.failed_to_write_records
push eax
call fcn.004058b5
add esp, 0xc
mov ecx, edi
jmp 0x49220b
push 2
call fcn.0043e5e0
add esp, 4
mov ebx, dword [esp + 0x14]
test al, al
je 0x492210
lea ecx, [esp + 0x80]
push 2
push 0x201
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.0043e680
cmp byte [esi + 0x1b], 0
lea eax, [esp + 0x84]
jns 0x492182
mov edi, dword [esi + 0x10]
lea esi, [esp + 0x12c]
push edi
push eax
call fcn.0043f290
add esp, 8
push 0x18
push str._expected_to_start_with
push eax
call fcn.004058b5
add esp, 0xc
mov edi, eax
movzx eax, byte [ebx + 0x17]
test al, al
jns 0x4921b7
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x10]
push eax
push dword [esp + 0x14]
push esi
call fcn.00449130
add esp, 0xc
movzx eax, byte [esp + 0x137]
test al, al
jns 0x4921df
mov eax, dword [esp + 0x130]
mov esi, dword [esp + 0x12c]
push eax
push esi
push edi
call fcn.004058b5
add esp, 0xc
xor eax, eax
cmp byte [esp + 0x137], al
jns 0x492204
push dword [esp + 0x12c]
call fcn.005272d6
add esp, 4
lea ecx, [esp + 0x80]
call fcn.0043ea30
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x492225
mov dword [esp + 0x60], eax
push eax
call fcn.005272d6
add esp, 4
cmp byte [esp + 0x73], 0
jns 0x491bb7
push dword [esp + 0x68]
call fcn.005272d6
add esp, 4
jmp 0x491bb7
lea ecx, [esp + 0x5c]
call fcn.00428e9c
call fcn.0053b598
int3