Function at 0x4019f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x40407b
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x407004]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
push 0x40
xor esi, esi
lea eax, [esp + 0x5c]
push esi
mov ebx, 1
push eax
mov dword [esp + 0xb4], ebx
xor ebp, ebp
call sub.MSVCR90.dll_memset
xor eax, eax
add esp, 0xc
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x54], 0x44
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [esp + 0x1c]
push ecx
push eax
mov dword [esp + 0x24], esi
call sub.WTSAPI32.dll_WTSQueryUserToken
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x401b0f
push str.error_1_n
call fcn.00403040
add esp, 4
push str.error
call fcn.00403040
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x401aa7
push eax
call edi
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x401ab2
push eax
call edi
mov eax, dword [esp + 0x20]
cmp eax, esi
je 0x401ac1
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
cmp ebp, esi
lea ecx, [esp + 0xb0]
setne bl
mov byte [esp + 0xa8], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0xcc]
mov dword [esp + 0xa8], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov al, bl
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x98
ret
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x18]
push edx
push ebx
push ebx
push esi
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x401b35
push str.error_2_n
jmp 0x401a87
mov ecx, dword [esp + 0x18]
push esi
push ecx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x401b54
push str.error_3_n
jmp 0x401a87
sub esp, 0x1c
lea eax, [esp + 0xe8]
mov ecx, esp
mov dword [esp + 0x40], esp
push eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [esp + 0x54]
push ecx
call fcn.004031e0
add esp, 0x20
mov byte [esp + 0xa8], 2
cmp dword [eax + 0x18], 0x10
jb 0x401b8b
mov eax, dword [eax + 4]
jmp 0x401b8e
add eax, 4
push eax
push str.CommandLine:__s_n
call fcn.00403040
add esp, 8
lea ecx, [esp + 0x38]
mov byte [esp + 0xa8], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0xd0]
mov eax, 8
cmp dword [esp + 0xe4], eax
jae 0x401bc9
lea ecx, [esp + 0xd0]
cmp dword [esp + 0xc8], eax
mov eax, dword [esp + 0xb4]
jae 0x401be0
lea eax, [esp + 0xb4]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x58]
push edx
mov edx, dword [esp + 0x28]
push esi
push edx
push 0x430
push esi
push esi
push esi
push ecx
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x401c22
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.error_5__d_n
call fcn.00403040
add esp, 8
jmp 0x401a8f
push str._Command_Success__n
call fcn.00403040
mov ecx, dword [esp + 0x2c]
add esp, 4
push ecx
call edi
mov edx, dword [esp + 0x2c]
push edx
call edi
mov ebp, ebx
jmp 0x401a9c