Function at 0x41bd40
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x38]
mov eax, dword fs:[0]
sub esp, 0x38
push 0xffffffffffffffff
push 0x480f5e
push eax
mov dword fs:[0], esp
sub esp, 0x168
cmp dword [0x4aa26c], 0
je 0x41bd86
push dword [ebp + 0x40]
call fcn.0041b630
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
lea esp, [ebp + 0x38]
pop ebp
ret
mov eax, dword [0x4aa264]
push esi
test eax, eax
jne 0x41be32
lea eax, [ebp + 0x20]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 0
jb 0x41bdbb
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.ERROR:_Error_getting_psapi_function_addresses__
push 0x48649c
push eax
call fcn.0040e7e0
add esp, 0x18
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x486544
push esi
call fcn.0040e7e0
push 0x48659c
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov eax, dword [ebp + 0x34]
add esp, 0x1c
cmp eax, 0x10
jb 0x41be20
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.00404120
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
lea esp, [ebp + 0x38]
pop ebp
ret
push edi
push 0
push 2
call eax
mov edi, eax
cmp edi, 0xffffffff
jne 0x41bec6
lea eax, [ebp + 0x20]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 1
jb 0x41be6b
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.ERROR:_Cant_get_process_snapshot___Error_code:
push 0x48649c
push eax
call fcn.0040e7e0
add esp, 0x18
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x486544
push esi
call fcn.0040e7e0
push eax
call fcn.0040d5b0
add esp, 0x10
lea ecx, [ebp + 0x20]
call fcn.004058c0
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
lea esp, [ebp + 0x38]
pop ebp
ret
push ebx
lea eax, [ebp - 0x174]
mov dword [ebp - 0x174], 0x128
push eax
push edi
call sub.KERNEL32.dll_Process32First
mov ebx, dword [ebp + 0x40]
test eax, eax
je 0x41c01e
push 0
lea ecx, [ebp - 0x4c]
call fcn.0041b390
mov dword [ebp - 4], 2
nop word [eax + eax]
cmp byte [ebp - 0x150], 0
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x15c]
mov dword [ebp - 0x30], eax
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
jne 0x41bf31
xor ecx, ecx
jmp 0x41bf49
lea ecx, [ebp - 0x150]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41bf40
sub ecx, edx
push ecx
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp + 8]
call fcn.00403ef0
lea eax, [ebp + 8]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.00411110
add esp, 8
mov esi, eax
lea eax, [ebp - 0x4c]
cmp eax, esi
je 0x41bfa6
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jb 0x41bf8b
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.00404120
push esi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], 0xf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x4c], 0
call fcn.00403700
mov eax, dword [ebp + 0x34]
cmp eax, 0x10
jb 0x41bfbb
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.00404120
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0x34], 0xf
mov dword [ebp + 0x30], 0
mov byte [ebp + 0x20], 0
mov byte [ebp - 4], 2
cmp eax, 0x10
jb 0x41bfe6
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.00404120
push dword [ebp + 4]
lea eax, [ebp - 0x4c]
mov ecx, ebx
push eax
push 0
lea eax, [ebp]
push eax
call fcn.0041d980
lea eax, [ebp - 0x174]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x41bf00
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x4c]
call fcn.004058c0
mov eax, dword [ebx + 4]
mov ecx, dword [ebp - 0xc]
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
lea esp, [ebp + 0x38]
pop ebp
ret