Function at 0x140003fc0
Capabilities:
Check os version

Disassembly:
mov rax, rsp
push rdi
push r14
push r15
sub rsp, 0x170
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r14, rcx
xor edi, edi
xor ebx, ebx
mov qword [rsp + 0x28], rbx
and dword [rcx + 0xb4], ebx
xor eax, eax
test edx, edx
setne al
mov dword [rcx + 0x94], eax
xor eax, eax
test r8d, r8d
setne al
mov dword [rcx + 0x90], eax
lea rbp, [rcx + 0xdc]
mov rcx, rbp
call qword [sym.imp.RPCRT4.dll_UuidCreate]
nop dword [rax + rax]
test eax, eax
je 0x14000406f
mov ecx, eax
call qword [sym.imp.RPCRT4.dll_I_RpcMapWin32Status]
nop dword [rax + rax]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
mov ecx, esi
call fcn.140025d30
jmp 0x14000422d
lea r15, [r14 + 0x30]
mov rsi, qword [r15]
test rsi, rsi
je 0x1400040a7
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
lea r8, [rsi - 4]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor ecx, ecx
call fcn.140025d50
and qword [r15], 0
mov r8, r15
mov rcx, rbp
call fcn.140022220
mov esi, eax
test eax, eax
jns 0x1400040bc
mov ecx, eax
jmp 0x140004065
lea r9, [r14 + 0x78]
lea r8, str.SusClientId
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionWindowsUpdate
call fcn.140023a00
lea r9, [r14 + 0x70]
lea r8, [0x14009cfe0]
lea rdx, str.SYSTEMSetupMoSetup
call fcn.140023a00
lea rcx, str.winbrand.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140004172
lea rdx, str.BrandingFormatString
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
test rax, rax
je 0x140004172
lea rcx, str._WINDOWS_LONG_
call qword [str.PN_t_]
mov rbx, rax
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140004172
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.140029fcc
mov ecx, eax
test eax, eax
js 0x140004168
lea r8, [r14 + 0x68]
mov edx, dword [rsp + 0x20]
mov rcx, rbx
call fcn.140028308
mov ecx, eax
test eax, eax
jns 0x14000416d
call fcn.140025d30
call fcn.140025d50
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x44]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x40], 0x11c
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntdll.dll_RtlGetVersion]
nop dword [rax + rax]
mov ebp, 1
test eax, eax
js 0x1400041d5
mov eax, dword [rsp + 0x4c]
mov dword [r14 + 0xc4], eax
cmp dword [rsp + 0x44], 0xa
ja 0x1400041cc
jne 0x1400041c8
cmp dword [rsp + 0x48], 0
ja 0x1400041cc
cmp eax, 0x3ad7
jae 0x1400041cc
xor eax, eax
jmp 0x1400041ce
mov eax, ebp
mov dword [r14 + 0xb4], eax
lea r8, [r14 + 0xc8]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call fcn.14007cebc
mov rax, qword [r14]
xor edx, edx
mov rcx, r14
mov rax, qword [rax + 0x80]
call qword [str.PN_t_]
mov esi, eax
test eax, eax
js 0x1400040b8
lea rax, [0x1400c5040]
lea rcx, [0x1400c5008]
cmp dword [r14 + 0xb4], 0
cmovne rcx, rax
call fcn.140001090
mov dword [r14 + 0xa4], ebp
mov ecx, esi
call fcn.140025d50
nop
test rbx, rbx
je 0x14000424a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
nop dword [rax + rax]
nop
test rdi, rdi
je 0x14000425e
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop dword [rax + rax]
mov eax, esi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140094220
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret