Function at 0x404500
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x410af0
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x4173cc]
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 eax, dword [ebp + 8]
mov dword [ebp - 0x198], eax
xor ebx, ebx
mov eax, 0xf
mov edi, ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], ebx
mov byte [ebp - 0x6c], bl
mov dword [ebp - 4], ebx
push 0xe
push str.chkProcExist:
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x50], bl
call fcn.004014a0
push ebx
push 2
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40463f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x3c], 0x10
mov edx, dword [ebp - 0x50]
mov edi, eax
jae 0x404590
lea edx, [ebp - 0x50]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404595
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x6c]
call fcn.004014a0
push 0x20
mov eax, str.createToolSnap_failed_with_err:
lea ecx, [ebp - 0x6c]
call fcn.00401380
push edi
lea ecx, [ebp - 0x34]
push 0x4143f0
push ecx
call fcn.00404c19
lea eax, [ebp - 0x34]
add esp, 0xc
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4045d0
sub eax, edx
push eax
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x6c]
call fcn.00401380
mov eax, dword [ebp - 0x6c]
mov esi, 0x10
cmp dword [ebp - 0x58], esi
jae 0x4045f5
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x198]
push ebx
push eax
push edx
call fcn.004022b0
add esp, 0xc
cmp dword [ebp - 0x3c], esi
jb 0x404617
mov eax, dword [ebp - 0x50]
push eax
call fcn.00404bff
add esp, 4
cmp dword [ebp - 0x58], esi
mov byte [ebp - 0x50], bl
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], 0xf
jb 0x404635
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00404bff
add esp, 4
mov eax, 2
jmp 0x40477c
lea edx, [ebp - 0x194]
push edx
push esi
mov dword [ebp - 0x194], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x404716
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x3c], 0x10
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x19c], eax
jae 0x404677
lea edx, [ebp - 0x50]
mov eax, edx
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404680
sub eax, edi
push eax
push edx
lea ecx, [ebp - 0x6c]
call fcn.004014a0
push 0x20
mov eax, str.process32First_failed_with_err:
lea ecx, [ebp - 0x6c]
call fcn.00401380
mov eax, dword [ebp - 0x19c]
push eax
lea ecx, [ebp - 0x34]
push 0x4143f0
push ecx
call fcn.00404c19
lea eax, [ebp - 0x34]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4046c0
sub eax, edx
push eax
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x6c]
call fcn.00401380
mov eax, dword [ebp - 0x6c]
mov edi, 0x10
cmp dword [ebp - 0x58], edi
jae 0x4046e5
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x198]
push ebx
push eax
push edx
call fcn.004022b0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x3c], edi
jb 0x40470e
mov eax, dword [ebp - 0x50]
push eax
call fcn.00404bff
add esp, 4
cmp dword [ebp - 0x58], edi
jmp 0x40461a
lea edx, [ebp - 0x170]
push edi
push edx
call fcn.0040f5f8
add esp, 8
test eax, eax
je 0x404798
lea eax, [ebp - 0x194]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x404716
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
cmp dword [ebp - 0x3c], esi
jb 0x404759
mov eax, dword [ebp - 0x50]
push eax
call fcn.00404bff
add esp, 4
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x50], bl
cmp dword [ebp - 0x58], esi
jb 0x404777
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00404bff
add esp, 4
mov eax, 1
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.00404c0a
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x10
cmp dword [ebp - 0x3c], esi
jb 0x4047b5
mov ecx, dword [ebp - 0x50]
push ecx
call fcn.00404bff
add esp, 4
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x50], bl
cmp dword [ebp - 0x58], esi
jb 0x4047d3
mov edx, dword [ebp - 0x6c]
push edx
call fcn.00404bff
add esp, 4
xor eax, eax
jmp 0x40477c