Function at 0x42e30e
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x48dc38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x230], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x224], eax
mov eax, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x23c], eax
xor eax, eax
push 0x44
push eax
lea eax, [ebp - 0x298]
mov dword [ebp - 0x234], edx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
lea edi, [ebp - 0x24c]
stosd dword es:[edi], eax
add esp, 0xc
xor ecx, ecx
mov esi, ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x220], esi
stosd dword es:[edi], eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x214], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x218]
push eax
push 1
push 2
push ecx
push 0x2000000
push ebx
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x42e3cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004317f4
mov edi, eax
push edi
call fcn.004314fa
mov ebx, dword [ebp - 0x214]
jmp 0x42e592
push 5
pop eax
mov word [ebp - 0x268], ax
xor eax, eax
push eax
push dword [ebp - 0x218]
mov dword [ebp - 0x290], eax
lea eax, [ebp - 0x21c]
push eax
mov dword [ebp - 0x298], 0x44
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x42e3ac
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x42e3ac
mov ecx, dword [ebp - 0x224]
test ecx, ecx
je 0x42e426
xor eax, eax
cmp ax, word [ecx]
jne 0x42e432
lea eax, [ebp - 0x210]
mov dword [ebp - 0x224], eax
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x42e443
xor ecx, ecx
cmp cx, word [eax]
jne 0x42e48d
push 0x40cc38
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push 0x40cc48
push eax
call fcn.0041a612
mov edi, eax
add esp, 0x10
test edi, edi
jns 0x42e47a
push edi
call fcn.004314fa
mov esi, dword [ebp - 0x220]
jmp 0x42e3c0
mov esi, dword [ebp - 0x220]
xor ebx, ebx
mov eax, esi
inc ebx
mov dword [ebp - 0x228], eax
jmp 0x42e48f
mov ebx, ecx
mov ecx, dword [ebp - 0x230]
test ecx, ecx
je 0x42e4c0
xor edx, edx
cmp word [ecx], dx
je 0x42e4c0
push ecx
push eax
lea eax, [ebp - 0x214]
push 0x408d04
push eax
call fcn.0041a612
mov edi, eax
add esp, 0x10
test edi, edi
js 0x42e3ba
push 4
lea eax, [ebp - 0x234]
push eax
push 0xc
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x42e3ac
push 4
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 1
push eax
push 0x1a
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x42e3ac
lea eax, [ebp - 0x24c]
shl ebx, 4
push eax
lea eax, [ebp - 0x298]
or ebx, 0x400
push eax
mov eax, dword [ebp - 0x224]
push eax
push dword [ebp - 0x21c]
xor eax, eax
push ebx
mov ebx, dword [ebp - 0x214]
push eax
push eax
push eax
mov eax, dword [ebp - 0x228]
push ebx
push eax
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x42e566
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004317f4
mov edi, eax
push edi
call fcn.004314fa
jmp 0x42e592
mov ecx, dword [ebp - 0x23c]
test ecx, ecx
je 0x42e57a
mov eax, dword [ebp - 0x24c]
mov dword [ecx], eax
jmp 0x42e586
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00431467
test ebx, ebx
je 0x42e5a2
push ebx
call fcn.00431523
cmp dword [ebp - 0x21c], 0
je 0x42e5c1
push dword [ebp - 0x21c]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
jmp 0x42e5c3
xor ebx, ebx
cmp dword [ebp - 0x218], 0
je 0x42e5de
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x218], ebx
test esi, esi
je 0x42e5e8
push esi
call fcn.00431523
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047c8b0
leave
ret 0x20