Function at 0x1400048f0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x160]
sub rsp, 0x260
mov rax, qword [0x140040040]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x58], rax
xor r13d, r13d
mov dword [rsp + 0x30], r13d
lea rax, [0x140041650]
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
movups xmmword [0x140041650], xmm0
mov qword [0x140041660], r13
mov qword [0x140041668], r13
lea r8d, [r13 + 0xa]
lea rdx, str.Unknown_OS
mov rcx, rax
call fcn.1400040c0
mov r12d, 1
mov dword [rsp + 0x30], r12d
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005531
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140005531
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rbp - 0xc]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x10], 0x114
lea rcx, [rbp - 0x10]
call rbx
test eax, eax
jne 0x140005531
lea r9, [rbp + 0x145]
mov r8d, dword [rbp - 8]
nop
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x1400049e0
lea r8, [rbp + 0x145]
mov rdx, r9
lea rcx, [rbp - 0x40]
call fcn.14002b1c0
mov r15d, 7
mov dword [rsp + 0x30], r15d
lea r9, [rbp + 0x125]
mov r8d, dword [rbp - 0xc]
nop dword [rax]
nop word [rax + rax]
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x140004a40
lea r8, [rbp + 0x125]
mov rdx, r9
lea rcx, [rsp + 0x60]
call fcn.14002b1c0
mov edi, 0x1f
mov dword [rsp + 0x30], edi
mov r8, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
mov rax, rcx
sub rax, r8
lea r14, str.Windows
cmp rax, 8
jb 0x140004b2c
lea rax, [r8 + 8]
mov qword [rsp + 0x70], rax
lea rbx, [rsp + 0x60]
cmp rcx, 0xf
cmova rbx, qword [rsp + 0x60]
lea rax, [0x1400331e0]
cmp rax, rbx
jbe 0x140004ae7
lea rax, [rbx + r8]
cmp r14, rax
ja 0x140004ae7
cmp rbx, r14
ja 0x140004adf
mov rsi, r13
jmp 0x140004aec
mov rsi, rbx
sub rsi, r14
jmp 0x140004aec
mov esi, 8
inc r8
lea rcx, [rbx + 8]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rsi
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 8
sub r8, rsi
lea rdx, [0x1400331e0]
add rdx, rsi
lea rcx, [rbx + rsi]
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x60]
jmp 0x140004b49
mov qword [rsp + 0x28], 8
mov qword [rsp + 0x20], r14
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.14002bf80
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x60], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x50], xmm1
mov qword [rax + 0x18], 0xf
mov qword [rax + 0x10], r13
mov byte [rax], 0
or edi, 0x20
mov dword [rsp + 0x30], edi
mov r8, r12
lea rdx, [0x140032f4c]
lea rcx, [rbp - 0x60]
call fcn.140027300
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x110], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x120], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
or edi, 0x40
mov dword [rsp + 0x30], edi
lea r9, [rbp - 0x40]
lea r8, [rbp + 0x110]
lea rcx, [rbp + 0x130]
call fcn.14002af80
bts edi, 7
mov dword [rsp + 0x30], edi
lea rdx, [rbp + 0x130]
lea rcx, [0x140041650]
call fcn.1400273e0
mov rdx, qword [rbp + 0x148]
cmp rdx, 0xf
jbe 0x140004c32
inc rdx
mov rcx, qword [rbp + 0x130]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004c2c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004c2c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002dd70
nop
mov rdx, qword [rbp + 0x128]
cmp rdx, 0xf
jbe 0x140004c77
inc rdx
mov rcx, qword [rbp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004c71
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004c71
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002dd70
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x140004cb5
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004cb0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004cb0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002dd70
movdqa xmm0, xmmword [0x140036060]
movdqu xmmword [rbp - 0x50], xmm0
mov byte [rbp - 0x60], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140004d06
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004d01
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004d01
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002dd70
movdqa xmm0, xmmword [0x140036060]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140004d57
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004d52
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004d52
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002dd70
lea r9, [rbp + 0x125]
mov r8d, dword [rbp - 4]
dec r9
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub r8b, cl
add r8b, 0x30
mov byte [r9], r8b
mov r8d, edx
test edx, edx
jne 0x140004d62
lea r8, [rbp + 0x125]
mov rdx, r9
lea rcx, [rbp - 0x80]
call fcn.14002b1c0
or edi, 0x300
mov dword [rsp + 0x30], edi
mov r8, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
sub rax, r8
lea rsi, str._Build
cmp rax, 7
jb 0x140004e3c
lea rax, [r8 + 7]
mov qword [rbp - 0x70], rax
lea rbx, [rbp - 0x80]
cmp rcx, 0xf
cmova rbx, qword [rbp - 0x80]
lea rax, [0x1400331ef]
cmp rax, rbx
jbe 0x140004e00
lea rax, [rbx + r8]
cmp rsi, rax
ja 0x140004e00
cmp rbx, rsi
ja 0x140004df8
mov r14, r13
jmp 0x140004e03
mov r14, rbx
sub r14, rsi
jmp 0x140004e03
mov r14, r15
inc r8
lea rcx, [rbx + 7]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, r14
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
sub r15, r14
lea rdx, [rsi + 7]
add rdx, r14
lea rcx, [rbx + r14]
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rbp - 0x80]
jmp 0x140004e52
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rsi
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.14002bf80
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x110], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x120], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
bts edi, 0xa
mov dword [rsp + 0x30], edi
lea rdx, [rbp + 0x110]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0xf
cmova rdx, rcx
movq r8, xmm1
lea rcx, [0x140041650]
call fcn.140027300
nop
mov rdx, qword [rbp + 0x128]
cmp rdx, 0xf
jbe 0x140004ef7
inc rdx
mov rcx, qword [rbp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004ef1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004ef1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002dd70
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x140004f35
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004f30
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004f30
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002dd70
mov dword [rbp - 0x20], r13d
lea rax, [rbp - 0x20]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rbp - 8]
mov ecx, dword [rbp - 0xc]
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
lea r14, [0x1400331f1]
lea r15, [0x1400331f0]
test eax, eax
je 0x1400053a4
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], 0xf
mov byte [rsp + 0x38], 0
bts edi, 0xc
mov dword [rsp + 0x30], edi
cmp dword [rbp - 0xc], 6
jb 0x140005219
mov eax, dword [rbp - 0x20]
dec eax
cmp eax, 0x7a
ja case.0x140004fbe.5
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x55b0]
mov ecx, dword [rdx + rax*4 + 0x556c]
add rcx, rdx
jmp rcx
mov qword [rsp + 0x48], 8
movabs rax, 0x7373656e69737542
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x40], 0
jmp 0x140005219
mov qword [rsp + 0x48], 9
movsd xmm0, qword [str.Education]
movzx eax, byte [0x140033010]
mov byte [rsp + 0x40], al
mov byte [rsp + 0x41], 0
jmp 0x140005213
mov qword [rsp + 0x48], 0xa
movsd xmm0, qword [str.Home_Basic]
movzx eax, word [0x140033020]
mov word [rsp + 0x40], ax
mov byte [rsp + 0x42], 0
jmp 0x140005213
mov qword [rsp + 0x48], reloc.WS2_32.dll_inet_ntoa
movsd xmm0, qword [str.Home_Premium]
mov eax, dword [0x140033030]
mov dword [rsp + 0x40], eax
mov byte [rsp + 0x44], 0
jmp 0x140005213
mov qword [rsp + 0x48], reloc.WS2_32.dll_inet_ntoa
movsd xmm0, qword [str.Professional]
mov eax, dword [0x140033040]
mov dword [rsp + 0x40], eax
mov byte [rsp + 0x44], 0
jmp 0x140005213
mov qword [rsp + 0x48], 0xa
movsd xmm0, qword [str.Enterprise]
movzx eax, word [0x140033050]
mov word [rsp + 0x40], ax
mov byte [rsp + 0x42], 0
jmp 0x140005213
mov qword [rsp + 0x48], 8
movabs rax, 0x6574616d69746c55
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x40], 0
jmp 0x140005219
mov qword [rsp + 0x48], inet_ntoa
movsd xmm0, qword [str.Education_N]
movzx eax, word [0x140033060]
mov word [rsp + 0x40], ax
movzx eax, byte [0x140033062]
mov byte [rsp + 0x42], al
mov byte [rsp + 0x43], 0
jmp 0x140005213
mov qword [rsp + 0x48], reloc.WS2_32.dll_inet_ntoa
movsd xmm0, qword [str.Enterprise_N]
mov eax, dword [0x140033070]
mov dword [rsp + 0x40], eax
mov byte [rsp + 0x44], 0
jmp 0x140005213
movsd xmm0, qword [str.Windows_10_Home]
mov eax, dword [0x140033080]
mov dword [rsp + 0x40], eax
movzx eax, word [0x140033084]
mov word [rsp + 0x44], ax
movzx eax, byte [0x140033086]
jmp 0x140005201
lea r9, str.Windows_10_Home_N
mov edx, 0x11
lea rcx, [rsp + 0x38]
call fcn.14002aaf0
jmp 0x140005219
lea r9, str.Windows_10_Home_China
mov edx, 0x15
lea rcx, [rsp + 0x38]
call fcn.14002aaf0
jmp 0x140005219
lea r9, str.Windows_10_Home_Single_Language
mov edx, 0x1f
lea rcx, [rsp + 0x38]
call fcn.14002aaf0
jmp 0x140005219
lea r9, str.Windows_10_IoT_Core
mov edx, 0x13
lea rcx, [rsp + 0x38]
call fcn.14002aaf0
jmp 0x140005219
lea r9, str.Windows_Server_Standard
mov edx, 0x17
lea rcx, [rsp + 0x38]
call fcn.14002aaf0
jmp 0x140005219
lea r9, str.Windows_Server_Datacenter
mov edx, 0x19
lea rcx, [rsp + 0x38]
call fcn.14002aaf0
jmp 0x140005219
movsd xmm0, qword [str.Unknown_Edition]
mov eax, dword [0x140033130]
mov dword [rsp + 0x40], eax
movzx eax, word [0x140033134]
mov word [rsp + 0x44], ax
movzx eax, byte [0x140033136]
mov byte [rsp + 0x47], 0
mov byte [rsp + 0x46], al
mov qword [rsp + 0x48], 0xf
movsd qword [rsp + 0x38], xmm0
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x1400052a1
lea r8, [rcx + 1]
mov qword [rsp + 0x48], r8
lea rbx, [rsp + 0x38]
cmp rdx, 0xf
cmova rbx, qword [rsp + 0x38]
cmp r14, rbx
jbe 0x140005267
lea rax, [rbx + rcx]
cmp r15, rax
ja 0x140005267
cmp rbx, r15
ja 0x14000525f
mov rsi, r13
jmp 0x14000526a
mov rsi, rbx
sub rsi, r15
jmp 0x14000526a
mov rsi, r12
lea rcx, [rbx + 1]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, rsi
mov rdx, r15
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov r8, r12
sub r8, rsi
lea rdx, [r15 + 1]
add rdx, rsi
lea rcx, [rbx + rsi]
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x38]
jmp 0x1400052b8
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r15
mov rdx, r12
lea rcx, [rsp + 0x38]
call fcn.14002bf80
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x110], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x120], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
bts edi, 0xd
mov dword [rsp + 0x30], edi
lea rdx, [rbp + 0x110]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0xf
cmova rdx, rcx
movq r8, xmm1
lea rcx, [0x140041650]
call fcn.140027300
nop
mov rdx, qword [rbp + 0x128]
cmp rdx, 0xf
jbe 0x14000535c
inc rdx
mov rcx, qword [rbp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005357
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005357
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002dd70
btr edi, 0xc
mov dword [rsp + 0x30], edi
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x1400053a4
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000539f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000539f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002dd70
lea rcx, [rbp + 0x130]
call fcn.140004530
mov rbx, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140005430
lea r8, [rcx + 1]
mov qword [rbx + 0x10], r8
mov rsi, rbx
cmp rdx, 0xf
jbe 0x1400053db
mov rsi, qword [rbx]
cmp r14, rsi
jbe 0x1400053fb
lea rax, [rsi + rcx]
cmp r15, rax
ja 0x1400053fb
cmp rsi, r15
ja 0x1400053f3
mov r14, r13
jmp 0x1400053fe
mov r14, rsi
sub r14, r15
jmp 0x1400053fe
mov r14, r12
lea rcx, [rsi + 1]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memmove
mov r8, r14
mov rdx, r15
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
sub r12, r14
lea rdx, [r15 + 1]
add rdx, r14
lea rcx, [rsi + r14]
mov r8, r12
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140005448
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r15
mov rdx, r12
mov rcx, rbx
call fcn.14002bf80
mov rbx, rax
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0x110], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp + 0x120], xmm1
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
bts edi, 0xb
mov dword [rsp + 0x30], edi
lea rdx, [rbp + 0x110]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0xf
cmova rdx, rcx
movq r8, xmm1
lea rcx, [0x140041650]
call fcn.140027300
nop
mov rdx, qword [rbp + 0x128]
cmp rdx, 0xf
jbe 0x1400054ed
inc rdx
mov rcx, qword [rbp + 0x110]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400054e7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400054e7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002dd70
nop
mov rdx, qword [rbp + 0x148]
cmp rdx, 0xf
jbe 0x140005531
inc rdx
mov rcx, qword [rbp + 0x130]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000552c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000552c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14002dd70
lea rax, [0x140041650]
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.14002dd50
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret