Function at 0x416410
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x43bad6
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x44a120]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a120]
xor eax, esp
push eax
lea eax, [esp + 0x25c]
mov dword fs:[0], eax
xor edi, edi
push 0x228
lea eax, [esp + 0x30]
push edi
push eax
mov esi, ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], edi
call fcn.00420090
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00401b70
push edi
push 2
mov dword [esp + 0x26c], edi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x41660f
lea edx, [esp + 0x28]
push edx
push ebp
mov dword [esp + 0x30], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x416604
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x20], eax
jmp 0x4164c0
mov eax, dword [esp + 0x30]
cmp eax, dword [esp + 0x20]
je 0x416583
test eax, eax
je 0x416583
cmp eax, 4
je 0x416583
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ebx, [esp + 0x54]
call fcn.00404cc0
mov eax, dword [eax]
push 0
push eax
call fcn.0041f72d
add esp, 0x10
test eax, eax
mov eax, dword [esp + 0x18]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416524
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x416583
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
lea ebx, [esp + 0x54]
call fcn.00404cc0
mov eax, dword [eax]
add esp, 8
push 0
push 0x80
push 3
push 0
push 0
push 0x10000000
push eax
call edi
mov esi, eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416577
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, 0xffffffff
je 0x416598
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x28]
push ecx
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4164c0
jmp 0x416604
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push eax
lea ebx, [esp + 0x54]
call fcn.00404cc0
add esp, 8
mov ebx, 1
mov byte [esp + 0x264], bl
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xffffffffffffffff
push str.IsProcessRunningByDirectory_CreateFile_return:_d__error:_d__path:_ws
push 0x44cfe0
call fcn.00412920
mov byte [esp + 0x278], 0
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
add esp, 0x14
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416600
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1c], ebx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x264], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41663a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0041cb94
add esp, 0x254
ret