Function at 0x140083b40
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x1b8]
sub rsp, 0x2b0
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x140109010]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
movdqa xmm0, xmmword [0x1400cbd30]
movdqu xmmword [rsp + 0x48], xmm0
xor edi, edi
mov word [rsp + 0x38], di
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], di
lea rdx, str.OneKeyReset.exe
lea rcx, [rsp + 0x58]
call sym.HwSettings.exe_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64___cdecl_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::assign_wchar_t_const__const___ptr64____ptr64
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call qword [sym.imp.HwFileUtil.dll_bool___cdecl_FileInfo::GetSelfFullFilePath_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const____ptr64_]
test al, al
jne 0x140083c1d
lea rcx, [rbp - 0x70]
call fcn.1400124e0
nop
lea rdx, str.Get_OneKeyReset.exe_path_fail
lea rcx, [rbp - 0x60]
call fcn.140013a90
mov rcx, rax
lea rdx, [0x1400b7d10]
call fcn.1400138a0
mov rcx, rax
lea rdx, str.Mba::Config::OnekeyWnd::OpenOneKeyReset
call fcn.140013a90
mov rcx, rax
lea rdx, [0x1400b7d0c]
call fcn.1400138a0
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
mov rcx, rax
lea r8, [rbp - 0x70]
lea edx, [rdi + 3]
call qword [sym.imp.LogHelper.dll_public:_void___cdecl_HwLogger::Log_enum_LOG_MESSAGE_LEVEL__class_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64]
nop
jmp 0x140083d38
movups xmm0, xmmword [str.OneKeyStart]
movups xmmword [rsp + 0x78], xmm0
movsd xmm1, qword [0x1400c94d0]
movsd qword [rbp - 0x78], xmm1
lea rbx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rbx, qword [rsp + 0x38]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
lea r8, [rsp + 0x78]
mov edx, 0x104
lea rcx, [rbp - 0x70]
call qword [sym.imp.huawei_secure_c.dll_wcscpy_s]
test eax, eax
jne 0x140083cbc
call fcn.140092f90
test eax, eax
jne 0x140083c93
lea r8, str.__Admin
mov edx, 0x104
lea rcx, [rbp - 0x70]
call qword [sym.imp.huawei_secure_c.dll_wcscat_s]
test eax, eax
jne 0x140083cbc
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
lea r9, [rbp - 0x70]
mov r8, rbx
lea rdx, str.runas
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp rax, 0x20
ja 0x140083d42
lea rcx, [rbp - 0x70]
call fcn.1400124e0
nop
lea rbx, [rsp + 0x38]
cmp qword [rsp + 0x50], 8
cmovae rbx, qword [rsp + 0x38]
lea rdx, str.QuickOneKeyReset_CreateProcessNormal_fail.
lea rcx, [rbp - 0x60]
call fcn.140013a90
mov rcx, rax
mov rdx, rbx
call fcn.1400138a0
mov rcx, rax
lea rdx, [0x1400b7d10]
call fcn.1400138a0
mov rcx, rax
lea rdx, str.Mba::Config::OnekeyWnd::OpenOneKeyReset
call fcn.140013a90
mov rcx, rax
lea rdx, [0x1400b7d0c]
call fcn.1400138a0
call qword [sym.imp.LogHelper.dll_public:_static_class_HwLogger____ptr64___cdecl_HwLogger::GetInstance_void_]
mov rcx, rax
lea r8, [rbp - 0x70]
mov edx, 4
call qword [sym.imp.LogHelper.dll_public:_void___cdecl_HwLogger::Log_enum_LOG_MESSAGE_LEVEL__class_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______ptr64____ptr64]
nop
lea rcx, [rbp - 0x70]
call fcn.14000e840
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 8
jb 0x140083d87
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140083d82
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140083d82
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140093ce8
movdqa xmm0, xmmword [0x1400cbd30]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], di
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x140083ddf
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140083dda
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140083dda
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140093ce8
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.140093940
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret