Function at 0x1400389c0
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 [0x14022c040]
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, [0x14020a300]
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 0x140038b58
mov rcx, qword [rsp + 0x68]
test rcx, rcx
jne 0x140038f12
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, [0x14020a35a]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140038b21
mov eax, dword [rsp + 0x50]
add eax, 0xfffffffd
xor r13d, r13d
cmp dword [rsp + 0x80], 4
mov ecx, 0
jne 0x140038b1a
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.140039580
movsx rax, byte [r15 + 0x17]
test rax, rax
jns 0x140038b4f
mov rax, qword [rsp + 0xa8]
test rax, rax
je 0x140038fcc
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 0x14003948e
sete cl
test rax, rax
setne al
or al, cl
je 0x14003948e
lea r12, [rsp + 0x50]
lea rdx, [rsp + 0x80]
mov rcx, r12
call fcn.140110920
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 0x140038bff
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 0x140038e38
cmp byte [rsp + 0xb7], 0
js 0x140038f1d
mov dword [rsi + 0x10], r13d
cmp byte [rsi + 0x37], 0
js 0x140038f2f
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 0x140039102
cmp ebp, 0x5866
ja 0x140038ef4
cmp ebp, 0x585c
ja 0x140038efe
cmp ebp, 0x55ef
ja 0x140038ca5
cmp ebp, 0x4f7b
ja 0x140038f08
mov eax, 0x14
cmp ebp, 0x4a64
jbe 0x140038e47
mov dword [rsi], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r15, rax
mov eax, dword [0x14023e118]
mov ecx, dword [0x14023adf0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jle 0x140038d16
lea rcx, [0x14023e118]
call fcn.140133c60
cmp dword [0x14023e118], 0xffffffff
jne 0x140038d16
lea rcx, [0x14020112e]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.IsWow64Process2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14023e110], rax
lea rcx, [0x14023e118]
call fcn.140133eb0
mov rax, qword [0x14023e110]
test rax, rax
je 0x140038f84
xor ecx, ecx
lea rdx, [rsp + 0xa0]
mov word [rdx], cx
lea r8, [rsp + 0x68]
mov word [r8], cx
mov rcx, r15
call qword [0x14021e390]
test eax, eax
je 0x140038d7a
movzx eax, word [rsp + 0xa0]
test eax, eax
jne 0x140038f4a
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.1401341e0
mov qword [r15 + 8], rax
lea rcx, [rsp + 0xa0]
mov rdx, r15
call fcn.140110920
cmp byte [rsi + 0x4f], 0
js 0x140038f3d
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 0x1400390a7
mov rax, qword [rsp + 0x30]
cmp eax, 4
jne 0x140038fea
mov dword [rsi + 0x14], 3
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
cmp rcx, qword [0x14022c040]
je 0x140038e21
call fcn.1401363f0
int3
mov rax, rsi
add rsp, 0x1e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edx, 1
call fcn.140043850
jmp 0x140038c16
je 0x140039490
cmp ebp, 0x4a62
ja 0x14003949a
je 0x1400394a4
mov eax, 0x10
cmp ebp, 0x4a60
ja 0x140038ca5
mov eax, 0xf
cmp ebp, 0x47ba
ja 0x140038ca5
mov eax, 0xe
je 0x140038ca5
mov eax, 0xd
cmp ebp, 0x4562
ja 0x140038ca5
mov eax, 0xc
cmp ebp, 0x42ed
ja 0x140038ca5
mov eax, 0xb
cmp ebp, 0x3faa
ja 0x140038ca5
mov eax, 0xa
cmp ebp, 0x3ad6
ja 0x140038ca5
mov eax, 9
cmp ebp, 0x3838
ja 0x140038ca5
cmp ebp, 0x295a
mov eax, 7
sbb eax, 0xffffffff
jmp 0x140038ca5
mov eax, 0x18
jmp 0x140038ca5
mov eax, 0x17
jmp 0x140038ca5
mov eax, 0x15
jmp 0x140038ca5
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140038aaa
mov rcx, qword [rsp + 0xa0]
call fcn.140133b2c
jmp 0x140038c24
mov rcx, qword [rbp]
call fcn.140133b2c
jmp 0x140038c32
mov rcx, qword [rdi]
call fcn.140133b2c
jmp 0x140038dbd
lea ecx, [rax - 0x1c0]
cmp ecx, 4
ja 0x140038f5f
mov edx, 0x15
bt edx, ecx
jb 0x140038f7a
cmp eax, 0x14c
jne 0x140038f70
mov eax, 1
jmp 0x140038d59
mov eax, 3
jmp 0x140038d59
mov eax, 2
jmp 0x140038d59
lea rdx, [rsp + 0xa0]
mov dword [rdx], 0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x140038d7a
cmp dword [rsp + 0xa0], 0
je 0x140038fc0
movabs rax, 0x100000001
mov qword [rsi + 0x60], rax
jmp 0x140038d7a
mov dword [rsi + 0x60], 0
jmp 0x140038d7a
lea rdx, str.ReleaseId
lea rcx, [rsp + 0x68]
lea r8, [rsp + 0xa0]
call fcn.140039580
jmp 0x140038b58
cmp eax, 0x30
ja 0x14003902d
mov eax, dword [rsp + 0x30]
mov ecx, 0x206f780
bt rcx, rax
jae 0x14003900a
mov dword [rsi + 0x14], 2
jmp 0x140038e07
mov ecx, 0x8010040
bt rcx, rax
jb 0x140038e00
movabs rcx, 0x1000000000002
bt rcx, rax
jb 0x1400390f6
mov rax, qword [rsp + 0x30]
add eax, 0xffffffba
cmp eax, 0x3c
ja 0x14003906a
movabs rcx, 0x1980000000004005
bt rcx, rax
jb 0x140038e00
movabs rcx, 0x18000000000000
bt rcx, rax
jae 0x14003906a
mov dword [rsi + 0x14], 4
jmp 0x140038e07
mov rax, qword [rsp + 0x30]
add eax, 0xffffff74
cmp eax, 0x33
ja 0x1400390b5
mov rcx, rax
movabs rax, 0x9000000000003
bt rax, rcx
jb 0x140038e00
mov eax, 0x3000000
bt rax, rcx
jae 0x1400390b5
mov dword [rsi + 0x14], 5
jmp 0x140038e07
cmp eax, 5
je 0x1400390c1
cmp eax, 6
je 0x140038df2
mov dword [rsi + 0x14], 0
jmp 0x140038e07
mov eax, dword [rbx + 8]
cmp eax, 1
je 0x1400390ed
cmp eax, 2
jne 0x1400390b5
cmp byte [rbx + 0x11a], 1
jne 0x1400390dd
cmp word [rcx], 9
je 0x1400390f6
cmp word [rbx + 0x118], 0
jns 0x140038ffe
jmp 0x1400390b5
test byte [rbx + 0x119], 2
jne 0x1400390b5
mov dword [rsi + 0x14], 1
jmp 0x140038e07
cmp r13d, 0xb
je 0x140038ca5
mov r12d, dword [rsi + 8]
cmp r13d, 7
jae 0x140039159
cmp r13d, 6
jne 0x140039132
lea ecx, [r12 + 3]
cmp r12d, 3
mov eax, 6
cmovb eax, ecx
jmp 0x140038ca5
cmp r13d, 5
setne cl
test r12d, r12d
sete dl
xor eax, eax
or dl, cl
jne 0x140038ca5
xor eax, eax
cmp r12d, 1
setne al
inc eax
jmp 0x140038ca5
mov ecx, 2
call fcn.140131f40
test al, al
je 0x1400391fb
lea rdx, str....._basewinwindows_version.cc
lea rcx, [rsp + 0xa0]
mov r8d, 0x1b6
mov r9d, 2
call fcn.140039870
lea rcx, [rsp + 0xb0]
lea rdx, str.Unsupported_version:
mov r8d, 0x15
call fcn.140122650
mov rcx, rax
mov edx, r13d
call fcn.140107af0
lea r14, [0x1401ffcca]
mov r8d, 1
mov rcx, rax
mov rdx, r14
call fcn.140122650
mov rcx, rax
mov edx, r12d
call fcn.140107af0
mov r8d, 1
mov rcx, rax
mov rdx, r14
call fcn.140122650
mov rcx, rax
mov edx, ebp
call fcn.140107af0
lea rcx, [rsp + 0xa0]
call fcn.140002170
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x1d0], rax
mov rcx, r15
mov edx, r13d
call fcn.1400a78a0
movsx rax, byte [rsp + 0xb7]
test rax, rax
jns 0x140039236
mov rax, qword [rsp + 0xa8]
mov r15, qword [rsp + 0xa0]
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], rax
test rax, rax
js 0x14003948e
sete al
test r15, r15
setne cl
or cl, al
je 0x14003948e
mov eax, dword [0x14023e160]
mov ecx, dword [0x14023adf0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400394ae
mov rdx, qword [0x14023e158]
lea rcx, [rsp + 0x1d0]
lea r8, [rsp + 0x68]
call fcn.1401027e0
cmp byte [rsp + 0xb7], 0
jns 0x1400392af
mov rcx, qword [rsp + 0xa0]
call fcn.140133b2c
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x98], rax
lea r15, [rsp + 0xa0]
mov rcx, r15
mov edx, r12d
call fcn.1400a78a0
movsx rax, byte [r15 + 0x17]
test rax, rax
jns 0x1400392ee
mov rax, qword [rsp + 0xa8]
mov r15, qword [rsp + 0xa0]
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], rax
test rax, rax
js 0x14003948e
sete al
test r15, r15
setne cl
or cl, al
je 0x14003948e
mov eax, dword [0x14023e170]
mov ecx, dword [0x14023adf0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400394f0
mov rdx, qword [0x14023e168]
lea rcx, [rsp + 0x98]
lea r8, [rsp + 0x50]
call fcn.1401027e0
cmp byte [rsp + 0xb7], 0
jns 0x140039367
mov rcx, qword [rsp + 0xa0]
call fcn.140133b2c
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], rax
lea r15, [rsp + 0xa0]
mov rcx, r15
mov edx, ebp
call fcn.1400a78a0
movsx rax, byte [r15 + 0x17]
test rax, rax
jns 0x1400393a5
mov rax, qword [rsp + 0xa8]
mov r15, qword [rsp + 0xa0]
mov qword [rsp + 0x80], r15
mov qword [rsp + 0x88], rax
test rax, rax
js 0x14003948e
sete al
test r15, r15
setne cl
or cl, al
je 0x14003948e
mov eax, dword [0x14023e180]
mov ecx, dword [0x14023adf0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140039532
mov rdx, qword [0x14023e178]
lea rcx, [rsp + 0x90]
lea r8, [rsp + 0x80]
call fcn.1401027e0
cmp byte [rsp + 0xb7], 0
jns 0x140039427
mov rcx, qword [rsp + 0xa0]
call fcn.140133b2c
lea rdx, str.MajorMinorBuildToVersion
lea r8, str....._basewinwindows_version.cc
lea r15, [rsp + 0xa0]
mov rcx, r15
mov r9d, 0x1bc
call fcn.1400d5a00
movabs rdx, 0x141dd76000
mov rcx, r15
call fcn.14016aba0
lea rcx, [rsp + 0x90]
call fcn.1401027a0
lea rcx, [rsp + 0x98]
call fcn.1401027a0
lea rcx, [rsp + 0x1d0]
call fcn.1401027a0
mov eax, 0x19
jmp 0x140038ca5
ud2
mov eax, 0x13
jmp 0x140038ca5
mov eax, 0x12
jmp 0x140038ca5
mov eax, 0x11
jmp 0x140038ca5
lea rcx, [0x14023e160]
call fcn.140133c60
cmp dword [0x14023e160], 0xffffffff
jne 0x14003927f
lea rcx, str.WindowsVersion_major
mov edx, 0x20
call fcn.140002d50
mov qword [0x14023e158], rax
lea rcx, [0x14023e160]
call fcn.140133eb0
jmp 0x14003927f
lea rcx, [0x14023e170]
call fcn.140133c60
cmp dword [0x14023e170], 0xffffffff
jne 0x140039337
lea rcx, str.WindowsVersion_minor
mov edx, 0x20
call fcn.140002d50
mov qword [0x14023e168], rax
lea rcx, [0x14023e170]
call fcn.140133eb0
jmp 0x140039337
lea rcx, [0x14023e180]
call fcn.140133c60
cmp dword [0x14023e180], 0xffffffff
jne 0x1400393f4
lea rcx, str.WindowsVersion_build
mov edx, 0x20
call fcn.140002d50
mov qword [0x14023e178], rax
lea rcx, [0x14023e180]
call fcn.140133eb0
jmp 0x1400393f4