Function at 0x40dcb0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4357ae
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x443cfc]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x40dd27
lea ecx, [esp + 0x14]
call fcn.0040db30
test al, al
jne 0x40dd2e
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.00409d40
call fcn.00409570
add esp, 0x20
xor al, al
jmp 0x40dfff
push 0x44
lea ecx, [esp + 0x48]
push 0
push ecx
call fcn.0041dd60
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.00407a20
push 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x9c], 0
call fcn.00407a20
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.00409d40
call fcn.00409570
add esp, 0x24
push 0x43c804
lea ecx, [esp + 0x30]
call fcn.0040e1f0
mov esi, eax
push 0x43c808
lea ecx, [esp + 0x2c]
mov byte [esp + 0x9c], 2
call fcn.0040e1f0
lea edx, [esp + 0x10]
push edx
push eax
lea eax, [esp + 0x2c]
push eax
mov byte [esp + 0xa4], 3
call fcn.0040e070
push esi
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0xb0], 4
call fcn.0040e070
lea edx, [esp + 0x30]
push edx
push eax
lea eax, [esp + 0x3c]
mov bl, 5
push eax
mov byte [esp + 0xbc], bl
call fcn.0040e070
add esp, 0x24
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x9c], 6
call fcn.00407370
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 0x40de66
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 0x40de8e
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 0x40deb6
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 0x40dede
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 0x40df06
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 0x40df20
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.00407770
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 0x40df69
mov eax, dword [esp + 0x34]
cmp eax, 0xffffffff
je 0x40df69
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 0x40df75
push eax
call edi
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x40df81
push eax
call edi
sub esp, 0x1c
mov dword [esp + 0x4c], esp
mov ecx, esp
mov eax, 0x43c80c
test esi, esi
jne 0x40df98
mov eax, str.CreateProcessAsUser_FALSE__n
call fcn.00409610
call fcn.00409570
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 0x40dfd2
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 0x40dffd
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