Function at 0x40c180
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 0x40c1e2
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 0x40c213
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
push 0x1fc
lea edx, [esp + 0x2a]
xor ecx, ecx
push ebx
mov byte [esp + 0x238], 1
push edx
mov word [esp + 0x30], cx
call fcn.00446a60
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x34], 0x200
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40c293
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push 0x4685e4
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x18]
push 0x46771c
push eax
call fcn.00402c20
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp dword [eax - 0xc], ebx
jne 0x40c3f5
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
shr eax, 8
movzx eax, al
push eax
push ecx
lea ecx, [esp + 0x20]
push str._d._d
push ecx
call fcn.00402c20
mov edi, dword [esp + 0x28]
push 0x468608
push edi
call fcn.00442a9a
add esp, 0x18
cmp eax, ebx
jne 0x40c309
push 9
push str.Windows_7
lea ecx, [esp + 0x1c]
call fcn.004029c0
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
jmp 0x40c3f8
push 0x468624
push edi
call fcn.00442a9a
add esp, 8
cmp eax, ebx
jne 0x40c335
push str.Windows_vista
lea ecx, [esp + 0x18]
call fcn.00404220
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
jmp 0x40c3f8
push 0x468648
push edi
call fcn.00442a9a
add esp, 8
cmp eax, ebx
jne 0x40c361
push str.Microsoft_Windows_XP
lea ecx, [esp + 0x18]
call fcn.00404220
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
jmp 0x40c3f8
push 0x46867c
push edi
call fcn.00442a9a
add esp, 8
cmp eax, ebx
jne 0x40c38a
push str.Windows_8
lea ecx, [esp + 0x18]
call fcn.00404220
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
jmp 0x40c3f8
lea edx, [esp + 0x18]
push edx
mov ecx, 0x468698
call fcn.004027f0
test eax, eax
jne 0x40c3b4
push str.Windows_8.1
lea ecx, [esp + 0x18]
call fcn.00404220
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
jmp 0x40c3f8
lea eax, [esp + 0x18]
push eax
mov ecx, str.10.0
call fcn.004027f0
test eax, eax
jne 0x40c3de
push str.Windows_10
lea ecx, [esp + 0x18]
call fcn.00404220
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
jmp 0x40c3f8
push 0x4672dc
lea ecx, [esp + 0x18]
call fcn.00404220
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
jmp 0x40c3f8
lea esi, [eax - 0x10]
push esi
call fcn.00402ac0
add eax, 0x10
mov byte [esp + 0x234], bl
or edx, 0xffffffff
lea ecx, [esi + 0xc]
mov dword [ebp], eax
add esp, 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c427
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 0x40c44a
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