Function at 0x4420e231
Capabilities:
Create process on windows
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x34], ebx
lea edi, [ebp - 0x30]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x74]
push ebx
push eax
mov dword [ebp - 0x78], ebx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.4420e106
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test al, al
je 0x4420e3f0
push ebx
mov edi, 0x3000
push str.Progman
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], edi
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, ebx
je 0x4420e3f0
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
call fcn.4420e139
pop ecx
pop ecx
test al, al
je 0x4420e3f0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.4420e139
pop ecx
pop ecx
test al, al
je 0x4420e3f0
cmp dword [ebp - 0x14], edi
jne 0x4420e3f0
cmp dword [ebp - 0x18], 0x2000
jne 0x4420e3f0
push dword [ebp - 0x10]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x4420e3f0
lea eax, [ebp - 8]
push eax
push 0x1a
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4420e3f0
lea eax, [ebp - 4]
push eax
push 1
push 2
push ebx
push 0xf01ff
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4420e3f0
push str.AdvApi32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x4420e3f0
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x4420e3e7
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
push ebx
mov dword [ebp - 0x1c], eax
call edi
mov dword [ebp - 0x18], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx + ecx + 2]
push ecx
push ebx
push eax
mov dword [ebp - 0x14], eax
call sub.MSVCR90.dll_memset
add esp, 0x10
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call edi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push dword [ebp - 4]
call dword [ebp - 0x20]
push dword [ebp - 0x34]
call esi
push dword [ebp - 0x30]
call esi
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push dword [ebp - 0x14]
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
pop ecx
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 4], ebx
je 0x4420e3fa
push dword [ebp - 4]
call esi
cmp dword [ebp - 8], ebx
je 0x4420e404
push dword [ebp - 8]
call esi
cmp dword [ebp - 0xc], ebx
je 0x4420e40e
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 0x2c], ebx
jne 0x4420e42f
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x78]
push eax
push ebx
push ebx
push dword [ebp + 0x10]
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 0x34], ebx
je 0x4420e439
push dword [ebp - 0x34]
call esi
cmp dword [ebp - 0x30], ebx
je 0x4420e443
push dword [ebp - 0x30]
call esi
xor eax, eax
cmp dword [ebp - 0x2c], ebx
pop edi
pop esi
setne al
pop ebx
leave
ret