Function at 0x466350
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4a0f53
mov eax, dword fs:[0]
push eax
sub esp, 0x548
mov eax, dword [0x4bf6bc]
xor eax, esp
mov dword [esp + 0x540], eax
push ebx
push esi
push edi
mov eax, dword [0x4bf6bc]
xor eax, esp
push eax
lea eax, [esp + 0x558]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
cmp dword [edi + 0x10], ebx
je 0x466552
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
jne 0x466559
lea ecx, [esp + 0x24]
push ecx
call fcn.004059f0
mov dword [esp + 0x560], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea edx, [esp + 0x2c]
push str.CTS_FAILED._GetLastError:
push edx
call fcn.004090a0
add esp, 0xc
push eax
call fcn.0045f6e0
push 0x20
mov esi, 0xf
push str.CProcUtility::GetProcessIDByName
lea ecx, [esp + 0x2f8]
mov dword [esp + 0x30c], esi
mov dword [esp + 0x308], ebx
mov byte [esp + 0x2f8], bl
call fcn.00407f60
mov byte [esp + 0x560], 1
push esi
push str.ProcUtility.cpp
lea ecx, [esp + 0x314]
mov dword [esp + 0x328], esi
mov dword [esp + 0x324], ebx
mov byte [esp + 0x314], bl
call fcn.00407f60
mov byte [esp + 0x560], 2
lea eax, [esp + 0x328]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00405af0
mov byte [esp + 0x560], 3
push eax
push 0x4c
push ebx
call fcn.004061f0
push eax
lea edx, [esp + 0x300]
lea ecx, [esp + 0x31c]
call fcn.00462280
mov byte [esp + 0x560], 2
cmp dword [esp + 0x33c], 8
jb 0x4664b2
mov edx, dword [esp + 0x328]
push edx
call fcn.0047bd91
add esp, 4
xor eax, eax
mov dword [esp + 0x33c], 7
mov dword [esp + 0x338], ebx
mov word [esp + 0x328], ax
mov byte [esp + 0x560], 1
mov edi, 0x10
cmp dword [esp + 0x320], edi
jb 0x4664f4
mov ecx, dword [esp + 0x30c]
push ecx
call fcn.0047bd91
add esp, 4
mov dword [esp + 0x320], esi
mov dword [esp + 0x31c], ebx
mov byte [esp + 0x30c], bl
mov byte [esp + 0x560], bl
cmp dword [esp + 0x304], edi
jb 0x466529
mov edx, dword [esp + 0x2f0]
push edx
call fcn.0047bd91
add esp, 4
mov dword [esp + 0x304], esi
mov dword [esp + 0x300], ebx
mov byte [esp + 0x2f0], bl
mov dword [esp + 0x560], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.004039b0
xor eax, eax
jmp 0x4668b3
lea eax, [esp + 0xbc]
push eax
push esi
mov dword [esp + 0xc4], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x466706
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x24]
push ecx
call fcn.004059f0
mov dword [esp + 0x560], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea edx, [esp + 0x2c]
push str.PF_FAILED._GetLastError:
push edx
call fcn.004090a0
add esp, 0xc
push eax
call fcn.0045f6e0
push 0x20
mov esi, 0xf
push str.CProcUtility::GetProcessIDByName
lea ecx, [esp + 0x314]
mov dword [esp + 0x328], esi
mov dword [esp + 0x324], ebx
mov byte [esp + 0x314], bl
call fcn.00407f60
mov byte [esp + 0x560], 5
push esi
push str.ProcUtility.cpp
lea ecx, [esp + 0x2f8]
mov dword [esp + 0x30c], esi
mov dword [esp + 0x308], ebx
mov byte [esp + 0x2f8], bl
call fcn.00407f60
mov byte [esp + 0x560], 6
lea eax, [esp + 0x328]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.00405af0
mov byte [esp + 0x560], 7
push eax
push 0x56
push ebx
call fcn.004061f0
push eax
lea edx, [esp + 0x31c]
lea ecx, [esp + 0x300]
call fcn.00462280
mov byte [esp + 0x560], 6
cmp dword [esp + 0x33c], 8
jb 0x466674
mov edx, dword [esp + 0x328]
push edx
call fcn.0047bd91
add esp, 4
xor eax, eax
mov dword [esp + 0x33c], 7
mov dword [esp + 0x338], ebx
mov word [esp + 0x328], ax
mov byte [esp + 0x560], 5
mov edi, 0x10
cmp dword [esp + 0x304], edi
jb 0x4666b6
mov ecx, dword [esp + 0x2f0]
push ecx
call fcn.0047bd91
add esp, 4
mov dword [esp + 0x304], esi
mov dword [esp + 0x300], ebx
mov byte [esp + 0x2f0], bl
mov byte [esp + 0x560], 4
cmp dword [esp + 0x320], edi
jb 0x4666ec
mov edx, dword [esp + 0x30c]
push edx
call fcn.0047bd91
add esp, 4
mov dword [esp + 0x320], esi
mov dword [esp + 0x31c], ebx
mov byte [esp + 0x30c], bl
jmp 0x46653e
lea eax, [esp + 0xbc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x4668a8
jmp 0x466724
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0xe0]
push ecx
mov eax, edi
call fcn.00405920
push eax
call fcn.0047bf35
add esp, 8
test eax, eax
jne 0x466884
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x10], ebx
je 0x46689d
mov eax, dword [esp + 0xc4]
push eax
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x466880
push 0x206
lea edx, [esp + 0x34a]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x350], cx
call fcn.00483260
add esp, 0xc
push 0x104
lea eax, [esp + 0x348]
push eax
push ebx
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x466880
xor ecx, ecx
lea eax, [esp + 0x344]
mov dword [esp + 0x304], 7
mov dword [esp + 0x300], ebx
mov word [esp + 0x2f0], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4667d2
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x348]
lea esi, [esp + 0x2f4]
call fcn.00408600
mov esi, 8
mov dword [esp + 0x560], esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0x14], esi
jb 0x46680f
mov eax, dword [eax]
push ecx
push eax
lea edx, [esp + 0x2f8]
push edx
xor eax, eax
call fcn.0045fa30
cmp eax, 0xffffffff
sete byte [esp + 0x13]
mov dword [esp + 0x560], 0xffffffff
cmp dword [esp + 0x304], esi
jb 0x46684c
mov eax, dword [esp + 0x2f0]
push eax
call fcn.0047bd91
add esp, 4
xor ecx, ecx
mov dword [esp + 0x304], 7
mov dword [esp + 0x300], ebx
mov word [esp + 0x2f0], cx
cmp byte [esp + 0x13], bl
jne 0x466880
mov edx, dword [esp + 0xc4]
push edi
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xbc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x466720
jmp 0x4668a8
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0x18], ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x558]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x540]
xor ecx, esp
call fcn.0047bd9c
mov esp, ebp
pop ebp
ret