Function at 0x40f610
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x428342
mov eax, dword fs:[0]
push eax
sub esp, 0xa50
mov eax, dword [0x438860]
xor eax, esp
mov dword [esp + 0xa4c], eax
push ebp
push esi
push edi
mov eax, dword [0x438860]
xor eax, esp
push eax
lea eax, [esp + 0xa60]
mov dword fs:[0], eax
lea ecx, [esp + 0x14]
call fcn.00402910
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x28]
mov dword [esp + 0xa6c], 0
call fcn.004022b0
push 1
push 0
push 0
push 0x433138
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xa7c], 1
call fcn.00402420
test al, al
je 0x40f983
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x652]
push edx
mov word [esp + 0x654], cx
call fcn.00412170
xor eax, eax
push 0x7e
push eax
lea ecx, [esp + 0x5de]
push ecx
mov word [esp + 0x5e0], ax
call fcn.00412170
add esp, 0x18
push 0
push 0x104
lea edx, [esp + 0x650]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x34]
call fcn.004028e0
test al, al
je 0x40f983
push str.Version
push 0x40
lea ecx, [esp + 0x5d0]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x34]
call fcn.004028e0
test al, al
je 0x40f983
lea edi, [esp + 0x648]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40f723
mov eax, dword [0x42c504]
mov dword [edi], eax
lea eax, [esp + 0x5c8]
mov edx, eax
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40f740
lea edi, [esp + 0x648]
sub eax, edx
add edi, 0xfffffffe
jmp 0x40f760
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x40f760
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
push 0x208
push ecx
lea edx, [esp + 0x85a]
push edx
mov word [esp + 0x85c], cx
call fcn.00412170
add esp, 0xc
push 0x104
lea eax, [esp + 0x854]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x40f983
lea ecx, [esp + 0x850]
push ecx
lea ecx, [esp + 0x27c]
call fcn.00402e00
lea edx, [esp + 0x648]
push edx
lea ecx, [esp + 0x158]
mov byte [esp + 0xa6c], 2
call fcn.00402e00
lea ecx, [esp + 0x278]
mov byte [esp + 0xa68], 3
call fcn.00403420
lea ecx, [esp + 0x154]
call fcn.00403420
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x15c]
call fcn.00403130
push eax
lea ecx, [esp + 0x284]
call fcn.00403150
mov byte [esp + 0xa68], 2
lea ecx, [esp + 0x154]
cmp eax, 0xffffffff
jne 0x40f858
call fcn.00402eb0
lea ecx, [esp + 0x278]
mov byte [esp + 0xa68], 1
call fcn.00402eb0
jmp 0x40f983
call fcn.00402eb0
lea ecx, [esp + 0x278]
mov byte [esp + 0xa68], 1
call fcn.00402eb0
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push 0
push 2
mov edi, eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40f983
lea eax, [esp + 0x39c]
push eax
push esi
mov dword [esp + 0x3a4], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40f983
mov ebp, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
jmp 0x40f8c0
lea ecx, [esp + 0x3c0]
push str.explorer.exe
push ecx
call fcn.00413b2a
add esp, 8
test eax, eax
jne 0x40f8f6
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x3a4]
push edx
push eax
call ebp
test eax, eax
je 0x40f8f6
cmp dword [esp + 0x10], edi
je 0x40f90d
lea ecx, [esp + 0x39c]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40f8c0
jmp 0x40f983
mov ebp, dword [esp + 0x3a4]
test ebp, ebp
jbe 0x40f983
lea edx, [esp + 0x648]
push edx
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0
call fcn.0040f050
push str._line_0__border___appidloadime
lea ecx, [esp + 0x20]
mov byte [esp + 0xa6c], 4
call fcn.0040f050
push str.SGTool.exe
lea ecx, [esp + 0x14]
mov byte [esp + 0xa6c], 5
call fcn.00408b90
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
push 0
lea eax, [esp + 0x24]
push eax
push esi
push edi
push ebp
call fcn.0040e360
add esp, 0x14
push esi
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push edi
call esi
lea ecx, [esp + 0x24]
mov byte [esp + 0xa68], 0
call fcn.004023d0
lea ecx, [esp + 0x14]
mov dword [esp + 0xa68], 0xffffffff
call fcn.00402920
mov ecx, dword [esp + 0xa60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xa4c]
xor ecx, esp
call fcn.00411e9c
add esp, 0xa5c
ret