Function at 0x10045510
Capabilities:
Acquire debug privileges
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b1bdb
mov eax, dword fs:[0]
push eax
mov eax, 0x1878
call fcn.100785e0
mov eax, dword [0x100e2524]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1884]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x100455b3
lea eax, [ebp - 0x1224]
mov dword [ebp - 0x1228], 1
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x1228]
mov dword [ebp - 0x121c], 2
push eax
push 0
push dword [ebp - 0x1884]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x1884]
call ebx
push 0
push 2
mov dword [ebp - 0x1880], 0xffffffff
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x1880], esi
push 0x228
lea eax, [ebp - 0x1878]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x187c], 0x22c
call fcn.100832e0
add esp, 0xc
lea eax, [ebp - 0x187c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x100458bc
cmp dword [ebp - 0x1874], 0
jne 0x10045648
lea eax, [ebp - 0x187c]
push eax
push dword [ebp - 0x1880]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x100458bc
cmp dword [ebp - 0x1874], 0
jne 0x10045648
lea eax, [ebp - 0x187c]
push eax
lea ecx, [ebp - 0x1880]
call fcn.10045910
test eax, eax
je 0x100458bc
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop word [eax + eax]
mov esi, dword [ebp - 0x1874]
lea eax, [ebp - 0x1858]
push 0x15
push str.BenchmarkLauncher.exe
push eax
call fcn.10094b8a
add esp, 0xc
test eax, eax
je 0x1004569e
push 0x19
lea eax, [ebp - 0x1858]
push str.BenchmarkLauncher_x64.exe
push eax
call fcn.10094b8a
add esp, 0xc
test eax, eax
jne 0x10045883
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100832e0
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1004579e
push 0x800
lea eax, [ebp - 0xa18]
push 0
push eax
call fcn.100832e0
add esp, 0xc
lea eax, [ebp - 0xa18]
push 0x400
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x1004579b
push 0x800
lea eax, [ebp - 0x1218]
push 0
push eax
call fcn.100832e0
lea eax, [ebp - 0xa18]
push 0x7e
push eax
call fcn.100836b6
add esp, 0x14
test eax, eax
je 0x10045763
push 0x400
lea eax, [ebp - 0x1218]
push eax
lea eax, [ebp - 0xa18]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x10045763
lea ecx, [ebp - 0x1218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10045750
lea eax, [ebp - 0x1218]
jmp 0x10045781
lea ecx, [ebp - 0xa18]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10045770
lea eax, [ebp - 0xa18]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.1009446b
add esp, 0x10
push esi
call ebx
lea eax, [ebp - 0x218]
push eax
call fcn.100576f0
add esp, 4
test eax, eax
je 0x10045883
push dword [ebp - 0x1874]
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x424
mov esi, eax
mov dword [ebp - 0x1650], 0x428
lea eax, [ebp - 0x164c]
push 0
push eax
call fcn.100832e0
add esp, 0xc
lea eax, [ebp - 0x1650]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x1004587b
nop dword [eax]
push 0xc
lea eax, [ebp - 0x1630]
push str.GearNtKe.dll
push eax
call fcn.10094b8a
add esp, 0xc
test eax, eax
jne 0x10045864
mov eax, dword [ebp - 0x1634]
test eax, eax
je 0x10045864
push str.AddProcess
push eax
call edi
push str.SetSpeed
push dword [ebp - 0x1634]
mov ebx, eax
call edi
push str.GetSpeed
push dword [ebp - 0x1634]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004585e
test ebx, ebx
je 0x1004585e
test edi, edi
jne 0x100458f0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea eax, [ebp - 0x1650]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x10045800
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x10045883
push esi
call ebx
lea eax, [ebp - 0x187c]
push eax
push dword [ebp - 0x1880]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x100458bc
cmp dword [ebp - 0x1874], 0
jne 0x100458b4
lea eax, [ebp - 0x187c]
push eax
lea ecx, [ebp - 0x1880]
call fcn.10045910
test eax, eax
jne 0x10045660
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov ecx, dword [ebp - 0x1880]
cmp ecx, 0xffffffff
je 0x100458d2
push ecx
call edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007850b
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x100458fe
push esi
call edi
mov esi, 1
jmp 0x100458c4