Function at 0x42233e
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
push esi
push edi
xor edi, edi
push edi
push 2
mov dword [ebp - 4], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 8], esi
jne 0x4223ff
cmp dword [0x441ff4], edi
je 0x4224b8
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x422394
mov ecx, dword [0x441fdc]
cmp dword [ecx], edi
jne 0x4224b8
cmp eax, 1
jle 0x4224b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call esi
cmp dword [0x43d8ac], edi
mov dword [ebp + 8], eax
jge 0x4223b9
mov eax, dword [0x441fa0]
mov dword [0x43d8ac], eax
call fcn.0041c4b1
test eax, eax
je 0x4223f0
push 1
push dword [0x43d8ac]
push 0x564
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHAREDutility_apiext.cpp
call fcn.0041c4e1
add esp, 0x10
call esi
push eax
push str.GetProcessByName____Failed_to_call_CreateToolhelp32Snapshot____error:__u_n
call fcn.0041c506
pop ecx
pop ecx
call fcn.0041c4cc
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 8]
jmp 0x4224b2
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x4224bf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [0x441ff4], edi
je 0x4224b8
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x42244c
mov ecx, dword [0x441fdc]
cmp dword [ecx], edi
jne 0x4224b8
cmp eax, 1
jle 0x4224b8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call esi
cmp dword [0x43d8ac], edi
mov dword [ebp + 8], eax
jge 0x422471
mov eax, dword [0x441fa0]
mov dword [0x43d8ac], eax
call fcn.0041c4b1
test eax, eax
je 0x4224a8
push 1
push dword [0x43d8ac]
push 0x56c
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHAREDutility_apiext.cpp
call fcn.0041c4e1
add esp, 0x10
call esi
push eax
push str.GetProcessByName____Failed_to_call_Process32First____error:__u_n
call fcn.0041c506
pop ecx
pop ecx
call fcn.0041c4cc
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4225ac
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
push eax
call sub.MSVCRT.dll__stricmp
pop ecx
test eax, eax
pop ecx
je 0x4224ea
lea eax, [ebp - 0x130]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4224bf
jmp 0x4225a0
push dword [ebp - 0x128]
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x4225a0
cmp dword [0x441ff4], edi
je 0x4225a0
mov eax, dword [0x441fd4]
mov eax, dword [eax]
cmp eax, 1
je 0x42252c
mov ecx, dword [0x441fdc]
cmp dword [ecx], edi
jne 0x4225a0
cmp eax, 1
jle 0x4225a0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call esi
cmp dword [0x43d8ac], edi
mov dword [ebp + 8], eax
jge 0x422551
mov eax, dword [0x441fa0]
mov dword [0x43d8ac], eax
call fcn.0041c4b1
test eax, eax
je 0x422590
push 1
push dword [0x43d8ac]
push 0x57a
push str.C:_build_rel_sp_8_4_6_2_srcwindowsSHAREDutility_apiext.cpp
call fcn.0041c4e1
add esp, 0x10
call esi
push eax
lea eax, [ebp - 0x10c]
push eax
push str.GetProcessByName____Failed_to_open_process___s___error:_u_n
call fcn.0041c506
add esp, 0xc
call fcn.0041c4cc
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret