Function at 0x490e20
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x58f131
mov eax, dword fs:[0]
push eax
sub esp, 0x4f0
mov eax, dword [0x5f4760]
xor eax, esp
mov dword [esp + 0x4e8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f4760]
xor eax, esp
push eax
lea eax, [esp + 0x504]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x514]
xor esi, esi
push esi
push 2
mov dword [esp + 0x1c], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x50c], esi
cmp eax, 0xffffffff
jne 0x490e99
mov dword [esp + 0x50c], eax
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x49123c
lea ecx, [esp + 0xbc]
push ecx
push eax
mov dword [esp + 0xc4], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4911f7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x104
lea edx, [esp + 0x1e8]
push esi
push edx
mov dword [esp + 0x28], eax
call fcn.004add60
add esp, 0xc
lea ebx, [ebx]
mov eax, dword [esp + 0xc4]
mov esi, 0x602250
cmp dword [esp + 0x1c], eax
jne 0x490f06
push ebp
push eax
push str.skip_self:_pid_d___s
call fcn.00409e30
add esp, 0xc
jmp 0x4910e8
lea ecx, [esp + 0xe0]
push ecx
push eax
push str.check:_pid_d___s
call fcn.00409e30
add esp, 0xc
lea edx, [esp + 0xe0]
push ebp
push edx
call fcn.004a4b4f
add esp, 8
test eax, eax
je 0x49115a
mov eax, dword [esp + 0xc4]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [esp + 0x2c], edi
mov byte [esp + 0x50c], 1
test edi, edi
jne 0x491107
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x491024
xor ecx, ecx
push 0x208
push ecx
lea edx, [esp + 0x2f6]
push edx
mov word [esp + 0x2f8], cx
call fcn.004add60
mov ecx, dword [esp + 0xd0]
lea eax, [esp + 0x2f8]
add esp, 0xc
push eax
call fcn.00490d10
add esp, 4
push 3
lea edx, [esp + 0x2f0]
mov ebx, eax
lea ecx, [esp + 0x3c]
push edx
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], ecx
call fcn.00420020
mov byte [esp + 0x50c], 2
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x1e4]
mov ecx, eax
mov esi, 0x104
sub edx, ecx
nop
lea ecx, [esi + 0x7ffffefa]
test ecx, ecx
je 0x490ffb
mov cl, byte [edx + eax]
test cl, cl
je 0x490ffb
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x490fe0
jmp 0x490fff
test esi, esi
jne 0x491000
dec eax
mov byte [eax], 0
test ebx, ebx
jne 0x491031
mov byte [esp + 0x50c], 1
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x38]
cmp eax, edx
je 0x491024
push eax
call fcn.004a4132
add esp, 4
mov byte [esp + 0x50c], 0
jmp 0x4910e8
mov byte [esp + 0x50c], 1
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x38]
cmp eax, ecx
je 0x49104e
push eax
call fcn.004a4132
add esp, 4
mov ecx, dword [esp + 0xc4]
lea eax, [esp + 0x1e4]
push eax
push ecx
push str.check:_pid_d___s
mov esi, 0x602250
call fcn.00409e30
add esp, 0xc
lea edx, [esp + 0x1e4]
push edx
push ebp
call fcn.004a4b4f
add esp, 8
test eax, eax
je 0x49117a
push 0x5c
push ebp
call fcn.004a5259
add esp, 8
test eax, eax
jne 0x4910a7
push 0x2f
push ebp
call fcn.004a5259
add esp, 8
test eax, eax
je 0x4910d5
inc eax
push eax
lea eax, [esp + 0xe4]
push eax
call fcn.004a4b4f
add esp, 8
test eax, eax
jne 0x4910d5
lea ecx, [esp + 0x1e4]
push ecx
call section..text
add esp, 4
test eax, eax
jne 0x4911b5
mov byte [esp + 0x50c], 0
test edi, edi
je 0x4910e8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0xbc]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x490ee0
jmp 0x491209
push edi
lea eax, [esp + 0x24]
lea ebx, [esp + 0x1e8]
mov dword [esp + 0x24], 0x104
call fcn.00490d80
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x49104e
push eax
lea edx, [esp + 0xe4]
push edx
push esi
push edi
push str.QueryFullProcessImageNameEx__d___bRet_u___s._lasterror_d
mov esi, 0x602250
call fcn.00409e30
add esp, 0x14
mov byte [esp + 0x50c], 0
jmp 0x4910e1
mov ecx, dword [esp + 0xc4]
push ebp
push ecx
push str.found:_pid_d___s
mov esi, 0x602250
call fcn.00409e30
add esp, 0xc
jmp 0x491209
mov edx, dword [esp + 0xc4]
push ebp
push edx
push str.found:_pid_d___s
mov esi, 0x602250
call fcn.00409e30
mov eax, dword [esp + 0xd0]
add esp, 0xc
mov dword [esp + 0x14], eax
mov byte [esp + 0x50c], 0
test edi, edi
je 0x491209
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x491209
mov edx, dword [esp + 0xc4]
lea ecx, [esp + 0x1e4]
push ecx
push edx
push str.found:_pid_d___s
mov esi, 0x602250
call fcn.00409e30
mov eax, dword [esp + 0xd0]
add esp, 0xc
mov dword [esp + 0x14], eax
mov byte [esp + 0x50c], 0
test edi, edi
je 0x491209
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x491209
push str._Process32First
mov esi, 0x602250
call fcn.00409e30
add esp, 4
mov edi, dword [esp + 0x14]
push edi
push str.dwPID_u
mov esi, 0x602250
call fcn.00409e30
add esp, 8
mov dword [esp + 0x50c], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x49123a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0x504]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4e8]
xor ecx, esp
call fcn.004a314d
add esp, 0x4fc
ret