Function at 0x140017610
Capabilities:
Check os version
Get system information on windows
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1c8
mov rax, qword [0x14010c040]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov eax, dword [0x14011d7e0]
mov ecx, dword [0x14011a6f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400176fd
lea rsi, [0x14011d7d8]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400909a0
mov rax, rsi
add rsp, 0x1c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov dword [r14 + 0x14], 0
mov qword [0x14011d7d8], r14
lea rcx, [0x14011d7e0]
call fcn.14008ed98
jmp 0x14001765a
lea rcx, [0x14011d828]
call fcn.14008ee04
cmp dword [0x14011d828], 0xffffffff
jne 0x1400177a4
xorps xmm0, xmm0
movups xmmword [0x14011d818], xmm0
movups xmmword [0x14011d808], xmm0
movups xmmword [0x14011d7f8], xmm0
lea rcx, [0x14011d7f8]
call qword [sym.imp.progwrp.dll_GetNativeSystemInfo]
lea rcx, [0x14011d828]
call fcn.14008ed98
jmp 0x1400177a4
xor ecx, ecx
xor eax, eax
jmp 0x140017917
lea rcx, [0x14011d7e0]
call fcn.14008ee04
cmp dword [0x14011d7e0], 0xffffffff
jne 0x14001765a
lea rsi, [rsp + 0x98]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400bf160
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x94]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x3c]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.progwrp.dll_GetProductInfo]
mov ecx, 0x80
call fcn.14008ed5c
mov rsi, rax
mov r14, rax
mov eax, dword [rdi]
mov qword [rsp + 0x30], rax
mov eax, dword [0x14011d828]
mov ecx, dword [0x14011a6f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400176a5
mov dword [r14], 0
xorps xmm0, xmm0
movups xmmword [r14 + 0x20], xmm0
movups xmmword [r14 + 0x30], xmm0
movups xmmword [r14 + 0x40], xmm0
movabs rax, 0x300000004
mov qword [r14 + 0x60], rax
movups xmmword [r14 + 0x68], xmm0
xor r13d, r13d
mov qword [r14 + 0x78], r13
mov ebp, dword [rsp + 0x98]
mov dword [r14 + 4], ebp
mov r12d, dword [rsp + 0x9c]
mov dword [r14 + 8], r12d
mov ebx, dword [rsp + 0xa0]
mov dword [r14 + 0xc], ebx
mov qword [rsp + 0x80], r13
movaps xmmword [rsp + 0x70], xmm0
movabs rax, 0xaaaaaaaa00000000
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x68], r13
lea rax, [rsp + 0x40]
mov qword [rax], r13
mov qword [rsp + 0x20], rax
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400176f4
lea r9, [rsp + 0x40]
mov rcx, qword [r9]
mov qword [rsp + 0x58], rcx
xor r13d, r13d
mov dword [rsp + 0x60], r13d
mov eax, 4
mov dword [r9], eax
lea rdx, [rsp + 0x1b0]
mov dword [rdx], eax
lea rax, [rsp + 0x90]
mov dword [rax], r13d
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
lea rdx, [0x1400fe362]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400178c8
mov eax, dword [rsp + 0x40]
add eax, 0xfffffffd
xor r13d, r13d
cmp dword [rsp + 0x1b0], 4
mov ecx, 0
jne 0x1400178c1
mov ecx, dword [rsp + 0x90]
cmp eax, 2
cmovb r13d, ecx
lea rdx, str.DisplayVersion
lea rcx, [rsp + 0x58]
lea rdi, [rsp + 0x70]
mov r8, rdi
call fcn.140017e30
movzx eax, byte [rdi + 0x17]
test al, al
mov rcx, qword [rdi + 8]
mov rdx, rax
cmovs rdx, rcx
test rdx, rdx
jne 0x140017917
lea rdx, str.ReleaseId
lea rcx, [rsp + 0x58]
lea rdi, [rsp + 0x70]
mov r8, rdi
call fcn.140017e30
mov al, byte [rdi + 0x17]
mov rcx, qword [rdi + 8]
test al, al
movzx edx, al
cmovs rdx, rcx
lea rcx, [rsp + 0x70]
cmovs rcx, qword [rcx]
xorps xmm0, xmm0
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov r8, rdi
call fcn.140018180
mov r15, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rsp + 0x1b0], rax
mov rax, qword [rdi + 0xf]
mov qword [rsp + 0x1b7], rax
mov dil, byte [rdi + 0x17]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140017984
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x60], 0
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x68], 0
test rcx, rcx
jne 0x140017bbd
cmp byte [rsp + 0x87], 0
jns 0x1400179af
mov rcx, qword [rsp + 0x70]
call fcn.14008ed54
mov dword [r14 + 0x10], r13d
mov qword [r14 + 0x20], r15
mov rax, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0x1b7]
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x2f], rcx
mov byte [r14 + 0x37], dil
mov eax, 0x16
cmp ebp, 0xa
jne 0x140017d46
cmp ebx, 0x585c
ja 0x140017ca1
cmp ebx, 0x55ef
ja 0x140017a24
cmp ebx, 0x4f7b
ja 0x140017cab
cmp ebx, 0x4a64
ja 0x140017cb5
je 0x140017cbf
mov eax, 0x12
cmp ebx, 0x4a62
jbe 0x140017ba1
mov dword [r14], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
mov eax, dword [0x14011d7f0]
mov ecx, dword [0x14011a6f8]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140017a96
lea rcx, [0x14011d7f0]
call fcn.14008ee04
cmp dword [0x14011d7f0], 0xffffffff
jne 0x140017a96
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.IsWow64Process2
mov rcx, rax
call qword [sym.imp.progwrp.dll_GetProcAddress]
mov qword [0x14011d7e8], rax
lea rcx, [0x14011d7f0]
call fcn.14008ed98
add rsi, 0x38
mov rax, qword [0x14011d7e8]
test rax, rax
je 0x140017d03
xor ecx, ecx
lea rdx, [rsp + 0x70]
mov word [rdx], cx
lea r8, [rsp + 0x58]
mov word [r8], cx
mov rcx, rdi
call qword [0x140102bb8]
test eax, eax
je 0x140017afa
movzx eax, word [rsp + 0x70]
test eax, eax
jne 0x140017cc9
mov dword [r14 + 0x60], eax
movzx eax, word [rsp + 0x58]
xor ecx, ecx
cmp eax, 0x8664
setne cl
inc ecx
xor edx, edx
cmp eax, 0xaa64
cmovne edx, ecx
mov dword [r14 + 0x64], edx
lea rdi, [rsp + 0xa8]
movzx eax, word [rdi + 0x100]
mov dword [r14 + 0x18], eax
movzx eax, word [rdi + 0x102]
mov dword [r14 + 0x1c], eax
mov rcx, rdi
call fcn.14008f334
xorps xmm0, xmm0
lea rbx, [rsp + 0x70]
movaps xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov rcx, rdi
mov rdx, rax
mov r8, rbx
call fcn.140018180
mov rax, qword [rbx + 0x10]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov eax, dword [0x14011d818]
mov dword [r14 + 0x50], eax
mov eax, dword [0x14011d820]
mov qword [r14 + 0x58], rax
mov eax, dword [rdi - 0x10]
cmp eax, 5
je 0x140017c10
cmp eax, 0xa
je 0x140017b7d
cmp eax, 6
jne 0x140017688
mov rdx, qword [rsp + 0x30]
cmp edx, 0x30
ja 0x140017be7
mov eax, edx
mov ecx, 0x206f780
bt rcx, rax
jae 0x140017bcc
mov dword [r14 + 0x14], 2
jmp 0x140017690
je 0x140017da2
mov eax, 0x10
cmp ebx, 0x4a60
ja 0x140017a24
jmp 0x140017dac
mov edx, 1
call fcn.14001cbd0
jmp 0x14001799b
mov ecx, 0x8010050
bt rcx, rax
jb 0x140017c03
movabs rcx, 0x1000000000002
bt rcx, rax
jb 0x140017c5b
lea eax, [rdx - 0x46]
cmp eax, 0x3c
ja 0x140017c85
movabs rcx, 0x1980000000004005
bt rcx, rax
jae 0x140017c68
mov dword [r14 + 0x14], 3
jmp 0x140017690
mov eax, dword [rsp + 0x9c]
cmp eax, 1
je 0x140017c4d
cmp eax, 2
jne 0x140017688
cmp byte [rsp + 0x1ae], 1
jne 0x140017c39
cmp word [0x14011d7f8], 9
je 0x140017c5b
cmp word [rsp + 0x1ac], 0
jns 0x140017b94
jmp 0x140017688
test byte [rsp + 0x1ad], 2
jne 0x140017688
mov dword [r14 + 0x14], 1
jmp 0x140017690
movabs rcx, 0x18000000000000
bt rcx, rax
jae 0x140017c85
mov dword [r14 + 0x14], 4
jmp 0x140017690
add edx, 0xffffff5c
cmp edx, 2
jae 0x140017688
mov dword [r14 + 0x14], 5
jmp 0x140017690
mov eax, 0x17
jmp 0x140017a24
mov eax, 0x15
jmp 0x140017a24
mov eax, 0x14
jmp 0x140017a24
mov eax, 0x13
jmp 0x140017a24
lea ecx, [rax - 0x1c0]
cmp ecx, 4
ja 0x140017cde
mov edx, 0x15
bt edx, ecx
jb 0x140017cf9
cmp eax, 0x14c
jne 0x140017cef
mov eax, 1
jmp 0x140017ad7
mov eax, 3
jmp 0x140017ad7
mov eax, 2
jmp 0x140017ad7
lea rdx, [rsp + 0x70]
mov dword [rdx], 0
mov rcx, rdi
call qword [sym.imp.progwrp.dll_IsWow64Process]
test eax, eax
je 0x140017afa
cmp dword [rsp + 0x70], 0
je 0x140017d39
movabs rax, 0x100000001
mov qword [r14 + 0x60], rax
jmp 0x140017afa
mov dword [r14 + 0x60], 0
jmp 0x140017afa
cmp ebp, 0xb
je 0x140017a24
cmp ebp, 7
jb 0x140017d63
call fcn.1400bfef0
mov eax, 0x18
jmp 0x140017a24
cmp ebp, 6
jne 0x140017d7e
lea ecx, [r12 + 3]
cmp r12d, 3
mov eax, 6
cmovb eax, ecx
jmp 0x140017a24
xor eax, eax
test r12d, r12d
je 0x140017a24
cmp ebp, 5
jne 0x140017a24
xor eax, eax
cmp r12d, 1
setne al
inc eax
jmp 0x140017a24
mov eax, 0x11
jmp 0x140017a24
mov eax, 0xf
cmp ebx, 0x47ba
ja 0x140017a24
mov eax, 0xe
je 0x140017a24
mov eax, 0xd
cmp ebx, 0x4562
ja 0x140017a24
mov eax, 0xc
cmp ebx, 0x42ed
ja 0x140017a24
mov eax, 0xb
cmp ebx, 0x3faa
ja 0x140017a24
mov eax, 0xa
cmp ebx, 0x3ad6
ja 0x140017a24
mov eax, 9
cmp ebx, 0x3838
ja 0x140017a24
cmp ebx, 0x295a
mov eax, 7
sbb eax, 0xffffffff
jmp 0x140017a24