Function at 0x10005a51
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10058941
mov eax, dword fs:[0]
push eax
mov eax, 0x12a8
call fcn.100333a0
mov eax, dword [0x10081730]
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
mov esi, dword [ebp + 8]
push 7
pop edi
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 0x14], edi
call fcn.100011bf
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], edi
call fcn.100011bf
push esi
lea eax, [ebp - 0x2c]
push 0x100606e4
push eax
mov byte [ebp - 4], 1
call fcn.10007397
add esp, 0xc
call fcn.100080bb
test eax, eax
je 0x10005c52
push str.Wtsapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
cmp edi, ebx
je 0x10005d8a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x294], eax
je 0x10005d8a
push str.EnumProcessModules
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x2a8], eax
je 0x10005d8a
push 0x100607ac
push edi
call esi
cmp eax, ebx
mov dword [ebp - 0x29c], eax
je 0x10005d8a
lea eax, [ebp - 0x2b0]
push eax
push 0x1000
lea eax, [ebp - 0x12b4]
push eax
call dword [ebp - 0x294]
test eax, eax
je 0x10005d8a
mov esi, dword [ebp - 0x2b0]
shr esi, 2
cmp esi, ebx
mov dword [ebp - 0x2a4], esi
mov dword [ebp - 0x298], ebx
jle 0x10005d6c
mov eax, dword [ebp - 0x298]
push dword [ebp + eax*4 - 0x12b4]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x294], eax
je 0x10005c23
push 5
pop ecx
push 0x1f4
lea eax, [ebp - 0x258]
push ebx
mov esi, str._unknown_
lea edi, [ebp - 0x26c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.10031d30
add esp, 0xc
lea eax, [ebp - 0x2b4]
push eax
push 4
lea eax, [ebp - 0x2ac]
push eax
push dword [ebp - 0x294]
call dword [ebp - 0x2a8]
test eax, eax
je 0x10005c1d
push 0x104
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x2ac]
push dword [ebp - 0x294]
call dword [ebp - 0x29c]
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x48]
push 0x100606e4
push eax
call fcn.10007397
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.1000707e
add esp, 0x14
cmp al, 1
je 0x10005c3a
mov esi, dword [ebp - 0x2a4]
inc dword [ebp - 0x298]
cmp dword [ebp - 0x298], esi
jl 0x10005b6a
jmp 0x10005d6c
mov eax, dword [ebp - 0x298]
mov eax, dword [ebp + eax*4 - 0x12b4]
mov dword [ebp - 0x2a0], eax
jmp 0x10005d6c
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, ebx
mov dword [ebp - 0x294], eax
je 0x10005d8a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1006076c
push eax
call esi
cmp eax, ebx
mov dword [ebp - 0x2a4], eax
je 0x10005d8a
mov edi, str.Process32First
push edi
push dword [ebp - 0x294]
call esi
cmp eax, ebx
mov dword [ebp - 0x29c], eax
je 0x10005d8a
push edi
push dword [ebp - 0x294]
call esi
cmp eax, ebx
push ebx
je 0x10005d8b
push 2
call dword [ebp - 0x2a4]
mov edi, eax
cmp edi, 0xffffffff
je 0x10005d8a
mov esi, 0x22c
push esi
lea eax, [ebp - 0x290]
push ebx
push eax
call fcn.10031d30
mov dword [ebp - 0x290], esi
xor esi, esi
add esp, 0xc
inc esi
cmp esi, ebx
lea eax, [ebp - 0x290]
push eax
push edi
je 0x10005cfb
call dword [ebp - 0x29c]
jmp 0x10005d00
call sub.KERNEL32.dll_Process32NextW
cmp eax, ebx
je 0x10005d65
push ebx
lea ecx, [ebp - 0x64]
xor esi, esi
mov dword [ebp - 0x4c], 7
call fcn.100011bf
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x64]
push 0x100606e4
push eax
mov byte [ebp - 4], 2
call fcn.10007397
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.1000707e
add esp, 0x14
cmp al, 1
push ebx
lea ecx, [ebp - 0x64]
push 1
je 0x10005d54
mov byte [ebp - 4], 1
call fcn.1000131a
jmp 0x10005ce7
mov eax, dword [ebp - 0x288]
mov dword [ebp - 0x2a0], eax
call fcn.1000131a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.1000131a
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.1000131a
mov eax, dword [ebp - 0x2a0]
jmp 0x10005da2
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.1000131a
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.1000131a
xor eax, eax
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.10031c08
leave
ret