Function at 0x40c190
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x58714c
push eax
mov dword fs:[0], esp
sub esp, 0x160
push edi
mov edi, dword [ebp + 8]
push edi
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40c4dc
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x6c0794], 1
jne 0x40c258
push 1
push 0x40
push 8
push str.GameGuard_Log.txt
lea ecx, [ebp - 0xc4]
call fcn.0040b9f0
lea eax, [ebp - 0xc4]
mov dword [ebp - 4], 0
push str._nW_Close:
push eax
call fcn.0040a540
lea eax, [ebp - 0xc4]
push edi
push eax
call fcn.0040a540
add esp, 0x10
lea ecx, [ebp - 0xc0]
call fcn.004096b0
test eax, eax
jne 0x40c240
push eax
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc4]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
call fcn.0040baf0
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
cmp dword [0x6c07a4], 1
push esi
mov esi, dword [sym.imp.MSVCR120.dll__time64]
jne 0x40c349
lea eax, [ebp - 0x1c]
push eax
call esi
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCR120.dll__localtime64]
add esp, 8
lea ecx, [ebp - 0xc4]
mov esi, eax
push 1
push 0x40
push 8
push 0x58fee4
call fcn.0040b9f0
lea eax, [ebp - 0xc4]
mov dword [ebp - 4], 1
push str._nLocal_Time:
push eax
call fcn.0040a540
push esi
call dword [sym.imp.MSVCR120.dll_asctime]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.0040a540
lea eax, [ebp - 0xc4]
push str.W_Close:
push eax
call fcn.0040a540
lea eax, [ebp - 0xc4]
push edi
push eax
call fcn.0040a540
lea eax, [ebp - 0xc4]
push str._n__________________
push eax
call fcn.0040a540
add esp, 0x2c
lea ecx, [ebp - 0xc0]
call fcn.004096b0
test eax, eax
jne 0x40c31e
push eax
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc4]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push 2
push 0x58fee4
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
call fcn.0040baf0
lea ecx, [ebp - 0x64]
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 edi
push 0
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x40c4db
cmp dword [0x6c0794], 1
jne 0x40c3fc
push 1
push 0x40
push 8
push str.GameGuard_Log.txt
lea ecx, [ebp - 0xc4]
call fcn.0040b9f0
push str._cant_be_closed__exiting_game_
push edi
lea eax, [ebp - 0xc4]
mov dword [ebp - 4], 2
push str._n_W_Close:
push eax
call fcn.0040a540
add esp, 8
push eax
call fcn.0040a540
add esp, 8
push eax
call fcn.0040a540
add esp, 8
lea ecx, [ebp - 0xc0]
call fcn.004096b0
test eax, eax
jne 0x40c3e4
push eax
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc4]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
call fcn.0040baf0
lea ecx, [ebp - 0x64]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
cmp dword [0x6c07a4], 1
jne 0x40c4d6
lea eax, [ebp - 0x14]
push eax
call esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.MSVCR120.dll__localtime64]
add esp, 8
lea ecx, [ebp - 0x16c]
mov esi, eax
push 1
push 0x40
push 8
push 0x58fee4
call fcn.0040b9f0
lea eax, [ebp - 0x16c]
mov dword [ebp - 4], 3
push str._nLocal_Time:
push eax
call fcn.0040a540
push esi
call dword [sym.imp.MSVCR120.dll_asctime]
push eax
lea eax, [ebp - 0x16c]
push eax
call fcn.0040a540
add esp, 0x14
lea eax, [ebp - 0x16c]
push str._cant_be_closed__exiting_game_
push edi
push str.W_Close:
push eax
call fcn.0040a540
add esp, 8
push eax
call fcn.0040a540
add esp, 8
push eax
call fcn.0040a540
lea eax, [ebp - 0x16c]
push str._n__________________
push eax
call fcn.0040a540
add esp, 0x10
lea ecx, [ebp - 0x168]
call fcn.004096b0
test eax, eax
jne 0x40c4c9
push eax
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x16c]
push 2
mov eax, dword [eax + 4]
add ecx, eax
call dword [sym.imp.MSVCP120.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push 2
push 0x58fee4
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call fcn.0040c530
pop esi
mov ecx, dword [ebp - 0xc]
mov al, 1
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret