Function at 0x10006b70
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ea21
mov eax, dword fs:[0]
push eax
sub esp, 0x170
push esi
mov eax, dword [0x10056050]
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 0x10006d52
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x1005b97c], 1
jne 0x10006c4e
sub esp, 0xc
lea ecx, [ebp - 0xcc]
push str.OpenGuard.txt
call fcn.10004170
mov edx, str._nW_Close:
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xcc]
call fcn.10005930
mov edx, str.Cheat_Engine_5.0
lea ecx, [ebp - 0xcc]
call fcn.10005930
lea ecx, [ebp - 0xc8]
call fcn.10004900
test eax, eax
jne 0x10006c3c
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0xcc]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10001d70
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], 0xffffffff
call fcn.100030f0
cmp dword [0x1005b98c], 1
jne 0x10006d36
lea eax, [ebp - 0x14]
push eax
call fcn.10020f8f
lea eax, [ebp - 0x14]
push eax
call fcn.1002127c
push ecx
push 0x1004c450
lea ecx, [ebp - 0xcc]
mov esi, eax
call fcn.10004170
mov edx, str._nLocal_Time:
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xcc]
call fcn.10005930
push esi
call fcn.10021ca8
add esp, 4
lea ecx, [ebp - 0xcc]
mov edx, eax
call fcn.10005930
mov edx, str.W_Close:
lea ecx, [ebp - 0xcc]
call fcn.10005930
mov edx, str.Cheat_Engine_5.0
lea ecx, [ebp - 0xcc]
call fcn.10005930
mov edx, str._n__________________
lea ecx, [ebp - 0xcc]
call fcn.10005930
lea ecx, [ebp - 0xc8]
call fcn.10004900
test eax, eax
jne 0x10006d17
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0xcc]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10001d70
push 2
push 0x1004c450
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], 0xffffffff
call fcn.100030f0
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
jne 0x10006d64
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x1005b97c], 1
jne 0x10006dff
sub esp, 0xc
lea ecx, [ebp - 0xcc]
push str.OpenGuard.txt
call fcn.10004170
mov edx, str._n_W_Close:
mov dword [ebp - 4], 2
lea ecx, [ebp - 0xcc]
call fcn.10005930
mov edx, str.Cheat_Engine_5.0
mov ecx, eax
call fcn.10005930
mov edx, str._cant_be_closed__exiting_game_
mov ecx, eax
call fcn.10005930
lea ecx, [ebp - 0xc8]
call fcn.10004900
test eax, eax
jne 0x10006ded
mov eax, dword [ebp - 0xcc]
lea ecx, [ebp - 0xcc]
push 0
mov eax, dword [eax + 4]
add ecx, eax
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10001d70
lea ecx, [ebp - 0xcc]
mov dword [ebp - 4], 0xffffffff
call fcn.100030f0
cmp dword [0x1005b98c], 1
jne 0x10006eae
lea ecx, [ebp - 0x1c]
call fcn.10006aa0
lea ecx, [ebp - 0x1c]
call fcn.10006a90
sub esp, 0xc
lea ecx, [ebp - 0x17c]
mov esi, eax
push 0x1004c450
call fcn.10004170
mov edx, str._nLocal_Time:
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x17c]
call fcn.10005930
push esi
call fcn.10021ca8
add esp, 4
lea ecx, [ebp - 0x17c]
mov edx, eax
call fcn.10005930
mov edx, str.W_Close:
lea ecx, [ebp - 0x17c]
call fcn.10005930
mov edx, str.Cheat_Engine_5.0
mov ecx, eax
call fcn.10005930
mov edx, str._cant_be_closed__exiting_game_
mov ecx, eax
call fcn.10005930
mov edx, str._n__________________
lea ecx, [ebp - 0x17c]
call fcn.10005930
lea ecx, [ebp - 0x17c]
call fcn.10004130
push 2
push 0x1004c450
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call fcn.10006b10
int3