Function at 0x40f670
Capabilities:
Create thread
Enumerate processes
Set file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x584b56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x298
push ebx
push edi
push 0
xor bl, bl
push 2
mov byte [ebp - 0xd], bl
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, 0xffffffff
je 0x40f92a
lea eax, [ebp - 0x2a4]
mov dword [ebp - 0x2a4], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
push esi
jmp 0x40f6d0
push dword [ebp - 0x29c]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x18], esi
test esi, esi
je 0x40f911
mov edi, 0x5be40c
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push 8
lea eax, [ebp - 0x24]
push eax
push dword [edi - 4]
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x40f8f5
cmp dword [ebp - 0x14], 8
jne 0x40f8f5
lea ecx, [ebp - 0x24]
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x40f8f5
mov eax, dword [ecx + 4]
cmp eax, dword [edi + 4]
jne 0x40f8f5
push 0
push esi
mov byte [ebp - 0xd], 1
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [0x6bd78c], 1
jne 0x40f7db
push 1
push 0x40
push 8
push str.GameGuard_Log.txt
lea ecx, [ebp - 0x17c]
call fcn.0040ba20
lea eax, [ebp - 0x17c]
mov dword [ebp - 4], 0
push str._nD_Scan:
push eax
call fcn.0040a570
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.0040a570
add esp, 0x10
lea ecx, [ebp - 0x178]
call fcn.004096e0
test eax, eax
jne 0x40f7bd
push eax
mov eax, dword [ebp - 0x17c]
lea ecx, [ebp - 0x17c]
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 - 0x11c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040bb20
lea ecx, [ebp - 0x11c]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
cmp dword [0x6bd79c], 1
jne 0x40f8cc
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR120.dll__time64]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR120.dll__localtime64]
add esp, 8
lea ecx, [ebp - 0xd4]
mov esi, eax
push 1
push 0x40
push 8
push 0x58cec4
call fcn.0040ba20
lea eax, [ebp - 0xd4]
mov dword [ebp - 4], 1
push str._nLocal_Time:
push eax
call fcn.0040a570
push esi
call dword [sym.imp.MSVCR120.dll_asctime]
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.0040a570
lea eax, [ebp - 0xd4]
push str.D_Scan:
push eax
call fcn.0040a570
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.0040a570
lea eax, [ebp - 0xd4]
push str._n__________________
push eax
call fcn.0040a570
add esp, 0x2c
lea ecx, [ebp - 0xd0]
call fcn.004096e0
test eax, eax
jne 0x40f8a4
push eax
mov eax, dword [ebp - 0xd4]
lea ecx, [ebp - 0xd4]
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 0x58cec4
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call fcn.0040bb20
lea ecx, [ebp - 0x74]
call dword [sym.imp.MSVCP120.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
mov esi, dword [ebp - 0x18]
mov eax, dword [0x6bd790]
cmp eax, 1
je 0x40f9ae
cmp eax, 2
je 0x40f9a1
cmp eax, 3
je 0x40f979
cmp eax, 4
je 0x40f943
test eax, eax
je 0x40f971
add ebx, 0xc
add edi, 0xc
cmp ebx, 0xbc4
jb 0x40f6f7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x2a4]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40f6d0
mov bl, byte [ebp - 0xd]
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0x40e7d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x200010
push str.D_Scan
lea eax, [ebp - 0x280]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push 0
push 0
push 0x40fac0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push 0
push 0
push 0x40f9c0
jmp 0x40f984
push 0
push 0
push 0
push 0x40fa40
jmp 0x40f984