Function at 0x4b1209
Capabilities:
Set file attributes

Disassembly:
push 0x50
mov eax, 0x57897a
call fcn.00561213
mov esi, ecx
mov edi, dword [ebp + 8]
push edi
call fcn.004b0ec4
push edi
lea ecx, [ebp - 0x28]
call fcn.0053cc70
lea eax, [esi + 0x30]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, eax
mov dword [ebp - 0x50], eax
call fcn.004b230e
cmp dword [edi + 0x14], 8
jb 0x4b1245
mov eax, dword [edi]
jmp 0x4b1247
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 0x4b1263
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 0x4b1286
dec dword [eax + 4]
jne 0x4b1286
mov edx, eax
test edx, edx
je 0x4b1286
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax + 4]
cmp dword [esi + 0x28], ebx
jne 0x4b12bd
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00548e80
pop ecx
pop ecx
push eax
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.004b2802
push ebx
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x41], al
mov byte [ebp - 4], bl
call fcn.00401d3f
mov al, byte [ebp - 0x41]
jmp 0x4b12ce
push ecx
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [esi + 0x30]
call fcn.004b2208
test al, al
je 0x4b140a
mov ecx, esi
call fcn.004b0e07
test al, al
jne 0x4b1403
lea edi, [esi + 0x30]
push str.VACUUM
mov ecx, edi
call fcn.004b2543
mov ecx, esi
call fcn.004b0e07
test al, al
jne 0x4b1403
push ecx
mov ecx, dword [esi + 0x74]
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x4b1317
add ecx, 4
call fcn.00538210
lea ecx, [ebp - 0x54]
call fcn.00531bc9
mov ecx, eax
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax]
lea esi, [eax + 0x10]
test eax, eax
jne 0x4b1332
mov esi, ebx
cmp dword [edi], 0
je 0x4b1342
push dword [edi]
call fcn.004f40e0
pop ecx
mov dword [ebp - 0x48], eax
push 0x593ef4
push ecx
mov ecx, edi
call fcn.004b27eb
push eax
push ecx
push str.__Message
mov ecx, edi
call fcn.004b27b6
push eax
push str.__ErrorNO_
push dword [ebp - 0x48]
push str._INTERGRITY_CHECK__DATABASE__Failed__Code_
push ecx
push str._Error
push ecx
push 0x593eb4
push 0xdb
push 0x58e11c
push ecx
push str.database_manager.cpp
push ecx
push str.___:
push esi
call fcn.00409f76
add esp, 0xc
push eax
call fcn.00409f76
add esp, 0xc
push eax
call fcn.00409f76
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.00409f76
add esp, 0xc
push eax
call fcn.00409f76
add esp, 0xc
push eax
call fcn.00409f76
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.00409f76
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.00409f76
add esp, 0xc
push eax
call fcn.00409f76
add esp, 0xc
push eax
call fcn.00409f76
pop ecx
pop ecx
lea ecx, [ebp - 0x54]
jmp 0x4b1531
mov bl, 1
jmp 0x4b1540
push ecx
mov ecx, dword [esi + 0x74]
mov eax, esp
mov dword [eax], ecx
test ecx, ecx
je 0x4b141e
add ecx, 4
call fcn.00538210
lea ecx, [ebp - 0x5c]
call fcn.00531bc9
mov ecx, eax
mov byte [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax]
test eax, eax
je 0x4b143c
lea ecx, [eax + 0x10]
mov dword [ebp - 0x4c], ecx
jmp 0x4b143f
mov dword [ebp - 0x4c], ebx
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4b1450
push eax
call fcn.004f40e0
pop ecx
mov dword [ebp - 0x48], eax
push str._OPEN_DATABASE__
push ecx
push str._Error
push ecx
push 0x593eb4
push 0xe4
push 0x58e11c
push ecx
push str.database_manager.cpp
push ecx
push str.___:
push dword [ebp - 0x4c]
call fcn.00409f76
add esp, 0xc
push eax
call fcn.00409f76
add esp, 0xc
push eax
call fcn.00409f76
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.00409f76
add esp, 0xc
push eax
call fcn.00409f76
add esp, 0xc
push eax
call fcn.00409f76
cmp dword [edi + 0x14], 8
pop ecx
pop ecx
jb 0x4b14bd
mov edi, dword [edi]
push edi
push eax
call fcn.0053b6d0
mov edi, dword [ebp - 0x50]
mov esi, eax
pop ecx
pop ecx
push 0x593ef4
push ecx
mov ecx, edi
call fcn.004b27eb
push eax
push ecx
push str.__Message_
mov ecx, edi
call fcn.004b27b6
push eax
push str.__ErrorNO_
push dword [ebp - 0x48]
push str.__Failed__Code_
push esi
call fcn.00409f76
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.00409f76
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.00409f76
add esp, 0xc
push eax
call fcn.00409f76
add esp, 0xc
push eax
call fcn.00409f76
pop ecx
pop ecx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], bl
call fcn.00531c35
mov ecx, edi
call fcn.004b230e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0053cce0
mov al, bl
call fcn.005611c2
ret 4