Function at 0x40da90
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x43549e
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x442cfc]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x40db07
lea ecx, [esp + 0x14]
call fcn.0040d920
test al, al
jne 0x40db0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
sub esp, 0x1c
mov esi, esp
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov dword [esp + 0x50], esp
mov word [esi + 4], ax
push 0x18
mov eax, str.GetTokenByName_FAIL:__d_n
call fcn.00409c70
call fcn.00409500
add esp, 0x20
xor al, al
jmp 0x40dddf
push 0x44
lea ecx, [esp + 0x48]
push 0
push ecx
call fcn.0041daa0
mov edi, 1
add esp, 0xc
mov edx, edi
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], edi
mov dword [esp + 0x50], str.winsta0default
mov word [esp + 0x78], dx
call fcn.004079b0
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x9c], 0
call fcn.004079b0
mov byte [esp + 0x98], 1
mov eax, dword [esp + 0x10]
push 0
push eax
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x54], esp
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push 0x2c
mov eax, str.CreateProcessAsUser:_Image:__s__Cmdline:__s_n
mov word [esi + 4], cx
call fcn.00409c70
call fcn.00409500
add esp, 0x24
push 0x43b7d4
lea ecx, [esp + 0x30]
call fcn.0040dfd0
mov esi, eax
push 0x43b7d8
lea ecx, [esp + 0x2c]
mov byte [esp + 0x9c], 2
call fcn.0040dfd0
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0xa4], 3
call fcn.0040de50
push esi
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0xb0], 4
call fcn.0040de50
lea edx, [esp + 0x30]
push edx
push eax
lea eax, [esp + 0x3c]
mov bl, 5
push eax
mov byte [esp + 0xbc], bl
call fcn.0040de50
add esp, 0x24
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 6
call fcn.00407300
mov byte [esp + 0x98], bl
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc46
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x98], 4
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc6e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x98], 3
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc96
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x98], 2
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dcbe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x98], 1
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dce6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
cmp dword [eax - 4], edi
jle 0x40dd00
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.00407700
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x48]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push eax
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x40dd49
mov eax, dword [esp + 0x34]
cmp eax, 0xffffffff
je 0x40dd49
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x34]
push eax
call edi
mov eax, dword [esp + 0x38]
cmp eax, 0xffffffff
je 0x40dd55
push eax
call edi
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x40dd61
push eax
call edi
sub esp, 0x1c
mov dword [esp + 0x4c], esp
mov ecx, esp
mov eax, 0x43b7dc
test esi, esi
jne 0x40dd78
mov eax, str.CreateProcessAsUser_FALSE__n
call fcn.004095a0
call fcn.00409500
add esp, 0x1c
test esi, esi
mov byte [esp + 0x98], 0
mov eax, dword [esp + 0x18]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ddb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x98], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dddd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x8c
ret