Function at 0x1000d120
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100431e1
mov eax, dword fs:[0]
push eax
sub esp, 0x170
push esi
mov eax, dword [0x10055080]
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 0x1000d3d7
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [0x1005aaa4], 1
jne 0x1000d266
sub esp, 8
lea ecx, [ebp - 0xbc]
push 8
push str.GameGuard_Log.txt
call fcn.10003390
mov edx, str._nW_Close:
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xbc]
call fcn.10004540
mov edx, str.Cheat_Engine_5.0
lea ecx, [ebp - 0xbc]
call fcn.10004540
lea ecx, [ebp - 0xb8]
call fcn.10003c30
test eax, eax
jne 0x1000d1ec
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0xbc]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10001dd0
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc0], eax
lea ecx, [ebp - 0xb8]
call fcn.10002fe0
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xc0], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x54], vtable.std::ios_base.0
call fcn.1001a02b
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [0x1005aab4], 1
jne 0x1000d3bb
lea eax, [ebp - 0xc4]
push eax
call fcn.10020619
lea eax, [ebp - 0xc4]
push eax
call fcn.10020913
push 8
push 0x1004c6a8
lea ecx, [ebp - 0xbc]
mov esi, eax
call fcn.10003390
mov edx, str._nLocal_Time:
mov dword [ebp - 4], 2
lea ecx, [ebp - 0xbc]
call fcn.10004540
push esi
call fcn.1001f646
add esp, 4
lea ecx, [ebp - 0xbc]
mov edx, eax
call fcn.10004540
mov edx, str.W_Close:
lea ecx, [ebp - 0xbc]
call fcn.10004540
mov edx, str.Cheat_Engine_5.0
lea ecx, [ebp - 0xbc]
call fcn.10004540
mov edx, str._n__________________
lea ecx, [ebp - 0xbc]
call fcn.10004540
lea ecx, [ebp - 0xb8]
call fcn.10003c30
test eax, eax
jne 0x1000d334
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0xbc]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10001dd0
push 2
push 0x1004c6a8
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc0], eax
lea ecx, [ebp - 0xb8]
call fcn.10002fe0
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xc0], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 3
push eax
mov dword [ebp - 0x54], vtable.std::ios_base.0
call fcn.1001a02b
add esp, 4
mov dword [ebp - 4], 0xffffffff
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 0x1000d3e9
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 [0x1005aaa4], 1
jne 0x1000d4ec
sub esp, 8
lea ecx, [ebp - 0xbc]
push 8
push str.GameGuard_Log.txt
call fcn.10003390
mov edx, str._n_W_Close:
mov dword [ebp - 4], 4
lea ecx, [ebp - 0xbc]
call fcn.10004540
mov edx, str.Cheat_Engine_5.0
mov ecx, eax
call fcn.10004540
mov edx, str._cant_be_closed__exiting_game_
mov ecx, eax
call fcn.10004540
lea ecx, [ebp - 0xb8]
call fcn.10003c30
test eax, eax
jne 0x1000d472
mov eax, dword [ebp - 0xbc]
lea ecx, [ebp - 0xbc]
push 0
add ecx, dword [eax + 4]
xor eax, eax
cmp dword [ecx + 0x38], eax
sete al
lea eax, [eax*4 + 2]
or eax, dword [ecx + 0xc]
push eax
call fcn.10001dd0
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc0], eax
lea ecx, [ebp - 0xb8]
call fcn.10002fe0
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xbc], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xbc]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ebp + ecx - 0xc0], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 5
push eax
mov dword [ebp - 0x54], vtable.std::ios_base.0
call fcn.1001a02b
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [0x1005aab4], 1
jne 0x1000d5a3
lea ecx, [ebp - 0xcc]
call fcn.1000d050
lea ecx, [ebp - 0xcc]
call fcn.1000d040
sub esp, 8
lea ecx, [ebp - 0x17c]
mov esi, eax
push 8
push 0x1004c6a8
call fcn.10003390
mov edx, str._nLocal_Time:
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x17c]
call fcn.10004540
push esi
call fcn.1001f646
add esp, 4
lea ecx, [ebp - 0x17c]
mov edx, eax
call fcn.10004540
mov edx, str.W_Close:
lea ecx, [ebp - 0x17c]
call fcn.10004540
mov edx, str.Cheat_Engine_5.0
mov ecx, eax
call fcn.10004540
mov edx, str._cant_be_closed__exiting_game_
mov ecx, eax
call fcn.10004540
mov edx, str._n__________________
lea ecx, [ebp - 0x17c]
call fcn.10004540
lea ecx, [ebp - 0x17c]
call fcn.10003350
push 2
push 0x1004c6a8
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
call fcn.1000d0c0
int3