Function at 0x422040
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f7a74
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x55a3d0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x27c], esi
mov dword [ebp - 0x278], edi
mov dword [ebp - 0x274], edi
mov dword [ebp - 0x270], edi
mov dword [ebp - 0x26c], edi
mov dword [ebp - 4], edi
cmp dword [ebx + 0x10], edi
jne 0x4220be
lea eax, [ebp - 0x274]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
cmp esi, eax
je 0x422371
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
jmp 0x422371
push 0x228
lea ecx, [ebp - 0x260]
push edi
push ecx
call fcn.004b9c30
add esp, 0xc
push 0
push 2
mov dword [ebp - 0x264], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x278], eax
cmp eax, 0xffffffff
jne 0x422117
xor eax, eax
lea edx, [ebp - 0x274]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
cmp esi, edx
je 0x422371
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
jmp 0x422371
lea ecx, [ebp - 0x264]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x422200
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
jne 0x422184
lea edx, [ebp - 0x314]
push edx
call fcn.00403200
lea eax, [ebp - 0x314]
push str.No_process_with_the_given_name
push eax
mov byte [ebp - 4], 1
call fcn.00404d50
lea ecx, [ebp - 0x314]
push ebx
push ecx
call fcn.0041b8e0
add esp, 0x10
lea esi, [ebp - 0x30]
lea eax, [ebp - 0x314]
call fcn.00402e30
mov edx, esi
push edx
mov byte [ebp - 4], 2
push 3
jmp 0x4221cc
lea eax, [ebp - 0x314]
push eax
call fcn.00403200
lea ecx, [ebp - 0x314]
push str.Process32First___failed_with_error
push ecx
mov byte [ebp - 4], 3
call fcn.00404d50
add esp, 8
push esi
lea edx, [ebp - 0x314]
push edx
call fcn.004024b0
lea esi, [ebp - 0x30]
lea eax, [ebp - 0x314]
call fcn.00402e30
mov eax, esi
push eax
mov byte [ebp - 4], 4
push 2
call fcn.00423a40
add esp, 8
lea ecx, [ebp - 0x30]
call fcn.00412770
lea ecx, [ebp - 0x314]
mov byte [ebp - 4], 0
call fcn.00401690
mov ecx, dword [ebp - 0x278]
push ecx
jmp 0x422345
lea eax, [ebp - 0x240]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x422210
sub eax, edx
sar eax, 1
push eax
mov eax, dword [ebx + 0x10]
lea edx, [ebp - 0x240]
push edx
push eax
push 0
mov ecx, ebx
call fcn.0040dad0
test eax, eax
jne 0x4222af
lea ecx, [ebp - 0x25c]
cmp ecx, edi
jae 0x422281
mov edx, ecx
cmp dword [ebp - 0x274], edx
ja 0x422281
mov esi, ecx
sub esi, dword [ebp - 0x274]
sar esi, 2
cmp edi, dword [ebp - 0x26c]
jne 0x422270
lea eax, [ebp - 0x274]
call fcn.00422570
mov edi, dword [ebp - 0x270]
test edi, edi
je 0x4222a6
mov eax, dword [ebp - 0x274]
mov ecx, dword [eax + esi*4]
mov dword [edi], ecx
jmp 0x4222a6
cmp edi, dword [ebp - 0x26c]
jne 0x42229a
lea eax, [ebp - 0x274]
call fcn.00422570
mov edi, dword [ebp - 0x270]
test edi, edi
je 0x4222a6
mov edx, dword [ebp - 0x25c]
mov dword [edi], edx
add edi, 4
mov dword [ebp - 0x270], edi
mov ecx, dword [ebp - 0x278]
lea eax, [ebp - 0x264]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x422200
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
je 0x42233e
lea edx, [ebp - 0x314]
push edx
call fcn.00403200
lea eax, [ebp - 0x314]
push str.Process32Next___failed_with_error
push eax
mov byte [ebp - 4], 5
call fcn.00404d50
add esp, 8
push esi
lea ecx, [ebp - 0x314]
push ecx
call fcn.004024b0
lea esi, [ebp - 0x30]
lea eax, [ebp - 0x314]
call fcn.00402e30
mov edx, esi
push edx
push 2
mov byte [ebp - 4], 6
call fcn.00423a40
add esp, 8
mov ecx, esi
call fcn.00412770
lea ecx, [ebp - 0x314]
mov byte [ebp - 4], 0
call fcn.00401690
mov eax, dword [ebp - 0x278]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x27c]
lea ecx, [ebp - 0x274]
mov eax, esi
call fcn.00422530
mov eax, dword [ebp - 0x274]
test eax, eax
je 0x422371
push eax
call fcn.004b5907
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b58f8
mov esp, ebp
pop ebp
ret