Function at 0x409780
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x29c
mov eax, dword [0x428930]
xor eax, esp
mov dword [esp + 0x23f], eax
mov eax, dword [esp + 0x2a0]
push ebp
mov ebp, dword [esp + 0x2a8]
push esi
mov esi, dword [esp + 0x2b0]
mov dword [esp + 8], eax
test esi, esi
je 0x409ac0
push ebx
mov ebx, dword [esi + 0xc]
test ebx, ebx
je 0x409abf
mov ecx, dword [esi + 8]
push ebx
push 0x421de0
push 0xffffffffffffffff
lea edx, [esp + 0x250]
push 0x10
push edx
mov dword [esp + 0x24], ecx
call fcn.0041453f
mov eax, dword [esi + 0x10]
push eax
push 0x421de0
push 0xffffffffffffffff
lea ecx, [esp + 0x2a4]
push 0x10
push ecx
call fcn.0041453f
add esp, 0x28
cmp ebp, fcn.00409690
jne 0x40982a
mov ecx, dword [esi]
push 0
lea edx, [esp + 0x288]
push edx
lea eax, [esp + 0x24c]
push eax
push ecx
push 0x400003ff
push 4
call fcn.00402230
add esp, 0x18
push edi
push ebx
push 0
push 0x100411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x409924
mov edx, dword [esp + 0x2bc]
push edx
push 0x421de0
push 0xffffffffffffffff
lea eax, [esp + 0x274]
push 0x10
push eax
call fcn.0041453f
add esp, 0x14
cmp ebp, fcn.00409690
jne 0x409890
mov ecx, dword [esi]
push 0
push ecx
lea edx, [esp + 0x270]
push edx
lea eax, [esp + 0x254]
push eax
push 0x40000403
push 4
call fcn.00402230
add esp, 0x18
mov ecx, dword [esp + 0x10]
push esi
push ecx
mov dword [esi + 4], edi
call ebp
add esp, 8
test eax, eax
jne 0x40991b
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4098bc
cmp dword [esp + 0x18], 0x103
jne 0x40991b
test byte [esi + 0x14], 8
push 0
je 0x4098f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004020f0
add esp, 4
push eax
mov eax, dword [esi]
push eax
lea ecx, [esp + 0x254]
push ecx
push 0xc0000404
push 1
call fcn.00402230
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409950
mov eax, dword [esi]
push str.AppStopMethodSkip
push str.NSSM
lea edx, [esp + 0x254]
push edx
push eax
push 0x8000041d
push 2
call fcn.00402230
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409950
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004020f0
mov ecx, dword [esi]
add esp, 4
push eax
push ecx
lea edx, [esp + 0x254]
push edx
push 0xc0000402
push 1
call fcn.00402230
add esp, 0x18
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x409989
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004020f0
add esp, 4
push eax
mov eax, dword [esi]
push eax
push 0xc0000400
push 1
call fcn.00402230
add esp, 0x14
jmp 0x409abe
push 0x22c
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.00414af0
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
push edi
mov dword [esp + 0x24], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x4099e3
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004020f0
add esp, 4
push eax
mov eax, dword [esi]
push eax
push 0xc0000401
push 1
call fcn.00402230
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409abe
inc dword [esi + 8]
push ebx
lea ecx, [esp + 0x20]
push ecx
push esi
call fcn.004090f0
add esp, 0xc
test eax, eax
jne 0x409a17
mov eax, dword [esp + 0x2bc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
push eax
push esi
push ebp
push ecx
mov dword [esi + 0xc], edx
call fcn.00409780
add esp, 0x10
lea edx, [esp + 0x1c]
push edx
push edi
mov dword [esi + 0xc], ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x409a73
lea esp, [esp]
push ebx
lea eax, [esp + 0x20]
push eax
push esi
call fcn.004090f0
add esp, 0xc
test eax, eax
jne 0x409a61
mov edx, dword [esp + 0x2bc]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
push edx
push esi
push ebp
push eax
mov dword [esi + 0xc], ecx
call fcn.00409780
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
push edi
mov dword [esi + 0xc], ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x409a30
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x12
jne 0x409a90
mov edx, dword [esp + 0x14]
push edi
mov dword [esi + 8], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409abe
push 0
call ebx
push eax
call fcn.004020f0
add esp, 4
push eax
mov eax, dword [esi]
push eax
push 0xc0000401
push 1
call fcn.00402230
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
mov dword [esi + 8], ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x2a0]
pop esi
pop ebp
xor ecx, esp
call fcn.00414adc
add esp, 0x29c
ret