Function at 0x41bac0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47d07c
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x4ade78]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 0
push 1
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 0
call fcn.0041c100
mov ecx, eax
mov eax, dword [0x4af2c0]
imul eax, eax
cdq
mov esi, 0xa
idiv esi
mov eax, dword [0x4afb00]
mov esi, 0xe84bf3a3
cmp edx, 7
cmove eax, esi
mov dword [0x4afb00], eax
test ecx, ecx
je 0x41bba3
push 1
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x428]
call fcn.0041c100
test eax, eax
je 0x41bba3
push 0x492004
mov ecx, edi
call fcn.00401b30
mov ecx, dword [ebp - 0x428]
test ecx, ecx
je 0x41bda8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x41bda8
push 0x3ff
lea eax, [ebp - 0x40f]
push 0
push eax
mov byte [ebp - 0x410], 0
call fcn.00462e00
add esp, 0xc
lea ecx, [ebp - 0x41c]
push 0x492004
call fcn.00401b30
mov esi, dword [ebp - 0x428]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push str.CurrentVersion
push esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x414], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
or ebx, 0xffffffff
test eax, eax
jne 0x41bd47
mov eax, dword [ebp - 0x418]
cmp eax, 1
je 0x41bc26
cmp eax, 2
jne 0x41bd47
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x41bc3f
cmp byte [ebp + eax - 0x411], 0
je 0x41bc46
jmp 0x41bd47
mov byte [ebp - 0x410], 0
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41bc50
sub ecx, edx
push ecx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x41c]
call fcn.00408620
push 0x492254
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x418], 0x400
call fcn.00401b30
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x410]
push eax
push str.CurrentBuild
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 2
call fcn.0041c1b0
test eax, eax
jne 0x41bd24
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41bcb5
sub ecx, edx
push ecx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x414]
call fcn.00408620
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x418]
push 0x4922e8
push eax
call fcn.00402df0
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x41c]
push dword [eax - 0xc]
mov byte [ebp - 4], 3
push eax
call fcn.004035a0
mov edx, dword [ebp - 0x418]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41bd24
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x414]
add edx, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41bd47
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x41bd5c
push esi
call ebx
xor esi, esi
mov dword [ebp - 0x428], esi
mov eax, dword [ebp - 0x41c]
add eax, 0xfffffff0
push eax
mov dword [ebp - 0x424], 0
call fcn.00403ee0
mov edx, dword [ebp - 0x41c]
add eax, 0x10
add edx, 0xfffffff0
mov dword [edi], eax
add esp, 4
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41bda1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x41bda8
push esi
call ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461234
mov esp, ebp
pop ebp
ret