Function at 0x40c749
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x250
mov eax, dword [0x4541c0]
xor eax, ebp
mov dword [ebp + 0x1ac], eax
mov eax, dword [ebp + 0x1b8]
push esi
xor esi, esi
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x74], esi
cmp dword [ebp + 0x1bc], esi
je 0x40ca86
cmp eax, esi
je 0x40ca86
mov eax, dword [0x4531b0]
mov dword [ebp + 0x80], esi
mov dword [ebp + 0x68], 4
mov dword [ebp + 0x64], esi
cmp eax, 0x3e8
jbe 0x40c7a9
call dword [0x4c6484]
push edi
push esi
push 2
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x84], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp + 0x60], eax
cmp eax, 0xffffffff
je 0x40c98f
lea ecx, [ebp + 0x84]
push ecx
push eax
call sub.KERNEL32.dll_Process32First
cmp eax, 1
jne 0x40c980
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push ebx
lea eax, [ebp + 0x7c]
push 0x4453f8
push eax
call fcn.00408331
mov eax, dword [eax]
lea ecx, [ebp + 0xa8]
push ecx
push eax
call fcn.0042e3d1
mov ecx, dword [ebp + 0x7c]
add esp, 0x10
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.004012b7
test bl, bl
je 0x40c8b8
push dword [ebp + 0x8c]
push esi
push 0x1fffff
call dword [0x4c64c8]
mov ebx, eax
cmp ebx, esi
je 0x40c8b8
lea eax, [ebp + 0x80]
push eax
push 8
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40c8ad
lea eax, [ebp + 0x68]
push eax
push dword [ebp + 0x68]
lea eax, [ebp + 0x64]
push eax
push 0xc
push dword [ebp + 0x80]
call edi
test eax, eax
je 0x40c870
mov eax, dword [ebp + 0x6c]
cmp eax, dword [ebp + 0x64]
je 0x40c8d5
cmp dword [ebp + 0x80], esi
je 0x40c88a
push dword [ebp + 0x80]
call dword [0x4c648c]
mov dword [ebp + 0x80], esi
push ebx
call dword [0x4c648c]
xor ebx, ebx
cmp dword [ebp + 0x80], esi
je 0x40c8b8
push dword [ebp + 0x80]
call dword [0x4c648c]
mov dword [ebp + 0x80], esi
cmp ebx, esi
je 0x40c8b8
push ebx
call dword [0x4c648c]
lea eax, [ebp + 0x84]
push eax
push dword [ebp + 0x60]
call sub.KERNEL32.dll_Process32Next
cmp eax, 1
je 0x40c7e8
jmp 0x40c97f
push 0xfc
lea eax, [ebp - 0x9c]
push esi
push eax
mov dword [ebp + 0x7c], esi
mov dword [ebp - 0xa0], esi
call fcn.0042bc20
add esp, 0xc
lea eax, [ebp + 0x7c]
push eax
push 0x100
lea eax, [ebp - 0xa0]
push eax
push 1
push dword [ebp + 0x80]
call edi
test eax, eax
je 0x40c95e
lea eax, [ebp + 0x70]
push eax
push dword [ebp - 0xa0]
call sub.ADVAPI32.dll_ConvertSidToStringSidA
test eax, eax
je 0x40c95e
push dword [ebp + 0x70]
call fcn.0042b470
pop ecx
cmp eax, dword [ebp + 0x1bc]
jae 0x40c955
push dword [ebp + 0x70]
push 0x4453f4
push dword [ebp + 0x1bc]
push dword [ebp + 0x78]
call fcn.0042dc4b
add esp, 0x10
mov dword [ebp + 0x74], 1
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp + 0x80], esi
je 0x40c978
push dword [ebp + 0x80]
call dword [0x4c648c]
mov dword [ebp + 0x80], esi
push ebx
call dword [0x4c648c]
pop ebx
push dword [ebp + 0x60]
call dword [0x4c648c]
cmp dword [ebp + 0x74], 1
je 0x40c9c2
push 0x4c6f78
push dword [ebp + 0x1bc]
push dword [ebp + 0x78]
call fcn.0042daa1
push dword [ebp + 0x78]
call fcn.0042b470
add esp, 0x10
test eax, eax
jbe 0x40c9b8
mov dword [ebp + 0x74], 1
cmp dword [ebp + 0x74], 1
jne 0x40ca80
lea eax, [ebp + 0x7c]
push 0x445378
push eax
call fcn.00408331
push dword [eax]
mov edi, str._s_s
push dword [ebp + 0x78]
mov esi, 0x104
push edi
push esi
push 0x4c7398
call fcn.0042dc4b
mov ecx, dword [ebp + 0x7c]
add esp, 0x1c
add ecx, 0xfffffff0
call fcn.004012b7
lea eax, [ebp + 0x7c]
push 0x444ec0
push eax
call fcn.00408331
push dword [eax]
push dword [ebp + 0x78]
push edi
push esi
push 0x4c74a0
call fcn.0042dc4b
mov ecx, dword [ebp + 0x7c]
add esp, 0x1c
add ecx, 0xfffffff0
call fcn.004012b7
lea eax, [ebp + 0x7c]
push 0x445054
push eax
call fcn.00408331
push dword [eax]
push dword [ebp + 0x78]
push edi
push esi
push 0x4c7290
call fcn.0042dc4b
mov ecx, dword [ebp + 0x7c]
add esp, 0x1c
add ecx, 0xfffffff0
call fcn.004012b7
lea eax, [ebp + 0x7c]
push 0x445320
push eax
call fcn.00408331
push dword [eax]
push dword [ebp + 0x78]
push edi
push esi
push 0x4c7188
call fcn.0042dc4b
mov ecx, dword [ebp + 0x7c]
add esp, 0x1c
add ecx, 0xfffffff0
call fcn.004012b7
mov eax, dword [ebp + 0x74]
pop edi
jmp 0x40ca88
xor eax, eax
mov ecx, dword [ebp + 0x1ac]
xor ecx, ebp
pop esi
call fcn.0042ba9a
add ebp, 0x1b0
leave
ret