Function at 0x408ea1
Capabilities:
Create process on windows

Disassembly:
push ebp
sub esp, 0x68
push 0x44
mov eax, 0x4a083d
call fcn.00486a61
push str.CSystemCommands::CreateLowProcess_path
lea esi, [ebp + 0x1c]
call fcn.00404db2
push dword [ebp + 0x78]
and dword [ebp - 4], 0
lea esi, [ebp + 0x4c]
call fcn.00404db2
lea ecx, [ebp + 0x1c]
push ecx
mov ebx, eax
mov byte [ebp - 4], 1
call fcn.00404975
pop ecx
push 0
push 1
call fcn.00404f5a
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea esi, [ebp + 0x1c]
call fcn.00404f5a
push str.CSystemCommands::CreateLowProcess_params
lea esi, [ebp + 0x1c]
call fcn.00404db2
mov edi, 0x4aec58
push edi
lea esi, [ebp + 0x4c]
mov dword [ebp - 4], 2
call fcn.00404db2
lea ecx, [ebp + 0x1c]
push ecx
mov ebx, eax
mov byte [ebp - 4], 3
call fcn.00404975
pop ecx
xor ebx, ebx
push ebx
push 1
call fcn.00404f5a
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp + 0x1c]
call fcn.00404f5a
push str.CSystemCommands::CreateLowProcess_bWaitForProcess
lea esi, [ebp + 0x1c]
call fcn.00404db2
mov eax, esi
push ebx
push eax
mov dword [ebp - 4], 4
call fcn.00406bc9
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
push ebx
push 1
call fcn.00404f5a
call fcn.00409448
cmp dword [ebp + 0x74], ebx
je 0x409191
call fcn.00409448
test eax, eax
jle 0x409191
mov eax, dword [ebp + 0x74]
dec eax
mov dword [ebp + 0x68], ebx
je 0x408fa8
dec eax
je 0x408f9f
dec eax
jne 0x408faf
mov dword [ebp + 0x68], str.S_1_16_12288
jmp 0x408faf
mov dword [ebp + 0x68], str.S_1_16_8192
jmp 0x408faf
mov dword [ebp + 0x68], str.S_1_16_4096
xor eax, eax
lea edi, [ebp + 0x40]
mov dword [ebp + 0x3c], ebx
stosd dword es:[edi], eax
mov dword [ebp + 0x28], ebx
lea edi, [ebp + 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x4c]
push ebx
push eax
mov dword [ebp + 0x48], ebx
mov dword [ebp - 0x50], ebx
call fcn.004864e0
xor eax, eax
add esp, 0xc
mov word [ebp - 0x20], ax
lea eax, [ebp + 0x38]
xor edi, edi
push eax
mov esi, 0x2000000
inc edi
push esi
mov dword [ebp - 0x24], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40917b
lea eax, [ebp + 0x44]
push eax
push edi
push 2
push ebx
push esi
push dword [ebp + 0x38]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x409165
lea eax, [ebp + 0x48]
push eax
push dword [ebp + 0x68]
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
je 0x40914f
mov eax, dword [ebp + 0x48]
push eax
mov dword [ebp + 0x40], 0x20
mov dword [ebp + 0x3c], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 4
push eax
lea eax, [ebp + 0x3c]
push eax
push 0x19
push dword [ebp + 0x44]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x40912f
push dword [ebp + 0x78]
lea edi, [ebp + 0x74]
call fcn.0040478b
push 0x4ad5a4
lea edi, [ebp + 0x68]
mov dword [ebp - 4], 5
call fcn.0040478b
mov eax, edi
push eax
lea ecx, [ebp + 0x74]
mov byte [ebp - 4], 6
call fcn.004046f4
mov byte [ebp - 4], 5
call fcn.00404746
push 0x4aec58
lea edi, [ebp + 0x68]
call fcn.0040478b
mov eax, edi
push eax
lea ecx, [ebp + 0x74]
mov byte [ebp - 4], 7
call fcn.004046f4
mov byte [ebp - 4], 5
call fcn.00404746
lea esi, [ebp + 0x74]
call fcn.004045bd
lea ecx, [ebp + 0x28]
push ecx
lea ecx, [ebp - 0x50]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [eax]
push ebx
push dword [ebp + 0x44]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
lea esi, [ebp + 0x4c]
cmp eax, ebx
je 0x409102
push str.CSystemCommands::CreateLowProcess_return_true
call fcn.00404db2
mov byte [ebp - 4], 9
call fcn.00404e64
push ebx
push 1
call fcn.00404f5a
mov bl, 1
jmp 0x409120
push str.CSystemCommands::CreateLowProcess_CreateProcessAsUser_failed
call fcn.00404db2
lea esi, [ebp + 0x4c]
mov byte [ebp - 4], 8
call fcn.00404e64
push ebx
push 1
call fcn.00404f5a
lea edi, [ebp + 0x74]
call fcn.00404746
mov al, bl
jmp 0x4091c2
push str.LIP::CreateLowProcess_SetTokenInformation_failed
lea esi, [ebp + 0x4c]
call fcn.00404db2
mov dword [ebp - 4], 0xa
lea esi, [ebp + 0x4c]
call fcn.00404e64
push ebx
push edi
jmp 0x4091bb
push str.CSystemCommands::CreateLowProcess_ConvertStringSidToSid_failed
lea esi, [ebp + 0x4c]
call fcn.00404db2
mov dword [ebp - 4], 0xb
jmp 0x409143
push str.CSystemCommands::CreateLowProcess_DuplicateTokenEx_failed
lea esi, [ebp + 0x4c]
call fcn.00404db2
mov dword [ebp - 4], 0xc
jmp 0x409143
push str.CSystemCommands::CreateLowProcess_OpenProcessToken_failed
lea esi, [ebp + 0x4c]
call fcn.00404db2
mov dword [ebp - 4], 0xd
jmp 0x409143
mov ecx, dword [ebp + 0x78]
push ebx
push ebx
push edi
call fcn.00408bce
add esp, 0xc
push str.CSystemCommands::CreateLowProcess_return_false
lea esi, [ebp]
call fcn.00404db2
mov dword [ebp - 4], 0xe
call fcn.00404e64
push ebx
push 1
call fcn.00404f5a
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret