Function at 0x14002db60
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 [0x1402db040]
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, [0x1402aa840]
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14002dceb
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x14002e076
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, [0x1402aa89a]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002dcb4
mov eax, dword [rsp + 0x40]
add eax, 0xfffffffd
xor r13d, r13d
cmp dword [rsp + 0x70], 4
mov ecx, 0
jne 0x14002dcad
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.14002e680
movsx rax, byte [r15 + 0x17]
test rax, rax
jns 0x14002dce2
mov rax, qword [rsp + 0x98]
test rax, rax
je 0x14002e134
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.14015b7d0
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 0x14002dd64
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 0x14002df9c
cmp byte [rsp + 0xa7], 0
js 0x14002e081
mov dword [rsi + 0x10], r13d
cmp byte [rsi + 0x37], 0
js 0x14002e0a1
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 0x14002e25d
cmp ebp, 0x5866
ja 0x14002e058
cmp ebp, 0x585c
ja 0x14002e062
cmp ebp, 0x55ef
ja 0x14002de0a
cmp ebp, 0x4f7b
ja 0x14002e06c
mov eax, 0x14
cmp ebp, 0x4a64
jbe 0x14002dfab
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r15, rax
mov eax, dword [0x14032e2d8]
mov ecx, dword [0x1402ea130]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14002de7b
lea rcx, [0x14032e2d8]
call fcn.1401aa170
cmp dword [0x14032e2d8], 0xffffffff
jne 0x14002de7b
lea rcx, [0x1402a1478]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.IsWow64Process2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14032e2d0], rax
lea rcx, [0x14032e2d8]
call fcn.1401aa094
mov rax, qword [0x14032e2d0]
test rax, rax
je 0x14002e0ec
xor ecx, ecx
lea rdx, [rsp + 0x90]
mov word [rdx], cx
lea r8, [rsp + 0x58]
mov word [r8], cx
mov rcx, r15
call qword [0x1402cbd20]
test eax, eax
je 0x14002dedf
movzx eax, word [rsp + 0x90]
test eax, eax
jne 0x14002e0b2
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.1401aa1e8
mov qword [r15 + 8], rax
lea rcx, [rsp + 0x90]
mov rdx, r15
call fcn.14015b7d0
cmp byte [rsi + 0x4f], 0
js 0x14002e093
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 0x14002e201
cmp edi, 4
jne 0x14002e152
mov dword [rsi + 0x14], 3
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
cmp rcx, qword [0x1402db040]
je 0x14002df85
call fcn.1401ac870
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.140041e60
jmp 0x14002dd7b
je 0x14002e593
cmp ebp, 0x4a62
ja 0x14002e59d
je 0x14002e5a7
mov eax, 0x10
cmp ebp, 0x4a60
ja 0x14002de0a
mov eax, 0xf
cmp ebp, 0x47ba
ja 0x14002de0a
mov eax, reloc.WLDAP32.dll_Ordinal_14
je 0x14002de0a
mov eax, Ordinal_14
cmp ebp, 0x4562
ja 0x14002de0a
mov eax, Ordinal_14
cmp ebp, 0x42ed
ja 0x14002de0a
mov eax, Ordinal_14
cmp ebp, 0x3faa
ja 0x14002de0a
mov eax, 0xa
cmp ebp, 0x3ad6
ja 0x14002de0a
mov eax, 9
cmp ebp, 0x3838
ja 0x14002de0a
cmp ebp, 0x295a
mov eax, 7
sbb eax, 0xffffffff
jmp 0x14002de0a
mov eax, Ordinal_26
jmp 0x14002de0a
mov eax, Ordinal_26
jmp 0x14002de0a
mov eax, 0x15
jmp 0x14002de0a
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14002dc43
mov rcx, qword [rsp + 0x90]
call fcn.1401a9dc4
jmp 0x14002dd89
mov rcx, qword [r12]
call fcn.1401a9dc4
jmp 0x14002df26
lea rax, [rsi + 0x20]
mov rcx, qword [rax]
call fcn.1401a9dc4
jmp 0x14002dd97
lea ecx, [rax - 0x1c0]
cmp ecx, 4
ja 0x14002e0c7
mov edx, 0x15
bt edx, ecx
jb 0x14002e0e2
cmp eax, 0x14c
jne 0x14002e0d8
mov eax, 1
jmp 0x14002debe
mov eax, 3
jmp 0x14002debe
mov eax, 2
jmp 0x14002debe
lea rdx, [rsp + 0x90]
mov dword [rdx], 0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x14002dedf
cmp dword [rsp + 0x90], 0
je 0x14002e128
movabs rax, 0x100000001
mov qword [rsi + 0x60], rax
jmp 0x14002dedf
mov dword [rsi + 0x60], 0
jmp 0x14002dedf
lea rdx, str.ReleaseId
lea rcx, [rsp + 0x58]
lea r8, [rsp + 0x90]
call fcn.14002e680
jmp 0x14002dceb
cmp edi, 0x30
ja 0x14002e193
mov eax, edi
mov ecx, 0x206f780
bt rcx, rax
jae 0x14002e170
mov dword [rsi + 0x14], 2
jmp 0x14002df6b
mov ecx, 0x8010040
bt rcx, rax
jb 0x14002df64
movabs rcx, 0x1000000000002
bt rcx, rax
jb 0x14002e251
lea eax, [rdi - 0x46]
cmp eax, 0x3c
ja 0x14002e1cb
movabs rcx, 0x1980000000004005
bt rcx, rax
jb 0x14002df64
movabs rcx, 0x18000000000000
bt rcx, rax
jae 0x14002e1cb
mov dword [rsi + 0x14], 4
jmp 0x14002df6b
add edi, 0xffffff74
cmp edi, 0x33
ja 0x14002e20f
movabs rax, 0x9000000000003
bt rax, rdi
jb 0x14002df64
mov eax, 0x3000000
bt rax, rdi
jae 0x14002e20f
mov dword [rsi + 0x14], 5
jmp 0x14002df6b
cmp eax, 5
je 0x14002e21b
cmp eax, 6
je 0x14002df5b
mov dword [rsi + 0x14], 0
jmp 0x14002df6b
mov eax, dword [rbx + 8]
cmp eax, 1
je 0x14002e248
cmp eax, 2
jne 0x14002e20f
cmp byte [rbx + 0x11a], 1
jne 0x14002e238
cmp word [r14], 9
je 0x14002e251
cmp word [rbx + 0x118], 0
jns 0x14002e164
jmp 0x14002e20f
test byte [rbx + 0x119], 2
jne 0x14002e20f
mov dword [rsi + 0x14], 1
jmp 0x14002df6b
cmp r13d, 0xb
je 0x14002de0a
mov r12d, dword [rsi + 8]
cmp r13d, 7
jae 0x14002e2b4
cmp r13d, 6
jne 0x14002e28d
lea ecx, [r12 + 3]
cmp r12d, 3
mov eax, 6
cmovb eax, ecx
jmp 0x14002de0a
cmp r13d, 5
setne cl
test r12d, r12d
sete dl
xor eax, eax
or dl, cl
jne 0x14002de0a
xor eax, eax
cmp r12d, 1
setne al
inc eax
jmp 0x14002de0a
mov ecx, 2
call fcn.1401a8160
test al, al
je 0x14002e357
lea rdx, str....._basewinwindows_version.cc
lea rcx, [rsp + 0x90]
mov r8d, 0x1b6
mov r9d, 2
call fcn.14002e970
lea rcx, [rsp + 0xa0]
lea rdx, str.Unsupported_version:
mov r8d, Ordinal_26
call fcn.14018fa80
mov rcx, rax
mov edx, r13d
call fcn.140162130
lea rdx, [0x14029eeb6]
mov r8d, 1
mov rcx, rax
call fcn.14018fa80
mov rcx, rax
mov edx, r12d
call fcn.140162130
mov r8d, 1
mov rcx, rax
lea rdx, [0x14029eeb6]
call fcn.14018fa80
mov rcx, rax
mov edx, ebp
call fcn.140162130
lea rcx, [rsp + 0x90]
call fcn.140001aa0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x1c0], rax
mov rcx, r15
mov edx, r13d
call fcn.140117ed0
movsx rax, byte [rsp + 0xa7]
test rax, rax
jns 0x14002e392
mov rax, qword [rsp + 0x98]
mov r15, qword [rsp + 0x90]
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], rax
mov eax, dword [0x14032e320]
mov ecx, dword [0x1402ea130]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002e5b1
mov rdx, qword [0x14032e318]
lea rcx, [rsp + 0x1c0]
lea r8, [rsp + 0x58]
call fcn.14016a0b0
cmp byte [rsp + 0xa7], 0
jns 0x14002e3f1
mov rcx, qword [rsp + 0x90]
call fcn.1401a9dc4
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x88], rax
lea r15, [rsp + 0x90]
mov rcx, r15
mov edx, r12d
call fcn.140117ed0
movsx rax, byte [r15 + 0x17]
test rax, rax
jns 0x14002e430
mov rax, qword [rsp + 0x98]
mov r15, qword [rsp + 0x90]
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], rax
mov eax, dword [0x14032e330]
mov ecx, dword [0x1402ea130]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002e5f3
mov rdx, qword [0x14032e328]
lea rcx, [rsp + 0x88]
lea r8, [rsp + 0x40]
call fcn.14016a0b0
cmp byte [rsp + 0xa7], 0
jns 0x14002e48f
mov rcx, qword [rsp + 0x90]
call fcn.1401a9dc4
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x80], rax
lea r15, [rsp + 0x90]
mov rcx, r15
mov edx, ebp
call fcn.140117ed0
movsx rax, byte [r15 + 0x17]
test rax, rax
jns 0x14002e4cd
mov rax, qword [rsp + 0x98]
mov r15, qword [rsp + 0x90]
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], rax
mov eax, dword [0x14032e340]
mov ecx, dword [0x1402ea130]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002e635
mov rdx, qword [0x14032e338]
lea rcx, [rsp + 0x80]
lea r8, [rsp + 0x70]
call fcn.14016a0b0
cmp byte [rsp + 0xa7], 0
jns 0x14002e52c
mov rcx, qword [rsp + 0x90]
call fcn.1401a9dc4
lea rdx, str.MajorMinorBuildToVersion
lea r8, str....._basewinwindows_version.cc
lea r15, [rsp + 0x90]
mov rcx, r15
mov r9d, 0x1bc
call fcn.14013ff00
movabs rdx, 0x141dd76000
mov rcx, r15
call fcn.14022f910
lea rcx, [rsp + 0x80]
call fcn.14016a070
lea rcx, [rsp + 0x88]
call fcn.14016a070
lea rcx, [rsp + 0x1c0]
call fcn.14016a070
mov eax, Ordinal_26
jmp 0x14002de0a
mov eax, 0x13
jmp 0x14002de0a
mov eax, 0x12
jmp 0x14002de0a
mov eax, 0x11
jmp 0x14002de0a
lea rcx, [0x14032e320]
call fcn.1401aa170
cmp dword [0x14032e320], 0xffffffff
jne 0x14002e3c1
lea rcx, str.WindowsVersion_major
mov edx, 0x20
call fcn.140008fa0
mov qword [0x14032e318], rax
lea rcx, [0x14032e320]
call fcn.1401aa094
jmp 0x14002e3c1
lea rcx, [0x14032e330]
call fcn.1401aa170
cmp dword [0x14032e330], 0xffffffff
jne 0x14002e45f
lea rcx, str.WindowsVersion_minor
mov edx, 0x20
call fcn.140008fa0
mov qword [0x14032e328], rax
lea rcx, [0x14032e330]
call fcn.1401aa094
jmp 0x14002e45f
lea rcx, [0x14032e340]
call fcn.1401aa170
cmp dword [0x14032e340], 0xffffffff
jne 0x14002e4fc
lea rcx, str.WindowsVersion_build
mov edx, 0x20
call fcn.140008fa0
mov qword [0x14032e338], rax
lea rcx, [0x14032e340]
call fcn.1401aa094
jmp 0x14002e4fc