Function at 0x10001450
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x10190960]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov bl, 1
mov dword [ebp - 0x408], 0x400
mov dword [ebp - 0x410], 0
call fcn.10003635
mov ecx, eax
test ecx, ecx
je 0x100016a5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x410], eax
call sym.osvi.dll_Is64bit
mov bh, al
lea eax, [ebp - 0x40c]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000166b
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x404]
push eax
push 0
push 0
push 0x1017016c
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000166b
lea ecx, [ebp - 0x404]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001500
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x404]
push eax
lea ecx, [ebp - 0x410]
call fcn.10001c70
lea ecx, [ebp - 0x410]
call fcn.10001850
push eax
lea ecx, [ebp - 0x410]
call fcn.100019d0
mov eax, dword [ebp - 0x410]
cmp dword [eax - 0xc], 0
jl 0x10001655
push str.windows_7
push eax
call fcn.10117852
mov ecx, eax
mov eax, dword [ebp - 0x410]
add esp, 8
test ecx, ecx
je 0x10001589
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x10001589
push dword [ebp - 0x40c]
xor eax, eax
test bh, bh
setne al
add eax, 6
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10001673
cmp dword [eax - 0xc], 0
jl 0x10001655
push str.windows_8.1
push eax
call fcn.10117852
mov ecx, eax
mov eax, dword [ebp - 0x410]
add esp, 8
test ecx, ecx
je 0x100015d3
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x100015d3
push dword [ebp - 0x40c]
xor eax, eax
test bh, bh
setne al
add eax, 0xa
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10001673
cmp dword [eax - 0xc], 0
jl 0x10001655
push str.windows_8
push eax
call fcn.10117852
mov ecx, eax
mov eax, dword [ebp - 0x410]
add esp, 8
test ecx, ecx
je 0x10001616
sub ecx, eax
sar ecx, 1
cmp ecx, 0xffffffff
je 0x10001616
push dword [ebp - 0x40c]
xor eax, eax
test bh, bh
setne al
add eax, 8
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10001673
cmp dword [eax - 0xc], 0
jl 0x10001655
push str.windows_10
push eax
call fcn.10117852
add esp, 8
test eax, eax
je 0x10001655
sub eax, dword [ebp - 0x410]
sar eax, 1
cmp eax, 0xffffffff
je 0x10001655
push dword [ebp - 0x40c]
xor eax, eax
test bh, bh
setne al
add eax, 0xc
mov dword [esi], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10001673
push dword [ebp - 0x40c]
xor bl, bl
mov dword [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10001673
mov dword [esi], 0
xor bl, bl
mov esi, dword [ebp - 0x410]
add esi, 0xfffffff0
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10001693
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.1011763e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10001d90
int3