Function at 0x47d874
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 0x47daea
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov byte [ebp - 0x22], 0
xor eax, eax
push ebp
push 0x47d8fc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x48bf58]
cmp byte [eax], 0
jne 0x47d8da
cmp byte [ebp - 0x22], 0
je 0x47d8e9
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00408cc8
mov dword [ebp - 0x20], eax
jmp 0x47d8f2
call dword [0x49009c]
mov dword [ebp - 0x20], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47d906
mov eax, dword [ebp - 0xc]
call fcn.004049f8
lea eax, [ebp - 0x14]
push eax
push 0xa
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x47d944
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x80]
call fcn.00408c78
mov ecx, dword [ebp - 0x80]
mov eax, dword [ebp - 0xc]
mov edx, 0x47db04
call fcn.00404d04
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 0x47d987
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x84]
call fcn.00408c78
mov ecx, dword [ebp - 0x84]
mov eax, dword [ebp - 0xc]
mov edx, 0x47db10
call fcn.00404d04
push 4
lea eax, [ebp - 0x20]
push eax
push 0xc
mov eax, dword [ebp - 0x18]
push eax
call dword [0x4900c8]
test eax, eax
jne 0x47d9c4
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x88]
call fcn.00408c78
mov ecx, dword [ebp - 0x88]
mov eax, dword [ebp - 0xc]
mov edx, 0x47db1c
call fcn.00404d04
push 0
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [0x4900c0]
test eax, eax
je 0x47daa5
lea eax, [ebp - 0x68]
xor ecx, ecx
mov edx, 0x44
call fcn.004031cc
mov dword [ebp - 0x68], 0x44
cmp dword [ebp - 8], 0
jne 0x47da2b
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 0x47da5e
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 0x47da72
mov eax, dword [ebp - 0x78]
mov dword [0x4900a4], eax
mov byte [ebp - 0xd], 1
jmp 0x47da99
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x8c]
call fcn.00408c78
mov ecx, dword [ebp - 0x8c]
mov eax, dword [ebp - 0xc]
mov edx, 0x47db28
call fcn.00404d04
mov eax, dword [ebp - 0x1c]
push eax
call dword [0x4900c4]
jmp 0x47dacc
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x90]
call fcn.00408c78
mov ecx, dword [ebp - 0x90]
mov eax, dword [ebp - 0xc]
mov edx, 0x47db34
call fcn.00404d04
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47daf1
lea eax, [ebp - 0x90]
mov edx, 5
call fcn.00404a1c
ret