Function at 0x4985bd
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x51a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x90], esi
mov dword [ebp - 0x8c], ebx
call fcn.004980e9
test al, al
jne 0x498635
push 2
pop ecx
call fcn.0044bc30
test al, al
je 0x49861c
push ecx
push 0x1d4
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea ecx, [ebp - 0x150]
call fcn.0044bca0
mov edx, str.failed_to_rewind_to_write
lea ecx, [eax + 8]
call fcn.0041cec3
inc ebx
test bl, 1
je 0x498964
lea ecx, [ebp - 0x150]
call fcn.0044bd90
jmp 0x498964
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x49869c
push 2
pop ecx
call fcn.0044bc30
test al, al
je 0x498683
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 2
push 0x1db
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x158], eax
call fcn.0044bca0
mov edx, str.failed_to_truncate
lea ecx, [ebp - 0x148]
call fcn.0041cec3
push 2
pop ebx
test bl, 2
je 0x498964
lea ecx, [ebp - 0x158]
call fcn.0044c710
jmp 0x498964
mov eax, dword [esi + 0x24]
lea edi, [ebp - 0x28]
sub eax, dword [esi + 0x20]
cdq
push 0x68
pop ecx
idiv ecx
mov ecx, dword [esi]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x84], eax
xor eax, eax
stosd dword es:[edi], eax
push 0x10
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp - 0x84]
mov dword [ebp - 0x2c], 0x43504144
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], edi
call fcn.004bd5de
pop ecx
test al, al
jne 0x498718
push 2
pop ecx
call fcn.0044bc30
test al, al
je 0x498710
push ecx
push 0x1e7
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea ecx, [ebp - 0x150]
call fcn.0044bca0
mov edx, str.failed_to_write_header
lea ecx, [eax + 8]
call fcn.0041cec3
push 4
pop ebx
test bl, 4
jmp 0x49861f
test edi, edi
je 0x498964
xor eax, eax
mov dword [ebp - 8], 0xf
mov dword [ebp - 0xc], eax
mov ecx, eax
mov byte [ebp - 0x1c], al
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
test edi, edi
je 0x498765
cmp edi, 0x4924924
ja 0x498975
push edi
lea ecx, [ebp - 0x9c]
call fcn.00499a7b
mov ecx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0x90]
mov esi, dword [esi + 0x20]
mov edi, dword [eax + 0x24]
cmp esi, edi
je 0x4987ef
lea ecx, [eax + 4]
lea eax, [esi + 0x10]
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x88], eax
push ecx
push ecx
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
call fcn.0043f900
pop ecx
mov ecx, eax
call fcn.0043f0d0
lea ecx, [ebp - 0x44]
mov bl, al
call fcn.0043ef40
test bl, bl
jne 0x498853
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp - 0x80]
call fcn.00497b51
push eax
lea ecx, [ebp - 0x9c]
call fcn.00499863
mov eax, dword [ebp - 0x88]
add esi, 0x68
mov ecx, dword [ebp - 0x84]
add eax, 0x68
mov dword [ebp - 0x88], eax
cmp esi, edi
jne 0x498787
mov ecx, dword [ebp - 0x9c]
mov ebx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x98]
sub eax, ecx
push 0x38
cdq
pop esi
idiv esi
mov esi, dword [ebp - 0x90]
mov edx, ecx
imul eax, eax, 0x38
mov ecx, dword [esi]
push eax
call fcn.004bd5de
pop ecx
test al, al
jne 0x4988f1
push 2
pop ecx
call fcn.0044bc30
test al, al
je 0x49884b
push ecx
push 0x1ff
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea ecx, [ebp - 0x150]
call fcn.0044bca0
mov edx, str.failed_to_write_records
lea ecx, [eax + 8]
call fcn.0041cec3
push 0x20
pop ebx
test bl, 0x20
jmp 0x498940
push 2
pop ecx
call fcn.0044bc30
test al, al
je 0x4988c5
mov ebx, dword [ebp - 0x88]
cmp dword [ebx + 0x14], 8
jb 0x49886d
mov ebx, dword [ebx]
push 2
push 0x1f5
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea ecx, [ebp - 0x150]
call fcn.0044bca0
push ecx
push ecx
mov ecx, esp
mov edi, eax
push dword [ebp - 0x84]
call fcn.0041ad80
lea ecx, [ebp - 0x44]
call fcn.00437c30
pop ecx
pop ecx
lea ecx, [edi + 8]
mov edx, ebx
mov esi, eax
call fcn.0044c7c0
mov edx, str._expected_to_start_with
mov ecx, eax
call fcn.0041cec3
mov edx, esi
mov ecx, eax
call fcn.0041d02e
push 0x18
pop ebx
jmp 0x4988cb
mov ebx, dword [ebp - 0x8c]
test bl, 0x10
je 0x4988de
lea ecx, [ebp - 0x150]
and ebx, 0xffffffef
call fcn.0044bd90
test bl, 8
je 0x49894d
push 0
push 1
lea ecx, [ebp - 0x44]
call fcn.0041baed
jmp 0x49894d
cmp dword [ebp - 8], 0x10
lea edx, [ebp - 0x1c]
push dword [ebp - 0xc]
cmovae edx, dword [ebp - 0x1c]
mov ecx, dword [esi]
call fcn.004bd5de
pop ecx
test al, al
jne 0x49894d
push 2
pop ecx
call fcn.0044bc30
test al, al
je 0x49893d
push ecx
push 0x204
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
lea ecx, [ebp - 0x150]
call fcn.0044bca0
mov edx, str.failed_to_write_string_table
lea ecx, [eax + 8]
call fcn.0041cec3
push 0x40
pop ebx
test bl, 0x40
je 0x49894d
lea ecx, [ebp - 0x150]
call fcn.0044bd90
lea ecx, [ebp - 0x9c]
call fcn.004999e9
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.0041baed
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb8a3
mov esp, ebp
pop ebp
ret
call fcn.0041bf20
int3