Function at 0x418510
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46378c
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x47b040]
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 [0x47e46c]
cmp eax, dword [ecx + 4]
jle 0x4185ad
push 0x47e46c
call fcn.004384a8
add esp, 4
cmp dword [0x47e46c], 0xffffffff
jne 0x4185ad
call fcn.00405000
mov ecx, eax
test ecx, ecx
je 0x4187f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
push 0x466220
mov dword [0x47e470], eax
call fcn.00438a8d
add esp, 4
push 0x47e46c
call fcn.00438457
add esp, 4
mov ecx, dword [0x47e470]
cmp dword [ecx - 0xc], 0
je 0x4185cb
add ecx, 0xfffffff0
call fcn.004064a0
add eax, 0x10
mov dword [edi], eax
jmp 0x4187d2
mov eax, dword [0x47e038]
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x224], 0
test al, 1
jne 0x418621
or eax, 1
mov dword [0x47e038], eax
push 0x68
push 0
push 0x47dfd0
mov dword [ebp - 4], 0
call fcn.0043a680
add esp, 0xc
call fcn.0041b300
push 0x466210
call fcn.00438a8d
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x47dfe4]
lea ecx, [ecx - 0x10]
call fcn.004064a0
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 0x4186f2
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0043a680
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 0x4186d1
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, 0x47e470
call fcn.004065f0
mov eax, dword [0x47e470]
cmp dword [eax - 0xc], 0
jne 0x4187a6
mov ecx, dword [0x47e038]
test cl, 1
jne 0x418745
or ecx, 1
mov dword [0x47e038], ecx
push 0x68
push 0
push 0x47dfd0
mov byte [ebp - 4], 2
call fcn.0043a680
add esp, 0xc
call fcn.0041b300
push 0x466210
call fcn.00438a8d
mov byte [ebp - 4], 1
add esp, 4
mov eax, dword [0x47e470]
mov edx, dword [0x47dff8]
lea ebx, [eax - 0x10]
lea ecx, [edx - 0x10]
cmp ecx, ebx
je 0x4187a6
cmp dword [ebx + 0xc], 0
jl 0x418793
mov eax, dword [ecx]
cmp eax, dword [ebx]
jne 0x418793
call fcn.004064a0
mov dword [ebp - 0x220], eax
lea edx, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418789
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x220]
add eax, 0x10
mov dword [0x47e470], eax
jmp 0x4187a6
push dword [edx - 0xc]
mov ecx, 0x47e470
push edx
call fcn.004065f0
mov eax, dword [0x47e470]
lea ecx, [eax - 0x10]
call fcn.004064a0
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 0x4187d2
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.00438436
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004022c0
int3