Function at 0x47f000
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c2393
mov eax, dword fs:[0]
push eax
sub esp, 0x548
mov eax, dword [0x4eb6b8]
xor eax, esp
mov dword [esp + 0x540], eax
push ebx
push esi
push edi
mov eax, dword [0x4eb6b8]
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 0x47f202
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
jne 0x47f209
lea ecx, [esp + 0x24]
push ecx
call fcn.00410ff0
mov dword [esp + 0x560], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea edx, [esp + 0x2c]
push str.CreateToolhelp32Snapshot_FAILED._GetLastError:
push edx
call fcn.00418890
add esp, 0xc
push eax
call fcn.004102c0
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.004159b0
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.004159b0
mov byte [esp + 0x560], 2
lea eax, [esp + 0x328]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004110f0
mov byte [esp + 0x560], 3
push eax
push 0x4b
push ebx
call fcn.004117f0
push eax
lea edx, [esp + 0x300]
lea ecx, [esp + 0x31c]
call fcn.0047acf0
mov byte [esp + 0x560], 2
cmp dword [esp + 0x33c], 8
jb 0x47f162
mov edx, dword [esp + 0x328]
push edx
call fcn.0049b30a
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 0x47f1a4
mov ecx, dword [esp + 0x30c]
push ecx
call fcn.0049b30a
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 0x47f1d9
mov edx, dword [esp + 0x2f0]
push edx
call fcn.0049b30a
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.004039f0
xor eax, eax
jmp 0x47f563
lea eax, [esp + 0xbc]
push eax
push esi
mov dword [esp + 0xc4], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x47f3b6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x24]
push ecx
call fcn.00410ff0
mov dword [esp + 0x560], 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea edx, [esp + 0x2c]
push str.Process32FirstW_FAILED._The_specified_process_is_a_64_bit_process_and_the_caller_is_a_32_bit_process._GetLastError:
push edx
call fcn.00418890
add esp, 0xc
push eax
call fcn.004102c0
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.004159b0
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.004159b0
mov byte [esp + 0x560], 6
lea eax, [esp + 0x328]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004110f0
mov byte [esp + 0x560], 7
push eax
push 0x54
push ebx
call fcn.004117f0
push eax
lea edx, [esp + 0x31c]
lea ecx, [esp + 0x300]
call fcn.0047acf0
mov byte [esp + 0x560], 6
cmp dword [esp + 0x33c], 8
jb 0x47f324
mov edx, dword [esp + 0x328]
push edx
call fcn.0049b30a
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 0x47f366
mov ecx, dword [esp + 0x2f0]
push ecx
call fcn.0049b30a
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 0x47f39c
mov edx, dword [esp + 0x30c]
push edx
call fcn.0049b30a
add esp, 4
mov dword [esp + 0x320], esi
mov dword [esp + 0x31c], ebx
mov byte [esp + 0x30c], bl
jmp 0x47f1ee
lea eax, [esp + 0xbc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x47f558
jmp 0x47f3d4
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0xe0]
push ecx
mov eax, edi
call fcn.00410cd0
push eax
call fcn.0049e6e1
add esp, 8
test eax, eax
jne 0x47f534
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0x10], ebx
je 0x47f54d
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 0x47f530
push 0x206
lea edx, [esp + 0x34a]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x350], cx
call fcn.004a2b10
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 0x47f530
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 0x47f482
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x348]
lea esi, [esp + 0x2f4]
call fcn.00415f60
mov esi, 8
mov dword [esp + 0x560], esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
cmp dword [eax + 0x14], esi
jb 0x47f4bf
mov eax, dword [eax]
push ecx
push eax
lea edx, [esp + 0x2f8]
push edx
xor eax, eax
call fcn.00413a10
cmp eax, 0xffffffff
sete byte [esp + 0x13]
mov dword [esp + 0x560], 0xffffffff
cmp dword [esp + 0x304], esi
jb 0x47f4fc
mov eax, dword [esp + 0x2f0]
push eax
call fcn.0049b30a
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 0x47f530
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 0x47f3d0
jmp 0x47f558
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.0049b315
mov esp, ebp
pop ebp
ret