Function at 0x140013d70
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x1402b0268]
xor rax, rsp
mov qword [rbp + 0x158], rax
movzx edi, r8b
mov rsi, rdx
mov r14, rcx
movzx ebx, r8b
test r8b, r8b
jne 0x140013de3
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QFile::constructor_class_QString_const____ptr64____ptr64]
nop
mov edx, 3
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt5Core.dll_public_virtual:_bool___cdecl_QFile::open_class_QFlags_enum_QIODevice::OpenModeFlag_____ptr64]
test al, al
je 0x140013dd8
mov bl, 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt5Core.dll_public_virtual:_void___cdecl_QFileDevice::close_void____ptr64]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt5Core.dll_public_virtual:_void___cdecl_QFile::destructor_void____ptr64]
lea rdx, str.notepad.exe
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::constructor_char_const____ptr64____ptr64]
nop
mov edx, 0xe
lea rcx, str.Options_Editor
call qword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____ptr64___cdecl_QString::fromAscii_helper_char_const____ptr64__int_]
mov qword [rsp + 0x58], rax
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x50]
mov rcx, qword [0x1402b2880]
call qword [sym.imp.MiscHelpers.dll_public:_class_QString___cdecl_CSettings::GetString_class_QString_const____ptr64__class_QVariant_const____ptr64_const___ptr64]
nop
lea rdx, [rbp + 0x138]
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_QString::toStdWString_void____ptr64]
nop
lea rcx, [rsp + 0x50]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x58]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QVariant::destructor_void____ptr64]
lea rdx, [rbp + 0x118]
mov rcx, rsi
call qword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_QString::toStdWString_void____ptr64]
nop
mov r8, rax
lea rdx, [0x140190fc0]
lea rcx, [rbp + 0xf8]
call fcn.140002c70
nop
mov r8d, 1
lea rdx, [0x140190fc0]
mov rcx, rax
call fcn.14002ce00
xor esi, esi
mov qword [rbp + 0xd8], rsi
mov qword [rbp + 0xe8], rsi
mov qword [rbp + 0xf0], rsi
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0xd8], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0xe8], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], 7
mov word [rax], si
mov rdx, qword [rbp + 0x110]
cmp rdx, 8
jb 0x140013f1f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013f1a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013f1a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140167464
mov qword [rbp + 0x108], rsi
mov qword [rbp + 0x110], 7
mov word [rbp + 0xf8], si
mov rdx, qword [rbp + 0x130]
cmp rdx, 8
jb 0x140013f81
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x118]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140013f7c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140013f7c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140167464
mov qword [rbp + 0x128], rsi
mov qword [rbp + 0x130], 7
mov word [rbp + 0x118], si
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 dword [rsp + 0x74], 0x40
mov qword [rsp + 0x78], rsi
lea rax, str.runas
test bl, bl
cmovne rax, rsi
mov qword [rbp - 0x80], rax
lea rax, [rbp + 0x138]
cmp qword [rbp + 0x150], 8
cmovae rax, qword [rbp + 0x138]
mov qword [rbp - 0x78], rax
lea rax, [rbp + 0xd8]
cmp qword [rbp + 0xf0], 8
cmovae rax, qword [rbp + 0xd8]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rsi
mov dword [rbp - 0x60], 5
mov qword [rbp - 0x58], rsi
lea rcx, [rsp + 0x70]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test dil, dil
jne 0x14001405e
lea rax, str.Options_WatchIni
mov qword [rsp + 0x50], rax
mov r8b, 1
lea rdx, [rsp + 0x50]
mov rcx, qword [0x1402b2880]
call qword [sym.imp.MiscHelpers.dll_public:_bool___cdecl_CSettings::GetBool_struct_CSettings::SStrRef_const____ptr64__bool____ptr64]
test al, al
jne 0x1400141a0
mov ecx, 0x10
call fcn.140167428
mov rbx, rax
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov rdx, qword [rbp - 0x28]
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QWinEventNotifier::constructor_void____ptr64__class_QObject____ptr64____ptr64]
lea rax, vtable.QWinEventNotifier.0
mov qword [rbx], rax
mov dl, 1
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QWinEventNotifier::setEnabled_bool____ptr64]
mov qword [rbp + 0x50], rbx
mov qword [rbp + 0x58], r14
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [rbp - 0x20], xmm0
movaps xmm0, xmmword [rbp - 0x80]
movups xmmword [rbp - 0x10], xmm0
movaps xmm0, xmmword [rbp - 0x70]
movups xmmword [rbp], xmm0
movaps xmm0, xmmword [rbp - 0x60]
movups xmmword [rbp + 0x10], xmm0
movaps xmm0, xmmword [rbp - 0x50]
movups xmmword [rbp + 0x20], xmm0
movaps xmm0, xmmword [rbp - 0x40]
movups xmmword [rbp + 0x30], xmm0
movaps xmm0, xmmword [rbp - 0x30]
movups xmmword [rbp + 0x40], xmm0
mov byte [rbp + 0xd0], dil
mov rax, qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QWinEventNotifier::activated_void____ptr64__struct_QWinEventNotifier::QPrivateSignal____ptr64]
mov qword [rsp + 0x50], rax
mov ecx, 0x98
call fcn.140167428
mov rcx, rax
mov qword [rsp + 0x60], rax
mov dword [rax], 1
lea rax, [0x14002ff60]
mov qword [rcx + 8], rax
movups xmm0, xmmword [rbp + 0x50]
movups xmmword [rcx + 0x10], xmm0
movups xmm1, xmmword [rbp - 0x20]
movups xmmword [rcx + 0x20], xmm1
movups xmm0, xmmword [rbp - 0x10]
movups xmmword [rcx + 0x30], xmm0
movups xmm1, xmmword [rbp]
movups xmmword [rcx + 0x40], xmm1
movups xmm0, xmmword [rbp + 0x10]
movups xmmword [rcx + 0x50], xmm0
movups xmm1, xmmword [rbp + 0x20]
movups xmmword [rcx + 0x60], xmm1
movups xmm0, xmmword [rbp + 0x30]
movups xmmword [rcx + 0x70], xmm0
movups xmm1, xmmword [rbp + 0x40]
movups xmmword [rcx + 0x80], xmm1
movsd xmm0, qword [rbp + 0xd0]
movsd qword [rcx + 0x90], xmm0
mov rax, qword [sym.imp.Qt5Core.dll_struct_QMetaObject_const_QWinEventNotifier::staticMetaObject]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rsi
mov r9, r14
lea r8, [rsp + 0x50]
mov rdx, rbx
lea rcx, [rsp + 0x58]
call qword [sym.imp.Qt5Core.dll_private:_static_class_QMetaObject::Connection___cdecl_QObject::connectImpl_class_QObject_const____ptr64__void____ptr64____ptr64__class_QObject_const____ptr64__void____ptr64____ptr64__class_QtPrivate::QSlotObjectBase____ptr64__enum_Qt::ConnectionType__int_const____ptr64__struct_QMetaObject_const____ptr64_]
lea rcx, [rsp + 0x58]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QMetaObject::Connection::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0xf0]
cmp rdx, 8
jb 0x1400141e9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400141e4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400141e4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140167464
mov qword [rbp + 0xe8], rsi
mov qword [rbp + 0xf0], 7
mov word [rbp + 0xd8], si
mov rdx, qword [rbp + 0x150]
cmp rdx, 8
jb 0x14001424b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x138]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140014246
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140014246
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140167464
mov rcx, qword [rbp + 0x158]
xor rcx, rsp
call fcn.140167750
add rsp, 0x260
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret