Function at 0x4062c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x40eab6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x29c
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1a9]
mov byte [esp + 0x1a8], bl
mov dword [esp + 0x24], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x28]
push ebx
rep stosd dword es:[edi], eax
mov ecx, dword [0x418460]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
push ecx
lea ecx, [esp + 0x70]
xor ebp, ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], eax
call fcn.00403c70
mov eax, dword [0x4184a4]
mov esi, 1
cmp eax, esi
mov dword [esp + 0x2b4], ebx
mov dword [esp + 0x10], 0x13
jne 0x40638d
push str.StartRemoteAppService__run_as_user__WM_DELAY_TRANSCMD_to_system_proc.
call fcn.00401fc0
mov edx, dword [0x41849c]
add esp, 4
push 7
push 0x7e9
push 0xbd0
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
lea ecx, [esp + 0x68]
mov dword [esp + 0x2b4], 0xffffffff
call fcn.00403cc0
mov eax, esi
jmp 0x406504
cmp dword [0x417ab8], ebx
jne 0x4063b0
lea ecx, [esp + 0x68]
mov dword [esp + 0x2b4], 0xffffffff
call fcn.00403cc0
mov eax, esi
jmp 0x406504
call fcn.004062a0
test eax, eax
je 0x4063d5
push str.StartRemoteAppService__rapp_is_already_running__return_ok.
call fcn.00401fc0
add esp, 4
mov dword [esp + 0x10], 0x14
mov ebp, esi
jmp 0x4064d3
lea eax, [esp + 0x1a8]
push 0x104
push eax
call fcn.00402210
add esp, 8
test eax, eax
jne 0x4063f8
push str.StartRemoteAppService_GetRemoteAppPath_failed.
jmp 0x4064cb
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x1c8]
push ebx
push eax
mov dword [esp + 0x4c], 0x44
mov dword [esp + 0x78], esi
mov word [esp + 0x7c], bx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebp, eax
cmp ebp, ebx
jne 0x4064a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x1a8]
push eax
push ecx
push str.StartRemoteAppService_Create_process_failed.path_s_error_d
call fcn.00401fc0
mov ecx, 0xd
mov esi, 0x412d98
lea edi, [esp + 0xf8]
mov edx, dword [0x418460]
rep movsd dword es:[edi], dword [esi]
add esp, 0xc
lea ecx, [esp + 0x124]
movsb byte es:[edi], byte [esi]
push ebx
push edx
call fcn.00403c70
lea eax, [esp + 0xec]
push 0x35
push eax
lea ecx, [esp + 0x12c]
mov byte [esp + 0x2bc], 1
call fcn.004047b0
lea ecx, [esp + 0x124]
mov byte [esp + 0x2b4], bl
call fcn.00403cc0
jmp 0x4064c6
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
push str.StartRemoteAppService_succeeded.
call fcn.00401fc0
add esp, 4
cmp dword [esp + 0x2bc], ebx
je 0x4064ee
mov ecx, dword [esp + 0x10]
push 4
push ecx
push 0x27
lea ecx, [esp + 0x74]
call fcn.00404290
lea ecx, [esp + 0x68]
mov dword [esp + 0x2b4], 0xffffffff
call fcn.00403cc0
mov eax, ebp
mov ecx, dword [esp + 0x2ac]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2a8
ret