Function at 0x42a20a
Capabilities:
Create process on windows
Set environment variable
Terminate process

Disassembly:
push 0x2b8
mov eax, 0x4be761
call fcn.004a9294
mov eax, dword [ebp + 0x14]
mov ebx, ecx
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], ebx
xor esi, esi
push 0x40
lea eax, [ebp - 0x2c0]
push esi
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x2c4], esi
call fcn.004a4b50
xor eax, eax
mov dword [ebp - 0x278], esi
lea edi, [ebp - 0x274]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
cmp ebx, esi
jne 0x42a26c
lea eax, [ebp - 0x224]
mov dword [ebp - 0x224], eax
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x220], esp
mov ecx, esp
push eax
call fcn.00423ac9
lea eax, [ebp - 0x220]
push eax
call fcn.00461a10
mov eax, dword [eax]
push 0x4cdbc8
push eax
call fcn.004a4133
mov ecx, dword [ebp - 0x220]
add esp, 0x10
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.0042101a
test bl, bl
je 0x42a327
call fcn.00495d32
push eax
lea ecx, [ebp - 0x220]
call fcn.004249e1
mov byte [ebp - 4], 3
call fcn.00495d32
push eax
lea ecx, [ebp - 0x22c]
call fcn.004249e1
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 8]
push eax
push ecx
mov dword [ebp - 0x27c], esp
mov ecx, esp
push eax
mov byte [ebp - 4], 4
call fcn.00423ac9
call fcn.0048ac00
mov ecx, dword [ebp - 0x22c]
add esp, 0x14
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.0042101a
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c4], 0x44
mov ecx, 0x4cdbd0
cmp dword [eax - 0xc], esi
jne 0x42a343
mov ecx, 0x4cc11c
push eax
push ecx
push dword [ebp + 8]
lea eax, [ebp - 0x21c]
push 0x4cdbd4
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x2c4]
push eax
push dword [ebp - 0x228]
lea eax, [ebp - 0x21c]
push esi
push esi
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x42a3c9
cmp dword [ebp + 0x18], esi
je 0x42a39b
push 0xffffffffffffffff
push dword [ebp - 0x278]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp - 0x270]
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0042101a
mov eax, esi
jmp 0x42a55e
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, dword [ebp - 0x224]
mov dword [ebx], eax
cmp eax, 0xc1
jne 0x42a46c
push 0x38
lea eax, [ebp - 0x264]
push esi
push eax
call fcn.004a4b50
mov eax, dword [ebp + 8]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x254], eax
add esp, 0xc
xor edi, edi
lea eax, [ebp - 0x268]
inc edi
push eax
mov dword [ebp - 0x25c], str.open
mov dword [ebp - 0x268], 0x3c
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], esi
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x24c], edi
mov dword [ebp - 0x248], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x42a3a1
cmp dword [ebp + 0x18], esi
je 0x42a465
push 0xffffffffffffffff
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, edi
jmp 0x42a3a1
cmp eax, 0x2e4
je 0x42a483
cmp eax, 0x4c7
je 0x42a483
call edi
mov dword [ebx], eax
jmp 0x42a3a1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.004604e0
test eax, eax
je 0x42a4a4
push str.RunAsAdmin
push str.__COMPAT_LAYER
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x38
lea eax, [ebp - 0x264]
push esi
push eax
call fcn.004a4b50
add esp, 0xc
push dword [ebp + 8]
mov dword [ebp - 0x25c], str.runas
mov dword [ebp - 0x268], 0x3c
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x260], esi
call fcn.004a535d
pop ecx
push dword [ebp + 0x10]
mov dword [ebp - 0x258], eax
call fcn.004a535d
pop ecx
push dword [ebp - 0x228]
mov dword [ebp - 0x254], eax
call fcn.004a535d
pop ecx
push 6
push esi
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], 1
mov dword [ebp - 0x248], esi
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x42a537
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call edi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
mov dword [ebx], eax
call fcn.0042101a
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0042101a
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff0
call fcn.0042101a
xor eax, eax
call fcn.004a9317
ret