Function at 0x14004fb20
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x220], rbx
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov rsi, r8
mov rdi, rdx
xor edx, edx
lea r8d, [rdx + 0x68]
lea rcx, [rbp - 0x10]
call sub.MSVCR120.dll_memset
mov dword [rbp - 0x10], 0x68
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
mov r14b, 1
mov qword [rbp - 0x70], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea r9, [rbp - 0x70]
mov edx, VariantTimeToDosDateTime
lea r8d, [rdx - 0xa]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x14004fd7d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
cmp eax, 0x3f0
jne 0x14004fbce
xor r14b, r14b
jmp 0x14004fd7d
xor ebx, ebx
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], rbx
mov qword [rbp + 0x78], 7
mov qword [rbp + 0x70], rbx
mov word [rbp + 0x60], bx
lea r8d, [rbx + 0x58]
lea rdx, str.ManagingAuthorityLegacyT::LaunchSftmimeCommand__Failed_to_open_thread_token._Error:__1_.
lea rcx, [rbp + 0x60]
call fcn.140007c60
nop
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rbx
mov qword [rbp + 0x98], 7
mov qword [rbp + 0x90], rbx
mov word [rbp + 0x80], bx
movzx eax, word [0x140143ed0]
neg ax
sbb r8, r8
and r8d, 0xb
lea rdx, [0x140143ed0]
lea rcx, [rbp + 0x80]
call fcn.140007c60
nop
call fcn.1400391f0
lea r8, [rbp + 0x60]
lea rdx, [rbp + 0xa0]
call fcn.140085960
mov rsi, rax
mov r8d, dword [rax + 8]
lea ecx, [r8 + 1]
mov dword [rax + 8], ecx
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.1400854b0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14004fca8
mov qword [rbp - 0x80], rsi
lea rax, [rsp + 0x60]
mov qword [rbp - 0x78], rax
movaps xmm0, xmmword [rbp - 0x80]
movdqa xmmword [rsp + 0x70], xmm0
lea r8, [rsp + 0x70]
mov edx, ebx
call fcn.140039a90
nop
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x68], rbx
test rcx, rcx
je 0x14004fcc8
mov rdi, qword [rcx]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov rcx, rdi
test rdi, rdi
jne 0x14004fcb7
call fcn.1400391f0
mov rcx, rax
mov r9, rsi
lea r8, [rbp + 0x80]
mov edx, 1
call fcn.1400858b0
nop
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp + 0xa0], rax
cmp qword [rbp + 0xc8], 8
jb 0x14004fd0a
mov rcx, qword [rbp + 0xb0]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0xc8], 7
mov qword [rbp + 0xc0], rbx
mov word [rbp + 0xb0], bx
cmp qword [rbp + 0x98], 8
jb 0x14004fd3a
mov rcx, qword [rbp + 0x80]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0x98], 7
mov qword [rbp + 0x90], rbx
mov word [rbp + 0x80], bx
cmp qword [rbp + 0x78], 8
jb 0x14004fd64
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0x78], 7
mov qword [rbp + 0x70], rbx
mov word [rbp + 0x60], bx
mov eax, dword [rsp + 0x60]
jmp 0x1400504e6
mov r15, qword [rbp - 0x70]
mov ecx, 0x18
call qword [sym.imp.MSVCR120.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov rcx, rax
mov qword [rsp + 0x68], rax
xor ebx, ebx
lea r12, vtable.appv::utility::scope_guard_func.0
lea r13, vtable.appv::utility::scope_guard_func_impl_class_std::_Bind_1__int__int____cdecl__const__void____ptr64___void____ptr64____ptr64__.0
test rax, rax
je 0x14004fdc0
mov qword [rax], r12
mov qword [rax], r13
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], r15
jmp 0x14004fdc3
mov rcx, rbx
mov qword [rbp - 0x30], rcx
mov rdx, qword [rsi + 0x10]
inc rdx
lea rcx, [rbp - 0x68]
call fcn.14000c730
nop
cmp qword [rsi + 0x18], 8
jb 0x14004fde2
mov rsi, qword [rsi]
mov rdx, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x68]
sub rdx, rcx
sar rdx, 1
mov r8, rsi
call qword [sym.imp.MSVCR120.dll_wcscpy_s]
test r14b, r14b
je 0x140050216
mov byte [rbp - 0x80], 0
mov qword [rbp - 0x78], rbx
cmp byte [rbp - 0x80], 0
jne 0x140050039
xor r8d, r8d
mov rdx, qword [rbp - 0x70]
lea rcx, [rbp - 0x78]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
setne cl
mov byte [rbp - 0x80], cl
test cl, cl
je 0x140050039
cmp qword [rdi + 0x18], 8
jb 0x14004fe3f
mov rdi, qword [rdi]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8000400
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
mov r8, qword [rbp - 0x68]
xor edx, edx
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x140050014
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rbx
mov qword [rbp + 0x98], 7
mov qword [rbp + 0x90], rbx
mov word [rbp + 0x80], bx
mov r8d, 0x55
lea rdx, str.ManagingAuthorityLegacyT::LaunchSftmimeCommand__Failed_to_create_process._Error:__1_.
lea rcx, [rbp + 0x80]
call fcn.140007c60
nop
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], rbx
mov qword [rbp + 0x78], 7
mov qword [rbp + 0x70], rbx
mov word [rbp + 0x60], bx
movzx eax, word [0x140143ed0]
neg ax
sbb r8, r8
and r8d, 0xb
lea rdx, [0x140143ed0]
lea rcx, [rbp + 0x60]
call fcn.140007c60
nop
call fcn.1400391f0
lea r8, [rbp + 0x80]
lea rdx, [rbp + 0xa0]
call fcn.140085960
mov rsi, rax
mov r8d, dword [rax + 8]
lea ecx, [r8 + 1]
mov dword [rax + 8], ecx
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.1400854b0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14004ff76
mov qword [rsp + 0x70], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x78], rax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
lea r8, [rsp + 0x70]
mov rdx, rbx
call fcn.140039a90
nop
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x68], rbx
test rcx, rcx
je 0x14004ff96
mov rdi, qword [rcx]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov rcx, rdi
test rdi, rdi
jne 0x14004ff85
call fcn.1400391f0
mov rcx, rax
mov r9, rsi
lea r8, [rbp + 0x60]
mov edx, 1
call fcn.1400858b0
nop
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp + 0xa0], rax
cmp qword [rbp + 0xc8], 8
jb 0x14004ffd5
mov rcx, qword [rbp + 0xb0]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0xc8], 7
mov qword [rbp + 0xc0], rbx
mov word [rbp + 0xb0], bx
cmp qword [rbp + 0x78], 8
jb 0x14004ffff
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0x78], 7
mov qword [rbp + 0x70], rbx
mov word [rbp + 0x60], bx
jmp 0x1400501bd
cmp byte [rbp - 0x80], 0
je 0x140050423
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test eax, eax
je 0x140050423
mov byte [rbp - 0x80], 0
jmp 0x140050423
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rbx
mov qword [rbp + 0x98], 7
mov qword [rbp + 0x90], rbx
mov word [rbp + 0x80], bx
mov r8d, MsiPreviewDialogW
lea rdx, str.ManagingAuthorityLegacyT::LaunchSftmimeCommand__Failed_to_create_environment_block._Error:__1_.
lea rcx, [rbp + 0x80]
call fcn.140007c60
nop
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], rbx
mov qword [rbp + 0x78], 7
mov qword [rbp + 0x70], rbx
mov word [rbp + 0x60], bx
movzx eax, word [0x140143ed0]
neg ax
sbb r8, r8
and r8d, 0xb
lea rdx, [0x140143ed0]
lea rcx, [rbp + 0x60]
call fcn.140007c60
nop
call fcn.1400391f0
lea r8, [rbp + 0x80]
lea rdx, [rbp + 0xa0]
call fcn.140085960
mov rsi, rax
mov r8d, dword [rax + 8]
lea ecx, [r8 + 1]
mov dword [rax + 8], ecx
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.1400854b0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140050124
mov qword [rsp + 0x70], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x78], rax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
lea r8, [rsp + 0x70]
mov rdx, rbx
call fcn.140039a90
nop
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x68], rbx
test rcx, rcx
je 0x140050144
mov rdi, qword [rcx]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov rcx, rdi
test rdi, rdi
jne 0x140050133
call fcn.1400391f0
mov rcx, rax
mov r9, rsi
lea r8, [rbp + 0x60]
mov edx, 1
call fcn.1400858b0
nop
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp + 0xa0], rax
cmp qword [rbp + 0xc8], 8
jb 0x140050183
mov rcx, qword [rbp + 0xb0]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0xc8], 7
mov qword [rbp + 0xc0], rbx
mov word [rbp + 0xb0], bx
cmp qword [rbp + 0x78], 8
jb 0x1400501ad
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0x78], 7
mov qword [rbp + 0x70], rbx
mov word [rbp + 0x60], bx
cmp qword [rbp + 0x98], 8
jb 0x1400501d4
mov rcx, qword [rbp + 0x80]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov edi, dword [rsp + 0x60]
mov word [rbp + 0x80], bx
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], 7
cmp byte [rbp - 0x80], 0
je 0x1400504b4
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
movzx ecx, byte [rbp - 0x80]
test eax, eax
cmovne ecx, ebx
mov byte [rbp - 0x80], cl
jmp 0x1400504b4
cmp qword [rdi + 0x18], 8
jb 0x140050220
mov rdi, qword [rdi]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbp - 0x68]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140050423
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rbx
mov qword [rbp + 0x98], 7
mov qword [rbp + 0x90], rbx
mov word [rbp + 0x80], bx
mov r8d, 0x55
lea rdx, str.ManagingAuthorityLegacyT::LaunchSftmimeCommand__Failed_to_create_process._Error:__1_.
lea rcx, [rbp + 0x80]
call fcn.140007c60
nop
mov qword [rbp + 0x70], rbx
mov qword [rbp + 0x78], rbx
mov qword [rbp + 0x78], 7
mov qword [rbp + 0x70], rbx
mov word [rbp + 0x60], bx
movzx eax, word [0x140143ed0]
neg ax
sbb r8, r8
and r8d, 0xb
lea rdx, [0x140143ed0]
lea rcx, [rbp + 0x60]
call fcn.140007c60
nop
call fcn.1400391f0
lea r8, [rbp + 0x80]
lea rdx, [rbp + 0xa0]
call fcn.140085960
mov rsi, rax
mov r8d, dword [rax + 8]
lea ecx, [r8 + 1]
mov dword [rax + 8], ecx
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.1400854b0
nop
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14005034d
mov qword [rsp + 0x70], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x78], rax
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
lea r8, [rsp + 0x70]
mov rdx, rbx
call fcn.140039a90
nop
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x68], rbx
test rcx, rcx
je 0x140050371
nop dword [rax]
mov rdi, qword [rcx]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov rcx, rdi
test rdi, rdi
jne 0x140050360
call fcn.1400391f0
mov rcx, rax
mov r9, rsi
lea r8, [rbp + 0x60]
mov edx, 1
call fcn.1400858b0
nop
lea rax, vtable.AppV::LogFormatter.0
mov qword [rbp + 0xa0], rax
cmp qword [rbp + 0xc8], 8
jb 0x1400503b0
mov rcx, qword [rbp + 0xb0]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0xc8], 7
mov qword [rbp + 0xc0], rbx
mov word [rbp + 0xb0], bx
cmp qword [rbp + 0x78], 8
jb 0x1400503da
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0x78], 7
mov qword [rbp + 0x70], rbx
mov word [rbp + 0x60], bx
cmp qword [rbp + 0x98], 8
jb 0x140050401
mov rcx, qword [rbp + 0x80]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
mov qword [rbp + 0x98], 7
mov qword [rbp + 0x90], rbx
mov word [rbp + 0x80], bx
mov edi, dword [rsp + 0x60]
jmp 0x1400504b4
mov rdi, qword [rbp - 0x50]
mov ecx, 0x18
call qword [sym.imp.MSVCR120.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140050453
mov qword [rax], r12
mov qword [rax], r13
mov rcx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdi
jmp 0x140050456
mov rax, rbx
mov qword [rbp - 0x28], rax
mov rdi, qword [rbp - 0x48]
mov ecx, 0x18
call qword [sym.imp.MSVCR120.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__]
mov qword [rsp + 0x68], rax
test rax, rax
je 0x14005048a
mov qword [rax], r12
mov qword [rax], r13
mov rcx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdi
jmp 0x14005048d
mov rax, rbx
mov qword [rbp - 0x38], rax
mov r9, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x50]
call fcn.140050d30
mov edi, ebx
lea rcx, [rbp - 0x38]
call fcn.140014790
nop
lea rcx, [rbp - 0x28]
call fcn.140014790
nop
cmp qword [rbp - 0x68], 0
je 0x1400504db
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP120.dll_public:_void___cdecl_std::_Container_base0::_Orphan_all_void____ptr64]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void____ptr64_]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rbx
lea rcx, [rbp - 0x30]
call fcn.140014790
mov eax, edi
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.1400f5ff0
mov rbx, qword [rsp + 0x220]
add rsp, 0x1e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret