Function at 0x4179f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462a8c
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x47a040]
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, ecx
mov dword [ebp - 0x220], edi
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x220], edi
mov ecx, dword [eax]
mov eax, dword [0x47d424]
cmp eax, dword [ecx + 4]
jle 0x417a8d
push 0x47d424
call fcn.00437958
add esp, 4
cmp dword [0x47d424], 0xffffffff
jne 0x417a8d
call fcn.00404660
mov ecx, eax
test ecx, ecx
je 0x417cd0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x4654c0
mov dword [0x47d428], eax
call fcn.00437f3d
add esp, 4
push 0x47d424
call fcn.00437907
add esp, 4
mov ecx, dword [0x47d428]
cmp dword [ecx - 0xc], 0
je 0x417aab
add ecx, 0xfffffff0
call fcn.00405cd0
add eax, 0x10
mov dword [edi], eax
jmp 0x417cb2
mov eax, dword [0x47cfec]
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x224], 0
test al, 1
jne 0x417b01
or eax, 1
mov dword [0x47cfec], eax
push 0x64
push 0
push 0x47cf88
mov dword [ebp - 4], 0
call fcn.00439ab0
add esp, 0xc
call fcn.0041a7e0
push 0x4654b0
call fcn.00437f3d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x47cf9c]
lea ecx, [ecx - 0x10]
call fcn.00405cd0
lea esi, [eax + 0x10]
mov dword [ebp - 0x230], esi
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 1
push eax
push 0x201
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x417bd2
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00439ab0
add esp, 0xc
mov dword [ebp - 0x224], 1
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x208
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push str.DisplayVersion
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417bb1
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, 0x47d428
call fcn.004058c0
mov eax, dword [0x47d428]
cmp dword [eax - 0xc], 0
jne 0x417c86
mov ecx, dword [0x47cfec]
test cl, 1
jne 0x417c25
or ecx, 1
mov dword [0x47cfec], ecx
push 0x64
push 0
push 0x47cf88
mov byte [ebp - 4], 2
call fcn.00439ab0
add esp, 0xc
call fcn.0041a7e0
push 0x4654b0
call fcn.00437f3d
mov byte [ebp - 4], 1
add esp, 4
mov eax, dword [0x47d428]
mov edx, dword [0x47cfb0]
lea ebx, [eax - 0x10]
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x417c86
cmp dword [ebx + 0xc], 0
jl 0x417c73
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x417c73
call fcn.00405cd0
mov dword [ebp - 0x220], eax
lea edx, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x417c69
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x220]
add eax, 0x10
mov dword [0x47d428], eax
jmp 0x417c86
push dword [edx - 0xc]
mov ecx, 0x47d428
push edx
call fcn.004058c0
mov eax, dword [0x47d428]
lea ecx, [eax - 0x10]
call fcn.00405cd0
add eax, 0x10
mov dword [ebp - 4], 0xffffffff
mov dword [edi], eax
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x417cb2
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.004378e6
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401920
int3