Function at 0x10006a70
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10013b5c
mov eax, dword fs:[0]
push eax
sub esp, 0x164
push esi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Cheat_Engine_5.0
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x10006da4
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x1001f720], 1
jne 0x10006b5d
sub esp, 8
lea ecx, [ebp - 0xc8]
push 8
push str.GameGuard_Log.txt
call fcn.10001710
mov edx, str._n_W_Close:
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xc8]
call fcn.10002ae0
mov edx, str.Cheat_Engine_5.0
lea ecx, [ebp - 0xc8]
call fcn.10002ae0
lea ecx, [ebp - 0xc8]
call fcn.10001810
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0xcc], eax
lea ecx, [ebp - 0xc4]
call fcn.10001890
lea ecx, [ebp - 0xc0]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
cmp dword [0x1001f734], 1
mov esi, dword [sym.imp.MSVCR120.dll__time64]
jne 0x10006c62
lea eax, [ebp - 0x20]
push eax
call esi
add esp, 4
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.MSVCR120.dll__localtime64]
push ecx
push 8
push 0x100154c0
lea ecx, [ebp - 0xc8]
mov esi, eax
call fcn.10001710
mov edx, str._nLocal_Time:
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xc8]
call fcn.10002ae0
push esi
call dword [sym.imp.MSVCR120.dll_asctime]
add esp, 4
lea ecx, [ebp - 0xc8]
mov edx, eax
call fcn.10002ae0
mov edx, str.W_Close:
lea ecx, [ebp - 0xc8]
call fcn.10002ae0
mov edx, str.Cheat_Engine_5.0
lea ecx, [ebp - 0xc8]
call fcn.10002ae0
mov edx, str._n__________________
lea ecx, [ebp - 0xc8]
call fcn.10002ae0
lea ecx, [ebp - 0xc8]
call fcn.10001810
push 2
push 0x100154c0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc8], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ebp + ecx - 0xcc], eax
lea ecx, [ebp - 0xc4]
call fcn.10001890
lea ecx, [ebp - 0xc0]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov esi, dword [sym.imp.MSVCR120.dll__time64]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.Cheat_Engine_5.0
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x10006da4
cmp dword [0x1001f720], 1
jne 0x10006cec
sub esp, 8
lea ecx, [ebp - 0xc8]
push 8
push str.GameGuard_Log.txt
call fcn.10001710
mov edx, str._n_W_Close:
mov dword [ebp - 4], 2
lea ecx, [ebp - 0xc8]
call fcn.10002ae0
mov edx, str.Cheat_Engine_5.0
mov ecx, eax
call fcn.10002ae0
mov edx, str._cant_be_closed__exiting_game_
mov ecx, eax
call fcn.10002ae0
lea ecx, [ebp - 0xc8]
call fcn.10001810
lea ecx, [ebp - 0xc8]
mov dword [ebp - 4], 0xffffffff
call fcn.10001650
cmp dword [0x1001f734], 1
jne 0x10006d9f
lea eax, [ebp - 0x18]
push eax
call esi
add esp, 4
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVCR120.dll__localtime64]
push ecx
push 8
push 0x100154c0
lea ecx, [ebp - 0x170]
mov esi, eax
call fcn.10001710
mov edx, str._nLocal_Time:
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x170]
call fcn.10002ae0
push esi
call dword [sym.imp.MSVCR120.dll_asctime]
add esp, 4
lea ecx, [ebp - 0x170]
mov edx, eax
call fcn.10002ae0
mov edx, str.W_Close:
lea ecx, [ebp - 0x170]
call fcn.10002ae0
mov edx, str.Cheat_Engine_5.0
mov ecx, eax
call fcn.10002ae0
mov edx, str._cant_be_closed__exiting_game_
mov ecx, eax
call fcn.10002ae0
mov edx, str._n__________________
lea ecx, [ebp - 0x170]
call fcn.10002ae0
lea ecx, [ebp - 0x170]
call fcn.10001810
push 2
push 0x100154c0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call fcn.10006a10
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret