Function at 0x140045e00
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x1402f8c60]
xor rax, rsp
mov qword [rbp + 0xc0], rax
lea rax, str.CTosServiceModule::CheckOSMajorVesion
mov r8d, 0x7c
lea r12, str.__CTosServiceModule::CheckOSMajorVesion_
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x28], r12
lea r9, [0x1402a214c]
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospower_tosservicemodule.cpp
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x78]
call fcn.140008c40
mov r8, qword [rsp + 0x70]
lea rdx, str.ENTER__s
lea rcx, [rsp + 0x78]
call fcn.140008d50
xor edx, edx
lea rcx, [rbp - 0x5c]
mov r8d, 0x110
xor bl, bl
call fcn.1401f5d40
lea rcx, [rbp - 0x60]
mov dword [rbp - 0x60], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
movzx ecx, byte [rbp - 0x5c]
lea r9, [0x1402a214c]
test eax, eax
movzx edx, bl
mov qword [rsp + 0x28], r12
mov r8d, 0x7f
cmovne edx, ecx
mov dword [rsp + 0x20], 3
movzx r14d, dl
lea rcx, [rsp + 0x48]
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospower_tosservicemodule.cpp
call fcn.140008c40
mov rcx, rax
lea r8, str.iOSMajorVersion
mov r9d, r14d
lea rdx, str._s___d
call fcn.140008d50
xor r15d, r15d
lea rax, str.__RegConfigAccess::Open_
mov qword [rsp + 0x28], rax
lea r13, vtable.RegConfigAccess.0
lea r9, [0x1402a214c]
mov qword [rsp + 0x38], r13
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5_toscommonlib_rs5include_regconfig.h
mov qword [rsp + 0x40], r15
lea r8d, [r15 + 0x63]
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x48]
call fcn.140008c40
mov rcx, rax
lea r9, [0x1402299d8]
lea r8, str.pszSubKey
lea rdx, str._s___s
call fcn.140008d50
lea rax, [rsp + 0x40]
mov r9d, 0xf003f
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x1402299d8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
je 0x140046000
movzx ebx, di
or ebx, 0x80070000
mov qword [rsp + 0x200], rsi
mov esi, eax
test eax, eax
jle 0x140045fa6
mov esi, ebx
lea rax, str.__RegConfigAccess::Open_
mov r8d, 0x67
mov qword [rsp + 0x28], rax
lea r9, [0x1402a214c]
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5_toscommonlib_rs5include_regconfig.h
mov dword [rsp + 0x20], r15d
lea rcx, [rsp + 0x48]
call fcn.140008c40
mov rcx, rax
lea rdx, str.Error_Code:_0x_x
mov r8d, esi
call fcn.140008d50
mov rsi, qword [rsp + 0x200]
test edi, edi
cmovle ebx, edi
test ebx, ebx
jns 0x140046000
mov r8d, 0x82
jmp 0x14004603b
mov dword [rsp + 0x30], 1
lea r9, [rsp + 0x30]
lea rdx, str.IsOSWin10Later
mov r8d, 4
lea rcx, [rsp + 0x38]
cmp r14d, 0xa
jae 0x14004602a
mov dword [rsp + 0x30], r15d
call fcn.1400089c0
mov ebx, eax
test eax, eax
jns 0x140046071
mov r8d, 0x88
mov qword [rsp + 0x28], r12
lea r9, [0x1402a214c]
lea rdx, str.c:users_scddocumentsmyworkproject__dynabooksystemdriverdsd_for_tos6208_v6dsd_branch_dev_6.01.0029.xxcentennial_rs5dynabookecoservice_tospower_tosservicemodule.cpp
mov dword [rsp + 0x20], r15d
lea rcx, [rsp + 0x48]
call fcn.140008c40
mov rcx, rax
lea rdx, str.Error_Code:_0x_x
mov r8d, ebx
call fcn.140008d50
jmp 0x140046074
mov ebx, r15d
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], r13
call fcn.140005d10
mov r8, qword [rsp + 0x70]
lea rdx, str.LEAVE__s
lea rcx, [rsp + 0x78]
call fcn.140008d50
mov eax, ebx
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140072680
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret