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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x587226
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 0x40f90a
lea eax, [ebp - 0x2a4]
mov dword [ebp - 0x2a4], pe_nt_image_headers32
push eax
push edi
call sub.KERNEL32.dll_Process32First
push esi
jmp 0x40f6b0
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 0x40f8f1
mov edi, 0x5c140c
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 0x40f8d5
cmp dword [ebp - 0x14], 8
jne 0x40f8d5
lea ecx, [ebp - 0x24]
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x40f8d5
mov eax, dword [ecx + 4]
cmp eax, dword [edi + 4]
jne 0x40f8d5
push 0
push esi
mov byte [ebp - 0xd], 1
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [0x6c0794], 1
jne 0x40f7bb
push 1
push 0x40
push 8
push str.GameGuard_Log.txt
lea ecx, [ebp - 0x17c]
call fcn.0040b9f0
lea eax, [ebp - 0x17c]
mov dword [ebp - 4], 0
push str._nD_Scan:
push eax
call fcn.0040a540
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0x17c]
push eax
call fcn.0040a540
add esp, 0x10
lea ecx, [ebp - 0x178]
call fcn.004096b0
test eax, eax
jne 0x40f79d
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.0040baf0
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 [0x6c07a4], 1
jne 0x40f8ac
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 0x58fee4
call fcn.0040b9f0
lea eax, [ebp - 0xd4]
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 - 0xd4]
push eax
call fcn.0040a540
lea eax, [ebp - 0xd4]
push str.D_Scan:
push eax
call fcn.0040a540
lea eax, [ebp - 0x280]
push eax
lea eax, [ebp - 0xd4]
push eax
call fcn.0040a540
lea eax, [ebp - 0xd4]
push str._n__________________
push eax
call fcn.0040a540
add esp, 0x2c
lea ecx, [ebp - 0xd0]
call fcn.004096b0
test eax, eax
jne 0x40f884
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 0x58fee4
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call fcn.0040baf0
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 [0x6c0798]
cmp eax, 1
je 0x40f98e
cmp eax, 2
je 0x40f981
cmp eax, 3
je 0x40f959
cmp eax, 4
je 0x40f923
test eax, eax
je 0x40f951
add ebx, 0xc
add edi, 0xc
cmp ebx, 0xbc4
jb 0x40f6d7
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 0x40f6b0
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 0x40e7b0
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 0x425710
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 0x40f9a0
jmp 0x40f964
push 0
push 0
push 0
push 0x40fa20
jmp 0x40f964