Function at 0x140004e50
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 [0x14003a040]
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, [0x14003b650]
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
movups xmmword [0x14003b650], xmm0
mov qword [0x14003b660], r13
mov qword [0x14003b668], r13
mov r8d, 0xa
lea rdx, str.Unknown_OS
mov rcx, rax
call fcn.140004070
mov r12d, 1
mov dword [rsp + 0x30], r12d
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140005943
lea rdx, str.RtlGetVersion
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x140005943
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x14]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp + 0x10], 0x114
lea rcx, [rbp + 0x10]
call rbx
test eax, eax
jne 0x140005943
lea r9, [rbp + 0x145]
mov r8d, dword [rbp + 0x18]
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 0x140004f41
lea r8, [rbp + 0x145]
mov rdx, r9
lea rcx, [rbp - 0x20]
call fcn.1400255c0
mov r15d, 7
mov dword [rsp + 0x30], r15d
lea r9, [rbp + 0x145]
mov r8d, dword [rbp + 0x14]
nop dword [rax]
nop dword [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 0x140004fa0
lea r8, [rbp + 0x145]
mov rdx, r9
lea rcx, [rsp + 0x60]
call fcn.1400255c0
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 rsi, str.Windows
cmp rax, 8
jb 0x14000508a
lea rax, [r8 + 8]
mov qword [rsp + 0x70], rax
lea rbx, [rsp + 0x60]
cmp rcx, 0xf
cmova rbx, qword [rsp + 0x60]
lea rax, [0x14002e200]
cmp rax, rbx
jbe 0x140005047
lea rax, [rbx + r8]
cmp rsi, rax
ja 0x140005047
cmp rbx, rsi
ja 0x14000503f
mov r14, r13
jmp 0x14000504d
mov r14, rbx
sub r14, rsi
jmp 0x14000504d
mov r14d, 8
inc r8
lea rcx, [rbx + 8]
mov rdx, rbx
call sub.VCRUNTIME140.dll_memmove
mov r8, r14
mov rdx, rsi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 8
sub r8, r14
lea rdx, [rsi + 8]
add rdx, r14
lea rcx, [rbx + r14]
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x60]
jmp 0x1400050a7
mov qword [rsp + 0x28], 8
mov qword [rsp + 0x20], rsi
mov edx, 8
lea rcx, [rsp + 0x60]
call fcn.140026320
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, [0x14002df0c]
lea rcx, [rbp - 0x60]
call fcn.1400212c0
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x130], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x140], 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 - 0x20]
lea r8, [rbp + 0x130]
lea rcx, [rbp - 0x40]
call fcn.140025380
bts edi, 7
mov dword [rsp + 0x30], edi
lea rdx, [rbp - 0x40]
lea rcx, [0x14003b650]
call fcn.1400213a0
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140005184
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000517e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000517e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140028340
nop
mov rdx, qword [rbp + 0x148]
cmp rdx, 0xf
jbe 0x1400051c9
inc rdx
mov rcx, qword [rbp + 0x130]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400051c3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400051c3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140028340
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x140005207
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005202
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005202
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140028340
movdqa xmm0, xmmword [0x140030c30]
movdqu xmmword [rbp - 0x50], xmm0
mov byte [rbp - 0x60], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140005260
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005253
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005253
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140028340
movdqa xmm0, xmmword [0x140030c30]
movdqu xmmword [rsp + 0x70], xmm0
mov byte [rsp + 0x60], 0
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x1400052a9
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400052a4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400052a4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140028340
lea r9, [rbp + 0x145]
mov r8d, dword [rbp + 0x1c]
nop dword [rax]
nop dword [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 0x1400052c0
lea r8, [rbp + 0x145]
mov rdx, r9
lea rcx, [rbp - 0x80]
call fcn.1400255c0
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 0x14000539a
lea rax, [r8 + 7]
mov qword [rbp - 0x70], rax
lea rbx, [rbp - 0x80]
cmp rcx, 0xf
cmova rbx, qword [rbp - 0x80]
lea rax, [0x14002e20f]
cmp rax, rbx
jbe 0x14000535e
lea rax, [rbx + r8]
cmp rsi, rax
ja 0x14000535e
cmp rbx, rsi
ja 0x140005356
mov r14, r13
jmp 0x140005361
mov r14, rbx
sub r14, rsi
jmp 0x140005361
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 0x1400053b0
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rsi
mov rdx, r15
lea rcx, [rbp - 0x80]
call fcn.140026320
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x130], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x140], 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 + 0x130]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0xf
cmova rdx, rcx
movq r8, xmm1
lea rcx, [0x14003b650]
call fcn.1400212c0
nop
mov rdx, qword [rbp + 0x148]
cmp rdx, 0xf
jbe 0x140005455
inc rdx
mov rcx, qword [rbp + 0x130]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000544f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000544f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140028340
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x140005493
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000548e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000548e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140028340
mov dword [rbp], r13d
lea rax, [rbp]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rbp + 0x18]
mov ecx, dword [rbp + 0x14]
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
lea r14, [0x14002e211]
lea r15, [0x14002e210]
test eax, eax
je 0x1400057bf
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movdqa xmm1, xmmword [0x140030c30]
movdqu xmmword [rsp + 0x48], xmm1
mov byte [rsp + 0x38], 0
bts edi, 0xc
mov dword [rsp + 0x30], edi
cmp dword [rbp + 0x14], 6
jb 0x140005634
mov eax, dword [rbp]
dec eax
cmp eax, 0x7a
ja case.0x14000551c.5
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x59c0]
mov ecx, dword [rdx + rax*4 + 0x597c]
add rcx, rdx
jmp rcx
mov r8d, 8
lea rdx, str.Business
jmp 0x14000562a
mov r8d, 9
lea rdx, str.Education
jmp 0x14000562a
mov r8d, 0xa
lea rdx, str.Home_Basic
jmp 0x14000562a
mov r8d, reloc.WS2_32.dll_inet_ntoa
lea rdx, str.Home_Premium
jmp 0x14000562a
mov r8d, reloc.WS2_32.dll_inet_ntoa
lea rdx, str.Professional
jmp 0x14000562a
mov r8d, 0xa
lea rdx, str.Enterprise
jmp 0x14000562a
mov r8d, 8
lea rdx, str.Ultimate
jmp 0x14000562a
mov r8d, inet_ntoa
lea rdx, str.Education_N
jmp 0x14000562a
mov r8d, reloc.WS2_32.dll_inet_ntoa
lea rdx, str.Enterprise_N
jmp 0x14000562a
lea rdx, str.Windows_10_Home
jmp 0x140005624
mov r8d, 0x11
lea rdx, str.Windows_10_Home_N
jmp 0x14000562a
mov r8d, 0x15
lea rdx, str.Windows_10_Home_China
jmp 0x14000562a
mov r8d, 0x1f
lea rdx, str.Windows_10_Home_Single_Language
jmp 0x14000562a
mov r8d, 0x13
lea rdx, str.Windows_10_IoT_Core
jmp 0x14000562a
mov r8d, 0x17
lea rdx, str.Windows_Server_Standard
jmp 0x14000562a
mov r8d, 0x19
lea rdx, str.Windows_Server_Datacenter
jmp 0x14000562a
lea rdx, str.Unknown_Edition
mov r8d, 0xf
lea rcx, [rsp + 0x38]
call fcn.140022100
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x1400056bc
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 0x140005682
lea rax, [rbx + rcx]
cmp r15, rax
ja 0x140005682
cmp rbx, r15
ja 0x14000567a
mov rsi, r13
jmp 0x140005685
mov rsi, rbx
sub rsi, r15
jmp 0x140005685
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 0x1400056d3
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r15
mov rdx, r12
lea rcx, [rsp + 0x38]
call fcn.140026320
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x130], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x140], 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 + 0x130]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0xf
cmova rdx, rcx
movq r8, xmm1
lea rcx, [0x14003b650]
call fcn.1400212c0
nop
mov rdx, qword [rbp + 0x148]
cmp rdx, 0xf
jbe 0x140005777
inc rdx
mov rcx, qword [rbp + 0x130]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005772
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005772
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140028340
btr edi, 0xc
mov dword [rsp + 0x30], edi
mov rdx, qword [rsp + 0x50]
cmp rdx, 0xf
jbe 0x1400057bf
inc rdx
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400057ba
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400057ba
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140028340
lea rcx, [rbp - 0x40]
call fcn.140004b00
mov rbx, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x140005848
lea r8, [rcx + 1]
mov qword [rbx + 0x10], r8
mov rsi, rbx
cmp rdx, 0xf
jbe 0x1400057f3
mov rsi, qword [rbx]
cmp r14, rsi
jbe 0x140005813
lea rax, [rsi + rcx]
cmp r15, rax
ja 0x140005813
cmp rsi, r15
ja 0x14000580b
mov r14, r13
jmp 0x140005816
mov r14, rsi
sub r14, r15
jmp 0x140005816
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 0x140005860
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], r15
mov rdx, r12
mov rcx, rbx
call fcn.140026320
mov rbx, rax
movups xmm0, xmmword [rbx]
movups xmmword [rbp + 0x130], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp + 0x140], 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 + 0x130]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, 0xf
cmova rdx, rcx
movq r8, xmm1
lea rcx, [0x14003b650]
call fcn.1400212c0
nop
mov rdx, qword [rbp + 0x148]
cmp rdx, 0xf
jbe 0x140005905
inc rdx
mov rcx, qword [rbp + 0x130]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400058ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400058ff
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140028340
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0xf
jbe 0x140005943
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000593e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000593e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140028340
lea rax, [0x14003b650]
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140028320
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