Function at 0x14002a2f0
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov edi, r9d
mov r14, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140145040]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor r12d, r12d
mov dword [rcx], r12d
xorps xmm0, xmm0
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm0
movups xmmword [rcx + 0x40], xmm0
movabs rax, 0x300000004
mov qword [rcx + 0x60], rax
movups xmmword [rcx + 0x68], xmm0
mov qword [rcx + 0x78], r12
mov eax, dword [rdx + 4]
mov dword [rcx + 4], eax
mov eax, dword [rdx + 8]
mov dword [rcx + 8], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0xc], eax
mov qword [rsp + 0x70], r12
movaps xmmword [rsp + 0x60], xmm0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x58], r12
lea rax, [rsp + 0x30]
mov qword [rax], r12
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 0x14002a719
lea r9, [rsp + 0x30]
mov rcx, qword [r9]
mov qword [rsp + 0x48], rcx
xor r12d, r12d
mov dword [rsp + 0x50], r12d
mov eax, 4
mov dword [r9], eax
lea rdx, [rsp + 0x80]
mov dword [rdx], eax
lea rax, [rsp + 0x7c]
mov dword [rax], r12d
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
lea rdx, [0x140135b8c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14002a429
mov eax, dword [rsp + 0x30]
add eax, 0xfffffffd
xor r12d, r12d
cmp dword [rsp + 0x80], 4
mov ecx, 0
jne 0x14002a422
mov ecx, dword [rsp + 0x7c]
cmp eax, 2
cmovb r12d, ecx
lea rdx, str.DisplayVersion
lea rcx, [rsp + 0x48]
lea r15, [rsp + 0x60]
mov r8, r15
call fcn.140013bf0
movzx eax, byte [r15 + 0x17]
test al, al
mov rcx, qword [r15 + 8]
mov rdx, rax
cmovs rdx, rcx
test rdx, rdx
jne 0x14002a47a
lea rdx, str.ReleaseId
lea rcx, [rsp + 0x48]
lea r15, [rsp + 0x60]
mov r8, r15
call fcn.140013bf0
mov al, byte [r15 + 0x17]
mov rcx, qword [r15 + 8]
test al, al
movzx edx, al
cmovs rdx, rcx
lea rcx, [rsp + 0x60]
cmovs rcx, qword [rcx]
xorps xmm0, xmm0
lea r15, [rsp + 0x30]
movaps xmmword [r15], xmm0
mov qword [r15 + 0x10], 0
mov r8, r15
call fcn.14005a000
mov r13, qword [r15]
mov rax, qword [r15 + 8]
mov qword [rsp + 0x80], rax
mov rax, qword [r15 + 0xf]
mov qword [rsp + 0x87], rax
mov bpl, byte [r15 + 0x17]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14002a4e8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x58], 0
test rcx, rcx
jne 0x14002a73e
cmp byte [rsp + 0x77], 0
jns 0x14002a510
mov rcx, qword [rsp + 0x60]
call fcn.1400b4d44
mov dword [rsi + 0x10], r12d
cmp byte [rsi + 0x37], 0
jns 0x14002a526
lea rax, [rsi + 0x20]
mov rcx, qword [rax]
call fcn.1400b4d44
mov qword [rsi + 0x20], r13
mov rax, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x87]
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x2f], rcx
mov byte [rsi + 0x37], bpl
mov ecx, dword [rsi + 4]
mov eax, 0x16
cmp ecx, 0xa
jne 0x14002a8c3
mov ecx, dword [rsi + 0xc]
cmp ecx, 0x585c
ja 0x14002a81f
cmp ecx, 0x55ef
ja 0x14002a59d
cmp ecx, 0x4f7b
ja 0x14002a829
cmp ecx, 0x4a64
ja 0x14002a833
je 0x14002a83d
mov eax, 0x12
cmp ecx, 0x4a62
jbe 0x14002a722
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r15, rax
mov eax, dword [0x140157850]
mov ecx, dword [0x140153d98]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14002a60e
lea rcx, [0x140157850]
call fcn.1400b4df4
cmp dword [0x140157850], 0xffffffff
jne 0x14002a60e
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 [0x140157848], rax
lea rcx, [0x140157850]
call fcn.1400b4d88
mov rax, qword [0x140157848]
test rax, rax
je 0x14002a881
xor ecx, ecx
lea rdx, [rsp + 0x60]
mov word [rdx], cx
lea r8, [rsp + 0x48]
mov word [r8], cx
mov rcx, r15
call qword [0x14013a9a8]
test eax, eax
je 0x14002a66c
movzx eax, word [rsp + 0x60]
test eax, eax
jne 0x14002a847
mov dword [rsi + 0x60], eax
movzx eax, word [rsp + 0x48]
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 r15, [rbx + 0x14]
mov rcx, r15
call fcn.1400b5304
xorps xmm0, xmm0
lea r8, [rsp + 0x60]
movaps xmmword [r8], xmm0
mov qword [r8 + 0x10], 0
mov rcx, r15
mov rdx, rax
call fcn.14005a000
cmp byte [rsi + 0x4f], 0
jns 0x14002a6be
mov rcx, qword [r12]
call fcn.1400b4d44
mov rax, qword [rsp + 0x70]
mov qword [r12 + 0x10], rax
movaps xmm0, xmmword [rsp + 0x60]
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, 5
je 0x14002a74d
cmp eax, 0xa
je 0x14002a6f7
cmp eax, 6
jne 0x14002a7c4
cmp edi, 0x30
ja 0x14002a791
mov eax, edi
mov ecx, 0x206f780
bt rcx, rax
jae 0x14002a776
mov dword [rsi + 0x14], 2
jmp 0x14002a7cb
xor ecx, ecx
xor eax, eax
jmp 0x14002a47a
je 0x14002a91d
mov eax, 0x10
cmp ecx, 0x4a60
ja 0x14002a59d
jmp 0x14002a927
mov edx, 1
call fcn.140025560
jmp 0x14002a4ff
mov eax, dword [rbx + 8]
cmp eax, 1
je 0x14002a7b2
cmp eax, 2
jne 0x14002a7c4
cmp byte [rbx + 0x11a], 1
jne 0x14002a76a
cmp word [r14], 9
je 0x14002a7bb
cmp word [rbx + 0x118], 0
jns 0x14002a70d
jmp 0x14002a7c4
mov ecx, 0x8010050
bt rcx, rax
jb 0x14002a7a9
movabs rcx, 0x1000000000002
bt rcx, rax
jb 0x14002a7bb
lea eax, [rdi - 0x46]
cmp eax, 0x3c
ja 0x14002a7f2
movabs rcx, 0x1980000000004005
bt rcx, rax
jae 0x14002a806
mov dword [rsi + 0x14], 3
jmp 0x14002a7cb
test byte [rbx + 0x119], 2
jne 0x14002a7c4
mov dword [rsi + 0x14], 1
jmp 0x14002a7cb
mov dword [rsi + 0x14], 0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400b7310
mov rax, rsi
add rsp, 0x98
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
add edi, 0xffffff5c
cmp edi, 2
jae 0x14002a7c4
mov dword [rsi + 0x14], 5
jmp 0x14002a7cb
movabs rcx, 0x18000000000000
bt rcx, rax
jae 0x14002a7f2
mov dword [rsi + 0x14], 4
jmp 0x14002a7cb
mov eax, 0x17
jmp 0x14002a59d
mov eax, 0x15
jmp 0x14002a59d
mov eax, 0x14
jmp 0x14002a59d
mov eax, 0x13
jmp 0x14002a59d
lea ecx, [rax - 0x1c0]
cmp ecx, 4
ja 0x14002a85c
mov edx, 0x15
bt edx, ecx
jb 0x14002a877
cmp eax, 0x14c
jne 0x14002a86d
mov eax, 1
jmp 0x14002a64b
mov eax, 3
jmp 0x14002a64b
mov eax, 2
jmp 0x14002a64b
lea rdx, [rsp + 0x60]
mov dword [rdx], 0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x14002a66c
cmp dword [rsp + 0x60], 0
je 0x14002a8b7
movabs rax, 0x100000001
mov qword [rsi + 0x60], rax
jmp 0x14002a66c
mov dword [rsi + 0x60], 0
jmp 0x14002a66c
cmp ecx, 0xb
je 0x14002a59d
cmp ecx, 7
jb 0x14002a8e0
call fcn.1400ec9a0
mov eax, 0x18
jmp 0x14002a59d
mov edx, dword [rsi + 8]
cmp ecx, 6
jne 0x14002a8fb
lea ecx, [rdx + 3]
cmp edx, 3
mov eax, 6
cmovb eax, ecx
jmp 0x14002a59d
xor eax, eax
test edx, edx
je 0x14002a59d
cmp ecx, 5
jne 0x14002a59d
xor eax, eax
cmp edx, 1
setne al
inc eax
jmp 0x14002a59d
mov eax, 0x11
jmp 0x14002a59d
mov eax, 0xf
cmp ecx, 0x47ba
ja 0x14002a59d
mov eax, 0xe
je 0x14002a59d
mov eax, 0xd
cmp ecx, 0x4562
ja 0x14002a59d
mov eax, 0xc
cmp ecx, 0x42ed
ja 0x14002a59d
mov eax, 0xb
cmp ecx, 0x3faa
ja 0x14002a59d
mov eax, 0xa
cmp ecx, 0x3ad6
ja 0x14002a59d
mov eax, 9
cmp ecx, 0x3838
ja 0x14002a59d
cmp ecx, 0x295a
mov eax, 7
sbb eax, 0xffffffff
jmp 0x14002a59d