Function at 0x540090
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56c347
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x5ca018]
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 - 0x90], edi
mov dword [ebp - 0x6c], 0
call fcn.0053fde0
test al, al
jne 0x54011d
push 2
push 0x1e3
push str.T:p4PatcherExternalLibraries_sentry_native0.3.1externalcrashpadclientcrash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x1a4]
call fcn.00403189
mov dword [ebp - 4], 0
mov dword [ebp - 0x6c], 1
push str.failed_to_rewind_to_write
push eax
call fcn.0040533a
add esp, 8
lea ecx, [ebp - 0x1a4]
call fcn.004082e7
jmp 0x54090d
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x540177
call fcn.00401b13
push eax
push 2
push 0x1ea
push str.T:p4PatcherExternalLibraries_sentry_native0.3.1externalcrashpadclientcrash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x1ac]
call fcn.00405484
push str.failed_to_truncate
push eax
mov dword [ebp - 4], 1
mov dword [ebp - 0x6c], 2
call fcn.0040533a
add esp, 8
lea ecx, [ebp - 0x1ac]
call fcn.004042b9
jmp 0x54090d
mov ecx, dword [edi + 0x24]
mov eax, 0x92492493
sub ecx, dword [edi + 0x20]
imul ecx
push 0x10
add edx, ecx
mov dword [ebp - 0x44], 0
sar edx, 6
lea eax, [ebp - 0x50]
mov esi, edx
mov dword [ebp - 0x50], 0x43504144
push eax
push dword [edi]
shr esi, 0x1f
add esi, edx
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x48], esi
call fcn.00409205
add esp, 0xc
test al, al
jne 0x5401f6
push 2
push 0x1f6
push str.T:p4PatcherExternalLibraries_sentry_native0.3.1externalcrashpadclientcrash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x1a4]
call fcn.00403189
mov dword [ebp - 4], 2
mov dword [ebp - 0x6c], 4
push str.failed_to_write_header
jmp 0x540104
test esi, esi
je 0x54090d
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 3
mov dword [ebp - 0xa4], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
mov byte [ebp - 4], 4
cmp esi, 0x4924924
ja 0x540928
push esi
lea ecx, [ebp - 0xa4]
call fcn.00541010
mov edx, dword [ebp - 0x90]
mov edi, eax
mov eax, dword [ebp - 0x88]
mov esi, edi
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa0], esi
lea ecx, [eax*8]
sub ecx, eax
lea eax, [edi + ecx*8]
mov ecx, dword [edx + 0x24]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x9c], eax
mov eax, dword [edx + 0x20]
mov dword [ebp - 0xa8], ecx
mov ecx, edi
mov dword [ebp - 0x78], eax
cmp eax, dword [ebp - 0xa8]
je 0x5405f1
lea ecx, [edx + 4]
lea edx, [eax + 0x10]
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x80], edx
nop
lea eax, [ebp - 0x40]
mov ecx, edx
push eax
call fcn.00403b7f
push dword [ebp - 0x88]
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00408747
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x6d], al
mov byte [ebp - 4], 4
call fcn.0040518c
cmp byte [ebp - 0x6d], 0
jne 0x540669
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x80]
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x68]
push eax
movups xmmword [ebp - 0xfc], xmm0
call fcn.0040385f
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 0xa
jb 0x54030c
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xb4], ecx
push eax
call fcn.00402351
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xb
push eax
call fcn.0053c0d0
mov edx, dword [ebp - 0x2c]
add esp, 0x10
mov dword [ebp - 0x84], eax
mov byte [ebp - 4], 0xa
cmp edx, 0x10
jb 0x540380
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x540370
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x54092d
push edx
push ecx
call fcn.00406177
mov eax, dword [ebp - 0x84]
add esp, 8
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 0xdc], eax
mov byte [ebp - 4], 4
call fcn.0040518c
mov eax, dword [ebp - 0x80]
add eax, 0x18
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0053c0d0
mov edx, dword [ebp - 0x80]
add esp, 8
mov dword [ebp - 0xd8], eax
mov eax, dword [edx + 0x30]
mov cl, byte [edx + 0x4c]
mov dword [ebp - 0xd4], eax
neg cl
mov eax, dword [edx + 0x34]
mov dword [ebp - 0xd0], eax
sbb cl, cl
mov eax, dword [edx + 0x40]
and cl, 2
cmp byte [edx + 0x38], 0
mov dword [ebp - 0xcc], eax
mov eax, dword [edx + 0x44]
mov dword [ebp - 0xc8], eax
mov eax, dword [edx + 0x48]
mov dword [ebp - 0xc4], eax
mov eax, dword [edx + 0x58]
mov dword [ebp - 0xc0], eax
setne al
or cl, al
xor eax, eax
mov byte [ebp - 0xbc], cl
mov dword [ebp - 0xbb], eax
mov word [ebp - 0xb7], ax
mov byte [ebp - 0xb5], al
cmp esi, dword [ebp - 0x74]
je 0x54045e
movups xmm0, xmmword [ebp - 0xfc]
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebp - 0xdc]
movups xmmword [esi + 0x10], xmm0
movups xmm0, xmmword [ebp - 0xcc]
movups xmmword [esi + 0x20], xmm0
movq xmm0, qword [ebp - 0xbc]
movq qword [esi + 0x30], xmm0
add esi, 0x38
jmp 0x5405ce
mov ecx, esi
mov eax, 0x92492493
sub ecx, edi
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x94], eax
cmp eax, 0x4924924
je 0x540928
mov ecx, dword [ebp - 0x74]
inc eax
sub ecx, edi
mov dword [ebp - 0x6c], eax
mov eax, 0x92492493
imul ecx
mov eax, 0x4924924
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, ecx
mov dword [ebp - 0x7c], ecx
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x5404c1
mov ecx, dword [ebp - 0x6c]
mov eax, ecx
mov dword [ebp - 0x84], ecx
jmp 0x5404d1
lea eax, [ecx + edx]
cmp eax, dword [ebp - 0x6c]
cmovb eax, dword [ebp - 0x6c]
mov dword [ebp - 0x84], eax
push eax
lea ecx, [ebp - 0xa4]
call fcn.00541010
mov edx, dword [ebp - 0x94]
movups xmm0, xmmword [ebp - 0xfc]
mov dword [ebp - 0x74], eax
lea ecx, [edx*8]
sub ecx, edx
mov edx, eax
mov eax, edi
movups xmmword [edx + ecx*8], xmm0
movups xmm0, xmmword [ebp - 0xdc]
movups xmmword [edx + ecx*8 + 0x10], xmm0
movups xmm0, xmmword [ebp - 0xcc]
movups xmmword [edx + ecx*8 + 0x20], xmm0
movq xmm0, qword [ebp - 0xbc]
movq qword [edx + ecx*8 + 0x30], xmm0
cmp eax, esi
je 0x54055b
mov ecx, edx
sub ecx, edi
nop dword [eax]
movups xmm0, xmmword [eax]
movups xmmword [ecx + eax], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [ecx + eax + 0x10], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [ecx + eax + 0x20], xmm0
movq xmm0, qword [eax + 0x30]
movq qword [ecx + eax + 0x30], xmm0
add eax, 0x38
cmp eax, esi
jne 0x540530
test edi, edi
je 0x540599
mov eax, dword [ebp - 0x7c]
lea ecx, [eax*8]
sub ecx, eax
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x54058c
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x54092d
push ecx
push edi
call fcn.00406177
mov edx, dword [ebp - 0x74]
add esp, 8
mov ecx, dword [ebp - 0x6c]
mov edi, edx
mov dword [ebp - 0xa4], edi
lea eax, [ecx*8]
sub eax, ecx
mov ecx, dword [ebp - 0x84]
lea esi, [edx + eax*8]
lea eax, [ecx*8]
sub eax, ecx
lea eax, [edx + eax*8]
mov edx, dword [ebp - 0x80]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp - 0x78]
add edx, 0x70
add eax, 0x70
mov dword [ebp - 0xa0], esi
mov ecx, esi
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x80], edx
cmp eax, dword [ebp - 0xa8]
jne 0x5402b0
sub ecx, edi
mov esi, dword [ebp - 0x90]
mov eax, 0x92492493
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
push dword [esi]
call fcn.00409205
add esp, 0xc
test al, al
jne 0x540834
push 2
push 0x20e
push str.T:p4PatcherExternalLibraries_sentry_native0.3.1externalcrashpadclientcrash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x1a4]
call fcn.00403189
push str.failed_to_write_records
push eax
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x6c], 0x20
call fcn.0040533a
lea ecx, [ebp - 0x1a4]
jmp 0x540889
mov ecx, dword [ebp - 0x88]
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x540679
mov eax, dword [ecx]
mov dword [ebp - 0xb4], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0xb0], eax
lea eax, [ebp - 0xb4]
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.00402351
add esp, 8
mov dword [ebp - 0x90], eax
push 2
push 0x204
push str.T:p4PatcherExternalLibraries_sentry_native0.3.1externalcrashpadclientcrash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x1a4]
mov byte [ebp - 4], 6
mov dword [ebp - 0x6c], 8
call fcn.00403189
mov dword [ebp - 0x78], eax
mov esi, dword [ebp - 0x80]
mov dword [ebp - 4], 7
mov dword [ebp - 0x6c], 0x18
cmp dword [esi + 0x14], 8
jb 0x5406e4
mov esi, dword [esi]
push eax
lea ecx, [ebp - 0xac]
mov dword [ebp - 0x88], 0
call fcn.00408c38
cmp byte [ebp - 0xa8], 0
mov edx, 4
mov dword [ebp - 4], 8
je 0x5407b6
mov ecx, dword [ebp - 0x78]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx + 0x30]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x94], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 9
push eax
call fcn.00406f7d
mov ecx, dword [ebp - 0x7c]
add esp, 4
mov dword [ebp - 0x94], eax
mov byte [ebp - 4], 8
test ecx, ecx
je 0x540767
mov edx, dword [ecx]
mov edx, dword [edx + 8]
call edx
test eax, eax
je 0x540767
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0x78]
mov edx, dword [ebp - 0x94]
push esi
mov byte [ebp - 0x8c], 0
mov eax, dword [ecx]
mov eax, dword [eax + 4]
add ecx, eax
mov al, byte [ecx + 0x40]
mov byte [ebp - 0x7c], al
push dword [ebp - 0x7c]
mov eax, dword [edx]
push ecx
push dword [ecx + 0x38]
lea ecx, [ebp - 0x98]
push dword [ebp - 0x8c]
push ecx
mov ecx, edx
call dword [eax + 0xc]
xor eax, eax
mov edx, 4
cmp byte [ebp - 0x98], al
cmovne eax, edx
mov dword [ebp - 0x88], eax
mov esi, dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0
push 0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + esi + 0xc]
add ecx, esi
or eax, dword [ebp - 0x88]
cmp dword [ecx + 0x38], 0
cmovne edx, dword [ebp - 0x7c]
or edx, eax
push edx
call fcn.00406ce4
lea ecx, [ebp - 0xac]
mov byte [ebp - 4], 7
call fcn.004032e7
push str._expected_to_start_with
push esi
call fcn.0040533a
mov edx, eax
add esp, 8
mov eax, dword [ebp - 0x90]
mov ecx, eax
cmp dword [eax + 0x14], 0x10
jb 0x540812
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
push edx
call fcn.0040299b
add esp, 0xc
lea ecx, [ebp - 0x1a4]
call fcn.004082e7
lea ecx, [ebp - 0x68]
call fcn.00405c40
jmp 0x540891
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.00409205
add esp, 0xc
test al, al
jne 0x540891
push 2
push 0x213
push str.T:p4PatcherExternalLibraries_sentry_native0.3.1externalcrashpadclientcrash_report_database_win.cc
push str.void___thiscall_crashpad::_anonymous_namespace::Metadata::Write_void_
lea ecx, [ebp - 0x254]
call fcn.00403189
push str.failed_to_write_string_table
push eax
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x6c], 0x40
call fcn.0040533a
lea ecx, [ebp - 0x254]
add esp, 8
call fcn.004082e7
test edi, edi
je 0x5408dd
mov ecx, dword [ebp - 0x74]
mov eax, 0x92492493
sub ecx, edi
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax*8]
sub ecx, eax
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x5408d3
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x54092d
push ecx
push edi
call fcn.00406177
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x54090d
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x540903
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x54092d
push edx
push ecx
call fcn.00406177
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.00405a92
mov esp, ebp
pop ebp
ret
call fcn.00540fb0
call fcn.0040837d
int3