Function at 0x4a8cac
Capabilities:
Set file attributes

Disassembly:
push 0x50
mov eax, 0x569724
call fcn.0054f7e3
mov esi, ecx
mov edi, dword [ebp + 8]
push edi
call fcn.004a8967
push edi
lea ecx, [ebp - 0x28]
call fcn.0052d860
lea eax, [esi + 0x30]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, eax
mov dword [ebp - 0x50], eax
call fcn.004a9df3
cmp dword [edi + 0x14], 8
jb 0x4a8ce8
mov eax, dword [edi]
jmp 0x4a8cea
mov eax, edi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esi + 0x70]
mov dword [eax + 8], ebx
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x4a8d06
inc dword [ecx + 4]
mov eax, dword [esi + 0x58]
mov dword [esi + 0x58], ecx
xor ecx, ecx
inc ecx
mov dword [ebp - 0x48], ecx
test eax, eax
je 0x4a8d29
dec dword [eax + 4]
jne 0x4a8d29
mov edx, eax
test edx, edx
je 0x4a8d29
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax + 4]
cmp dword [esi + 0x28], ebx
jne 0x4a8d60
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00539b30
pop ecx
pop ecx
push eax
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.004aa2e7
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x41], al
mov byte [ebp - 4], bl
call fcn.00401c56
mov al, byte [ebp - 0x41]
jmp 0x4a8d70
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x30]
call fcn.004a9cee
test al, al
je 0x4a8eac
mov ecx, esi
call fcn.004a88aa
test al, al
jne 0x4a8ea5
lea edi, [esi + 0x30]
push str.VACUUM
mov ecx, edi
call fcn.004aa028
mov ecx, esi
call fcn.004a88aa
test al, al
jne 0x4a8ea5
push ecx
mov ecx, dword [esi + 0x74]
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x4a8db9
add ecx, 4
call fcn.00529160
lea ecx, [ebp - 0x54]
call fcn.0051e895
mov ecx, eax
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax]
lea esi, [eax + 0x10]
test eax, eax
jne 0x4a8dd4
mov esi, ebx
cmp dword [edi], 0
je 0x4a8de4
push dword [edi]
call fcn.004ebeaa
pop ecx
mov dword [ebp - 0x48], eax
push 0x583170
push ecx
mov ecx, edi
call fcn.004aa2d0
push eax
push ecx
push str.__Message
mov ecx, edi
call fcn.004aa29b
push eax
push str.__ErrorNO_
push dword [ebp - 0x48]
push str._INTERGRITY_CHECK__DATABASE__Failed__Code_
push ecx
push str._Error
push ecx
push 0x583148
push 0xda
push 0x57dcac
push ecx
push str.database_manager.cpp
push ecx
push str.___:__t
push esi
call fcn.00409e6d
add esp, 0xc
push eax
call fcn.00409e6d
add esp, 0xc
push eax
call fcn.00409e6d
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.00409e6d
add esp, 0xc
push eax
call fcn.00409e6d
add esp, 0xc
push eax
call fcn.00409e6d
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.00409e6d
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.00409e6d
add esp, 0xc
push eax
call fcn.00409e6d
add esp, 0xc
push eax
call fcn.00409e6d
pop ecx
pop ecx
lea ecx, [ebp - 0x54]
jmp 0x4a8fd3
mov bl, 1
jmp 0x4a8fe2
push ecx
mov ecx, dword [esi + 0x74]
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x4a8ec0
add ecx, 4
call fcn.00529160
lea ecx, [ebp - 0x5c]
call fcn.0051e895
mov ecx, eax
mov byte [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax]
test eax, eax
je 0x4a8ede
lea ecx, [eax + 0x10]
mov dword [ebp - 0x4c], ecx
jmp 0x4a8ee1
mov dword [ebp - 0x4c], ebx
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4a8ef2
push eax
call fcn.004ebeaa
pop ecx
mov dword [ebp - 0x48], eax
push str._OPEN_DATABASE__
push ecx
push str._Error
push ecx
push 0x583148
push 0xe3
push 0x57dcac
push ecx
push str.database_manager.cpp
push ecx
push str.___:__t
push dword [ebp - 0x4c]
call fcn.00409e6d
add esp, 0xc
push eax
call fcn.00409e6d
add esp, 0xc
push eax
call fcn.00409e6d
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.00409e6d
add esp, 0xc
push eax
call fcn.00409e6d
add esp, 0xc
push eax
call fcn.00409e6d
cmp dword [edi + 0x14], 8
pop ecx
pop ecx
jb 0x4a8f5f
mov edi, dword [edi]
push edi
push eax
call fcn.0052c2e0
mov edi, dword [ebp - 0x50]
mov esi, eax
pop ecx
pop ecx
push 0x583170
push ecx
mov ecx, edi
call fcn.004aa2d0
push eax
push ecx
push str.__Message_
mov ecx, edi
call fcn.004aa29b
push eax
push str.__ErrorNO_
push dword [ebp - 0x48]
push str.__Failed__Code_
push esi
call fcn.00409e6d
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.00409e6d
pop ecx
pop ecx
mov ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___int_]
push eax
call fcn.00409e6d
add esp, 0xc
push eax
call fcn.00409e6d
add esp, 0xc
push eax
call fcn.00409e6d
pop ecx
pop ecx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.0051e901
mov ecx, edi
call fcn.004a9df3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0052d8d0
mov al, bl
call fcn.0054f792
ret 4