Function at 0x406630
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x45ebc6
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x47b660]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47b660]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x238]
xor ebx, ebx
mov dword [esp + 0x20], ebx
call fcn.00424a60
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x406692
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov dword [esp + 0x230], ebx
call fcn.00424a60
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4066c3
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
push ecx
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov byte [esp + 0x240], 1
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], 0xff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406729
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x28]
push eax
push ebx
push ebx
push 0x4685e4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push 0x46771c
push ecx
call fcn.00402c20
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp dword [eax - 0xc], ebx
jne 0x406889
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
movzx eax, al
push eax
push ecx
lea edx, [esp + 0x20]
push str._d._d
push edx
call fcn.00402c20
mov edi, dword [esp + 0x28]
push 0x468608
push edi
call fcn.00442a9a
add esp, 0x18
cmp eax, ebx
jne 0x406798
push 9
push str.Windows_7
lea ecx, [esp + 0x1c]
call fcn.004029c0
jmp 0x406851
push 0x468624
push edi
call fcn.00442a9a
add esp, 8
cmp eax, ebx
jne 0x4067bd
push str.Windows_vista
lea ecx, [esp + 0x18]
call fcn.00404220
jmp 0x406851
push 0x468648
push edi
call fcn.00442a9a
add esp, 8
cmp eax, ebx
jne 0x4067df
push str.Microsoft_Windows_XP
lea ecx, [esp + 0x18]
call fcn.00404220
jmp 0x406851
push 0x46867c
push edi
call fcn.00442a9a
add esp, 8
cmp eax, ebx
jne 0x406801
push str.Windows_8
lea ecx, [esp + 0x18]
call fcn.00404220
jmp 0x406851
lea eax, [esp + 0x18]
push eax
mov ecx, 0x468698
call fcn.004027f0
test eax, eax
jne 0x406824
push str.Windows_8.1
lea ecx, [esp + 0x18]
call fcn.00404220
jmp 0x406851
lea ecx, [esp + 0x18]
push ecx
mov ecx, str.10.0
call fcn.004027f0
lea ecx, [esp + 0x14]
test eax, eax
jne 0x406847
push str.Windows_10
call fcn.00404220
jmp 0x406851
lea edx, [esp + 0x18]
push edx
call fcn.00402870
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
push esi
call fcn.00402ac0
add eax, 0x10
mov dword [ebp], eax
add esp, 4
mov byte [esp + 0x230], bl
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4068bb
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
jmp 0x4068bb
lea esi, [eax - 0x10]
push esi
call fcn.00402ac0
add eax, 0x10
add esp, 4
mov dword [ebp], eax
mov byte [esp + 0x230], bl
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4068bb
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x230], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4068de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00442896
add esp, 0x220
ret 4