Function at 0x404d50
Capabilities:
Enumerate processes
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x442f1f
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x4567a0]
xor eax, esp
mov dword [esp + 0x23c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4567a0]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
xor ebx, ebx
push 0x228
lea eax, [esp + 0x2c]
mov dword [esp + 0x260], ebx
push ebx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ebx
call fcn.0042af00
mov ebp, dword [esp + 0x270]
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, esi
add esp, 0xc
or eax, ecx
jge 0x404dde
push esi
lea ecx, [esp + 0x268]
call fcn.00401b30
mov ebp, dword [esp + 0x264]
lea ecx, [esi + 1]
push ecx
push ebp
call fcn.00429faf
add esp, 8
cmp esi, ebx
jl 0x4050db
cmp esi, dword [ebp - 8]
jg 0x4050db
push ebx
mov dword [ebp - 0xc], esi
push 2
mov word [ebp + esi*2], bx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x1c], edi
jne 0x404ec4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00413b0f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x404e3d
push 0x80004005
call fcn.00401ab0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push esi
lea ecx, [esp + 0x18]
push str.IsProcessRunning_returning_FALSE:__ld
push ecx
mov byte [esp + 0x268], 1
call fcn.004022a0
mov esi, dword [esp + 0x20]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov byte [esp + 0x25c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x404e96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x25c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404ebd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4051ef
lea ecx, [esp + 0x24]
push ecx
push edi
mov dword [esp + 0x2c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4050e5
call fcn.00413b0f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x404ef9
push 0x80004005
call fcn.00401ab0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x25c], 2
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Value_of_pe32.szExeFile
call esi
lea ecx, [esp + 0x48]
push ecx
call esi
lea eax, [esp + 0x48]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404f30
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x4c]
push edx
lea ecx, [esp + 0x20]
call fcn.00401cf0
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], ebx
jle 0x404fe0
push 0x5c
push esi
call fcn.00429d06
add esp, 8
cmp eax, ebx
je 0x404fe0
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
je 0x404fe0
push 0x5c
push esi
call fcn.00429d28
add esp, 8
cmp eax, ebx
jne 0x404f87
or eax, 0xffffffff
jmp 0x404f8b
sub eax, esi
sar eax, 1
mov esi, dword [esi - 0xc]
sub esi, eax
sub esi, 1
push esi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
call fcn.00405eb0
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x260], 3
call fcn.00401c70
mov byte [esp + 0x25c], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404fdc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
mov edi, dword [esi - 0xc]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x405002
push edi
lea ecx, [esp + 0x1c]
call fcn.00401b30
mov esi, dword [esp + 0x18]
lea ecx, [edi + 1]
push ecx
push esi
call fcn.00429faf
add esp, 8
cmp edi, ebx
jl 0x4050db
cmp edi, dword [esi - 8]
jg 0x4050db
mov dword [esi - 0xc], edi
mov word [esi + edi*2], bx
cmp dword [ebp - 0xc], ebx
jl 0x405043
push esi
push ebp
call fcn.00429ca8
add esp, 8
cmp eax, ebx
je 0x405043
sub eax, ebp
sar eax, 1
cmp eax, 0xffffffff
jne 0x40505c
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x24]
push edx
push eax
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x404f11
jmp 0x40507b
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.strProcess_found
call edi
push esi
call edi
push str.IsProcessRunning_returning_TRUE
mov dword [esp + 0x18], 1
call edi
lea eax, [esi - 0x10]
mov byte [esp + 0x25c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40509e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x14]
cmp edi, ebx
jne 0x4051c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00413b0f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40516d
push 0x80004005
call fcn.00401ab0
push 0x80070057
call fcn.00401ab0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00413b0f
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x405107
push 0x80004005
call fcn.00401ab0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push esi
lea ecx, [esp + 0x18]
push str.returning_FALSE__ProcessFirst_failed:__ld
push ecx
mov byte [esp + 0x268], 4
call fcn.004022a0
mov esi, dword [esp + 0x20]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x25c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4050a2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4050a2
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push esi
lea ecx, [esp + 0x18]
push str.returning_FALSE:__ld
push ecx
mov byte [esp + 0x268], 5
call fcn.004022a0
mov esi, dword [esp + 0x20]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov byte [esp + 0x25c], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4051c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x25c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4051ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x23c]
xor ecx, esp
call fcn.00429384
add esp, 0x24c
ret 4