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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14b4
call fcn.00428904
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.004287c0
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x4097ed
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004287c0
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x4097e4
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 0x409690
push 0x429a54
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x409690
cmp byte [esi + 0x11], bl
jne 0x4096a6
push dword [ebp - 8]
call fcn.00409572
pop ecx
mov byte [ebp - 1], al
jmp 0x409694
mov byte [esi + 0x10], 1
cmp byte [ebp - 1], bl
jne 0x4096a6
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x4096a6
mov dword [eax], 0xc1
mov edi, dword [ebp - 0xc]
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp byte [ebp - 1], bl
je 0x4097dd
push dword [esi + 0x14]
lea ecx, [ebp + 0xb]
push dword [ebp - 8]
call fcn.00409522
test al, al
je 0x4097dd
push str.runas
lea ecx, [ebp - 0x64]
call fcn.00404cca
xor eax, eax
push 0x144e
mov word [ebp - 0x14b4], ax
lea eax, [ebp - 0x14b2]
push ebx
push eax
call fcn.0042878d
add esp, 0xc
push 0xa28
lea eax, [ebp - 0x14b4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x38
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.0042878d
add esp, 0xc
mov dword [ebp - 0x48], 0x3c
mov dword [ebp - 0x44], 0x440
mov dword [ebp - 0x40], ebx
cmp byte [esi + 0x10], bl
je 0x409739
mov dword [ebp - 0x3c], ebx
jmp 0x409748
cmp dword [ebp - 0x4c], 8
mov eax, dword [ebp - 0x60]
jae 0x409745
lea eax, [ebp - 0x60]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x14b4]
mov dword [ebp - 0x34], eax
xor eax, eax
cmp byte [esi + 8], bl
push 6
sete al
push ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x4097d2
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4097bc
cmp dword [ebp - 0x10], ebx
je 0x4097bc
mov byte [ebp - 2], 1
cmp byte [esi + 9], bl
je 0x4097a3
cmp byte [esi + 8], bl
jne 0x4097a3
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
call fcn.004095cf
pop ecx
mov esi, dword [esi + 0xc]
cmp esi, ebx
je 0x4097b1
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
jmp 0x4097cc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4097cc
cmp dword [esi + 0x14], ebx
je 0x4097cc
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 - 0x64]
call fcn.004049d8
push edi
call fcn.004286a0
pop ecx
push dword [ebp - 8]
call fcn.004286a0
pop ecx
mov al, byte [ebp - 2]
pop edi
pop esi
pop ebx
leave
ret 4