Function at 0x542c20
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x573cbb
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x5bfd00]
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 - 0xac], edi
push 0
push 0
mov dword [ebp - 0x8c], 0
push 0
push dword [edi]
call fcn.0054ea30
add esp, 0x10
or eax, edx
jne 0x542c77
mov al, 1
jmp 0x542c79
xor al, al
test al, al
jne 0x542cc8
push 2
push 0x203
push str.D:PROVINCEprovince.launcherBackendVendor_sentryexternalcrashpadclientcrash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x164]
call fcn.00559920
mov dword [ebp - 4], 4
mov dword [ebp - 0x8c], 1
push str.failed_to_rewind_to_write
push eax
call fcn.0042a880
add esp, 8
lea ecx, [ebp - 0x164]
call fcn.00559c90
jmp 0x5431c7
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x542d25
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x20a
push str.D:PROVINCEprovince.launcherBackendVendor_sentryexternalcrashpadclientcrash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x16c]
call fcn.00559b90
push str.failed_to_truncate
push eax
mov dword [ebp - 4], 5
mov dword [ebp - 0x8c], 2
call fcn.0042a880
add esp, 8
lea ecx, [ebp - 0x16c]
call fcn.00559e70
jmp 0x5431c7
mov ecx, dword [edi + 0x3c]
mov eax, 0x92492493
sub ecx, dword [edi + 0x38]
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.0054dad0
add esp, 0xc
test al, al
jne 0x542da1
push 2
push 0x216
push str.D:PROVINCEprovince.launcherBackendVendor_sentryexternalcrashpadclientcrash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x164]
call fcn.00559920
mov dword [ebp - 4], 6
mov dword [ebp - 0x8c], 4
push str.failed_to_write_header
jmp 0x542caf
test esi, esi
je 0x5431c7
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 7
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x94], 0
mov byte [ebp - 4], 8
cmp esi, 0x4924924
ja 0x5431e2
push esi
lea ecx, [ebp - 0x9c]
call fcn.00543380
push esi
push 0
push eax
lea ecx, [ebp - 0x9c]
call fcn.005431f0
mov esi, dword [edi + 0x38]
mov eax, dword [edi + 0x3c]
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xbc], eax
cmp esi, eax
je 0x5430b2
mov ecx, dword [ebp - 0x94]
lea eax, [edi + 4]
mov edi, dword [ebp - 0x98]
mov dword [ebp - 0xa8], eax
lea eax, [esi + 0x10]
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x8c], ecx
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
call fcn.00558a90
push dword [ebp - 0xa8]
mov ecx, eax
mov byte [ebp - 4], 9
call fcn.00558730
lea ecx, [ebp - 0x50]
mov byte [ebp - 0x8d], al
mov byte [ebp - 4], 8
call fcn.005586d0
cmp byte [ebp - 0x8d], 0
jne 0x542ff9
lea eax, [ebp - 0x28]
push eax
push esi
lea ecx, [ebp - 0x88]
call fcn.0053f8c0
mov ecx, dword [ebp - 0x8c]
mov dword [ebp - 0xb4], eax
cmp edi, ecx
je 0x542ed9
movups xmm0, xmmword [eax]
movups xmmword [edi], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [edi + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [edi + 0x20], xmm0
movq xmm0, qword [eax + 0x30]
movq qword [edi + 0x30], xmm0
add edi, 0x38
mov dword [ebp - 0x98], edi
jmp 0x542fd0
sub edi, dword [ebp - 0x9c]
mov eax, 0x92492493
imul edi
add edx, edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0xb0], eax
cmp eax, 0x4924924
je 0x5431e2
sub ecx, dword [ebp - 0x9c]
lea esi, [eax + 1]
mov eax, 0x92492493
mov dword [ebp - 0xb8], esi
imul ecx
mov eax, 0x4924924
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, ecx
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x542f3b
mov eax, 0x4924924
jmp 0x542f43
lea eax, [edx + ecx]
cmp eax, esi
cmovb eax, esi
push eax
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x8c], eax
call fcn.00543380
mov esi, eax
mov eax, dword [ebp - 0xb0]
push edi
push dword [ebp - 0x9c]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [ebp - 0xb4]
push esi
movups xmm0, xmmword [eax]
movups xmmword [esi + ecx*8], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esi + ecx*8 + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [esi + ecx*8 + 0x20], xmm0
movq xmm0, qword [eax + 0x30]
movq qword [esi + ecx*8 + 0x30], xmm0
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea ecx, [ebp - 0x9c]
push dword [ebp - 0x8c]
push dword [ebp - 0xb8]
push esi
call fcn.005431f0
mov ecx, dword [ebp - 0x94]
mov edi, dword [ebp - 0x98]
mov esi, dword [ebp - 0xa4]
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp - 0xa0]
add esi, 0x70
add eax, 0x70
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa0], eax
cmp esi, dword [ebp - 0xbc]
jne 0x542e50
jmp 0x5430b8
mov eax, dword [ebp - 0xa8]
sub esp, 8
mov edx, esp
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x54300e
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.0055aaa0
add esp, 0xc
mov esi, eax
push 2
push 0x224
push str.D:PROVINCEprovince.launcherBackendVendor_sentryexternalcrashpadclientcrash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x164]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x8c], 8
call fcn.00559920
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x8c], 0x18
cmp dword [ecx + 0x14], 8
jb 0x54306d
mov ecx, dword [ecx]
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.0042a880
mov ecx, dword [esi + 0x10]
add esp, 8
cmp dword [esi + 0x14], 0x10
jb 0x54308f
mov esi, dword [esi]
push ecx
push esi
push eax
call fcn.0053f440
add esp, 0xc
lea ecx, [ebp - 0x164]
call fcn.00559c90
lea ecx, [ebp - 0x50]
call fcn.00409f80
jmp 0x543186
mov edi, dword [ebp - 0x98]
mov esi, dword [ebp - 0x9c]
mov eax, 0x92492493
sub edi, esi
imul edi
add edx, edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 3
push ecx
push esi
mov esi, dword [ebp - 0xac]
push dword [esi]
call fcn.0054dad0
add esp, 0xc
test al, al
jne 0x543126
push 2
push 0x22e
push str.D:PROVINCEprovince.launcherBackendVendor_sentryexternalcrashpadclientcrash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x164]
call fcn.00559920
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x8c], 0x20
push str.failed_to_write_records
jmp 0x543172
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.0054dad0
add esp, 0xc
test al, al
jne 0x543186
push 2
push 0x233
push str.D:PROVINCEprovince.launcherBackendVendor_sentryexternalcrashpadclientcrash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x164]
call fcn.00559920
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x8c], 0x40
push str.failed_to_write_string_table
push eax
call fcn.0042a880
add esp, 8
lea ecx, [ebp - 0x164]
call fcn.00559c90
lea ecx, [ebp - 0x9c]
call fcn.005432e0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
jb 0x5431c7
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x5431bd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x5431bd
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.00563352
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.00563360
mov esp, ebp
pop ebp
ret
call fcn.00543350
int3