Function at 0x47318a
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x4ab09c]
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.0047c1c9
add esp, 0x10
or eax, edx
je 0x473210
push 2
call fcn.00401e30
pop ecx
test al, al
je 0x4731f7
push 2
push 0x1d2
push str.c:_nwjs_src_third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea ecx, [ebp - 0x148]
call fcn.00401ea0
add eax, 8
push str.failed_to_rewind_to_write
push eax
call fcn.00406a20
pop ecx
pop ecx
inc ebx
test bl, 1
je 0x47352b
lea ecx, [ebp - 0x148]
call fcn.00401f60
jmp 0x47352b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x473271
push 2
call fcn.00401e30
pop ecx
test al, al
je 0x473258
call sub.KERNEL32.dll_GetLastError
push eax
push 2
push 0x1d9
push str.c:_nwjs_src_third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea ecx, [ebp - 0x150]
call fcn.00402680
add eax, 0x10
push str.failed_to_truncate
push eax
call fcn.00406a20
pop ecx
pop ecx
push 2
pop ebx
test bl, 2
je 0x47352b
lea ecx, [ebp - 0x150]
call fcn.004026b0
jmp 0x47352b
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.00475306
add esp, 0xc
test al, al
jne 0x4732ed
push 2
call fcn.00401e30
pop ecx
test al, al
je 0x4732e5
push 2
push 0x1e5
push str.c:_nwjs_src_third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea ecx, [ebp - 0x148]
call fcn.00401ea0
add eax, 8
push str.failed_to_write_header
push eax
call fcn.00406a20
pop ecx
pop ecx
push 4
pop ebx
test bl, 4
jmp 0x4731fa
mov eax, dword [ebp - 0x80]
test eax, eax
je 0x47352b
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.00473b1d
mov eax, dword [ebp - 0x8c]
mov esi, dword [esi + 0x20]
mov edi, dword [eax + 0x24]
cmp esi, edi
je 0x4733a1
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.0040cb80
mov ecx, eax
call fcn.0040c760
lea ecx, [ebp - 0x44]
mov bl, al
call fcn.00402940
test bl, bl
jne 0x473413
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp - 0x7c]
call fcn.004719ee
push eax
lea ecx, [ebp - 0x98]
call fcn.0047397b
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 0x473344
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.00475306
add esp, 0xc
test al, al
jne 0x4734b1
push 2
call fcn.00401e30
pop ecx
test al, al
je 0x47340b
push 2
push 0x1fd
push str.c:_nwjs_src_third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea ecx, [ebp - 0x148]
call fcn.00401ea0
add eax, 8
push str.failed_to_write_records
push eax
call fcn.00406a20
pop ecx
pop ecx
push 0x20
pop ebx
test bl, 0x20
jmp 0x473507
push 2
call fcn.00401e30
pop ecx
test al, al
je 0x473485
mov edi, dword [ebp - 0x84]
cmp dword [edi + 0x14], 8
jb 0x47342d
mov edi, dword [edi]
push 2
push 0x1f3
push str.c:_nwjs_src_third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea ecx, [ebp - 0x148]
call fcn.00401ea0
push ecx
push ecx
mov ecx, esp
mov esi, eax
push dword [ebp - 0x80]
call fcn.004096e0
lea eax, [ebp - 0x44]
push eax
call fcn.00413640
add esp, 0xc
push eax
push str._expected_to_start_with
lea eax, [esi + 8]
push edi
push eax
call fcn.00402730
pop ecx
pop ecx
push eax
call fcn.00406a20
pop ecx
pop ecx
push eax
call fcn.00406c70
pop ecx
pop ecx
push 0x18
pop ebx
jmp 0x47348b
mov ebx, dword [ebp - 0x88]
test bl, 0x10
je 0x47349e
lea ecx, [ebp - 0x148]
and ebx, 0xffffffef
call fcn.00401f60
test bl, 8
je 0x473514
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.00404530
jmp 0x473514
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.00475306
add esp, 0xc
test al, al
jne 0x473514
push 2
call fcn.00401e30
pop ecx
test al, al
je 0x473504
push 2
push 0x202
push str.c:_nwjs_src_third_partycrashpadcrashpadclientcrash_report_database_win.cc
lea ecx, [ebp - 0x148]
call fcn.00401ea0
add eax, 8
push str.failed_to_write_string_table
push eax
call fcn.00406a20
pop ecx
pop ecx
push 0x40
pop ebx
test bl, 0x40
je 0x473514
lea ecx, [ebp - 0x148]
call fcn.00401f60
lea ecx, [ebp - 0x98]
call fcn.004738b6
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00404530
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045248d
mov esp, ebp
pop ebp
ret