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

Disassembly:
push 0x2b8
mov eax, 0x4bd9a1
call fcn.004a9a34
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.004a52f0
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 0x42a1a7
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.00423b01
lea eax, [ebp - 0x220]
push eax
call fcn.00462390
mov eax, dword [eax]
push 0x4cdb88
push eax
call fcn.004a48d2
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 0x42a262
call fcn.004964ca
push eax
lea ecx, [ebp - 0x220]
call fcn.004249f9
mov byte [ebp - 4], 3
call fcn.004964ca
push eax
lea ecx, [ebp - 0x22c]
call fcn.004249f9
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.00423b01
call fcn.0048b0b0
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, 0x4cdb90
cmp dword [eax - 0xc], esi
jne 0x42a27e
mov ecx, 0x4cc12c
push eax
push ecx
push dword [ebp + 8]
lea eax, [ebp - 0x21c]
push 0x4cdb94
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 0x42a304
cmp dword [ebp + 0x18], esi
je 0x42a2d6
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 0x42a499
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, dword [ebp - 0x224]
mov dword [ebx], eax
cmp eax, 0xc1
jne 0x42a3a7
push 0x38
lea eax, [ebp - 0x264]
push esi
push eax
call fcn.004a52f0
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 0x42a2dc
cmp dword [ebp + 0x18], esi
je 0x42a3a0
push 0xffffffffffffffff
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, edi
jmp 0x42a2dc
cmp eax, 0x2e4
je 0x42a3be
cmp eax, 0x4c7
je 0x42a3be
call edi
mov dword [ebx], eax
jmp 0x42a2dc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.00460e60
test eax, eax
je 0x42a3df
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.004a52f0
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.004a5afd
pop ecx
push dword [ebp + 0x10]
mov dword [ebp - 0x258], eax
call fcn.004a5afd
pop ecx
push dword [ebp - 0x228]
mov dword [ebp - 0x254], eax
call fcn.004a5afd
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 0x42a472
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.004a9ab7
ret