Function at 0x401d80
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov eax, dword fs:[0x18]
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x144
mov esi, dword [eax + 0x20]
mov dword [ebp - 0x138], 0
test byte [0x40d000], 8
jne 0x401ef0
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._CreateToolhelp32Snapshot_8
sub esp, 8
mov ebx, eax
cmp eax, 0xffffffff
je 0x401eb4
lea edi, [ebp - 0x134]
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [ebp - 0x134], 0x128
call sym._Process32First_8
sub esp, 8
test eax, eax
jne 0x401e17
jmp 0x401ee3
mov dword [esp + 4], edi
mov dword [esp], ebx
call sym._Process32Next_8
sub esp, 8
test eax, eax
je 0x401ee3
cmp dword [ebp - 0x12c], esi
jne 0x401e00
mov eax, dword [ebp - 0x11c]
mov dword [esp + 4], 0
mov dword [esp], 0x100000
mov dword [esp + 8], eax
call dword [sym.imp.kernel32.dll_OpenProcess]
sub esp, 0xc
mov dword [ebp - 0x138], eax
test eax, eax
je 0x401f91
lea eax, [ebp - 0x138]
mov dword [esp + 0x10], 0x1cff
mov esi, 1
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 1
call dword [sym.imp.user32.dll_MsgWaitForMultipleObjects]
sub esp, 0x14
test eax, eax
jne 0x401f50
nop
mov eax, dword [ebp - 0x138]
test eax, eax
je 0x401ea6
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
test ebx, ebx
jne 0x401ecd
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x40d000], 2
jne 0x401fe0
mov eax, dword [ebp - 0x138]
xor esi, esi
test eax, eax
jne 0x401e9a
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x40d000], 4
jne 0x401f20
xor esi, esi
jmp 0x401e90
mov dword [esp + 0xc], str.Waiting_for_parent_process_n
mov dword [esp + 8], global___func__.13
mov dword [esp + 4], global___dbch
mov dword [esp], 3
call sym._wine_dbg_log.constprop.18
jmp 0x401dac
mov dword [esp + 0x10], esi
xor esi, esi
mov dword [esp + 0xc], str.Unable_to_find_current_process_id__ld_when_listing_processes_n
mov dword [esp + 8], global___func__.13
mov dword [esp + 4], global___dbch
mov dword [esp], 2
call sym._wine_dbg_log.constprop.18
jmp 0x401e90
test byte [0x40d000], 2
je 0x401eec
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.Unable_to_wait_for_parent_process__error__ld_n
xor esi, esi
mov dword [esp + 8], global___func__.13
mov dword [esp + 0x10], eax
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.18
jmp 0x401e90
xor esi, esi
test byte [0x40d000], 4
je 0x401ea6
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.OpenProcess_failed_pid_ld__error__ld_n
mov dword [esp + 8], global___func__.13
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x11c]
mov dword [esp + 4], global___dbch
mov dword [esp + 0x10], eax
mov dword [esp], 2
call sym._wine_dbg_log.constprop.18
jmp 0x401e90
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], str.CreateToolhelp32Snapshot_failed__error__ld_n
mov dword [esp + 8], global___func__.13
mov dword [esp + 0x10], eax
mov dword [esp + 4], global___dbch
mov dword [esp], 1
call sym._wine_dbg_log.constprop.18
jmp 0x401ec1