Function at 0x5711b8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
xor ebx, ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0xd], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040712c
mov eax, dword [ebp - 8]
call fcn.0040712c
mov eax, dword [ebp + 8]
call fcn.0040712c
xor eax, eax
push ebp
push 0x5714b0
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
call fcn.00570f78
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x78]
call fcn.0041e4b0
mov ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x74]
mov edx, 0x5714cc
call fcn.00407c78
mov eax, dword [ebp - 0x74]
call fcn.00566378
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.wtsapi32.dll_WTSQueryUserToken
test eax, eax
je 0x57126c
mov eax, 0x5714f4
call fcn.00566378
jmp 0x571276
mov eax, 0x571530
call fcn.00566378
lea eax, [ebp - 0x1c]
push eax
push 1
push 1
push 0
push 0xf00ff
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_DuplicateTokenEx
test eax, eax
je 0x57129e
mov eax, 0x57156c
call fcn.00566378
jmp 0x5712a8
mov eax, 0x5715a4
call fcn.00566378
mov ebx, 0x30
xor eax, eax
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call sub.userenv.dll_CreateEnvironmentBlock
test eax, eax
je 0x5712d7
or ebx, 0x400
mov eax, 0x5715e0
call fcn.00566378
jmp 0x5712e6
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, 0x571624
call fcn.00566378
lea eax, [ebp - 0x60]
xor ecx, ecx
mov edx, 0x44
call fcn.00404cdc
mov dword [ebp - 0x60], 0x44
mov eax, 0x571660
mov dword [ebp - 0x58], eax
mov word [ebp - 0x30], 1
cmp dword [ebp + 8], 0
jne 0x57131d
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0041f15c
jmp 0x571328
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 8]
call fcn.00407470
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00407a2c
push eax
mov eax, dword [ebp - 0x18]
push eax
push ebx
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00407a2c
push eax
mov eax, dword [ebp - 4]
call fcn.00407a2c
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_CreateProcessAsUserW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
lea eax, [ebp - 0x7c]
mov ecx, dword [ebp - 4]
mov edx, 0x57168c
call fcn.00407c78
mov eax, dword [ebp - 0x7c]
call fcn.00566378
test bl, bl
je 0x57138f
mov eax, 0x5716c4
call fcn.00566378
jmp 0x5713c8
mov eax, 0x571704
call fcn.00566378
call sub.kernel32.dll_GetLastError_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x84]
call fcn.0041e4b0
mov ecx, dword [ebp - 0x84]
lea eax, [ebp - 0x80]
mov edx, 0x571748
call fcn.00407c78
mov eax, dword [ebp - 0x80]
call fcn.00566378
mov eax, dword [ebp - 0x70]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x8c]
call fcn.0041e4b0
mov ecx, dword [ebp - 0x8c]
lea eax, [ebp - 0x88]
mov edx, 0x57178c
call fcn.00407c78
mov eax, dword [ebp - 0x88]
call fcn.00566378
mov eax, dword [ebp - 0x68]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x94]
call fcn.0041e4b0
mov ecx, dword [ebp - 0x94]
lea eax, [ebp - 0x90]
mov edx, 0x5717d8
call fcn.00407c78
mov eax, dword [ebp - 0x90]
call fcn.00566378
test byte [ebp - 0xd], bl
je 0x571457
jmp 0x571445
mov eax, dword [0x59919c]
mov eax, dword [eax]
cmp byte [eax + 0xa4], 0
jne 0x571457
push 0x64
mov eax, dword [ebp - 0x70]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x571435
cmp dword [ebp - 0x18], 0
je 0x57146b
mov eax, dword [ebp - 0x18]
push eax
call sub.userenv.dll_DestroyEnvironmentBlock
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5714b7
lea eax, [ebp - 0x94]
mov edx, 9
call fcn.004070a8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004070a8
lea eax, [ebp + 8]
call fcn.00407048
ret