Function at 0x40aa2d
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14d0
call fcn.0042c4d8
push ebx
push esi
push edi
mov esi, ecx
push dword [esi]
xor ebx, ebx
mov byte [ebp - 2], bl
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + 0x105]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042c364
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x40ac81
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042c364
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x40ac78
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 8]
call edi
push dword [esi]
push dword [ebp - 0xc]
call edi
push dword [ebp - 8]
mov byte [ebp - 1], 1
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp eax, ebx
je 0x40aade
push str..exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40aade
cmp byte [esi + 0x11], bl
jne 0x40aaf4
push dword [ebp - 8]
call fcn.0040a64a
pop ecx
mov byte [ebp - 1], al
jmp 0x40aae2
mov byte [esi + 0x10], 1
cmp byte [ebp - 1], bl
jne 0x40aaf4
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x40aaf4
mov dword [eax], 0xc1
push dword [ebp - 0xc]
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp byte [ebp - 1], bl
je 0x40ac6f
push dword [esi + 0x14]
lea ecx, [ebp + 0xb]
push dword [ebp - 8]
call fcn.0040a5fa
test al, al
je 0x40ac6f
push str.runas
lea ecx, [ebp - 0x80]
call fcn.00404cea
xor eax, eax
push 0x144e
mov word [ebp - 0x14d0], ax
lea eax, [ebp - 0x14ce]
push ebx
push eax
call fcn.0042c331
add esp, 0xc
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
call fcn.00404cea
cmp dword [ebp + 8], ebx
je 0x40ab74
mov edi, dword [ebp - 0x14]
dec edi
push edi
lea ecx, [ebp - 0x28]
call fcn.00408204
cmp word [eax], 0x20
jne 0x40ab74
push ebx
push edi
lea ecx, [ebp - 0x28]
call fcn.00406748
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x40ab80
lea eax, [ebp - 0x24]
push 0xa28
lea ecx, [ebp - 0x14d0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x38
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.0042c331
add esp, 0xc
mov dword [ebp - 0x64], 0x3c
mov dword [ebp - 0x60], 0x440
mov dword [ebp - 0x5c], ebx
cmp byte [esi + 0x10], bl
je 0x40abbd
mov dword [ebp - 0x58], ebx
jmp 0x40abcc
cmp dword [ebp - 0x68], 8
mov eax, dword [ebp - 0x7c]
jae 0x40abc9
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x14d0]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x4c], eax
xor eax, eax
cmp byte [esi + 8], bl
push 6
sete al
push ebx
mov dword [ebp - 0x48], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x40ac59
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40ac43
cmp dword [ebp - 0x2c], ebx
je 0x40ac43
mov byte [ebp - 2], 1
cmp byte [esi + 9], bl
je 0x40ac2a
cmp byte [esi + 8], bl
jne 0x40ac2a
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
call fcn.0040a6d5
pop ecx
mov esi, dword [esi + 0xc]
cmp esi, ebx
je 0x40ac38
mov eax, dword [ebp - 0x2c]
mov dword [esi], eax
jmp 0x40ac53
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40ac53
cmp dword [esi + 0x14], ebx
je 0x40ac53
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x14]
mov dword [ecx], eax
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.004049f8
push ebx
push 1
lea ecx, [ebp - 0x80]
call fcn.004049f8
push dword [ebp - 0xc]
call fcn.0042c244
pop ecx
push dword [ebp - 8]
call fcn.0042c244
pop ecx
mov al, byte [ebp - 2]
pop edi
pop esi
pop ebx
leave
ret 4