Function at 0x4021b0
Capabilities:
Create process on windows
Enumerate processes
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x294
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x38]
mov dword [esp + 0x34], ebx
push ebx
rep stosd dword es:[edi], eax
push 2
mov dword [esp + 0x18], ebx
xor ebp, ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
je 0x4023ab
lea eax, [esp + 0x78]
mov dword [esp + 0x78], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4023b7
lea ecx, [esp + 0x9c]
push str.winlogon.exe
push ecx
call sub.MSVCRT.dll__wcsicmp
add esp, 8
test eax, eax
je 0x402250
lea edx, [esp + 0x78]
push edx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x402257
lea eax, [esp + 0x9c]
push str.winlogon.exe
push eax
call sub.MSVCRT.dll__wcsicmp
add esp, 8
test eax, eax
jne 0x402228
mov ebx, dword [esp + 0x80]
push esi
call edi
push ebx
push 0
push 0x2000000
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
test ebp, ebp
je 0x4023c3
lea ecx, [esp + 0x18]
push ecx
push 2
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4023cf
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x14]
push edx
push 1
push 2
push 0
push 0xf01ff
push eax
mov dword [esp + 0x4c], 0x44
mov dword [esp + 0x78], 1
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4022c2
mov dword [esp + 0x3c], str.winsta0default
mov edx, dword [esp + 0x2b4]
xor ecx, ecx
test edx, edx
mov edx, dword [esp + 0x14]
push 0
lea eax, [esp + 0x20]
push edx
setne cl
push eax
mov word [esp + 0x70], cx
mov dword [esp + 0x28], 0
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x2b4]
neg eax
push edx
mov edx, dword [esp + 0x24]
sbb eax, eax
push ecx
mov ecx, dword [esp + 0x20]
and eax, edx
mov edx, dword [esp + 0x2b8]
push eax
mov eax, dword [esp + 0x2b8]
push 0x430
push 0
push 0
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebx, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x402343
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test ebx, ebx
je 0x4023db
mov ecx, dword [esp + 0x2bc]
mov eax, dword [esp + 0x24]
test ecx, ecx
je 0x40235c
mov dword [ecx], eax
mov ecx, dword [esp + 0x2b8]
test ecx, ecx
je 0x4023f8
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
mov dword [esp + 0x20], eax
jne 0x4023f8
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x4023f8
push str.D:WorkSafeDesktopServiceStdAfx.cpp
push 0x37c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401dd0
add esp, 0xc
jmp 0x4023f8
push str.D:WorkSafeDesktopServiceStdAfx.cpp
push 0x32f
jmp 0x4023e5
push str.D:WorkSafeDesktopServiceStdAfx.cpp
push 0x334
jmp 0x4023e5
push str.D:WorkSafeDesktopServiceStdAfx.cpp
push 0x344
jmp 0x4023e5
push str.D:WorkSafeDesktopServiceStdAfx.cpp
push 0x348
jmp 0x4023e5
push str.D:WorkSafeDesktopServiceStdAfx.cpp
push 0x36f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401dd0
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x402403
push eax
call edi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40240e
push eax
call edi
test ebp, ebp
je 0x402415
push ebp
call edi
cmp esi, 0xffffffff
je 0x40241d
push esi
call edi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x294
ret