Function at 0x410117e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41148060
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push edi
mov eax, dword [0x411bade8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x14], ebx
call fcn.410382a0
test eax, eax
jne 0x41011843
push esi
push str.no_terminal_service_enabled__skip_ExecuteCommand:__s
push 0x1000001
push 0x26d
push str.TPADLL.cpp
call fcn.41002c10
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10], ebx
call fcn.41040000
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x41011860
push 0x80004005
call fcn.410011f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x20], eax
push ebx
push 0x411584dc
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ebx
call fcn.410016e0
push 0x20019
push str.SoftwareThinPrintTPAutoConnect
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 1
call fcn.41010fa0
test eax, eax
jne 0x410118e6
lea ecx, [ebp - 0x10]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.ForceListenToWTS
call fcn.41002090
lea ecx, [ebp - 0x24]
call fcn.41010100
cmp eax, ebx
jne 0x410118e6
cmp dword [ebp - 0x10], ebx
je 0x410118eb
push str.dwForceWTS__TRUE_found__IsTerminalServicesEnabled_return_TRUE
push 0x1000001
push 0x279
push str.TPADLL.cpp
call fcn.41002c10
add esp, 0x10
cmp dword [ebp - 0x10], ebx
jne 0x41011961
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x18]
push eax
push 4
push 0xffffffffffffffff
push ebx
call fcn.410389a0
add esp, 0x14
test eax, eax
je 0x41011961
mov eax, dword [ebp - 0x18]
mov edi, dword [eax]
push eax
call fcn.41037d00
push edi
call fcn.41038bd0
add esp, 8
test eax, eax
je 0x4101193e
push edi
push str.Runs_under_ConsoleSessionID_sessionid_d__no_TPAC_started_
push 0x1000001
push 0x28b
push str.TPADLL.cpp
call fcn.41002c10
add esp, 0x14
jmp 0x41011a5b
call fcn.41038540
push eax
push edi
push str.Runs_in_Session_context_sessionid_d__TPAC_started___console_is__d
push 0x1000001
push 0x28f
push str.TPADLL.cpp
call fcn.41002c10
add esp, 0x18
push 0x44
lea ecx, [ebp - 0x78]
push ebx
push ecx
call fcn.4112eb40
xor eax, eax
add esp, 0xc
lea edx, [ebp - 0x78]
push edx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
push esi
push str.CreateProcess__s
push 0x1000001
push 0x298
push str.TPADLL.cpp
call fcn.41002c10
mov edx, dword [ebp + 8]
add esp, 0x14
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x78]
push ecx
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push esi
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x410119f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 0xc]
push esi
push eax
push str.WINLOGON:__s:_Process___s__cannot_be_created._error:__d
push 0x2000001
push 0x29d
push str.TPADLL.cpp
call fcn.41002c10
add esp, 0x1c
jmp 0x41011a5b
mov ecx, dword [ebp + 0xc]
push esi
push ecx
push str.WINLOGON:__s:_Process___s_
push 0x1000001
push 0x2a1
push str.TPADLL.cpp
call fcn.41002c10
add esp, 0x18
cmp dword [ebp + 0x10], ebx
je 0x41011a23
mov edx, dword [ebp - 0x34]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [ebp - 0x34]
push ecx
call edi
cmp dword [ebp + 0x10], ebx
je 0x41011a5b
mov edx, dword [ebp + 0xc]
push esi
push edx
push str.WINLOGON:__s:_Process___s__ended
push 0x1000001
push 0x2a7
push str.TPADLL.cpp
call fcn.41002c10
add esp, 0x18
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.41010de0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret