Function at 0x140017760
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 [0x140113040]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov eax, dword [0x140124878]
mov ecx, dword [0x140121718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001784d
lea rsi, [0x140124870]
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400935c0
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 [0x140124870], r14
lea rcx, [0x140124878]
call fcn.1400914e8
jmp 0x1400177aa
lea rcx, [0x1401248c0]
call fcn.140091554
cmp dword [0x1401248c0], 0xffffffff
jne 0x1400178f4
xorps xmm0, xmm0
movups xmmword [0x1401248b0], xmm0
movups xmmword [0x1401248a0], xmm0
movups xmmword [0x140124890], xmm0
lea rcx, [0x140124890]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1401248c0]
call fcn.1400914e8
jmp 0x1400178f4
xor ecx, ecx
xor eax, eax
jmp 0x140017a67
lea rcx, [0x140124878]
call fcn.140091554
cmp dword [0x140124878], 0xffffffff
jne 0x1400177aa
lea rsi, [rsp + 0x98]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1400c39c0
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.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.1400914ac
mov rsi, rax
mov r14, rax
mov eax, dword [rdi]
mov qword [rsp + 0x30], rax
mov eax, dword [0x1401248c0]
mov ecx, dword [0x140121718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400177f5
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 0x140017844
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, [0x140104e0c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140017a18
mov eax, dword [rsp + 0x40]
add eax, 0xfffffffd
xor r13d, r13d
cmp dword [rsp + 0x1b0], 4
mov ecx, 0
jne 0x140017a11
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.140017f80
movzx eax, byte [rdi + 0x17]
test al, al
mov rcx, qword [rdi + 8]
mov rdx, rax
cmovs rdx, rcx
test rdx, rdx
jne 0x140017a67
lea rdx, str.ReleaseId
lea rcx, [rsp + 0x58]
lea rdi, [rsp + 0x70]
mov r8, rdi
call fcn.140017f80
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.1400182d0
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 0x140017ad4
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 0x140017d0d
cmp byte [rsp + 0x87], 0
jns 0x140017aff
mov rcx, qword [rsp + 0x70]
call fcn.1400914a4
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 0x140017e96
cmp ebx, 0x585c
ja 0x140017df1
cmp ebx, 0x55ef
ja 0x140017b74
cmp ebx, 0x4f7b
ja 0x140017dfb
cmp ebx, 0x4a64
ja 0x140017e05
je 0x140017e0f
mov eax, 0x12
cmp ebx, 0x4a62
jbe 0x140017cf1
mov dword [r14], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
mov eax, dword [0x140124888]
mov ecx, dword [0x140121718]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140017be6
lea rcx, [0x140124888]
call fcn.140091554
cmp dword [0x140124888], 0xffffffff
jne 0x140017be6
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.IsWow64Process2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140124880], rax
lea rcx, [0x140124888]
call fcn.1400914e8
add rsi, 0x38
mov rax, qword [0x140124880]
test rax, rax
je 0x140017e53
xor ecx, ecx
lea rdx, [rsp + 0x70]
mov word [rdx], cx
lea r8, [rsp + 0x58]
mov word [r8], cx
mov rcx, rdi
call qword [0x140109830]
test eax, eax
je 0x140017c4a
movzx eax, word [rsp + 0x70]
test eax, eax
jne 0x140017e19
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.140091a84
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.1400182d0
mov rax, qword [rbx + 0x10]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [rbx]
movups xmmword [rsi], xmm0
mov eax, dword [0x1401248b0]
mov dword [r14 + 0x50], eax
mov eax, dword [0x1401248b8]
mov qword [r14 + 0x58], rax
mov eax, dword [rdi - 0x10]
cmp eax, 5
je 0x140017d60
cmp eax, 0xa
je 0x140017ccd
cmp eax, 6
jne 0x1400177d8
mov rdx, qword [rsp + 0x30]
cmp edx, 0x30
ja 0x140017d37
mov eax, edx
mov ecx, 0x206f780
bt rcx, rax
jae 0x140017d1c
mov dword [r14 + 0x14], 2
jmp 0x1400177e0
je 0x140017ef2
mov eax, 0x10
cmp ebx, 0x4a60
ja 0x140017b74
jmp 0x140017efc
mov edx, 1
call fcn.14001cd20
jmp 0x140017aeb
mov ecx, 0x8010050
bt rcx, rax
jb 0x140017d53
movabs rcx, 0x1000000000002
bt rcx, rax
jb 0x140017dab
lea eax, [rdx - 0x46]
cmp eax, 0x3c
ja 0x140017dd5
movabs rcx, 0x1980000000004005
bt rcx, rax
jae 0x140017db8
mov dword [r14 + 0x14], 3
jmp 0x1400177e0
mov eax, dword [rsp + 0x9c]
cmp eax, 1
je 0x140017d9d
cmp eax, 2
jne 0x1400177d8
cmp byte [rsp + 0x1ae], 1
jne 0x140017d89
cmp word [0x140124890], 9
je 0x140017dab
cmp word [rsp + 0x1ac], 0
jns 0x140017ce4
jmp 0x1400177d8
test byte [rsp + 0x1ad], 2
jne 0x1400177d8
mov dword [r14 + 0x14], 1
jmp 0x1400177e0
movabs rcx, 0x18000000000000
bt rcx, rax
jae 0x140017dd5
mov dword [r14 + 0x14], 4
jmp 0x1400177e0
add edx, 0xffffff5c
cmp edx, 2
jae 0x1400177d8
mov dword [r14 + 0x14], 5
jmp 0x1400177e0
mov eax, 0x17
jmp 0x140017b74
mov eax, 0x15
jmp 0x140017b74
mov eax, 0x14
jmp 0x140017b74
mov eax, 0x13
jmp 0x140017b74
lea ecx, [rax - 0x1c0]
cmp ecx, 4
ja 0x140017e2e
mov edx, 0x15
bt edx, ecx
jb 0x140017e49
cmp eax, 0x14c
jne 0x140017e3f
mov eax, 1
jmp 0x140017c27
mov eax, 3
jmp 0x140017c27
mov eax, 2
jmp 0x140017c27
lea rdx, [rsp + 0x70]
mov dword [rdx], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x140017c4a
cmp dword [rsp + 0x70], 0
je 0x140017e89
movabs rax, 0x100000001
mov qword [r14 + 0x60], rax
jmp 0x140017c4a
mov dword [r14 + 0x60], 0
jmp 0x140017c4a
cmp ebp, 0xb
je 0x140017b74
cmp ebp, 7
jb 0x140017eb3
call fcn.1400c47f0
mov eax, 0x18
jmp 0x140017b74
cmp ebp, 6
jne 0x140017ece
lea ecx, [r12 + 3]
cmp r12d, 3
mov eax, 6
cmovb eax, ecx
jmp 0x140017b74
xor eax, eax
test r12d, r12d
je 0x140017b74
cmp ebp, 5
jne 0x140017b74
xor eax, eax
cmp r12d, 1
setne al
inc eax
jmp 0x140017b74
mov eax, 0x11
jmp 0x140017b74
mov eax, 0xf
cmp ebx, 0x47ba
ja 0x140017b74
mov eax, 0xe
je 0x140017b74
mov eax, 0xd
cmp ebx, 0x4562
ja 0x140017b74
mov eax, 0xc
cmp ebx, 0x42ed
ja 0x140017b74
mov eax, 0xb
cmp ebx, 0x3faa
ja 0x140017b74
mov eax, 0xa
cmp ebx, 0x3ad6
ja 0x140017b74
mov eax, 9
cmp ebx, 0x3838
ja 0x140017b74
cmp ebx, 0x295a
mov eax, 7
sbb eax, 0xffffffff
jmp 0x140017b74