Function at 0x4ba6f4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff70
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ba96a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov byte [ebp - 0x22], 1
xor eax, eax
push ebp
push 0x4ba77c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4d38f0]
cmp byte [eax], 0
jne 0x4ba75a
cmp byte [ebp - 0x22], 0
je 0x4ba769
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00409fe4
mov dword [ebp - 0x20], eax
jmp 0x4ba772
call dword [0x4d7294]
mov dword [ebp - 0x20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4ba786
mov eax, dword [ebp - 0xc]
call fcn.00405044
lea eax, [ebp - 0x14]
push eax
push 0xa
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4ba7c4
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x80]
call fcn.00409f94
mov ecx, dword [ebp - 0x80]
mov eax, dword [ebp - 0xc]
mov edx, 0x4ba984
call fcn.00405350
lea eax, [ebp - 0x18]
push eax
push 1
push 1
push 0
push 0x2000000
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_DuplicateTokenEx
test eax, eax
jne 0x4ba807
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x84]
call fcn.00409f94
mov ecx, dword [ebp - 0x84]
mov eax, dword [ebp - 0xc]
mov edx, 0x4ba990
call fcn.00405350
push 4
lea eax, [ebp - 0x20]
push eax
push 0xc
mov eax, dword [ebp - 0x18]
push eax
call dword [0x4d72c0]
test eax, eax
jne 0x4ba844
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x88]
call fcn.00409f94
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 0xc]
mov edx, 0x4ba99c
call fcn.00405350
push 0
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [0x4d72b8]
test eax, eax
je 0x4ba925
lea eax, [ebp - 0x68]
xor ecx, ecx
mov edx, 0x44
call fcn.004036c0
mov dword [ebp - 0x68], 0x44
cmp dword [ebp - 8], 0
jne 0x4ba8ab
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
push 0x420
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
push 0
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_CreateProcessAsUserA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x21], al
jmp 0x4ba8de
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
push 0x420
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_CreateProcessAsUserA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0x21], al
cmp byte [ebp - 0x21], 0
je 0x4ba8f2
mov eax, dword [ebp - 0x78]
mov dword [0x4d729c], eax
mov byte [ebp - 0xd], 1
jmp 0x4ba919
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x8c]
call fcn.00409f94
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0xc]
mov edx, 0x4ba9a8
call fcn.00405350
mov eax, dword [ebp - 0x1c]
push eax
call dword [0x4d72bc]
jmp 0x4ba94c
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x90]
call fcn.00409f94
mov ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 0xc]
mov edx, 0x4ba9b4
call fcn.00405350
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ba971
lea eax, [ebp - 0x90]
mov edx, 5
call fcn.00405068
ret