Function at 0x48903c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x4f4284]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov esi, ecx
push edi
push eax
push eax
push eax
push dword [esi]
mov ebx, eax
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], ebx
call fcn.0048c457
add esp, 0x10
or eax, edx
je 0x4890c2
push 2
call fcn.00432780
pop ecx
test al, al
je 0x4890a9
push 2
push 0x1d3
push str.c:_bc_bwin_archive_src_third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea ecx, [ebp - 0x148]
call fcn.00431700
add eax, 8
push str.failed_to_rewind_to_write
push eax
call fcn.00415b8c
pop ecx
pop ecx
inc ebx
test bl, 1
je 0x4893dd
lea ecx, [ebp - 0x148]
call fcn.00431880
jmp 0x4893dd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x489123
push 2
call fcn.00432780
pop ecx
test al, al
je 0x48910a
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x1da
push str.c:_bc_bwin_archive_src_third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea ecx, [ebp - 0x150]
call fcn.00431820
add eax, 0x10
push str.failed_to_truncate
push eax
call fcn.00415b8c
pop ecx
pop ecx
push 2
pop ebx
test bl, 2
je 0x4893dd
lea ecx, [ebp - 0x150]
call fcn.00431af0
jmp 0x4893dd
mov eax, dword [esi + 0x24]
lea edi, [ebp - 0x28]
sub eax, dword [esi + 0x20]
cdq
push 0x68
pop ecx
idiv ecx
push 0x10
mov ecx, eax
xor eax, eax
stosd dword es:[edi], eax
mov dword [ebp - 0x80], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2c]
push eax
push dword [esi]
mov dword [ebp - 0x2c], 0x43504144
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], ecx
call fcn.0048bf87
add esp, 0xc
test al, al
jne 0x48919f
push 2
call fcn.00432780
pop ecx
test al, al
je 0x489197
push 2
push 0x1e6
push str.c:_bc_bwin_archive_src_third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea ecx, [ebp - 0x148]
call fcn.00431700
add eax, 8
push str.failed_to_write_header
push eax
call fcn.00415b8c
pop ecx
pop ecx
push 4
pop ebx
test bl, 4
jmp 0x4890ac
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x4893dd
xor ecx, ecx
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], ecx
mov byte [ebp - 0x1c], cl
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x90], ecx
lea ecx, [ebp - 0x98]
push eax
call fcn.004899cf
mov eax, dword [ebp - 0x8c]
mov esi, dword [esi + 0x20]
mov edi, dword [eax + 0x24]
cmp esi, edi
je 0x489253
lea ecx, [eax + 4]
lea eax, [esi + 0x10]
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x84], eax
push ecx
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.00438610
mov ecx, eax
call fcn.00437bf0
lea ecx, [ebp - 0x44]
mov bl, al
call fcn.00434920
test bl, bl
jne 0x4892c5
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp - 0x7c]
call fcn.004878af
push eax
lea ecx, [ebp - 0x98]
call fcn.0048982d
mov eax, dword [ebp - 0x84]
add esi, 0x68
mov ecx, dword [ebp - 0x80]
add eax, 0x68
mov dword [ebp - 0x84], eax
cmp esi, edi
jne 0x4891f6
mov ebx, dword [ebp - 0x88]
mov eax, dword [ebp - 0x94]
sub eax, dword [ebp - 0x98]
push 0x38
pop ecx
cdq
idiv ecx
mov esi, dword [ebp - 0x8c]
imul eax, eax, 0x38
push eax
push dword [ebp - 0x98]
push dword [esi]
call fcn.0048bf87
add esp, 0xc
test al, al
jne 0x489363
push 2
call fcn.00432780
pop ecx
test al, al
je 0x4892bd
push 2
push 0x1fe
push str.c:_bc_bwin_archive_src_third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea ecx, [ebp - 0x148]
call fcn.00431700
add eax, 8
push str.failed_to_write_records
push eax
call fcn.00415b8c
pop ecx
pop ecx
push 0x20
pop ebx
test bl, 0x20
jmp 0x4893b9
push 2
call fcn.00432780
pop ecx
test al, al
je 0x489337
mov edi, dword [ebp - 0x84]
cmp dword [edi + 0x14], 8
jb 0x4892df
mov edi, dword [edi]
push 2
push 0x1f4
push str.c:_bc_bwin_archive_src_third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea ecx, [ebp - 0x148]
call fcn.00431700
push ecx
push ecx
mov ecx, esp
mov esi, eax
push dword [ebp - 0x80]
call fcn.00415fd3
lea eax, [ebp - 0x44]
push eax
call fcn.004447c0
add esp, 0xc
push eax
push str._expected_to_start_with
lea eax, [esi + 8]
push edi
push eax
call fcn.00431db0
pop ecx
pop ecx
push eax
call fcn.00415b8c
pop ecx
pop ecx
push eax
call fcn.00415a50
pop ecx
pop ecx
push 0x18
pop ebx
jmp 0x48933d
mov ebx, dword [ebp - 0x88]
test bl, 0x10
je 0x489350
lea ecx, [ebp - 0x148]
and ebx, 0xffffffef
call fcn.00431880
test bl, 8
je 0x4893c6
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.0041b199
jmp 0x4893c6
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
push dword [ebp - 0xc]
cmovae eax, dword [ebp - 0x1c]
push eax
push dword [esi]
call fcn.0048bf87
add esp, 0xc
test al, al
jne 0x4893c6
push 2
call fcn.00432780
pop ecx
test al, al
je 0x4893b6
push 2
push 0x203
push str.c:_bc_bwin_archive_src_third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea ecx, [ebp - 0x148]
call fcn.00431700
add eax, 8
push str.failed_to_write_string_table
push eax
call fcn.00415b8c
pop ecx
pop ecx
push 0x40
pop ebx
test bl, 0x40
je 0x4893c6
lea ecx, [ebp - 0x148]
call fcn.00431880
lea ecx, [ebp - 0x98]
call fcn.00489768
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0041b199
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049d8a1
mov esp, ebp
pop ebp
ret