Function at 0x41f557
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x455841
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x489d50]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push esi
push edi
mov eax, dword [0x489d50]
xor eax, esp
push eax
lea eax, [esp + 0x478]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
push edi
mov ebx, ecx
push 2
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], eax
xor esi, esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x41f638
push str.CreateToolhelp32Snapshot_failed_in_IsProcessOrModuleInUse
lea ecx, [esp + 0x14]
call fcn.0040215a
push edi
lea eax, [esp + 0x14]
push eax
push 2
mov dword [esp + 0x48c], edi
call fcn.0040ece1
or dword [esp + 0x48c], 0xffffffff
mov ecx, dword [esp + 0x1c]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004025dc
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x41f638
xor eax, eax
mov ecx, dword [esp + 0x478]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.0043b4fa
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x1c]
mov dword [esp + 0x3c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x41f662
xor esi, esi
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x41f614
push 0x45fe80
push ebx
call fcn.0043c42f
neg eax
sbb eax, eax
pop ecx
neg eax
pop ecx
mov dword [esp + 0x24], eax
jmp 0x41f67f
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x30], ecx
cmp dword [ebp + 0xc], edi
je 0x41f69d
mov ebx, dword [esp + 0x14]
push ecx
call fcn.0041f7d3
mov esi, eax
jmp 0x41f7a1
cmp eax, edi
jne 0x41f6aa
push dword [esp + 0x14]
jmp 0x41f78f
xor eax, eax
push 0x206
mov word [esp + 0x268], ax
lea eax, [esp + 0x26a]
push edi
mov ebx, 0x104
push eax
mov dword [esp + 0x38], ebx
call fcn.0043c330
add esp, 0xc
push dword [esp + 0x3c]
push edi
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push str.Kernel32.dll
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, edi
je 0x41f740
push str.QueryFullProcessImageNameW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x1c], eax
cmp eax, edi
je 0x41f740
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x268]
push ecx
push edi
push dword [esp + 0x1c]
call eax
test eax, eax
je 0x41f740
lea eax, [esp + 0x264]
push eax
push dword [esp + 0x18]
call fcn.0043d48f
mov esi, eax
neg esi
pop ecx
sbb esi, esi
pop ecx
inc esi
cmp esi, edi
jne 0x41f7a6
cmp dword [esp + 0x1c], edi
jne 0x41f7b0
cmp dword [esp + 0x10], edi
je 0x41f785
push ebx
lea eax, [esp + 0x268]
push eax
push edi
push dword [esp + 0x1c]
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x41f785
push ebx
lea eax, [esp + 0x268]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [esp + 0x264]
push eax
push dword [esp + 0x18]
jmp 0x41f794
cmp dword [esp + 0x20], edi
je 0x41f7b0
push dword [esp + 0x20]
lea eax, [esp + 0x5c]
push eax
call fcn.0043d48f
mov esi, eax
neg esi
sbb esi, esi
pop ecx
inc esi
pop ecx
cmp esi, edi
je 0x41f7b0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov dword [ecx], eax
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x1c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x41f654
cmp esi, edi
je 0x41f67b
jmp 0x41f654