Function at 0x2221594f
Capabilities:
Get file attributes
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x222312c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xcc
mov dword [ebp - 0xa0], ecx
mov dword [ebp - 0x14], 0
push 0
call fcn.2222155b
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [eax + 0x24]
cmp ecx, 0xe10
jle 0x22215e08
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x24], eax
mov ecx, dword [ebp - 0xa0]
call fcn.222151f4
and eax, 0xff
test eax, eax
je 0x22215daa
mov ecx, dword [ebp - 0xa0]
call fcn.222150ee
mov ecx, dword [ebp - 0xa0]
add ecx, 0x14
call fcn.22211bc0
and eax, 0xff
test eax, eax
jne 0x22215da8
lea ecx, [ebp - 0x44]
call dword [sym.imp.Gtools.dll_public:_void___thiscall_GFile::constructor_void_]
mov dword [ebp - 4], 0
push 0
push 1
push 0
push 0
mov ecx, dword [ebp - 0xa0]
add ecx, 0x14
sub esp, 0x10
mov edx, esp
mov dword [ebp - 0x6c], esp
push ecx
mov ecx, edx
call fcn.222118f0
mov dword [ebp - 0xa4], eax
lea ecx, [ebp - 0x44]
call dword [sym.imp.Gtools.dll_public:_bool___thiscall_GFile::open_class_std::basic_string_char__struct_Gchar_traits_char___class_GAllocator_char____bool__bool__bool__bool_]
mov byte [ebp - 0xa8], al
mov eax, dword [ebp - 0xa8]
and eax, 0xff
test eax, eax
je 0x22215d98
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x70]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.222118c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
call dword [sym.imp.Gtools.dll_public:_long_int___thiscall_GFile::getLastWriteTime_void_]
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0xa0]
mov eax, dword [ebp - 0x4c]
cmp eax, dword [edx + 0x28]
je 0x22215b10
mov ecx, dword [ebp - 0xa0]
mov edx, dword [ebp - 0x4c]
mov dword [ecx + 0x28], edx
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x74], esp
lea eax, [ebp - 0x78]
push eax
push str.AppMgr__Performing_hosts_check..._n
call fcn.22211930
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
mov dword [ebp - 0xb0], ecx
mov byte [ebp - 4], 2
push 0xfa
push 0x2223de04
call dword [sym.imp.Gtools.dll_public:_static_class_GLog____cdecl_GLog::getLog_void_]
mov ecx, eax
call dword [sym.imp.Gtools.dll_public:_class_GLog____thiscall_GLog::fileInfo_char___int_]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.Gtools.dll_public:_void___cdecl_GLog::logInfo_class_std::basic_string_char__struct_Gchar_traits_char___class_GAllocator_char___]
add esp, 0x14
push 0
lea edx, [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x44]
call dword [sym.imp.Gtools.dll_public:_bool___thiscall_GFile::read_class_std::basic_string_char__struct_Gchar_traits_char___class_GAllocator_char_____int_]
and eax, 0xff
test eax, eax
je 0x22215b10
lea ecx, [ebp - 0x5c]
call fcn.22211bc0
and eax, 0xff
test eax, eax
jne 0x22215b10
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0xa0]
call fcn.222153d4
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x44]
call dword [sym.imp.Gtools.dll_public:_void___thiscall_GFile::close_void_]
cmp dword [ebp - 0x48], 0
jle 0x22215d8c
lea ecx, [ebp - 0x5c]
call fcn.22211bc0
and eax, 0xff
test eax, eax
jne 0x22215d8c
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x7c], esp
lea edx, [ebp - 0x80]
push edx
push str.AppMgr__Fixing_hosts..._n
call fcn.22211930
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xb8], eax
mov byte [ebp - 4], 3
push 0x104
push 0x2223de54
call dword [sym.imp.Gtools.dll_public:_static_class_GLog____cdecl_GLog::getLog_void_]
mov ecx, eax
call dword [sym.imp.Gtools.dll_public:_class_GLog____thiscall_GLog::fileInfo_char___int_]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.Gtools.dll_public:_void___cdecl_GLog::logInfo_class_std::basic_string_char__struct_Gchar_traits_char___class_GAllocator_char___]
add esp, 0x14
mov dword [ebp - 0x14], 0xffffffff
mov ecx, dword [ebp - 0xa0]
add ecx, 0x14
call fcn.22211b50
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
and ecx, 1
test ecx, ecx
je 0x22215bdc
mov edx, dword [ebp - 0x60]
and edx, 0xfffffffe
push edx
mov ecx, dword [ebp - 0xa0]
add ecx, 0x14
call fcn.22211b50
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x22215bda
mov dword [ebp - 0x60], 0
jmp 0x22215be3
mov dword [ebp - 0x60], 0
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
mov ecx, dword [ebp - 0xa0]
add ecx, 0x14
call fcn.22211b50
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0xffffffff
je 0x22215d15
push 0
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x5c]
call fcn.22211ba0
push eax
lea ecx, [ebp - 0x5c]
call fcn.22211b50
push eax
mov ecx, dword [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x64]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x5c]
call fcn.22211ba0
cmp dword [ebp - 0x68], eax
jne 0x22215cbb
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x14], eax
push 0
push 1
push 0
push 0
mov ecx, dword [ebp - 0xa0]
add ecx, 0x14
sub esp, 0x10
mov edx, esp
mov dword [ebp - 0x84], esp
push ecx
mov ecx, edx
call fcn.222118f0
mov dword [ebp - 0xbc], eax
lea ecx, [ebp - 0x44]
call dword [sym.imp.Gtools.dll_public:_bool___thiscall_GFile::open_class_std::basic_string_char__struct_Gchar_traits_char___class_GAllocator_char____bool__bool__bool__bool_]
mov byte [ebp - 0xc0], al
mov eax, dword [ebp - 0xc0]
and eax, 0xff
test eax, eax
je 0x22215cb9
lea ecx, [ebp - 0x44]
call dword [sym.imp.Gtools.dll_public:_long_int___thiscall_GFile::getLastWriteTime_void_]
mov ecx, dword [ebp - 0xa0]
mov dword [ecx + 0x28], eax
lea ecx, [ebp - 0x44]
call dword [sym.imp.Gtools.dll_public:_void___thiscall_GFile::close_void_]
jmp 0x22215d13
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x88], esp
lea edx, [ebp - 0x8c]
push edx
push str.AppMgr__Couldnt_write_all_the_hosts._n
call fcn.22211930
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], eax
mov byte [ebp - 4], 4
push 0x126
push 0x2223de9c
call dword [sym.imp.Gtools.dll_public:_static_class_GLog____cdecl_GLog::getLog_void_]
mov ecx, eax
call dword [sym.imp.Gtools.dll_public:_class_GLog____thiscall_GLog::fileInfo_char___int_]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.Gtools.dll_public:_void___cdecl_GLog::logWarning_class_std::basic_string_char__struct_Gchar_traits_char___class_GAllocator_char___]
add esp, 0x14
jmp 0x22215d6d
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x90], esp
lea edx, [ebp - 0x94]
push edx
push str.AppMgr__Could_not_fix_hosts._n
call fcn.22211930
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd0], eax
mov byte [ebp - 4], 5
push 0x129
push 0x2223def0
call dword [sym.imp.Gtools.dll_public:_static_class_GLog____cdecl_GLog::getLog_void_]
mov ecx, eax
call dword [sym.imp.Gtools.dll_public:_class_GLog____thiscall_GLog::fileInfo_char___int_]
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.Gtools.dll_public:_void___cdecl_GLog::logWarning_class_std::basic_string_char__struct_Gchar_traits_char___class_GAllocator_char___]
add esp, 0x14
cmp dword [ebp - 0x60], 0
je 0x22215d8c
mov ecx, dword [ebp - 0x60]
push ecx
mov ecx, dword [ebp - 0xa0]
add ecx, 0x14
call fcn.22211b50
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.22211960
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call dword [sym.imp.Gtools.dll_public_virtual:_void___thiscall_GFile::destructor_void_]
jmp 0x22215e08
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x98], esp
lea edx, [ebp - 0x9c]
push edx
push str.AppMgr__Hosts_check_disabled._n
call fcn.22211930
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 4], 6
push 0x149
push str.D:Fixtree_40CMEIIGAppMgrGHostsFix.cpp
call dword [sym.imp.Gtools.dll_public:_static_class_GLog____cdecl_GLog::getLog_void_]
mov ecx, eax
call dword [sym.imp.Gtools.dll_public:_class_GLog____thiscall_GLog::fileInfo_char___int_]
push eax
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.Gtools.dll_public:_void___cdecl_GLog::logInfo_class_std::basic_string_char__struct_Gchar_traits_char___class_GAllocator_char___]
add esp, 0x14
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret