Function at 0x140057650
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7d8]
sub rsp, 0x8b0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401d5e90]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov r13, rcx
mov qword [rbp - 0x78], rcx
xor esi, esi
mov dword [rsp + 0x40], esi
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x58], esi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x70], rsi
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 1]
xor r8d, r8d
lea rdx, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1400576f1
mov dword [rsp + 0x58], esi
mov r15, qword [rsp + 0x70]
mov qword [rsp + 0x50], r15
mov ebx, dword [0x1401ddd80]
jmp 0x140057774
mov qword [rsp + 0x78], rsi
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x140166520]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140057e9f
mov dword [rsp + 0x58], esi
mov r15, qword [rsp + 0x78]
mov qword [rsp + 0x50], r15
mov ebx, dword [0x1401ddd80]
lea ecx, [rbx + 1]
imul ecx, ebx
mov eax, 0x78787879
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x11
sub ecx, edx
cmp ecx, 1
jne 0x140057774
mov edx, ecx
mov eax, ecx
mov ecx, 0x4e
lea ebx, [rax + rdx]
lea edx, [rax]
mov eax, ebx
dec ecx
jns 0x140057763
mov dword [0x1401ddd80], ebx
mov word [rbp - 0x60], si
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call fcn.1400dc6e0
mov ecx, ebx
imul ecx, ebx
mov eax, 0x78787879
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x11
sub ecx, edx
or r12, 0xffffffffffffffff
cmp ecx, 5
jne 0x1400577e8
mov eax, 0x51eb851f
imul ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x64
sub ebx, edx
add ebx, 0x141
movsxd rcx, ebx
mov eax, 4
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.1400d68e8
mov rcx, rax
call fcn.1400d834c
lea rcx, [0x1401d59a8]
mov rax, qword [0x1401d59a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x30], rbx
lea r14, [0x140166600]
test r14, 0xffffffffffff0000
jne 0x14005783d
movzx edi, r14w
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x1400578ae
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140002a60
mov rbx, qword [rsp + 0x30]
jmp 0x1400578ae
mov esi, dword [rbx - 0x10]
mov rdi, r14
sub rdi, rbx
sar rdi, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 3
or eax, ecx
jge 0x14005786f
mov edx, 3
lea rcx, [rsp + 0x30]
call fcn.140002860
mov rbx, qword [rsp + 0x30]
movsxd rdx, dword [rbx - 0xc]
mov r9d, 6
mov rcx, rbx
add rdx, rdx
cmp rdi, rsi
ja 0x14005788f
lea r8, [rbx + rdi*2]
call fcn.1400d7ac4
jmp 0x140057897
mov r8, r14
call fcn.1400d7bc0
cmp dword [rbx - 0xc], 3
jl 0x140057e94
mov dword [rbx - 0x10], 3
xor esi, esi
mov word [rbx + 6], si
mov dword [rsp + 0x48], 0x800
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x6c]
xor r8d, r8d
lea rdx, str.CurrentVersion
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140057e30
mov eax, dword [rsp + 0x6c]
dec eax
cmp eax, 1
ja 0x140057e30
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x140057918
test al, 1
jne 0x140057e30
shr rax, 1
cmp word [rbp + rax*2 - 0x62], 0
je 0x14005791c
jmp 0x140057e30
mov word [rbp - 0x60], si
mov r8d, dword [0x1401ddd80]
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
mov eax, 0x38e38e39
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub ecx, eax
cmp ecx, 0x10
jne 0x140057967
mov edx, RegisterTypeLib
lea r8d, [rdx + 1]
lea rcx, [0x140164304]
call fcn.1400d7c60
mov r8d, dword [0x1401ddd80]
lea rax, [rbp - 0x60]
mov rdi, r12
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140057970
test edi, edi
jne 0x1400579da
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140057a60
cmp dword [rdx + 0x10], 0
jge 0x1400579b1
cmp dword [rbx - 0xc], 0
jge 0x1400579a6
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], esi
mov word [rbx], si
jmp 0x140057a59
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400579c1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov r15, qword [rsp + 0x50]
jmp 0x140057a59
mov r14d, dword [rbx - 0x10]
lea rsi, [rbp - 0x60]
sub rsi, rbx
sar rsi, 1
test edi, edi
jns 0x1400579f7
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140057a19
mov edx, edi
lea rcx, [rsp + 0x30]
call fcn.140002860
mov rbx, qword [rsp + 0x30]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r14
lea r14, [rax + rax]
mov r9, r14
ja 0x140057a3d
lea r8, [rbx + rsi*2]
call fcn.1400d7ac4
jmp 0x140057a46
lea r8, [rbp - 0x60]
call fcn.1400d7bc0
cmp edi, dword [rbx - 0xc]
jg 0x140057e25
mov dword [rbx - 0x10], edi
xor edi, edi
mov word [r14 + rbx], di
mov r8d, dword [0x1401ddd80]
mov ecx, r8d
imul ecx, r8d
imul ecx, r8d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 0x14
jne 0x140057b04
test r8d, r8d
je 0x140057b04
mov eax, r8d
and eax, 0x80000001
jge 0x140057aa3
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x140057aba
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
mov r8d, eax
mov dword [0x1401ddd80], eax
jmp 0x140057ac9
lea r8d, [r8*2 + 1]
mov dword [0x1401ddd80], r8d
mov eax, 0x55555556
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
mov ecx, r8d
sub ecx, eax
je 0x140057aed
sub ecx, 2
je 0x140057af1
dec ecx
je 0x140057af4
jmp 0x140057aff
add r8d, 2
inc r8d
add r8d, 2
mov dword [0x1401ddd80], r8d
test r8d, r8d
jne 0x140057a92
lea rcx, [0x1401d59a8]
mov rax, qword [0x1401d59a8]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea r14, [0x14016430c]
test r14, 0xffffffffffff0000
jne 0x140057b59
movzx edi, r14w
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x140057bcd
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140002a60
mov rbx, qword [rsp + 0x38]
jmp 0x140057bcd
mov esi, dword [rbx - 0x10]
mov rdi, r14
sub rdi, rbx
sar rdi, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
dec eax
or eax, ecx
jge 0x140057b8a
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140002860
mov rbx, qword [rsp + 0x38]
movsxd rdx, dword [rbx - 0xc]
mov r9d, 2
mov rcx, rbx
add rdx, rdx
cmp rdi, rsi
ja 0x140057baa
lea r8, [rbx + rdi*2]
call fcn.1400d7ac4
jmp 0x140057bb2
mov r8, r14
call fcn.1400d7bc0
cmp dword [rbx - 0xc], 1
jl 0x140057e1a
mov dword [rbx - 0x10], 1
xor r14d, r14d
mov word [rbx + 2], r14w
jmp 0x140057bd0
xor r14d, r14d
mov esi, dword [0x1401ddd80]
mov ecx, esi
imul ecx, esi
mov eax, 0x6bca1af3
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x13
sub ecx, edx
cmp ecx, 0xa
jne 0x140057c4a
lea r8d, [rcx + 0x6c]
mov r11d, r14d
mov eax, esi
cdq
sub eax, edx
sar eax, 1
mov edi, eax
test edi, edi
jle 0x140057c42
mov eax, esi
cdq
and edx, 3
lea r9d, [rdx + rax]
sar r9d, 2
mov edx, r14d
mov r10, rdi
nop
test r9d, r9d
jle 0x140057c3a
mov eax, edx
mov rcx, r9
nop word [rax + rax]
add r8d, eax
dec eax
dec rcx
jne 0x140057c30
add edx, r11d
dec r10
jne 0x140057c20
inc r11d
cmp r11d, r8d
jl 0x140057c06
mov dword [rsp + 0x44], 0x800
lea rax, [rsp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
lea rdx, str.CurrentBuild
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140057df8
mov eax, dword [rsp + 0x68]
dec eax
cmp eax, 1
ja 0x140057df8
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x140057cb4
test al, 1
jne 0x140057df8
shr rax, 1
cmp word [rbp + rax*2 - 0x62], 0
je 0x140057cb9
jmp 0x140057df8
mov word [rbp - 0x60], r14w
lea rax, [rbp - 0x60]
mov rdi, r12
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140057cc0
test edi, edi
jne 0x140057d27
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140057da4
cmp dword [rdx + 0x10], 0
jge 0x140057d03
cmp dword [rbx - 0xc], 0
jge 0x140057cf6
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r14d
mov word [rbx], r14w
jmp 0x140057da4
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140057d13
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x38], rax
jmp 0x140057da4
mov r14d, dword [rbx - 0x10]
lea rsi, [rbp - 0x60]
sub rsi, rbx
sar rsi, 1
test edi, edi
jns 0x140057d44
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140057d66
mov edx, edi
lea rcx, [rsp + 0x38]
call fcn.140002860
mov rbx, qword [rsp + 0x38]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r14
lea r14, [rax + rax]
mov r9, r14
ja 0x140057d8a
lea r8, [rbx + rsi*2]
call fcn.1400d7ac4
jmp 0x140057d93
lea r8, [rbp - 0x60]
call fcn.1400d7bc0
cmp edi, dword [rbx - 0xc]
jg 0x140057ded
mov dword [rbx - 0x10], edi
xor edi, edi
mov word [r14 + rbx], di
jmp 0x140057da6
xor edi, edi
lea r8, [rsp + 0x38]
lea rdx, [0x1401642dc]
lea rcx, [rbp - 0x80]
call fcn.14001c3b0
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x30]
call fcn.1400114a0
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140057de6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x38]
jmp 0x140057dfa
mov ecx, 0x80070057
call fcn.140001920
int3
xor edi, edi
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140057e0e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r15, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x30]
jmp 0x140057e32
mov ecx, 0x80070057
call fcn.140001920
nop
mov ecx, 0x80070057
call fcn.140001920
int3
xor edi, edi
test r15, r15
je 0x140057e45
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x58], edi
lea rcx, [rbx - 0x18]
call fcn.1400028c0
add rax, 0x18
mov qword [r13], rax
mov dword [rsp + 0x40], 1
lock add dword [rbx - 8], 0xffffffff
jg 0x140057e79
mov rcx, qword [rbx - 0x18]
mov r8, qword [rcx]
lea rdx, [rbx - 0x18]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140057e8e
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x58], edi
jmp 0x140057eba
mov ecx, 0x80070057
call fcn.140001920
nop
lea rdx, [0x140166608]
mov rcx, r13
call fcn.1400025b0
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x58], esi
mov rax, r13
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1400d72a0
lea r11, [rsp + 0x8b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret