Function at 0x14003b5e0
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, 0x1e8
mov qword [rsp + 0x30], r9
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x140260028]
xor rax, rsp
mov qword [rsp + 0x1e0], 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 + 0xb0], r13
movaps xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x68], r13
mov dword [rsp + 0x70], r13d
mov qword [rsp + 0x78], r13
lea rax, [rsp + 0x50]
mov qword [rax], r13
mov qword [rsp + 0x20], rax
lea rdx, [0x14023cab0]
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov qword [rsp + 0x38], rdi
jne 0x14003b778
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jne 0x14003babd
lea r9, [rsp + 0x50]
mov rcx, qword [r9]
mov qword [rsp + 0x68], rcx
xor r13d, r13d
mov dword [rsp + 0x70], r13d
mov eax, 4
mov dword [r9], eax
lea rdx, [rsp + 0x80]
mov dword [rdx], eax
lea rax, [rsp + 0x1d0]
mov dword [rax], r13d
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rax
lea rdx, [0x14023cb0a]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003b741
mov eax, dword [rsp + 0x50]
add eax, 0xfffffffd
xor r13d, r13d
cmp dword [rsp + 0x80], 4
mov ecx, 0
jne 0x14003b73a
mov ecx, dword [rsp + 0x1d0]
cmp eax, 2
cmovb r13d, ecx
lea rdx, str.DisplayVersion
lea rcx, [rsp + 0x68]
lea r15, [rsp + 0xa0]
mov r8, r15
call fcn.14003c190
movsx rax, byte [r15 + 0x17]
test rax, rax
jns 0x14003b76f
mov rax, qword [rsp + 0xa8]
test rax, rax
je 0x14003bb77
lea r15, [rsp + 0xa0]
movsx rcx, byte [r15 + 0x17]
test rcx, rcx
cmovs rcx, qword [r15 + 8]
lea rbp, [rsi + 0x20]
mov rax, qword [r15]
cmovns rax, r15
lea rdi, [rsi + 0x38]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], rcx
test rcx, rcx
js 0x14003c039
sete cl
test rax, rax
setne al
or al, cl
je 0x14003c039
lea r12, [rsp + 0x50]
lea rdx, [rsp + 0x80]
mov rcx, r12
call fcn.140127360
mov r14, qword [r12]
mov rax, qword [r12 + 8]
mov qword [rsp + 0x1d0], rax
mov rax, qword [r12 + 0xf]
mov qword [rsp + 0x1d7], rax
mov r12b, byte [r12 + 0x17]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14003b81f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x70], 0
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0x78], 0
test rcx, rcx
jne 0x14003ba7c
cmp byte [rsp + 0xb7], 0
js 0x14003bac8
mov dword [rsi + 0x10], r13d
cmp byte [rsi + 0x37], 0
js 0x14003bada
mov qword [rsi + 0x20], r14
mov rax, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1d7]
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, 0x16
cmp r13d, 0xa
jne 0x14003bcad
cmp ebp, 0x5866
ja 0x14003ba8b
cmp ebp, 0x585c
ja 0x14003ba95
cmp ebp, 0x55ef
ja 0x14003b8d7
cmp ebp, 0x4f7b
ja 0x14003ba9f
cmp ebp, 0x4a64
ja 0x14003baa9
je 0x14003bab3
mov eax, 0x12
cmp ebp, 0x4a62
jbe 0x14003ba60
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r15, rax
mov eax, dword [0x140272150]
mov ecx, dword [0x14026ee18]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x14003b948
lea rcx, [0x140272150]
call fcn.1401467a0
cmp dword [0x140272150], 0xffffffff
jne 0x14003b948
lea rcx, [0x1402338c8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.IsWow64Process2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140272148], rax
lea rcx, [0x140272150]
call fcn.140146740
mov rax, qword [0x140272148]
test rax, rax
je 0x14003bb2f
xor ecx, ecx
lea rdx, [rsp + 0xa0]
mov word [rdx], cx
lea r8, [rsp + 0x68]
mov word [r8], cx
mov rcx, r15
call qword [0x1402529a0]
test eax, eax
je 0x14003b9ac
movzx eax, word [rsp + 0xa0]
test eax, eax
jne 0x14003baf5
mov dword [rsi + 0x60], eax
movzx eax, word [rsp + 0x68]
xor ecx, ecx
cmp eax, 0x8664
setne cl
inc ecx
xor edx, edx
cmp eax, 0xaa64
cmovne edx, ecx
mov dword [rsi + 0x64], edx
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 + 0x40]
mov qword [r15], rcx
call fcn.1401469e0
mov qword [r15 + 8], rax
lea rcx, [rsp + 0xa0]
mov rdx, r15
call fcn.140127360
cmp byte [rsi + 0x4f], 0
js 0x14003bae8
mov rax, qword [rsp + 0xb0]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0xa0]
movups xmmword [rdi], xmm0
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx + 0x20]
mov dword [rsi + 0x50], eax
mov eax, dword [rcx + 0x28]
mov qword [rsi + 0x58], rax
mov eax, dword [rbx + 4]
cmp eax, 0xa
jne 0x14003bc52
mov rax, qword [rsp + 0x30]
cmp eax, 4
jne 0x14003bb95
mov dword [rsi + 0x14], 3
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.140149190
mov rax, rsi
add rsp, 0x1e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
je 0x14003c03b
mov eax, 0x10
cmp ebp, 0x4a60
ja 0x14003b8d7
jmp 0x14003c045
mov edx, 1
call fcn.140014310
jmp 0x14003b836
mov eax, 0x18
jmp 0x14003b8d7
mov eax, 0x17
jmp 0x14003b8d7
mov eax, 0x15
jmp 0x14003b8d7
mov eax, 0x14
jmp 0x14003b8d7
mov eax, 0x13
jmp 0x14003b8d7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14003b6ca
mov rcx, qword [rsp + 0xa0]
call fcn.140146640
jmp 0x14003b844
mov rcx, qword [rbp]
call fcn.140146640
jmp 0x14003b852
mov rcx, qword [rdi]
call fcn.140146640
jmp 0x14003b9ef
lea ecx, [rax - 0x1c0]
cmp ecx, 4
ja 0x14003bb0a
mov edx, 0x15
bt edx, ecx
jb 0x14003bb25
cmp eax, 0x14c
jne 0x14003bb1b
mov eax, 1
jmp 0x14003b98b
mov eax, 3
jmp 0x14003b98b
mov eax, 2
jmp 0x14003b98b
lea rdx, [rsp + 0xa0]
mov dword [rdx], 0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x14003b9ac
cmp dword [rsp + 0xa0], 0
je 0x14003bb6b
movabs rax, 0x100000001
mov qword [rsi + 0x60], rax
jmp 0x14003b9ac
mov dword [rsi + 0x60], 0
jmp 0x14003b9ac
lea rdx, str.ReleaseId
lea rcx, [rsp + 0x68]
lea r8, [rsp + 0xa0]
call fcn.14003c190
jmp 0x14003b778
cmp eax, 0x30
ja 0x14003bbd8
mov eax, dword [rsp + 0x30]
mov ecx, 0x206f780
bt rcx, rax
jae 0x14003bbb5
mov dword [rsi + 0x14], 2
jmp 0x14003ba39
mov ecx, 0x8010040
bt rcx, rax
jb 0x14003ba32
movabs rcx, 0x1000000000002
bt rcx, rax
jb 0x14003bca1
mov rax, qword [rsp + 0x30]
add eax, 0xffffffba
cmp eax, 0x3c
ja 0x14003bc15
movabs rcx, 0x1980000000004005
bt rcx, rax
jb 0x14003ba32
movabs rcx, 0x18000000000000
bt rcx, rax
jae 0x14003bc15
mov dword [rsi + 0x14], 4
jmp 0x14003ba39
mov rax, qword [rsp + 0x30]
add eax, 0xffffff74
cmp eax, 0x33
ja 0x14003bc60
mov rcx, rax
movabs rax, 0x9000000000003
bt rax, rcx
jb 0x14003ba32
mov eax, 0x3000000
bt rax, rcx
jae 0x14003bc60
mov dword [rsi + 0x14], 5
jmp 0x14003ba39
cmp eax, 5
je 0x14003bc6c
cmp eax, 6
je 0x14003ba24
mov dword [rsi + 0x14], 0
jmp 0x14003ba39
mov eax, dword [rbx + 8]
cmp eax, 1
je 0x14003bc98
cmp eax, 2
jne 0x14003bc60
cmp byte [rbx + 0x11a], 1
jne 0x14003bc88
cmp word [rcx], 9
je 0x14003bca1
cmp word [rbx + 0x118], 0
jns 0x14003bba9
jmp 0x14003bc60
test byte [rbx + 0x119], 2
jne 0x14003bc60
mov dword [rsi + 0x14], 1
jmp 0x14003ba39
cmp r13d, 0xb
je 0x14003b8d7
mov r12d, dword [rsi + 8]
cmp r13d, 7
jae 0x14003bd04
cmp r13d, 6
jne 0x14003bcdd
lea ecx, [r12 + 3]
cmp r12d, 3
mov eax, 6
cmovb eax, ecx
jmp 0x14003b8d7
cmp r13d, 5
setne cl
test r12d, r12d
sete dl
xor eax, eax
or dl, cl
jne 0x14003b8d7
xor eax, eax
cmp r12d, 1
setne al
inc eax
jmp 0x14003b8d7
mov ecx, 2
call fcn.140144ac0
test al, al
je 0x14003bda6
lea rdx, str....._basewinwindows_version.cc
lea rcx, [rsp + 0xa0]
mov r8d, 0x1b6
mov r9d, 2
call fcn.140030930
lea rcx, [rsp + 0xb0]
lea rdx, str.Unsupported_version:
mov r8d, 0x15
call fcn.14012f860
mov rcx, rax
mov edx, r13d
call fcn.140186b20
lea r14, [0x1402320c2]
mov r8d, 1
mov rcx, rax
mov rdx, r14
call fcn.14012f860
mov rcx, rax
mov edx, r12d
call fcn.140186b20
mov r8d, 1
mov rcx, rax
mov rdx, r14
call fcn.14012f860
mov rcx, rax
mov edx, ebp
call fcn.140186b20
lea rcx, [rsp + 0xa0]
call fcn.1400502a0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x1d0], rax
mov rcx, r15
mov edx, r13d
call fcn.1400be930
movsx rax, byte [rsp + 0xb7]
test rax, rax
jns 0x14003bde1
mov rax, qword [rsp + 0xa8]
mov r15, qword [rsp + 0xa0]
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], rax
test rax, rax
js 0x14003c039
sete al
test r15, r15
setne cl
or cl, al
je 0x14003c039
mov eax, dword [0x140272198]
mov ecx, dword [0x14026ee18]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003c0c9
mov rdx, qword [0x140272190]
lea rcx, [rsp + 0x1d0]
lea r8, [rsp + 0x68]
call fcn.14010be90
cmp byte [rsp + 0xb7], 0
jns 0x14003be5a
mov rcx, qword [rsp + 0xa0]
call fcn.140146640
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x98], rax
lea r15, [rsp + 0xa0]
mov rcx, r15
mov edx, r12d
call fcn.1400be930
movsx rax, byte [r15 + 0x17]
test rax, rax
jns 0x14003be99
mov rax, qword [rsp + 0xa8]
mov r15, qword [rsp + 0xa0]
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], rax
test rax, rax
js 0x14003c039
sete al
test r15, r15
setne cl
or cl, al
je 0x14003c039
mov eax, dword [0x1402721a8]
mov ecx, dword [0x14026ee18]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003c10b
mov rdx, qword [0x1402721a0]
lea rcx, [rsp + 0x98]
lea r8, [rsp + 0x50]
call fcn.14010be90
cmp byte [rsp + 0xb7], 0
jns 0x14003bf12
mov rcx, qword [rsp + 0xa0]
call fcn.140146640
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], rax
lea r15, [rsp + 0xa0]
mov rcx, r15
mov edx, ebp
call fcn.1400be930
movsx rax, byte [r15 + 0x17]
test rax, rax
jns 0x14003bf50
mov rax, qword [rsp + 0xa8]
mov r15, qword [rsp + 0xa0]
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x88], rax
test rax, rax
js 0x14003c039
sete al
test r15, r15
setne cl
or cl, al
je 0x14003c039
mov eax, dword [0x1402721b8]
mov ecx, dword [0x14026ee18]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003c14d
mov rdx, qword [0x1402721b0]
lea rcx, [rsp + 0x90]
lea r8, [rsp + 0x80]
call fcn.14010be90
cmp byte [rsp + 0xb7], 0
jns 0x14003bfd2
mov rcx, qword [rsp + 0xa0]
call fcn.140146640
lea rdx, str.MajorMinorBuildToVersion
lea r8, str....._basewinwindows_version.cc
lea r15, [rsp + 0xa0]
mov rcx, r15
mov r9d, 0x1bc
call fcn.1400d3160
movabs rdx, 0x141dd76000
mov rcx, r15
call fcn.1401a6cd0
lea rcx, [rsp + 0x90]
call fcn.14010be50
lea rcx, [rsp + 0x98]
call fcn.14010be50
lea rcx, [rsp + 0x1d0]
call fcn.14010be50
mov eax, 0x19
jmp 0x14003b8d7
ud2
mov eax, 0x11
jmp 0x14003b8d7
mov eax, 0xf
cmp ebp, 0x47ba
ja 0x14003b8d7
mov eax, 0xe
je 0x14003b8d7
mov eax, 0xd
cmp ebp, 0x4562
ja 0x14003b8d7
mov eax, 0xc
cmp ebp, 0x42ed
ja 0x14003b8d7
mov eax, 0xb
cmp ebp, 0x3faa
ja 0x14003b8d7
mov eax, 0xa
cmp ebp, 0x3ad6
ja 0x14003b8d7
mov eax, 9
cmp ebp, 0x3838
ja 0x14003b8d7
cmp ebp, 0x295a
mov eax, 7
sbb eax, 0xffffffff
jmp 0x14003b8d7
lea rcx, [0x140272198]
call fcn.1401467a0
cmp dword [0x140272198], 0xffffffff
jne 0x14003be2a
lea rcx, str.WindowsVersion_major
mov edx, 0x20
call fcn.140050b00
mov qword [0x140272190], rax
lea rcx, [0x140272198]
call fcn.140146740
jmp 0x14003be2a
lea rcx, [0x1402721a8]
call fcn.1401467a0
cmp dword [0x1402721a8], 0xffffffff
jne 0x14003bee2
lea rcx, str.WindowsVersion_minor
mov edx, 0x20
call fcn.140050b00
mov qword [0x1402721a0], rax
lea rcx, [0x1402721a8]
call fcn.140146740
jmp 0x14003bee2
lea rcx, [0x1402721b8]
call fcn.1401467a0
cmp dword [0x1402721b8], 0xffffffff
jne 0x14003bf9f
lea rcx, str.WindowsVersion_build
mov edx, 0x20
call fcn.140050b00
mov qword [0x1402721b0], rax
lea rcx, [0x1402721b8]
call fcn.140146740
jmp 0x14003bf9f