Function at 0x1400303ac
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x210
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x140178478]
xor rax, rsp
mov qword [rbp + 0x108], rax
mov rsi, r8
mov rdi, rdx
xor edx, edx
lea r8d, [rdx + 0x64]
lea rcx, [rbp - 0x4c]
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rbp - 0x50], 0x68
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rax
mov r15b, 1
or qword [rsp + 0x68], 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop dword [rax + rax]
mov rcx, rax
lea r9, [rsp + 0x68]
mov edx, VariantTimeToDosDateTime
lea r8d, [rdx - 0xa]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
nop dword [rax + rax]
xor r12d, r12d
test eax, eax
jne 0x140030467
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x60], eax
cmp eax, 0x3f0
jne 0x14003061b
mov r15b, r12b
mov rbx, qword [rsp + 0x68]
mov ecx, 0x18
call fcn.1400d2508
mov qword [rsp + 0x60], rax
lea rcx, vtable.appv::utility::scope_guard_func_impl_class_std::_Binder_struct_std::_Unforced__int____cdecl___void____ptr64___void____ptr64____ptr64__.0
mov qword [rax], rcx
mov rcx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rbx
mov qword [rbp - 0x68], rax
mov rdx, qword [rsi + 0x10]
inc rdx
lea rcx, [rbp + 0x88]
call fcn.14000ef18
nop
cmp qword [rsi + 0x18], 8
jb 0x1400304b6
mov rsi, qword [rsi]
mov rdx, qword [rbp + 0x90]
mov r14, qword [rbp + 0x88]
sub rdx, r14
sar rdx, 1
mov r8, rsi
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o_wcscpy_s]
nop dword [rax + rax]
test r15b, r15b
je 0x1400309c3
mov byte [rbp + 0x68], r12b
mov qword [rbp + 0x70], r12
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
lea rcx, [rbp + 0x70]
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
nop dword [rax + rax]
test eax, eax
setne byte [rbp + 0x68]
test eax, eax
jne 0x140030751
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x60], eax
mov r8d, 0xda
lea rdx, str.AppV::Integration::ManagingAuthority::ManagingAuthorityLegacyT_struct_AppV::Integration::ManagingAuthority::_anonymous_namespace::empty_::LaunchSftmimeCommand
lea rcx, [rbp + 0xa8]
call fcn.14005e0a8
mov rdi, rax
call fcn.14001e910
mov qword [rbp + 0x50], r12
mov esi, 7
mov qword [rbp + 0x58], rsi
mov word [rbp + 0x40], r12w
lea rdx, str.Failed_to_create_environment_block._Error:__1_.
lea rcx, [rbp + 0x40]
call fcn.14000954c
nop
lea r8, [rbp + 0x40]
lea rdx, [rbp + 0xd8]
call fcn.14005e070
nop
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14001ebc4
mov rbx, rax
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], rsi
mov word [rbp + 0x20], r12w
lea rdx, [0x14010bbd8]
lea rcx, [rbp + 0x20]
call fcn.14000954c
nop
mov r9, rbx
lea r8, [rbp + 0x20]
lea edx, [rsi - 6]
mov rcx, rdi
call fcn.14005e200
nop
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x1400305d4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
call fcn.14000c220
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], rsi
mov word [rbp + 0x20], r12w
lea rcx, [rbp + 0xd8]
call fcn.14005e65c
nop
mov rdx, qword [rbp + 0x58]
cmp rdx, 8
jb 0x140030609
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
call fcn.14000c220
mov qword [rbp + 0x50], r12
mov qword [rbp + 0x58], rsi
mov word [rbp + 0x40], r12w
jmp 0x1400308b2
mov r8d, 0xc6
lea rdx, str.AppV::Integration::ManagingAuthority::ManagingAuthorityLegacyT_struct_AppV::Integration::ManagingAuthority::_anonymous_namespace::empty_::LaunchSftmimeCommand
lea rcx, [rbp + 0x40]
call fcn.14005e0a8
mov rdi, rax
call fcn.14001e910
mov qword [rbp + 0x78], r12
mov esi, 7
mov qword [rbp + 0x80], rsi
mov word [rbp + 0x68], r12w
lea rdx, str.Failed_to_open_thread_token._Error:__1_.
lea rcx, [rbp + 0x68]
call fcn.14000954c
nop
lea r8, [rbp + 0x68]
lea rdx, [rbp + 0xa8]
call fcn.14005e070
nop
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14001ebc4
mov rbx, rax
mov qword [rbp + 0x98], r12
mov qword [rbp + 0xa0], rsi
mov word [rbp + 0x88], r12w
lea rdx, [0x14010bbd8]
lea rcx, [rbp + 0x88]
call fcn.14000954c
nop
mov r9, rbx
lea r8, [rbp + 0x88]
lea edx, [rsi - 6]
mov rcx, rdi
call fcn.14005e200
nop
mov rdx, qword [rbp + 0xa0]
cmp rdx, 8
jb 0x1400306e1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x88]
call fcn.14000c220
mov qword [rbp + 0x98], r12
mov qword [rbp + 0xa0], rsi
mov word [rbp + 0x88], r12w
lea rcx, [rbp + 0xa8]
call fcn.14005e65c
nop
mov rdx, qword [rbp + 0x80]
cmp rdx, 8
jb 0x140030722
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x68]
call fcn.14000c220
mov qword [rbp + 0x78], r12
mov qword [rbp + 0x80], rsi
mov word [rbp + 0x68], r12w
mov rdx, qword [rbp + 0x58]
cmp rdx, 0x10
jb 0x140030748
inc rdx
mov rcx, qword [rbp + 0x40]
call fcn.14000c220
mov eax, dword [rsp + 0x60]
jmp 0x140030bf5
cmp qword [rdi + 0x18], 8
jb 0x14003075b
mov rdi, qword [rdi]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rdi
mov rax, qword [rbp + 0x70]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8000400
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8, r14
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
nop dword [rax + rax]
test eax, eax
jne 0x1400308f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x60], eax
mov r8d, 0xe3
lea rdx, str.AppV::Integration::ManagingAuthority::ManagingAuthorityLegacyT_struct_AppV::Integration::ManagingAuthority::_anonymous_namespace::empty_::LaunchSftmimeCommand
lea rcx, [rbp + 0xa8]
call fcn.14005e0a8
mov rdi, rax
call fcn.14001e910
mov qword [rbp + 0x30], r12
mov esi, 7
mov qword [rbp + 0x38], rsi
mov word [rbp + 0x20], r12w
lea rdx, str.Failed_to_create_process._Error:__1_.
lea rcx, [rbp + 0x20]
call fcn.14000954c
nop
lea r8, [rbp + 0x20]
lea rdx, [rbp + 0xd8]
call fcn.14005e070
nop
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14001ebc4
mov rbx, rax
mov qword [rbp + 0x50], r12
mov qword [rbp + 0x58], rsi
mov word [rbp + 0x40], r12w
lea rdx, [0x14010bbd8]
lea rcx, [rbp + 0x40]
call fcn.14000954c
nop
mov r9, rbx
lea r8, [rbp + 0x40]
lea edx, [rsi - 6]
mov rcx, rdi
call fcn.14005e200
nop
mov rdx, qword [rbp + 0x58]
cmp rdx, 8
jb 0x140030870
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
call fcn.14000c220
mov qword [rbp + 0x50], r12
mov qword [rbp + 0x58], rsi
mov word [rbp + 0x40], r12w
lea rcx, [rbp + 0xd8]
call fcn.14005e65c
nop
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x1400308a5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
call fcn.14000c220
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], rsi
mov word [rbp + 0x20], r12w
mov rdx, qword [rbp + 0xc0]
cmp rdx, 0x10
jb 0x1400308ce
inc rdx
mov rcx, qword [rbp + 0xa8]
call fcn.14000c220
mov ebx, dword [rsp + 0x60]
cmp byte [rbp + 0x68], r12b
je 0x140030bcc
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
nop dword [rax + rax]
jmp 0x140030bcc
cmp byte [rbp + 0x68], r12b
je 0x140030907
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x70]
mov edi, 0x18
mov ecx, edi
call fcn.1400d2508
mov qword [rsp + 0x60], rax
lea rsi, vtable.appv::utility::scope_guard_func_impl_class_std::_Binder_struct_std::_Unforced__int____cdecl___void____ptr64___void____ptr64____ptr64__.0
mov qword [rax], rsi
mov rdx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rbx
mov qword [rbp - 0x70], rax
mov rbx, qword [rsp + 0x78]
mov ecx, edi
call fcn.1400d2508
mov qword [rsp + 0x60], rax
mov qword [rax], rsi
mov rcx, qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rbx
mov qword [rbp - 0x78], rax
mov rbx, qword [rsp + 0x70]
mov dword [rsp + 0x60], r12d
mov edx, 0x493e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
je 0x140030b5f
cmp eax, 0x102
je 0x140030b3e
cmp eax, 0xffffffff
jne 0x140030b5f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test byte [0x14017b084], 4
je 0x140030bb5
mov r9d, eax
lea rdx, [0x140112fc0]
jmp 0x140030bad
cmp qword [rdi + 0x18], 8
jb 0x1400309cd
mov rdi, qword [rdi]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
nop dword [rax + rax]
test eax, eax
jne 0x140030907
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov dword [rsp + 0x60], eax
mov r8d, 0xed
lea rdx, str.AppV::Integration::ManagingAuthority::ManagingAuthorityLegacyT_struct_AppV::Integration::ManagingAuthority::_anonymous_namespace::empty_::LaunchSftmimeCommand
lea rcx, [rbp + 0xa8]
call fcn.14005e0a8
mov rdi, rax
call fcn.14001e910
mov qword [rbp + 0x30], r12
mov esi, 7
mov qword [rbp + 0x38], rsi
mov word [rbp + 0x20], r12w
lea rdx, str.Failed_to_create_process._Error:__1_.
lea rcx, [rbp + 0x20]
call fcn.14000954c
nop
lea r8, [rbp + 0x20]
lea rdx, [rbp + 0xd8]
call fcn.14005e070
nop
lea rdx, [rsp + 0x60]
mov rcx, rax
call fcn.14001ebc4
mov rbx, rax
mov qword [rbp + 0x50], r12
mov qword [rbp + 0x58], rsi
mov word [rbp + 0x40], r12w
lea rdx, [0x14010bbd8]
lea rcx, [rbp + 0x40]
call fcn.14000954c
nop
mov r9, rbx
lea r8, [rbp + 0x40]
lea edx, [rsi - 6]
mov rcx, rdi
call fcn.14005e200
nop
mov rdx, qword [rbp + 0x58]
cmp rdx, 8
jb 0x140030ad7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x40]
call fcn.14000c220
mov qword [rbp + 0x50], r12
mov qword [rbp + 0x58], rsi
mov word [rbp + 0x40], r12w
lea rcx, [rbp + 0xd8]
call fcn.14005e65c
nop
mov rdx, qword [rbp + 0x38]
cmp rdx, 8
jb 0x140030b0c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x20]
call fcn.14000c220
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], rsi
mov word [rbp + 0x20], r12w
mov rdx, qword [rbp + 0xc0]
cmp rdx, 0x10
jb 0x140030b35
inc rdx
mov rcx, qword [rbp + 0xa8]
call fcn.14000c220
mov ebx, dword [rsp + 0x60]
jmp 0x140030bcc
test byte [0x14017b084], 8
je 0x140030bb5
mov r8, r14
lea rdx, [0x140112fb0]
lea rcx, [0x14016e0b0]
call fcn.140023370
jmp 0x140030bb5
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
nop dword [rax + rax]
test eax, eax
jne 0x140030b98
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test byte [0x14017b084], 8
je 0x140030bb5
mov r9d, eax
lea rdx, [0x140113000]
jmp 0x140030bad
test byte [0x14017b084], 0x10
je 0x140030bb5
mov r9d, dword [rsp + 0x60]
lea rdx, [0x140112ce0]
mov r8, r14
call fcn.1400242e0
mov ebx, r12d
lea rcx, [rbp - 0x78]
call fcn.140023434
nop
lea rcx, [rbp - 0x70]
call fcn.140023434
nop
test r14, r14
je 0x140030bea
mov rdx, qword [rbp + 0x98]
sub rdx, r14
sar rdx, 1
add rdx, rdx
mov rcx, r14
call fcn.14000c220
nop
lea rcx, [rbp - 0x68]
call fcn.140023434
mov eax, ebx
mov rcx, qword [rbp + 0x108]
xor rcx, rsp
call fcn.1400d24e0
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret