Function at 0x471160
Capabilities:
Enumerate processes

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
push 0xffffffffffffffff
push 0x4c68bd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x298
mov eax, dword [0x511a40]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x517240]
test eax, eax
jne 0x4714ec
push eax
push 2
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x260], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x248]
push 0x22c
push 0
push eax
call fcn.004a9f30
add esp, 0xc
lea eax, [ebp - 0x248]
mov ecx, 0x22c
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4711f0
lea eax, [ebp - 0x248]
mov dword [ebp - 0x248], 0x22c
push eax
push edi
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x258], ecx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x471238
mov dword [ebp - 0x260], 0
jmp 0x4714d8
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x4714cd
nop
push dword [ebp - 0x240]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x47148b
cmp edi, 0xffffffff
je 0x47148b
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x250], 0
push eax
push 0xe
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x47129a
push edi
jmp 0x471489
lea eax, [ebp - 0x250]
push eax
push 0
push 0
push 1
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x471480
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x471480
push dword [ebp - 0x250]
call fcn.004947fa
add esp, 4
mov dword [ebp - 0x25c], eax
test eax, eax
je 0x471480
lea ecx, [ebp - 0x250]
push ecx
push dword [ebp - 0x250]
push eax
push 1
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x471325
push edi
call esi
push dword [ebp - 0x24c]
call esi
mov eax, dword [ebp - 0x25c]
push eax
call fcn.0048de31
add esp, 4
jmp 0x47148b
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0
push eax
mov eax, dword [ebp - 0x25c]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidA]
test eax, eax
je 0x47142a
mov dword [ebp - 0x268], 0x743a22d6
mov dword [ebp - 0x264], 0xd1254e20
mov eax, dword [ebp - 0x268]
mov ecx, dword [ebp - 0x264]
mov dword [ebp - 0x290], eax
mov dword [ebp - 0x28c], ecx
mov dword [ebp - 0x270], 0x5ba66052
mov dword [ebp - 0x26c], 0xccbac640
mov eax, dword [ebp - 0x270]
mov ecx, dword [ebp - 0x26c]
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x284], ecx
mov dword [ebp - 0x278], 0x590b0f85
mov dword [ebp - 0x274], 0xe9146315
mov eax, dword [ebp - 0x278]
mov ecx, dword [ebp - 0x274]
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x280], 0x5ba66052
mov dword [ebp - 0x27c], 0xccbac640
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x298], eax
lea eax, [ebp - 0x290]
mov dword [ebp - 0x29c], ecx
mov ecx, dword [ebp - 0x27c]
movaps xmm1, xmmword [ebp - 0x290]
mov dword [ebp - 0x294], ecx
xorps xmm1, xmmword [ebp - 0x2a0]
push eax
push dword [ebp - 0x254]
movaps xmmword [ebp - 0x290], xmm1
call fcn.00494721
add esp, 8
test eax, eax
je 0x471445
push edi
call esi
push dword [ebp - 0x24c]
call esi
push dword [ebp - 0x25c]
call fcn.0048de31
add esp, 4
jmp 0x47148b
lea eax, [ebp - 0x258]
push eax
push 1
push 2
push 0
push 0x2000000
push dword [ebp - 0x24c]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push dword [ebp - 0x25c]
test eax, eax
jne 0x4714a9
call fcn.0048de31
add esp, 4
push dword [ebp - 0x24c]
call esi
push edi
jmp 0x471489
push edi
call esi
push dword [ebp - 0x24c]
call esi
mov edi, dword [ebp - 0x260]
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x471250
jmp 0x4714cd
mov eax, dword [ebp - 0x258]
mov dword [0x517240], eax
call fcn.0048de31
add esp, 4
push dword [ebp - 0x24c]
call esi
push edi
call esi
mov edi, dword [ebp - 0x260]
mov eax, dword [0x517240]
mov dword [ebp - 0x260], eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4714e6
push edi
call esi
mov eax, dword [ebp - 0x260]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a7b9d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret