Function at 0x4b5500
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3e7e
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x63434c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 1
call fcn.004291f0
mov ecx, eax
test ecx, ecx
je 0x4b59cf
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 0x2c], 1
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 2
push eax
push 0x20019
push 0
push dword [0x60e618]
mov dword [ebp - 0x10], 0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x10]
mov ebx, 1
mov ecx, dword [str.LocationRoot]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x14], 0
test eax, eax
je 0x4b565e
lea edx, [ebp - 0x14]
push edx
push 0
lea edx, [ebp - 0x20]
push edx
push 0
push ecx
push eax
call edi
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x4b55c9
cmp eax, 2
jne 0x4b5650
mov ecx, esi
call fcn.00429bc0
mov edx, dword [ebp - 0x14]
shr edx, 1
add edx, ebx
js 0x4b59d9
mov eax, dword [esi]
mov ecx, ebx
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x4b55f5
push edx
mov ecx, esi
call fcn.00429e50
mov ebx, dword [esi]
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4b564b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
shr eax, 1
mov word [ebx + eax*2], cx
mov eax, dword [esi]
test eax, eax
je 0x4b5635
push dword [eax - 8]
push eax
call fcn.00566c13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4b59d9
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4b59d9
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov ebx, 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4b565e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi]
mov dword [ebp - 0x10], 0
cmp dword [eax - 0xc], 0
jne 0x4b5766
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push dword [0x60e618]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x10]
mov ecx, dword [str.LocationRoot]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], 0
test eax, eax
je 0x4b575f
lea edx, [ebp - 0x18]
push edx
push 0
lea edx, [ebp - 0x24]
push edx
push 0
push ecx
push eax
call edi
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x4b56d0
cmp eax, 2
jne 0x4b5751
mov ecx, esi
call fcn.00429bc0
mov edx, dword [ebp - 0x18]
shr edx, 1
add edx, 1
js 0x4b59d9
mov eax, dword [esi]
sub ebx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ebx
jge 0x4b56fb
push edx
mov ecx, esi
call fcn.00429e50
mov ebx, dword [esi]
lea eax, [ebp - 0x18]
push eax
push ebx
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4b5751
mov eax, dword [ebp - 0x18]
xor ecx, ecx
shr eax, 1
mov word [ebx + eax*2], cx
mov eax, dword [esi]
test eax, eax
je 0x4b573b
push dword [eax - 8]
push eax
call fcn.00566c13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4b59d9
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4b59d9
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4b575f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], 0
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x4b586c
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push dword [0x60e62c]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x10]
mov ecx, dword [str.InstallRoot]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x4b5865
lea edx, [ebp - 0x1c]
push edx
push 0
lea edx, [ebp - 0x28]
push edx
push 0
push ecx
push eax
call edi
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x4b57d1
cmp eax, 2
jne 0x4b5857
mov ecx, esi
call fcn.00429bc0
mov edx, dword [ebp - 0x1c]
shr edx, 1
add edx, 1
js 0x4b59d9
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or eax, ecx
jge 0x4b5801
push edx
mov ecx, esi
call fcn.00429e50
mov ebx, dword [esi]
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4b5857
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
shr eax, 1
mov word [ebx + eax*2], cx
mov eax, dword [esi]
test eax, eax
je 0x4b5841
push dword [eax - 8]
push eax
call fcn.00566c13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4b59d9
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4b59d9
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4b5865
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], 0
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x4b5972
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x20019
push 0
push dword [0x60e62c]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov eax, dword [ebp - 0x10]
mov ecx, dword [str.InstallRoot]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x4b596b
lea edx, [ebp - 0x1c]
push edx
push 0
lea edx, [ebp - 0x28]
push edx
push 0
push ecx
push eax
call edi
mov eax, dword [ebp - 0x28]
cmp eax, 1
je 0x4b58d7
cmp eax, 2
jne 0x4b595d
mov ecx, esi
call fcn.00429bc0
mov ecx, dword [ebp - 0x1c]
shr ecx, 1
add ecx, 1
js 0x4b59d9
mov eax, dword [esi]
mov edx, 1
sub edx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, ecx
or eax, edx
jge 0x4b5907
push ecx
mov ecx, esi
call fcn.00429e50
mov ebx, dword [esi]
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x28]
push eax
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4b595d
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
shr eax, 1
mov word [ebx + eax*2], cx
mov eax, dword [esi]
test eax, eax
je 0x4b5947
push dword [eax - 8]
push eax
call fcn.00566c13
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4b59d9
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4b59d9
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4b596b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], 0
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jne 0x4b59bb
lea eax, [ebp - 0x30]
push eax
call fcn.004b59f0
add esp, 4
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00429740
mov edx, dword [ebp - 0x30]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4b59ad
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4b59bb
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00429b00
push 0x80070057
call fcn.00429b00
int3