Function at 0x47b558
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x170
mov eax, dword [0x54c03c]
xor eax, ebp
mov dword [esp + 0x168], eax
mov edi, dword [ecx]
test edi, edi
je 0x47b678
cmp byte [edi + 0x1c], 0
je 0x47b5e0
xor eax, eax
push eax
push eax
push eax
push dword [edi]
call fcn.004986c6
add esp, 0x10
or edx, eax
je 0x47b68e
push 2
call fcn.00414940
add esp, 4
test al, al
je 0x47b5e0
lea esi, [esp + 0x98]
mov ecx, esi
push 2
push 0x1d5
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.004149d0
lea eax, [esp + 0xa0]
push str.failed_to_rewind_to_write
push eax
call fcn.004015c0
add esp, 8
mov ecx, esi
call fcn.00413fc0
xor eax, eax
xor edx, edx
lea ecx, [esp + 0x150]
xorps xmm0, xmm0
mov dword [ecx + 0x10], eax
movaps xmmword [ecx], xmm0
dec edx
push ecx
push edx
push edx
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_UnlockFileEx]
test eax, eax
jne 0x47b64f
push 2
call fcn.00414940
add esp, 4
test al, al
je 0x47b64f
call sub.KERNEL32.dll_GetLastError
lea esi, [esp + 0x98]
mov ecx, esi
push eax
push 2
push 0x129
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00415cc0
lea eax, [esp + 0xa8]
push 0x50c21e
push eax
call fcn.004015c0
add esp, 8
mov ecx, esi
call fcn.00415de0
lea ecx, [edi + 0x20]
call fcn.0047ccd2
lea ecx, [edi + 4]
call fcn.0040fef0
mov eax, dword [edi]
cmp eax, 0xffffffff
je 0x47b66f
push eax
call fcn.00494b84
add esp, 4
push edi
call fcn.004d4584
add esp, 4
mov ecx, dword [esp + 0x168]
xor ecx, ebp
call fcn.004d45c8
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x47b74d
mov ecx, edi
mov edi, dword [edi + 0x24]
sub edi, dword [ecx + 0x20]
mov eax, edi
sar eax, 3
imul esi, eax, 0xc4ec4ec5
lea eax, [esp + 0x48]
mov dword [eax + 0xc], 0
mov dword [eax], 0x43504144
mov dword [eax + 4], 1
mov dword [eax + 8], esi
push 0x10
push eax
mov dword [esp + 0x18], ecx
push dword [ecx]
call fcn.00498a2b
add esp, 0xc
test al, al
je 0x47b7a0
test edi, edi
mov edi, dword [esp + 0x10]
je 0x47b5e0
cmp esi, 0x4924925
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], 0
mov byte [esp + 0x80], 0
jae 0x47bcf9
imul esi, esi, 0x38
cmp esi, 0x1000
jb 0x47b7e1
xor ecx, ecx
lea eax, [esi + 0x23]
dec ecx
cmp esi, 0xffffffdc
cmovbe ecx, eax
push ecx
call fcn.004d4554
add esp, 4
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x47b7ec
push 2
call fcn.00414940
add esp, 4
test al, al
je 0x47b5e0
call sub.KERNEL32.dll_GetLastError
lea esi, [esp + 0x98]
mov ecx, esi
push eax
push 2
push 0x1dc
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.00415cc0
lea eax, [esp + 0xa8]
push str.failed_to_truncate
push eax
call fcn.004015c0
add esp, 8
mov ecx, esi
call fcn.00415de0
jmp 0x47b5e0
push 2
call fcn.00414940
add esp, 4
mov edi, dword [esp + 0x10]
test al, al
je 0x47b5e0
lea esi, [esp + 0x98]
mov ecx, esi
push 2
push 0x1e8
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.004149d0
lea eax, [esp + 0xa0]
push str.failed_to_write_header
jmp 0x47b5d0
push esi
call fcn.004d4554
add esp, 4
mov ecx, eax
mov eax, dword [edi + 0x24]
mov ebx, dword [edi + 0x20]
add esi, ecx
mov edx, esi
cmp ebx, eax
mov dword [esp + 0x44], eax
je 0x47bb3f
lea eax, [edi + 4]
mov edi, ecx
mov dword [esp + 4], ecx
mov dword [esp + 0x20], eax
lea esi, [ebx + 0x10]
lea eax, [esp + 0x68]
mov dword [esp + 0x14], edx
mov ecx, esi
push eax
call fcn.00410ab0
lea ecx, [esp + 0x68]
push dword [esp + 0x20]
call fcn.00410210
lea ecx, [esp + 0x68]
mov byte [esp + 8], al
call fcn.0040fef0
cmp byte [esp + 8], 0
jne 0x47bbbb
movsd xmm0, qword [ebx]
movsd xmm1, qword [ebx + 8]
mov ecx, esi
lea eax, [esp + 0x150]
mov esi, eax
movsd qword [esp + 0x60], xmm1
movsd qword [esp + 0x58], xmm0
push eax
call fcn.00410fa0
mov eax, dword [esp + 0x160]
cmp dword [esp + 0x164], 7
mov ecx, esi
jbe 0x47b887
mov ecx, dword [esp + 0x150]
push eax
push ecx
lea esi, [esp + 0xa0]
push esi
call fcn.004209d0
add esp, 0xc
lea eax, [esp + 0x80]
mov edx, esi
mov ecx, eax
call fcn.0047cd5a
mov ecx, esi
mov dword [esp + 8], eax
call fcn.00401b04
lea ecx, [esp + 0x150]
call fcn.0040fef0
lea edx, [ebx + 0x28]
lea ecx, [esp + 0x80]
call fcn.0047cd5a
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x40]
mov edx, dword [ebx + 0x58]
mov esi, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
mov dword [esp + 0x34], eax
mov eax, dword [ebx + 0x44]
mov dword [esp + 0x28], edx
mov edx, dword [ebx + 0x60]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x30], eax
mov al, byte [ebx + 0x5c]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x14]
add al, al
or al, byte [ebx + 0x48]
cmp edx, edi
mov word [esp + 0x9c], 0
mov dword [esp + 0x98], 0
mov byte [esp + 0x9e], 0
je 0x47b99a
movsd xmm0, qword [esp + 0x58]
movsd xmm1, qword [esp + 0x60]
mov esi, dword [esp + 8]
movsd qword [edi + 8], xmm1
movsd qword [edi], xmm0
mov dword [edi + 0x10], esi
mov esi, dword [esp + 0x18]
mov dword [edi + 0x14], esi
mov esi, dword [esp + 0x34]
mov dword [edi + 0x18], esi
mov esi, dword [esp + 0x30]
mov dword [edi + 0x1c], esi
mov dword [edi + 0x20], ecx
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x2c]
mov dword [edi + 0x24], ecx
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], esi
mov byte [edi + 0x30], al
mov al, byte [esp + 0x9e]
mov byte [edi + 0x37], al
movzx eax, word [esp + 0x9c]
mov word [edi + 0x35], ax
mov eax, dword [esp + 0x98]
mov dword [edi + 0x31], eax
add edi, 0x38
jmp 0x47bb2a
mov byte [esp + 0xf], al
mov eax, edx
mov dword [esp + 0x3c], ecx
mov ecx, 0x4924924
sub eax, dword [esp + 4]
mov dword [esp + 0x38], eax
sar eax, 3
imul edi, eax, 0xb6db6db7
mov eax, edi
lea esi, [edi + 1]
shr eax, 1
mov dword [esp + 0x24], esi
sub ecx, eax
cmp edi, ecx
mov ecx, esi
ja 0x47b9da
mov ecx, dword [esp + 0x24]
add eax, edi
cmp eax, ecx
cmovb eax, ecx
mov ecx, eax
imul esi, ecx, 0x38
cmp ecx, 0x4924924
mov ecx, 0xffffffff
mov dword [esp + 0x40], ebx
mov eax, esi
cmova eax, ecx
cmp eax, 0x1000
jb 0x47ba19
cmp eax, 0xffffffdc
lea eax, [eax + 0x23]
cmova eax, ecx
push eax
call fcn.004d4554
mov ebx, dword [esp + 0x18]
add esp, 4
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x47ba32
test eax, eax
je 0x47ba2e
push eax
call fcn.004d4554
mov ebx, dword [esp + 0x18]
add esp, 4
mov ecx, eax
jmp 0x47ba32
xor ecx, ecx
mov ebx, edx
movsd xmm0, qword [esp + 0x58]
movsd xmm1, qword [esp + 0x60]
imul eax, edi, 0x38
mov edi, ecx
mov edx, dword [esp + 0x18]
movsd qword [ecx + eax + 8], xmm1
movsd qword [ecx + eax], xmm0
mov ecx, dword [esp + 8]
mov dword [esp + 8], edi
mov dword [edi + eax + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword [edi + eax + 0x14], edx
mov dword [edi + eax + 0x1c], ecx
mov ecx, dword [esp + 0x34]
mov dword [edi + eax + 0x18], ecx
mov ecx, dword [esp + 0x1c]
mov dword [edi + eax + 0x24], ecx
mov ecx, dword [esp + 0x3c]
mov dword [edi + eax + 0x20], ecx
mov ecx, dword [esp + 0x28]
mov dword [edi + eax + 0x28], ecx
mov ecx, dword [esp + 0x2c]
mov dword [edi + eax + 0x2c], ecx
mov cl, byte [esp + 0xf]
mov byte [edi + eax + 0x30], cl
mov cl, byte [esp + 0x9e]
mov byte [edi + eax + 0x37], cl
movzx ecx, word [esp + 0x9c]
mov word [edi + eax + 0x35], cx
mov ecx, dword [esp + 0x98]
mov dword [edi + eax + 0x31], ecx
mov ecx, dword [esp + 4]
cmp ecx, ebx
je 0x47bafd
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 8]
xor eax, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
lea edi, [edx + eax]
lea esi, [ecx + eax]
mov ecx, 0xe
add eax, 0x38
rep movsd dword es:[edi], dword [esi]
cmp ebx, eax
jne 0x47bad7
mov ecx, dword [esp + 4]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
jmp 0x47baff
mov ecx, ebx
test ecx, ecx
je 0x47bb13
sub ebx, ecx
sar ebx, 3
imul edx, ebx, 0xb6db6db7
call fcn.0047cd2a
mov eax, dword [esp + 8]
imul edi, dword [esp + 0x24], 0x38
mov ebx, dword [esp + 0x40]
add esi, eax
add edi, eax
mov dword [esp + 4], eax
mov edx, esi
add ebx, 0x68
cmp ebx, dword [esp + 0x44]
jne 0x47b80f
mov ecx, dword [esp + 4]
mov ebx, edx
jmp 0x47bb43
mov ebx, edx
mov edi, ecx
sub edi, ecx
push edi
mov dword [esp + 8], ecx
push ecx
mov edi, dword [esp + 0x18]
push dword [edi]
call fcn.00498a2b
add esp, 0xc
test al, al
je 0x47bb7e
mov eax, dword [esp + 0x90]
cmp dword [esp + 0x94], 0xf
jbe 0x47bc75
mov ecx, dword [esp + 0x80]
jmp 0x47bc7c
push 2
call fcn.00414940
add esp, 4
test al, al
je 0x47bcd0
lea esi, [esp + 0x98]
mov ecx, esi
push 2
push 0x200
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.004149d0
lea eax, [esp + 0xa0]
push str.failed_to_write_records
jmp 0x47bcc0
push 2
call fcn.00414940
add esp, 4
test al, al
je 0x47bc6b
lea ecx, [esp + 0x98]
push 2
push 0x1f6
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.004149d0
mov ecx, 8
mov edi, dword [esp + 0x10]
lea eax, [esp + 0xa0]
cmp dword [ebx + 0x24], ecx
jb 0x47bbfc
mov esi, dword [esi]
push esi
push eax
call fcn.00415ea0
add esp, 8
push str._expected_to_start_with
push eax
call fcn.004015c0
add esp, 8
mov esi, eax
mov eax, dword [edi + 0x14]
cmp dword [edi + 0x18], 7
jbe 0x47bc26
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], ecx
lea edi, [esp + 0x150]
push eax
push dword [esp + 0x24]
push edi
call fcn.004209d0
add esp, 0xc
mov eax, dword [edi + 0x10]
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x47bc4d
mov ecx, dword [esp + 0x150]
push eax
push ecx
push esi
call fcn.00402d73
add esp, 0xc
mov ecx, edi
call fcn.00401b04
lea ecx, [esp + 0x98]
call fcn.00413fc0
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
jmp 0x47bcd0
lea ecx, [esp + 0x80]
push eax
push ecx
push dword [edi]
call fcn.00498a2b
add esp, 0xc
test al, al
jne 0x47bcd0
push 2
call fcn.00414940
add esp, 4
test al, al
je 0x47bcd0
lea esi, [esp + 0x98]
mov ecx, esi
push 2
push 0x205
push str..._.._third_party_crashpad_crashpad_client_crash_report_database_win.cc
call fcn.004149d0
lea eax, [esp + 0xa0]
push str.failed_to_write_string_table
push eax
call fcn.004015c0
add esp, 8
mov ecx, esi
call fcn.00413fc0
mov ecx, dword [esp + 4]
test ecx, ecx
je 0x47bce8
sub ebx, ecx
sar ebx, 3
imul edx, ebx, 0xb6db6db7
call fcn.0047cd2a
lea ecx, [esp + 0x80]
call fcn.00401b04
jmp 0x47b5e0
call fcn.00404900
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x54c03c]
lea esi, [ebp - 0x34]
mov edx, esi
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.0047aaaa
mov ecx, dword [esi]
test ecx, ecx
je 0x47bd8b
mov eax, dword [ebp + 8]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
movsd qword [ebp - 0x28], xmm1
movsd qword [ebp - 0x30], xmm0
mov esi, dword [ecx + 0x20]
mov ebx, dword [ecx + 0x24]
movsd xmm0, qword [ebp - 0x30]
movsd xmm1, qword [ebp - 0x28]
cmp esi, ebx
movsd qword [ebp - 0x18], xmm1
movsd qword [ebp - 0x20], xmm0
je 0x47bd83
lea edi, [ebp - 0x20]
mov dword [ebp - 0x38], ecx
mov ecx, esi
push edi
call fcn.00498bf0
test al, al
jne 0x47bd70
add esi, 0x68
cmp ebx, esi
jne 0x47bd5b
mov esi, ebx
mov eax, dword [ebp - 0x38]
cmp esi, dword [eax + 0x24]
je 0x47bd83
cmp dword [esi + 0x24], 7
jbe 0x47bd95
mov eax, dword [esi + 0x10]
jmp 0x47bd98
xor edi, edi
inc edi
jmp 0x47be1e
mov edi, 3
jmp 0x47be1e
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
xor edi, edi
inc edi
cmp eax, 0xffffffff
cmovne edi, ecx
test edi, edi
jne 0x47be1e
mov edi, dword [ebp + 0xc]
movsd xmm0, qword [esi]
movsd xmm1, qword [esi + 8]
lea eax, [esi + 0x10]
movsd qword [edi + 8], xmm1
movsd qword [edi], xmm0
lea ecx, [edi + 0x10]
push eax
call fcn.0040ff50
cmp esi, edi
je 0x47bdf4
mov eax, dword [esi + 0x38]
cmp dword [esi + 0x3c], 0xf
lea ecx, [edi + 0x28]
jbe 0x47bdea
mov edx, dword [esi + 0x28]
jmp 0x47bded
lea edx, [esi + 0x28]
push eax
push edx
call fcn.00401ec4
movsd xmm0, qword [esi + 0x55]
movsd qword [edi + 0x55], xmm0
movsd xmm0, qword [esi + 0x50]
movsd qword [edi + 0x50], xmm0
movsd xmm0, qword [esi + 0x40]
movsd xmm1, qword [esi + 0x48]
movsd qword [edi + 0x48], xmm1
movsd qword [edi + 0x40], xmm0
xor edi, edi
lea ecx, [ebp - 0x34]
call fcn.0047b558
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d45c8
mov eax, edi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret 8