Function at 0x407a10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x284
mov eax, dword [0x42b48c]
mov edx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
xor eax, ebp
push edi
mov dword [esp + 0x290], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
push str._WinSessionThread_CreateProcess_begin_dwSessionID___d_
push 0x80
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x2c], edx
call fcn.004062b0
mov eax, dword [esi + 0x108]
add esp, 0xc
test eax, eax
je 0x407a72
push edi
mov ecx, esi
call fcn.00406520
mov esi, eax
test esi, esi
jne 0x407a8b
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x280]
xor ecx, ebp
call fcn.00415d1a
mov esp, ebp
pop ebp
ret 0x10
xor edi, edi
push str.Userenv.DLL
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, eax
test edx, edx
mov dword [esp + 0x14], edx
je 0x407c35
mov dword [esp + 0xc], edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push edx
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x48], str.WinSta0Default
call edi
mov ebx, eax
mov eax, dword [esp + 0x14]
push str.DestroyEnvironmentBlock
push eax
call edi
mov edi, eax
push str.WinSessionThread_CreateProcess_SetTokenInformation_return_value:4
push 0x40
mov dword [esp + 0x2c], edi
call fcn.004062b0
add esp, 8
test ebx, ebx
je 0x407c15
test edi, edi
je 0x407c15
xor eax, eax
mov byte [esp + 0x80], 0
mov ecx, 0x81
lea edi, [esp + 0x81]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x407b73
push 0x104
push edi
lea ecx, [esp + 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x407b8b
push 0x4251f4
lea edx, [esp + 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x407b8b
mov edx, dword [esp + 0x10]
push 0x208
push edx
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0
push esi
lea ecx, [esp + 0x14]
push ecx
call ebx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x3c]
push eax
push ecx
push edx
push 0x400
push 0
push 0
push 0
lea eax, [esp + 0xa0]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x30]
push eax
push ecx
push str._WinSessionThread_CreateProcess_pid___d__CreateProcessAsUser__err___d__
push 0x80
call fcn.004062b0
mov edx, dword [esp + 0x1c]
add esp, 0x10
push edx
call dword [esp + 0x28]
test edi, edi
je 0x407c24
mov eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
push edx
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [esp + 0x18]
jmp 0x407c44
push str._WinSessionThread_CreateProcess_LoadLibrary__GetProcAddress_err__
push 1
call fcn.004062b0
add esp, 8
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [esp + 0x18]
jmp 0x407c44
push str._WinSessionThread_CreateProcess_LoadLibrary__Userenv_err__
push 1
call fcn.004062b0
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push str._WinSessionThread_CreateProcess_ret___d_end___
push 0x80
call fcn.004062b0
mov ecx, dword [esp + 0x298]
add esp, 0xc
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00415d1a
mov esp, ebp
pop ebp
ret 0x10