Function at 0x4b0204
Capabilities:
Set file attributes
Write file on windows

Disassembly:
push 0x528
mov eax, 0x552354
call fcn.0053655e
mov edi, dword [ebp + 8]
call fcn.00403d03
mov al, byte [eax + 0x16]
test al, al
je 0x4b0229
xor al, al
jmp 0x4b04aa
xor ebx, ebx
push 0x21
pop eax
mov esi, ebx
mov word [ebp - 0x478], ax
mov dword [ebp - 0x480], esi
mov dword [ebp - 0x47c], ebx
push 0x5c
pop eax
mov dword [ebp - 4], ebx
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
cmp dword [edi + 0x14], 8
mov eax, edi
mov byte [ebp - 4], 1
jb 0x4b0261
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x474]
call fcn.0040c0e1
test eax, eax
je 0x4b0323
cmp dword [ebp - 0x14], 0
je 0x4b0289
mov eax, dword [ebp - 0x474]
shr eax, 4
and eax, 1
jmp 0x4b028b
mov eax, ebx
lea ecx, [ebp - 0x534]
push 1
push 3
test eax, eax
je 0x4b02c8
call fcn.00404da4
lea eax, [ebp - 0x524]
mov byte [ebp - 4], 2
push str.Error:_Directory_exists
push eax
call fcn.0040b103
pop ecx
pop ecx
lea eax, [ebp - 0x534]
push eax
push str.Quarantine::setProtection
push 0x31d
jmp 0x4b02f5
call fcn.00404da4
lea eax, [ebp - 0x524]
mov byte [ebp - 4], 3
push str.Error:_File_already_exists
push eax
call fcn.0040b103
pop ecx
pop ecx
lea eax, [ebp - 0x534]
push eax
push str.Quarantine::setProtection
push 0x322
push str.C:workprojects_rubilnik_srccoreQuarantine.cpp
push ebx
call fcn.00407c20
mov ecx, eax
call fcn.00412039
lea ecx, [ebp - 0x4cc]
call fcn.00404fea
lea ecx, [ebp - 0x4cc]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
jmp 0x4b0492
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4b032d
mov eax, dword [edi]
push ebx
push ebx
push 0x80
push 2
push 2
push 0x40000000
push eax
lea ecx, [ebp - 0x480]
call fcn.00405781
mov esi, dword [ebp - 0x480]
test eax, eax
jne 0x4b0492
push ebx
lea eax, [ebp - 0x484]
push eax
push 1
lea eax, [ebp - 0x478]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4b0378
call fcn.00405442
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4b0382
mov eax, dword [edi]
push 0x11113
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4b0411
push 1
push 3
lea ecx, [ebp - 0x534]
call fcn.00404da4
push edi
lea eax, [ebp - 0x524]
mov byte [ebp - 4], 4
push str.Error:_SetFileAttributes
push eax
call fcn.0040b103
pop ecx
pop ecx
push eax
call fcn.0040a098
pop ecx
pop ecx
lea eax, [ebp - 0x534]
push eax
push str.Quarantine::setProtection
push 0x32e
push str.C:workprojects_rubilnik_srccoreQuarantine.cpp
push ebx
call fcn.00407c20
mov ecx, eax
call fcn.00412039
lea ecx, [ebp - 0x4cc]
call fcn.00404fea
lea ecx, [ebp - 0x4cc]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
test esi, esi
je 0x4b0492
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
jmp 0x4b0492
cmp byte [ebp + 0xc], 0
je 0x4b0483
push edi
call fcn.004a0560
pop ecx
cmp eax, 2
jne 0x4b0483
push 1
push 3
lea ecx, [ebp - 0x534]
call fcn.00404da4
lea eax, [ebp - 0x524]
mov byte [ebp - 4], 5
push str.Error:_Setting_security
push eax
call fcn.0040b103
pop ecx
pop ecx
lea eax, [ebp - 0x534]
push eax
push str.Quarantine::setProtection
push 0x337
push str.C:workprojects_rubilnik_srccoreQuarantine.cpp
push ebx
call fcn.00407c20
mov ecx, eax
call fcn.00412039
lea ecx, [ebp - 0x4cc]
call fcn.00404fea
lea ecx, [ebp - 0x4cc]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
test esi, esi
je 0x4b0490
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
mov bl, 1
lea ecx, [ebp - 0x474]
call fcn.0040bf18
test esi, esi
je 0x4b04a8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
call fcn.00536508
ret 8