Function at 0x419250
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x519714
mov eax, dword fs:[0]
push eax
sub esp, 0x318
mov eax, dword [0x580b30]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x278], esi
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x270], ebx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x268], ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x10], ebx
jne 0x4192ca
lea eax, [ebp - 0x270]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
cmp edi, eax
je 0x4195aa
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
jmp 0x4195aa
push 0x228
lea ecx, [ebp - 0x25c]
push ebx
push ecx
call fcn.004d87e0
add esp, 0xc
push 0
push 2
mov dword [ebp - 0x260], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x274], eax
cmp eax, 0xffffffff
jne 0x419323
xor eax, eax
lea edx, [ebp - 0x270]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
cmp edi, edx
je 0x4195aa
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
jmp 0x4195aa
lea ecx, [ebp - 0x260]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x419422
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x12
jne 0x41938c
lea edx, [ebp - 0x320]
push edx
call fcn.00402bd0
push esi
push ecx
lea eax, [ebp - 0x310]
push str.No_process_with_the_given_name
push eax
mov byte [ebp - 4], 1
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00413550
add esp, 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x320]
call fcn.00402c70
push eax
mov byte [ebp - 4], 2
push 3
jmp 0x4193cd
lea ecx, [ebp - 0x320]
push ecx
call fcn.00402bd0
push ebx
push ecx
lea edx, [ebp - 0x310]
push str.Process32First___failed_with_error
push edx
mov byte [ebp - 4], 3
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00402980
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x320]
call fcn.00402c70
push eax
mov byte [ebp - 4], 4
push 2
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
lea ecx, [ebp - 0x2c]
call fcn.0040a4f0
lea ecx, [ebp - 0x320]
mov byte [ebp - 4], 0
call fcn.00401820
mov eax, dword [ebp - 0x274]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
lea ecx, [ebp - 0x270]
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
cmp edi, ecx
je 0x4195aa
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
jmp 0x4195aa
lea eax, [ebp - 0x23c]
lea edx, [eax + 2]
jmp 0x419430
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419430
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esi + 0x10]
lea edx, [ebp - 0x23c]
push edx
push eax
push 0
mov ecx, esi
call fcn.00403410
test eax, eax
jne 0x4194d9
lea ecx, [ebp - 0x258]
cmp ecx, ebx
jae 0x4194ab
mov edx, ecx
cmp dword [ebp - 0x270], edx
ja 0x4194ab
mov esi, ecx
sub esi, dword [ebp - 0x270]
sar esi, 2
cmp ebx, dword [ebp - 0x268]
jne 0x419494
lea eax, [ebp - 0x270]
call fcn.0041a420
mov ebx, dword [ebp - 0x26c]
test ebx, ebx
je 0x4194a3
mov eax, dword [ebp - 0x270]
mov ecx, dword [eax + esi*4]
mov dword [ebx], ecx
mov esi, dword [ebp - 0x278]
jmp 0x4194d0
cmp ebx, dword [ebp - 0x268]
jne 0x4194c4
lea eax, [ebp - 0x270]
call fcn.0041a420
mov ebx, dword [ebp - 0x26c]
test ebx, ebx
je 0x4194d0
mov edx, dword [ebp - 0x258]
mov dword [ebx], edx
add ebx, 4
mov dword [ebp - 0x26c], ebx
mov ecx, dword [ebp - 0x274]
lea eax, [ebp - 0x260]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x419422
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x12
je 0x419566
lea edx, [ebp - 0x320]
push edx
call fcn.00402bd0
push esi
push ecx
lea eax, [ebp - 0x310]
push str.Process32Next___failed_with_error
push eax
mov byte [ebp - 4], 5
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00402980
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x320]
call fcn.00402c70
push eax
push 2
mov byte [ebp - 4], 6
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
lea ecx, [ebp - 0x2c]
call fcn.0040a4f0
lea ecx, [ebp - 0x320]
mov byte [ebp - 4], 0
call fcn.00401820
mov ecx, dword [ebp - 0x274]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x270]
xor ecx, ecx
lea edx, [ebp - 0x270]
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
cmp edi, edx
je 0x41959d
mov ecx, dword [ebp - 0x268]
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
jmp 0x4195aa
cmp eax, ecx
je 0x4195aa
push eax
call fcn.00469e1a
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d31b7
mov esp, ebp
pop ebp
ret