Function at 0x14002dc30
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1d8
mov edi, r9d
mov r14, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x1402b3040]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movabs rcx, 0xaaaaaaaaaaaaaaaa
xor r13d, r13d
mov dword [rsi], r13d
xorps xmm0, xmm0
movups xmmword [rsi + 0x20], xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x40], xmm0
movabs rax, 0x300000004
mov qword [rsi + 0x60], rax
movups xmmword [rsi + 0x68], xmm0
mov qword [rsi + 0x78], r13
mov dword [rsi + 0x80], r9d
mov eax, dword [rdx + 4]
mov dword [rsi + 4], eax
mov eax, dword [rdx + 8]
mov dword [rsi + 8], eax
mov eax, dword [rdx + 0xc]
mov dword [rsi + 0xc], eax
mov qword [rsp + 0xa0], r13
movaps xmmword [rsp + 0x90], xmm0
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], r13
mov dword [rsp + 0x60], r13d
mov qword [rsp + 0x68], r13
lea rax, [rsp + 0x40]
mov qword [rax], r13
mov qword [rsp + 0x20], rax
lea rdx, [0x140283710]
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002ddbb
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x14002e146
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 + 0x70]
mov dword [rdx], eax
lea rax, [rsp + 0x1c0]
mov dword [rax], r13d
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
lea rdx, [0x14028376a]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002dd84
mov eax, dword [rsp + 0x40]
add eax, 0xfffffffd
xor r13d, r13d
cmp dword [rsp + 0x70], 4
mov ecx, 0
jne 0x14002dd7d
mov ecx, dword [rsp + 0x1c0]
cmp eax, 2
cmovb r13d, ecx
lea rdx, str.DisplayVersion
lea rcx, [rsp + 0x58]
lea r15, [rsp + 0x90]
mov r8, r15
call fcn.14002e750
movsx rax, byte [r15 + 0x17]
test rax, rax
jns 0x14002ddb2
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x14002e204
lea r15, [rsp + 0x90]
movsx rax, byte [r15 + 0x17]
test rax, rax
cmovs rax, qword [r15 + 8]
mov rcx, qword [r15]
cmovns rcx, r15
lea rdx, [rsp + 0x70]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
lea r12, [rsp + 0x40]
mov rcx, r12
call fcn.14014cd20
mov rbp, qword [r12]
mov rax, qword [r12 + 8]
mov qword [rsp + 0x1c0], rax
mov rax, qword [r12 + 0xf]
mov qword [rsp + 0x1c7], rax
mov r12b, byte [r12 + 0x17]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14002de34
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 0x14002e06c
cmp byte [rsp + 0xa7], 0
js 0x14002e151
mov dword [rsi + 0x10], r13d
cmp byte [rsi + 0x37], 0
js 0x14002e171
mov qword [rsi + 0x20], rbp
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rsp + 0x1c7]
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x2f], rcx
mov byte [rsi + 0x37], r12b
mov ebp, dword [rsi + 0xc]
mov r13d, dword [rsi + 4]
mov eax, Ordinal_26
cmp r13d, 0xa
jne 0x14002e32d
cmp ebp, 0x5866
ja 0x14002e128
cmp ebp, 0x585c
ja 0x14002e132
cmp ebp, 0x55ef
ja 0x14002deda
cmp ebp, 0x4f7b
ja 0x14002e13c
mov eax, 0x14
cmp ebp, 0x4a64
jbe 0x14002e07b
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r15, rax
mov eax, dword [0x1402c53e8]
mov ecx, dword [0x1402c2098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14002df4b
lea rcx, [0x1402c53e8]
call fcn.14019ae60
cmp dword [0x1402c53e8], 0xffffffff
jne 0x14002df4b
lea rcx, [0x14027a498]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.IsWow64Process2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1402c53e0], rax
lea rcx, [0x1402c53e8]
call fcn.14019ad84
mov rax, qword [0x1402c53e0]
test rax, rax
je 0x14002e1bc
xor ecx, ecx
lea rdx, [rsp + 0x90]
mov word [rdx], cx
lea r8, [rsp + 0x58]
mov word [r8], cx
mov rcx, r15
call qword [0x1402a4958]
test eax, eax
je 0x14002dfaf
movzx eax, word [rsp + 0x90]
test eax, eax
jne 0x14002e182
mov dword [rsi + 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 [rsi + 0x64], edx
lea r12, [rsi + 0x38]
movzx eax, word [rbx + 0x114]
mov dword [rsi + 0x18], eax
movzx eax, word [rbx + 0x116]
mov dword [rsi + 0x1c], eax
lea rcx, [rbx + 0x14]
lea r15, [rsp + 0x30]
mov qword [r15], rcx
call fcn.14019aed8
mov qword [r15 + 8], rax
lea rcx, [rsp + 0x90]
mov rdx, r15
call fcn.14014cd20
cmp byte [rsi + 0x4f], 0
js 0x14002e163
mov rax, qword [rsp + 0xa0]
mov qword [r12 + 0x10], rax
movups xmm0, xmmword [rsp + 0x90]
movups xmmword [r12], xmm0
mov eax, dword [r14 + 0x20]
mov dword [rsi + 0x50], eax
mov eax, dword [r14 + 0x28]
mov qword [rsi + 0x58], rax
mov eax, dword [rbx + 4]
cmp eax, 0xa
jne 0x14002e2d1
cmp edi, 4
jne 0x14002e222
mov dword [rsi + 0x14], 3
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
cmp rcx, qword [0x1402b3040]
je 0x14002e055
call fcn.14019d280
int3
mov rax, rsi
add rsp, 0x1d8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edx, 1
call fcn.140041f30
jmp 0x14002de4b
je 0x14002e663
cmp ebp, 0x4a62
ja 0x14002e66d
je 0x14002e677
mov eax, 0x10
cmp ebp, 0x4a60
ja 0x14002deda
mov eax, 0xf
cmp ebp, 0x47ba
ja 0x14002deda
mov eax, reloc.WLDAP32.dll_Ordinal_14
je 0x14002deda
mov eax, Ordinal_14
cmp ebp, 0x4562
ja 0x14002deda
mov eax, Ordinal_14
cmp ebp, 0x42ed
ja 0x14002deda
mov eax, Ordinal_14
cmp ebp, 0x3faa
ja 0x14002deda
mov eax, 0xa
cmp ebp, 0x3ad6
ja 0x14002deda
mov eax, 9
cmp ebp, 0x3838
ja 0x14002deda
cmp ebp, 0x295a
mov eax, 7
sbb eax, 0xffffffff
jmp 0x14002deda
mov eax, Ordinal_26
jmp 0x14002deda
mov eax, Ordinal_26
jmp 0x14002deda
mov eax, 0x15
jmp 0x14002deda
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14002dd13
mov rcx, qword [rsp + 0x90]
call fcn.14019aab4
jmp 0x14002de59
mov rcx, qword [r12]
call fcn.14019aab4
jmp 0x14002dff6
lea rax, [rsi + 0x20]
mov rcx, qword [rax]
call fcn.14019aab4
jmp 0x14002de67
lea ecx, [rax - 0x1c0]
cmp ecx, 4
ja 0x14002e197
mov edx, 0x15
bt edx, ecx
jb 0x14002e1b2
cmp eax, 0x14c
jne 0x14002e1a8
mov eax, 1
jmp 0x14002df8e
mov eax, 3
jmp 0x14002df8e
mov eax, 2
jmp 0x14002df8e
lea rdx, [rsp + 0x90]
mov dword [rdx], 0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x14002dfaf
cmp dword [rsp + 0x90], 0
je 0x14002e1f8
movabs rax, 0x100000001
mov qword [rsi + 0x60], rax
jmp 0x14002dfaf
mov dword [rsi + 0x60], 0
jmp 0x14002dfaf
lea rdx, str.ReleaseId
lea rcx, [rsp + 0x58]
lea r8, [rsp + 0x90]
call fcn.14002e750
jmp 0x14002ddbb
cmp edi, 0x30
ja 0x14002e263
mov eax, edi
mov ecx, 0x206f780
bt rcx, rax
jae 0x14002e240
mov dword [rsi + 0x14], 2
jmp 0x14002e03b
mov ecx, 0x8010040
bt rcx, rax
jb 0x14002e034
movabs rcx, 0x1000000000002
bt rcx, rax
jb 0x14002e321
lea eax, [rdi - 0x46]
cmp eax, 0x3c
ja 0x14002e29b
movabs rcx, 0x1980000000004005
bt rcx, rax
jb 0x14002e034
movabs rcx, 0x18000000000000
bt rcx, rax
jae 0x14002e29b
mov dword [rsi + 0x14], 4
jmp 0x14002e03b
add edi, 0xffffff74
cmp edi, 0x33
ja 0x14002e2df
movabs rax, 0x9000000000003
bt rax, rdi
jb 0x14002e034
mov eax, 0x3000000
bt rax, rdi
jae 0x14002e2df
mov dword [rsi + 0x14], 5
jmp 0x14002e03b
cmp eax, 5
je 0x14002e2eb
cmp eax, 6
je 0x14002e02b
mov dword [rsi + 0x14], 0
jmp 0x14002e03b
mov eax, dword [rbx + 8]
cmp eax, 1
je 0x14002e318
cmp eax, 2
jne 0x14002e2df
cmp byte [rbx + 0x11a], 1
jne 0x14002e308
cmp word [r14], 9
je 0x14002e321
cmp word [rbx + 0x118], 0
jns 0x14002e234
jmp 0x14002e2df
test byte [rbx + 0x119], 2
jne 0x14002e2df
mov dword [rsi + 0x14], 1
jmp 0x14002e03b
cmp r13d, 0xb
je 0x14002deda
mov r12d, dword [rsi + 8]
cmp r13d, 7
jae 0x14002e384
cmp r13d, 6
jne 0x14002e35d
lea ecx, [r12 + 3]
cmp r12d, 3
mov eax, 6
cmovb eax, ecx
jmp 0x14002deda
cmp r13d, 5
setne cl
test r12d, r12d
sete dl
xor eax, eax
or dl, cl
jne 0x14002deda
xor eax, eax
cmp r12d, 1
setne al
inc eax
jmp 0x14002deda
mov ecx, 2
call fcn.140198e50
test al, al
je 0x14002e427
lea rdx, str....._basewinwindows_version.cc
lea rcx, [rsp + 0x90]
mov r8d, 0x1b6
mov r9d, 2
call fcn.14002ea40
lea rcx, [rsp + 0xa0]
lea rdx, str.Unsupported_version:
mov r8d, Ordinal_26
call fcn.140181360
mov rcx, rax
mov edx, r13d
call fcn.140153680
lea rdx, [0x140277e06]
mov r8d, 1
mov rcx, rax
call fcn.140181360
mov rcx, rax
mov edx, r12d
call fcn.140153680
mov r8d, 1
mov rcx, rax
lea rdx, [0x140277e06]
call fcn.140181360
mov rcx, rax
mov edx, ebp
call fcn.140153680
lea rcx, [rsp + 0x90]
call fcn.140001aa0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x1c0], rax
mov rcx, r15
mov edx, r13d
call fcn.140109420
movsx rax, byte [rsp + 0xa7]
test rax, rax
jns 0x14002e462
mov rax, qword [rsp + 0x98]
mov r15, qword [rsp + 0x90]
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], rax
mov eax, dword [0x1402c5430]
mov ecx, dword [0x1402c2098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002e681
mov rdx, qword [0x1402c5428]
lea rcx, [rsp + 0x1c0]
lea r8, [rsp + 0x58]
call fcn.14015b600
cmp byte [rsp + 0xa7], 0
jns 0x14002e4c1
mov rcx, qword [rsp + 0x90]
call fcn.14019aab4
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x88], rax
lea r15, [rsp + 0x90]
mov rcx, r15
mov edx, r12d
call fcn.140109420
movsx rax, byte [r15 + 0x17]
test rax, rax
jns 0x14002e500
mov rax, qword [rsp + 0x98]
mov r15, qword [rsp + 0x90]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rax
mov eax, dword [0x1402c5440]
mov ecx, dword [0x1402c2098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002e6c3
mov rdx, qword [0x1402c5438]
lea rcx, [rsp + 0x88]
lea r8, [rsp + 0x40]
call fcn.14015b600
cmp byte [rsp + 0xa7], 0
jns 0x14002e55f
mov rcx, qword [rsp + 0x90]
call fcn.14019aab4
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x80], rax
lea r15, [rsp + 0x90]
mov rcx, r15
mov edx, ebp
call fcn.140109420
movsx rax, byte [r15 + 0x17]
test rax, rax
jns 0x14002e59d
mov rax, qword [rsp + 0x98]
mov r15, qword [rsp + 0x90]
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], rax
mov eax, dword [0x1402c5450]
mov ecx, dword [0x1402c2098]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002e705
mov rdx, qword [0x1402c5448]
lea rcx, [rsp + 0x80]
lea r8, [rsp + 0x70]
call fcn.14015b600
cmp byte [rsp + 0xa7], 0
jns 0x14002e5fc
mov rcx, qword [rsp + 0x90]
call fcn.14019aab4
lea rdx, str.MajorMinorBuildToVersion
lea r8, str....._basewinwindows_version.cc
lea r15, [rsp + 0x90]
mov rcx, r15
mov r9d, 0x1bc
call fcn.140131450
movabs rdx, 0x141dd76000
mov rcx, r15
call fcn.140208560
lea rcx, [rsp + 0x80]
call fcn.14015b5c0
lea rcx, [rsp + 0x88]
call fcn.14015b5c0
lea rcx, [rsp + 0x1c0]
call fcn.14015b5c0
mov eax, Ordinal_26
jmp 0x14002deda
mov eax, 0x13
jmp 0x14002deda
mov eax, 0x12
jmp 0x14002deda
mov eax, 0x11
jmp 0x14002deda
lea rcx, [0x1402c5430]
call fcn.14019ae60
cmp dword [0x1402c5430], 0xffffffff
jne 0x14002e491
lea rcx, str.WindowsVersion_major
mov edx, 0x20
call fcn.140008fa0
mov qword [0x1402c5428], rax
lea rcx, [0x1402c5430]
call fcn.14019ad84
jmp 0x14002e491
lea rcx, [0x1402c5440]
call fcn.14019ae60
cmp dword [0x1402c5440], 0xffffffff
jne 0x14002e52f
lea rcx, str.WindowsVersion_minor
mov edx, 0x20
call fcn.140008fa0
mov qword [0x1402c5438], rax
lea rcx, [0x1402c5440]
call fcn.14019ad84
jmp 0x14002e52f
lea rcx, [0x1402c5450]
call fcn.14019ae60
cmp dword [0x1402c5450], 0xffffffff
jne 0x14002e5cc
lea rcx, str.WindowsVersion_build
mov edx, 0x20
call fcn.140008fa0
mov qword [0x1402c5448], rax
lea rcx, [0x1402c5450]
call fcn.14019ad84
jmp 0x14002e5cc