Function at 0x10032760
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x1008bb60]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x240], 0
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x238], 0
push 0x228
push 0
lea eax, [ebp - 0x234]
push eax
call fcn.10041d70
add esp, 0xc
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x24c], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0xffffffff
jne 0x100327f8
xor eax, eax
jmp 0x100329f9
mov dword [ebp - 0x238], 0x22c
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x250]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x1003299d
cmp dword [ebp - 0x23c], 0
je 0x1003283d
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x23c], 0
cmp dword [ebp - 0x240], 0
je 0x1003285d
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x240], 0
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x214]
push eax
call fcn.10047240
add esp, 8
test eax, eax
je 0x10032879
jmp 0x10032982
lea ecx, [ebp - 0x248]
push ecx
mov edx, dword [ebp - 0x230]
push edx
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x1003289c
mov eax, dword [ebp - 0x248]
cmp eax, dword [ebp + 0xc]
je 0x100328a1
jmp 0x10032982
mov ecx, dword [ebp - 0x230]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
jne 0x100328c9
jmp 0x10032982
lea edx, [ebp - 0x240]
push edx
push 0xf01ff
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x100328eb
jmp 0x10032982
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x24c], 0
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x254]
push edx
push 1
mov eax, dword [ebp - 0x240]
push eax
call fcn.10031570
add esp, 0x10
test eax, eax
jne 0x10032924
jmp 0x10032982
mov ecx, dword [ebp - 0x254]
mov edx, dword [ecx]
push edx
call fcn.10031380
add esp, 4
test eax, eax
jne 0x10032969
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x230]
mov dword [eax], ecx
mov dword [ebp - 0x244], 1
mov edx, dword [ebp - 0x254]
push edx
call fcn.10031650
add esp, 4
mov dword [ebp - 0x254], 0
jmp 0x1003299d
mov eax, dword [ebp - 0x254]
push eax
call fcn.10031650
add esp, 4
mov dword [ebp - 0x254], 0
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 0x250]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x1003281d
cmp dword [ebp - 0x23c], 0
je 0x100329bd
mov eax, dword [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x23c], 0
cmp dword [ebp - 0x240], 0
je 0x100329dd
mov ecx, dword [ebp - 0x240]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x240], 0
cmp dword [ebp - 0x250], 0xffffffff
je 0x100329f3
mov edx, dword [ebp - 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041acb
mov esp, ebp
pop ebp
ret