Function at 0x10022a80
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004273e
mov eax, dword fs:[0]
push eax
sub esp, 0x1f8
mov eax, dword [0x10057034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x54], 0
call fcn.10022800
test al, al
jne 0x10022b0a
push 2
push 0x1fb
push str.E:ALIEN_PROJECTS_sentry_native_0.4.6externalcrashpadclientcrash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x11c]
call fcn.1000213a
mov dword [ebp - 4], 0
mov dword [ebp - 0x54], 1
push str.failed_to_rewind_to_write
push eax
call fcn.10001901
add esp, 8
lea ecx, [ebp - 0x11c]
call fcn.100024f5
jmp 0x10022f0a
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10022b64
call fcn.1000212b
push eax
push 2
push 0x202
push str.E:ALIEN_PROJECTS_sentry_native_0.4.6externalcrashpadclientcrash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x124]
call fcn.1000126c
push str.failed_to_truncate
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x54], 2
call fcn.10001901
add esp, 8
lea ecx, [ebp - 0x124]
call fcn.10002473
jmp 0x10022f0a
mov ecx, dword [edi + 0x24]
mov eax, 0x92492493
sub ecx, dword [edi + 0x20]
imul ecx
push 0x10
add edx, ecx
mov dword [ebp - 0x2c], 0
sar edx, 6
lea eax, [ebp - 0x38]
mov esi, edx
mov dword [ebp - 0x38], 0x43504144
push eax
push dword [edi]
shr esi, 0x1f
add esi, edx
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], esi
call fcn.10001816
add esp, 0xc
test al, al
jne 0x10022bdd
push 2
push 0x20e
push str.E:ALIEN_PROJECTS_sentry_native_0.4.6externalcrashpadclientcrash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x11c]
call fcn.1000213a
mov dword [ebp - 4], 2
mov dword [ebp - 0x54], 4
push str.failed_to_write_header
jmp 0x10022af1
test esi, esi
je 0x10022f0a
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 3
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov byte [ebp - 4], 4
cmp esi, 0x4924924
ja 0x10022f25
lea eax, [esi*8]
sub eax, esi
shl eax, 3
push eax
mov dword [ebp - 0x60], eax
call fcn.100024a0
mov edi, eax
lea eax, [ebp - 0x6c]
push eax
push edi
push 0
push 0
mov dword [ebp - 0x5c], edi
call fcn.1001d0b0
mov esi, dword [ebp - 0x6c]
add esp, 0x14
test esi, esi
je 0x10022c83
mov ecx, dword [ebp - 0x64]
mov eax, 0x92492493
sub ecx, esi
imul ecx
add edx, ecx
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
call fcn.100011a4
add esp, 8
mov eax, dword [ebp - 0x60]
mov esi, edi
add eax, edi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x68], esi
mov ecx, dword [eax + 0x24]
mov edi, dword [eax + 0x20]
mov dword [ebp - 0x74], ecx
cmp edi, ecx
je 0x10022df5
add eax, 4
mov dword [ebp - 0x54], eax
lea eax, [edi + 0x10]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call fcn.100024af
push dword [ebp - 0x54]
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.10001dc0
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x55], al
mov byte [ebp - 4], 4
call fcn.100014f6
cmp byte [ebp - 0x55], 0
jne 0x10022d51
lea eax, [ebp - 0x28]
push eax
push edi
lea ecx, [ebp - 0x15c]
call fcn.1001d940
cmp esi, dword [ebp - 0x60]
je 0x10022d21
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [esi + 0x20], xmm0
movq xmm0, qword [eax + 0x30]
movq qword [esi + 0x30], xmm0
add esi, 0x38
mov dword [ebp - 0x68], esi
jmp 0x10022d34
push eax
push esi
lea ecx, [ebp - 0x6c]
call fcn.1001c980
mov eax, dword [ebp - 0x64]
mov esi, dword [ebp - 0x68]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x5c]
add edi, 0x70
add eax, 0x70
mov dword [ebp - 0x5c], eax
cmp edi, dword [ebp - 0x74]
jne 0x10022cb6
mov edi, dword [ebp - 0x6c]
jmp 0x10022df8
mov eax, dword [ebp - 0x54]
sub esp, 8
mov edx, esp
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x10022d63
mov ecx, dword [eax]
mov dword [edx], ecx
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
lea eax, [ebp - 0x50]
push eax
call fcn.100018bb
add esp, 0xc
mov esi, eax
push 2
push 0x21c
push str.E:ALIEN_PROJECTS_sentry_native_0.4.6externalcrashpadclientcrash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x11c]
mov byte [ebp - 4], 6
mov dword [ebp - 0x54], 8
call fcn.1000213a
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 4], 7
mov dword [ebp - 0x54], 0x18
cmp dword [ecx + 0x14], 8
jb 0x10022db9
mov ecx, dword [ecx]
push esi
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.10001901
add esp, 8
push eax
call fcn.10001ec4
add esp, 8
lea ecx, [ebp - 0x11c]
call fcn.100024f5
lea ecx, [ebp - 0x50]
call fcn.10001a73
mov edi, dword [ebp - 0x6c]
jmp 0x10022ec3
mov edi, dword [ebp - 0x5c]
sub esi, edi
mov eax, 0x92492493
imul esi
add edx, esi
mov esi, dword [ebp - 0x70]
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 [esi]
call fcn.10001816
add esp, 0xc
test al, al
jne 0x10022e66
push 2
push 0x226
push str.E:ALIEN_PROJECTS_sentry_native_0.4.6externalcrashpadclientcrash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x11c]
call fcn.1000213a
push str.failed_to_write_records
push eax
mov byte [ebp - 4], 8
mov dword [ebp - 0x54], 0x20
call fcn.10001901
lea ecx, [ebp - 0x11c]
jmp 0x10022ebb
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
push dword [esi]
call fcn.10001816
add esp, 0xc
test al, al
jne 0x10022ec3
push 2
push 0x22b
push str.E:ALIEN_PROJECTS_sentry_native_0.4.6externalcrashpadclientcrash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x204]
call fcn.1000213a
push str.failed_to_write_string_table
push eax
mov byte [ebp - 4], 9
mov dword [ebp - 0x54], 0x40
call fcn.10001901
lea ecx, [ebp - 0x204]
add esp, 8
call fcn.100024f5
test edi, edi
je 0x10022ef5
mov ecx, dword [ebp - 0x60]
mov eax, 0x92492493
sub ecx, edi
imul ecx
add edx, ecx
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
call fcn.100011a4
add esp, 8
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x10022f0a
inc eax
push eax
push dword [ebp - 0x28]
call fcn.100011a4
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10001811
mov esp, ebp
pop ebp
ret
call fcn.10023400
int3