Function at 0x4992e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c4
mov dword [ebp - 0x1c4], ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 4]
call fcn.00408320
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 0
lea ecx, [ebp - 0x15c]
lea edx, [ebp - 0x174]
mov eax, 1
call fcn.0040d0e0
call fcn.0040f290
push eax
test eax, eax
jne 0x499587
mov byte [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov dword [eax], 0
mov ebx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00404c10
mov dword [ebx], 0
push 0
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x499389
mov eax, dword [0x7cefc0]
mov ecx, str.IsSimiliarProcessRunning:_CreateToolhelp32Snapshot_failed
mov edx, 2
call fcn.00415870
jmp 0x499587
lea ecx, [ebp - 0x184]
lea edx, [ebp - 0x19c]
mov eax, 1
call fcn.0040d0e0
call fcn.0040f290
push eax
test eax, eax
jne 0x499531
mov dword [ebp - 0x144], 0x12c
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x14]
call sub.kernel32.dll_Process32First
test al, al
jne 0x4993e3
mov eax, dword [0x7cefc0]
mov ecx, str.IsSimiliarProcessRunning:_Process32First_failed
mov edx, 2
call fcn.00415870
jmp 0x499552
lea edx, [ebp - 0x150]
mov eax, dword [ebp - 4]
call fcn.00419680
lea esi, [esi]
lea eax, [ebp - 0x1a4]
call fcn.00404c10
mov dword [ebp - 0x1a4], 0
lea eax, [ebp - 0x1a8]
call fcn.00404c10
mov dword [ebp - 0x1a8], 0
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x120]
mov cl, 1
mov edx, 0x104
call fcn.00408720
mov eax, dword [ebp - 0x1a8]
lea edx, [ebp - 0x1a4]
call fcn.00419680
mov edx, dword [ebp - 0x1a4]
mov eax, dword [ebp - 0x150]
call fcn.00408b40
test eax, eax
jle 0x49951a
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x13c]
mov dword [eax], edx
lea eax, [ebp - 0x1a8]
call fcn.00404c10
mov dword [ebp - 0x1a8], 0
lea eax, [ebp - 0x1a8]
push eax
lea eax, [ebp - 0x120]
mov cl, 1
mov edx, 0x104
call fcn.00408720
mov eax, dword [ebp - 0x1a8]
call fcn.00408320
mov ebx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00404c10
mov eax, dword [ebp - 0x1a8]
mov dword [ebx], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x1bc], eax
mov dword [ebp - 0x1c0], 0xb
mov eax, dword [ebp - 0x150]
mov dword [ebp - 0x1b4], eax
mov dword [ebp - 0x1b8], 0xb
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x1b0], 0
lea eax, [ebp - 0x1c0]
push eax
push 2
mov eax, dword [0x7cefc0]
mov ecx, str.IsSimiliarProcessRunning:__s_found__searchStr_s__pid_d
mov edx, 4
call fcn.00415900
mov byte [ebp - 0x10], 1
jmp 0x499552
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x14]
call sub.kernel32.dll_Process32Next
test al, al
jne 0x4993f4
call fcn.0040d3b0
push dword [ebp - 0x14]
call sub.kernel32.dll_CloseHandle
pop eax
test eax, eax
je 0x499557
sub eax, 1
je 0x49954d
sub eax, 1
je 0x499587
call fcn.0040d520
pop eax
push 2
jmp 0x499531
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x1b0], 0xb
lea eax, [ebp - 0x1b0]
push eax
push 0
mov eax, dword [0x7cefc0]
mov ecx, str.IsSimiliarProcessRunning:__s_not_found
mov edx, 4
call fcn.00415900
call fcn.0040d3b0
lea eax, [ebp - 0x1a8]
call fcn.00404c10
mov dword [ebp - 0x1a8], 0
lea eax, [ebp - 0x1a4]
call fcn.00404c10
mov dword [ebp - 0x1a4], 0
lea eax, [ebp - 0x150]
call fcn.00404c10
mov dword [ebp - 0x150], 0
lea eax, [ebp - 4]
call fcn.00404c10
pop eax
test eax, eax
je 0x4995dd
call fcn.0040d520
mov al, byte [ebp - 0x10]
mov ebx, dword [ebp - 0x1c4]
leave
ret