Function at 0x1402ebb90
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x248
movaps xmmword [rsp + 0x230], xmm6
mov rsi, rcx
mov rax, qword [0x1403a0028]
xor rax, rsp
mov qword [rsp + 0x228], rax
mov qword [rcx + 0x38], rdx
lea rbx, [rsp + 0xf4]
xor r14d, r14d
mov r8d, 0x118
mov rcx, rbx
xor edx, edx
call fcn.1401bd200
mov dword [rbx - 4], 0x11c
mov byte [rbx + 0x116], 1
xor ecx, ecx
mov edx, 0x80
mov r8b, 1
call qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea rcx, [rsp + 0xf0]
mov edx, 0x80
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
sete byte [rsi + 0x4c]
mov dword [rsp + 0xec], 0
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rax, [rsp + 0xe0]
mov qword [rax], r15
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
je 0x1402ebced
movaps xmm6, xmmword [0x14032f5c0]
lea rbx, [rsp + 0xf0]
movaps xmmword [rbx + 0x20], xmm6
movaps xmmword [rbx + 0x10], xmm6
movaps xmmword [rbx], xmm6
mov dword [rbx + 0x30], 0xaaaaaaaa
lea rax, str.kernel32.dll
lea rdx, [rsp + 0xd0]
mov qword [rdx], rax
mov qword [rdx + 8], ntohl
lea rdi, [rsp + 0x210]
mov rcx, rdi
call fcn.14015eae0
mov rcx, rdi
mov rdx, rbx
call fcn.1402eb810
mov ebx, eax
mov rcx, rdi
call fcn.14015ebb0
test bl, bl
jne 0x1402ebd2a
mov rcx, qword [rsp + 0x228]
xor rcx, rsp
call fcn.1401bb0d0
movaps xmm6, xmmword [rsp + 0x230]
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rbx, qword [rsp + 0xe0]
lea r8, [rsi + 0x40]
lea rdx, str.CurrentMajorVersionNumber
mov rcx, rbx
call fcn.1402ec210
test al, al
jne 0x1402ec054
xor r14d, r14d
test rbx, rbx
je 0x1402ebc60
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1402ebc60
mov qword [rsp + 0xc0], r15
movaps xmmword [rsp + 0xb0], xmm6
mov edi, dword [rsp + 0x10c]
xorps xmm0, xmm0
movaps xmmword [rsp + 0x210], xmm0
mov qword [rsp + 0x220], 0
test dil, 1
je 0x1402ebd72
lea rdx, str.Debug_
lea rcx, [rsp + 0x210]
call fcn.14015c640
test dil, 4
je 0x1402ebd8c
lea rdx, str.Patched_
lea rcx, [rsp + 0x210]
call fcn.14015c640
test dil, 2
je 0x1402ebda6
lea rdx, str.Prerelease_
lea rcx, [rsp + 0x210]
call fcn.14015c640
test dil, 8
je 0x1402ebdc0
lea rdx, str.Private_
lea rcx, [rsp + 0x210]
call fcn.14015c640
test dil, 0x20
je 0x1402ebdda
lea rdx, str.Special_
lea rcx, [rsp + 0x210]
call fcn.14015c640
movzx r9d, byte [rsp + 0x227]
test r9b, r9b
jns 0x1402ebdf2
mov r9, qword [rsp + 0x218]
jmp 0x1402ebdf6
and r9d, 0x7f
test r9, r9
jne 0x1402ebe34
mov rax, qword [rsp + 0x220]
mov qword [rsp + 0xc0], rax
movaps xmm0, xmmword [rsp + 0x210]
movaps xmmword [rsp + 0xb0], xmm0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x210], xmm0
mov qword [rsp + 0x220], 0
jmp 0x1402ebe5c
dec r9
lea rax, [rsp + 0x228]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0xb0]
lea rdx, [rsp + 0x210]
xor r8d, r8d
call fcn.14005c800
cmp byte [rsp + 0x227], 0
jns 0x1402ebe73
mov rcx, qword [rsp + 0x210]
call fcn.1401b9ce8
lea r12, [rsp + 0x210]
mov qword [r12 + 0x10], r15
movaps xmmword [r12], xmm6
mov eax, dword [rsp + 0x110]
not eax
test eax, 0x40004
lea rax, str.Windows_NT
lea rdx, str.Unknown
cmove rdx, rax
mov rcx, r12
call fcn.1401f9c10
test r14b, r14b
je 0x1402ebebc
mov r8d, dword [rsp + 0xec]
jmp 0x1402ebef1
mov eax, dword [rsp + 0xf8]
mov ecx, eax
shr ecx, 0x10
mov dword [rsi + 0x40], ecx
mov ecx, 0xffff
and eax, ecx
mov dword [rsi + 0x44], eax
mov r8d, dword [rsp + 0xfc]
mov eax, r8d
shr eax, 0x10
mov dword [rsi + 0x48], eax
and r8d, ecx
mov dword [rsp + 0xec], r8d
lea rdx, [0x140333b9d]
lea rcx, [rsp + 0x98]
call fcn.140169560
lea rbx, [rsi + 0x20]
cmp byte [rsi + 0x37], 0
jns 0x1402ebf17
mov rcx, qword [rbx]
call fcn.1401b9ce8
mov rax, qword [rsp + 0xa8]
mov qword [rbx + 0x10], rax
movups xmm0, xmmword [rsp + 0x98]
movups xmmword [rbx], xmm0
movzx edi, byte [rsp + 0xc7]
test dil, dil
jns 0x1402ebf45
mov rdi, qword [rsp + 0xb8]
jmp 0x1402ebf48
and edi, 0x7f
test rdi, rdi
jne 0x1402ec165
lea rax, [0x14032fe31]
cmp byte [rsi + 0x37], 0
jns 0x1402ebf61
mov rbx, qword [rbx]
mov ecx, dword [rsi + 0x48]
mov r9d, dword [rsi + 0x40]
mov edx, dword [rsi + 0x44]
cmp byte [rsp + 0x227], 0
jns 0x1402ebf7d
mov r12, qword [rsp + 0x210]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edx
lea rdx, str._s__u._u._u._s_s
lea rcx, [rsp + 0x98]
mov r8, r12
call fcn.140169560
lea rbx, [rsi + 8]
cmp byte [rsi + 0x1f], 0
jns 0x1402ebfb8
mov rcx, qword [rbx]
call fcn.1401b9ce8
mov rax, qword [rsp + 0xa8]
mov qword [rbx + 0x10], rax
xor eax, eax
movups xmm0, xmmword [rsp + 0x98]
movups xmmword [rbx], xmm0
mov byte [rsp + 0xaf], al
mov byte [rsp + 0x98], al
test rdi, rdi
je 0x1402ec01d
cmp byte [rsp + 0x97], 0
jns 0x1402ebffb
mov rcx, qword [rsp + 0x80]
call fcn.1401b9ce8
cmp byte [rsp + 0x77], 0
jns 0x1402ec00c
mov rcx, qword [rsp + 0x60]
call fcn.1401b9ce8
cmp byte [rsp + 0x5f], 0
jns 0x1402ec01d
mov rcx, qword [rsp + 0x48]
call fcn.1401b9ce8
cmp byte [rsp + 0x227], 0
jns 0x1402ec034
mov rcx, qword [rsp + 0x210]
call fcn.1401b9ce8
cmp byte [rsp + 0xc7], 0
jns 0x1402ebcc4
mov rcx, qword [rsp + 0xb0]
call fcn.1401b9ce8
jmp 0x1402ebcc4
lea r8, [rsi + 0x44]
mov rcx, qword [rsp + 0xe0]
lea rdx, str.CurrentMinorVersionNumber
call fcn.1402ec210
test al, al
je 0x1402ebd10
mov rcx, qword [rsp + 0xe0]
mov eax, 0xaaaaaaaa
lea rdx, [rsp + 0x210]
mov dword [rdx + 7], eax
mov qword [rdx], r15
lea r9, [rsp + 0xb0]
mov dword [r9], eax
lea rax, [rsp + 0x98]
mov dword [rax], 0xa
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
lea rdx, str.CurrentBuildNumber
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1402ebd10
cmp dword [rsp + 0xb0], 1
jne 0x1402ebd10
mov eax, dword [rsp + 0x98]
mov byte [rsp + rax + 0x210], 0
lea rdi, [rsp + 0x80]
mov dword [rdi], 0xaaaaaaaa
lea r14, [rsp + 0xf0]
lea rdx, [rsp + 0x210]
mov rcx, r14
call fcn.1401f9c10
mov rcx, r14
mov rdx, rdi
call fcn.140115c80
mov edi, eax
cmp byte [r14 + 0x17], 0
jns 0x1402ec12e
mov rcx, qword [rsp + 0xf0]
call fcn.1401b9ce8
test dil, dil
je 0x1402ebd10
mov eax, dword [rsp + 0x80]
mov dword [rsi + 0x48], eax
mov rcx, qword [rsp + 0xe0]
lea rdx, [0x140376dda]
lea r8, [rsp + 0xec]
call fcn.1402ec210
mov r14d, eax
jmp 0x1402ebd13
lea rdx, [0x14033135c]
lea r14, [rsp + 0x48]
mov rcx, r14
call fcn.1401f9c10
lea rdx, [rsp + 0xb0]
movzx eax, byte [rdx + 0x17]
mov r8d, eax
and r8d, 0x7f
test al, al
cmovs r8, qword [rdx + 8]
cmovs rdx, qword [rdx]
mov rcx, r14
call fcn.14015be00
movups xmm0, xmmword [rax]
lea rcx, [rsp + 0x60]
movaps xmmword [rcx], xmm0
mov rdx, qword [rax + 0x10]
mov qword [rcx + 0x10], rdx
xor r14d, r14d
mov qword [rax + 0x10], r14
xorps xmm6, xmm6
movups xmmword [rax], xmm6
lea rdx, [0x14033127c]
call fcn.14015c640
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x90], rcx
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x80], xmm0
movups xmmword [rax], xmm6
mov qword [rax + 0x10], r14
cmp byte [rsp + 0x97], 0
jns 0x1402ec200
mov rax, qword [rsp + 0x80]
jmp 0x1402ebf58
lea rax, [rsp + 0x80]
jmp 0x1402ebf58