Function at 0x140109420
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x14048f3e0]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov rdi, rdx
mov rsi, rcx
xor r14d, r14d
mov dword [rsp + 0x50], r14d
mov rdx, qword [rdx]
lea rcx, [rbp + 0x120]
call fcn.140106110
nop
lea rax, [0x140157458]
mov qword [rbp - 0x20], rax
lea rax, [0x140157460]
mov qword [rbp - 0x10], rax
lea rcx, [rbp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x50], 1
xor r8d, r8d
lea rdx, [rbp - 8]
lea rcx, [rbp - 0x20]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x20], r15
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 8]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 8], rax
mov r9d, r14d
mov qword [rbp + 0x60], r14
mov ecx, r14d
mov dword [rbp + 0x68], ecx
mov rdx, qword [rdi]
mov rax, qword [rdi + 8]
sub rax, rdx
sar rax, 5
cmp rax, 1
jbe 0x1401095a0
lea rax, [rdx + 0x20]
mov rcx, qword [rax + 0x10]
cmp qword [rax + 0x18], 0x10
jb 0x140109517
mov rax, qword [rax]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rcx
mov word [rsp + 0x68], 0x5c22
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x10]
call fcn.140108c10
mov rbx, qword [rdi]
add rbx, 0x40
cmp rbx, qword [rdi + 8]
je 0x140109599
nop dword [rax]
nop word [rax + rax]
lea rdx, [0x14015a53c]
lea rcx, [rbp - 0x10]
call fcn.140002cc0
mov rdx, qword [rbx + 0x10]
mov rcx, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140109571
mov rcx, qword [rbx]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rdx
mov word [rsp + 0x68], 0x5c22
lea rdx, [rsp + 0x58]
mov rcx, rax
call fcn.140108c10
add rbx, 0x20
cmp rbx, qword [rdi + 8]
jne 0x140109550
mov r9, qword [rbp + 0x60]
mov ecx, dword [rbp + 0x68]
mov qword [rbp + 0x100], r14
mov qword [rbp + 0x110], r14
mov qword [rbp + 0x118], 0xf
mov byte [rbp + 0x100], 0
mov dword [rsp + 0x50], 5
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1401095f7
mov rax, qword [rbp + 0x38]
mov r8, qword [rax]
test r8, r8
je 0x1401095f7
mov rax, qword [rbp + 0x18]
mov rdx, qword [rax]
cmp r8, r9
cmovb r8, r9
sub r8, rdx
jmp 0x140109628
test cl, 4
jne 0x14010961e
mov rax, qword [rbp + 0x30]
mov rcx, qword [rax]
test rcx, rcx
je 0x14010961e
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x48]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140109628
mov r8, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x58]
test rdx, rdx
je 0x14010963a
lea rcx, [rbp + 0x100]
call fcn.14002b110
nop
lea rdx, [rbp + 0x100]
lea rcx, [rbp + 0xe0]
call fcn.140106110
nop
mov rdx, qword [rbp + 0x118]
cmp rdx, 0x10
jb 0x140109692
inc rdx
mov rcx, qword [rbp + 0x100]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14010968d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14010968d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401155e4
mov qword [rbp + 0x110], r14
mov qword [rbp + 0x118], 0xf
mov byte [rbp + 0x100], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
mov dword [rsp + 0x70], 0x70
mov qword [rsp + 0x78], r14
lea rax, str.runas
mov qword [rbp - 0x80], rax
lea rax, [rbp + 0x120]
cmp qword [rbp + 0x138], 8
cmovae rax, qword [rbp + 0x120]
mov qword [rbp - 0x78], rax
lea rax, [rbp + 0xe0]
cmp qword [rbp + 0xf8], 8
cmovae rax, qword [rbp + 0xe0]
mov qword [rbp - 0x70], rax
mov dword [rbp - 0x60], 1
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1401097d7
call fcn.1401084b0
mov r8, qword [rax]
xor edx, edx
mov ecx, dword [0x14048f3b0]
call r8
test eax, eax
je 0x1401097c6
call fcn.1401084b0
mov rbx, qword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rbp + 0xe0]
cmp qword [rbp + 0xf8], 8
cmovae rdx, qword [rbp + 0xe0]
lea rcx, [rbp + 0x120]
cmp qword [rbp + 0x138], 8
cmovae rcx, qword [rbp + 0x120]
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], rcx
lea r9, str.xprocCreate_elevated_basic
mov qword [rsp + 0x30], r9
lea rax, str._s:_ShellExecuteEx_failed:_filename__ls_parameters__ls_GetLastError____d
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x68
lea r8, str.C:code_app_playerhdSourcexplXprocWinnt.cpp
mov edx, dword [0x14048f3b0]
xor ecx, ecx
call rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14010f5a0
mov ebx, eax
jmp 0x1401097f3
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1401097f0
test rsi, rsi
je 0x1401097ea
mov qword [rsi], rcx
jmp 0x1401097f0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, r14d
mov rdx, qword [rbp + 0xf8]
cmp rdx, 8
jb 0x14010983c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xe0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140109837
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140109837
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401155e4
mov qword [rbp + 0xf0], r14
mov qword [rbp + 0xf8], 7
mov word [rbp + 0xe0], r14w
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x20], r15
mov rax, qword [rbp - 0x20]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x24], edx
lea rcx, [rbp - 8]
call fcn.140018210
lea rcx, [rbp]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0x138]
cmp rdx, 8
jb 0x1401098dc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x120]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401098d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1401098d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401155e4
mov eax, ebx
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140115700
mov rbx, qword [rsp + 0x290]
add rsp, 0x250
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret