Function at 0x409b60
Capabilities:
Acquire debug privileges
Enumerate processes
Get system information on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x498
mov eax, dword [0x44c040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
call fcn.00404540
xorps xmm0, xmm0
mov dword [ebp - 0x240], 0
lea eax, [ebp - 0x260]
movaps xmmword [ebp - 0x260], xmm0
push eax
movaps xmmword [ebp - 0x250], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
xor eax, eax
cmp word [ebp - 0x260], ax
sete al
mov dword [0x44e234], eax
lea eax, [ebp - 0x214]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x409c53
lea eax, [ebp - 0x21c]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x409c47
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
push 0
push 0
push 0x10
mov dword [ebp - 0x228], eax
lea eax, [ebp - 0x22c]
push eax
push 0
push dword [ebp - 0x214]
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x224], ecx
mov dword [ebp - 0x220], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call esi
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.NtQueryInformationProcess
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push str..mailslotFPSMonitor_DirectInjectorMailslot
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x44e230], eax
call esi
cmp dword [0x44e230], 0xffffffff
mov esi, eax
jne 0x409d05
mov edx, dword [vtable.CDebugPrint.0]
mov ecx, 0x44c958
push str.InjectorMessenger:
mov dword [0x44cba0], 2
mov edx, dword [edx + 0x1c]
call edx
mov ecx, eax
push str._Failed
mov edx, dword [eax]
mov eax, dword [edx + 0x1c]
call eax
mov ecx, eax
push str.CreateFile
mov edx, dword [eax]
mov eax, dword [edx + 0x1c]
call eax
mov ecx, eax
push 0x43ccbc
mov edx, dword [eax]
mov eax, dword [edx + 0x1c]
call eax
mov ecx, eax
push esi
mov edx, dword [eax]
mov eax, dword [edx + 0x14]
call eax
push 0xd
mov esi, eax
call fcn.00405920
push 0xa
call fcn.00405920
push 0
mov ecx, esi
call fcn.00405650
push 0
push 0
push 0
push 0x409a30
push 0
push 3
push 3
call dword [sym.imp.USER32.dll_SetWinEventHook]
push 0
push 2
mov dword [0x44e238], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x409e59
push 0x228
lea eax, [ebp - 0x48c]
mov dword [ebp - 0x490], 0x22c
push 0
push eax
call fcn.00419020
add esp, 0xc
lea eax, [ebp - 0x490]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x409e52
nop dword [eax]
push dword [ebp - 0x488]
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x409df0
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00419020
add esp, 0xc
mov dword [ebp - 0x214], 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00420573
lea eax, [ebp - 0x210]
push str.applicationframehost.exe
push eax
call fcn.00418a2e
add esp, 0x10
test eax, eax
jne 0x409e08
lea eax, [ebp - 0x490]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x409d70
jmp 0x409e52
mov eax, dword [vtable.CDebugPrint.0]
mov ecx, 0x44c958
push str.Set_App_frame_host_process_id_
mov eax, dword [eax + 0x1c]
call eax
push dword [ebp - 0x488]
mov ecx, eax
mov edx, dword [eax]
mov eax, dword [edx + 0x14]
call eax
push 0xd
mov esi, eax
call fcn.00405920
push 0xa
call fcn.00405920
push 0
mov ecx, esi
call fcn.00405650
mov eax, dword [0x44e4b8]
mov ecx, dword [ebp - 0x488]
mov dword [eax + 0x10], ecx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0041713e
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret