Function at 0x408414
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1440]
mov eax, 0x14c0
call fcn.00428ac0
mov eax, dword [0x44bd78]
xor eax, ebp
mov dword [ebp + 0x143c], eax
mov eax, dword [ebp + 0x1448]
push ebx
push esi
push edi
mov esi, ecx
push dword [esi]
xor ebx, ebx
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x31], 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.00426b30
pop ecx
mov dword [ebp - 0x38], eax
cmp eax, ebx
je 0x40861e
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00426b30
pop ecx
mov dword [ebp - 0x3c], eax
cmp eax, ebx
je 0x408615
push dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0x38]
call edi
push dword [esi]
push dword [ebp - 0x3c]
call edi
push dword [ebp - 0x38]
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp eax, ebx
je 0x4084cd
push 0x43eb10
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4084cd
mov byte [esi + 0x10], 1
push dword [ebp - 0x3c]
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push dword [esi + 0x14]
lea ecx, [ebp - 0x31]
push dword [ebp - 0x38]
call fcn.00408351
test al, al
je 0x40860c
push str.runas
lea ecx, [ebp - 0x30]
call fcn.004059cf
lea eax, [ebp - 0x40]
push eax
push 0xe
mov dword [ebp - 0x40], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor eax, eax
push 0x144e
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x12]
push ebx
push eax
call fcn.00428300
add esp, 0xc
push 0x104
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x44]
push dword [ebp - 0x40]
call dword [sym.imp.USERENV.dll_ExpandEnvironmentStringsForUserW]
push dword [ebp - 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push 0x38
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.00428300
add esp, 0xc
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x7c], 0x440
mov dword [ebp - 0x78], ebx
cmp byte [esi + 0x10], bl
je 0x408571
mov dword [ebp - 0x74], ebx
jmp 0x408580
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x40857d
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x68], eax
xor eax, eax
cmp byte [esi + 8], bl
push 6
sete al
push ebx
mov dword [ebp - 0x64], eax
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x408601
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4085f0
cmp dword [ebp - 0x48], ebx
je 0x4085f0
mov byte [ebp - 0x31], 1
cmp byte [esi + 9], bl
je 0x4085db
cmp byte [esi + 8], bl
jne 0x4085db
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, eax
call fcn.004083df
mov esi, dword [esi + 0xc]
cmp esi, ebx
je 0x4085e9
mov eax, dword [ebp - 0x48]
mov dword [esi], eax
jmp 0x4085fb
push dword [ebp - 0x48]
call edi
jmp 0x4085fb
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 - 0x30]
call fcn.00405695
push dword [ebp - 0x3c]
call fcn.004278a4
pop ecx
push dword [ebp - 0x38]
call fcn.004278a4
pop ecx
mov ecx, dword [ebp + 0x143c]
mov al, byte [ebp - 0x31]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042778b
add ebp, 0x1440
leave
ret 4