Function at 0x485d10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
test esi, esi
je 0x485d2f
test edi, edi
jle 0x485d2f
mov byte [esi + edi - 1], bl
mov byte [esi], bl
mov ecx, dword [str.SoftwareMicrosoftWindowsCurrentVersionComponent_Based_ServicingPackages]
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x485d86
test esi, esi
je 0x485f52
test edi, edi
jle 0x485f52
mov edx, dword [0x4fcce8]
push edi
push esi
push eax
push 0x95
push edx
call fcn.004752f0
add esp, 0x14
mov eax, 0x80000000
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
mov ecx, dword [ebp - 4]
push 0
push 0
push 0
lea eax, [ebp - 8]
push 0
push eax
push 0
push 0
push 0
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
mov dword [ebp - 0xc], eax
je 0x485df2
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x485f52
test edi, edi
jle 0x485f52
mov eax, dword [ebp - 0xc]
mov ecx, dword [0x4fcce8]
push edi
push esi
push eax
push 0x9f
push ecx
call fcn.004752f0
add esp, 0x14
mov eax, 0x80000000
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 8]
inc edi
mov eax, edi
mov dword [ebp - 8], edi
add eax, 3
and al, 0xfc
call fcn.00467540
mov edx, dword [ebp - 4]
mov esi, esp
push edi
push esi
push 0
push edx
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, eax
test edi, edi
jne 0x485f1b
mov eax, dword [ebp - 8]
inc ebx
push eax
push esi
mov dword [ebp - 0x14], ebx
call fcn.00485f70
add esp, 8
test eax, eax
je 0x485f01
push 8
lea ecx, [ebp - 0x20]
push eax
push ecx
call fcn.00467499
mov dl, byte [ebp + 0x13]
push ecx
mov ebx, esp
mov byte [ebp - 0x18], 0
lea edi, [ebp - 0x20]
or ecx, 0xffffffff
mov byte [ebx], dl
xor edx, edx
xor eax, eax
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [ebp - 0xc], esp
mov edi, ecx
cmp edi, 0xfffffffd
mov dword [ebp - 0xc], edi
jbe 0x485e7f
call fcn.00463c83
xor edx, edx
mov ecx, dword [ebx + 4]
cmp ecx, edx
je 0x485ea4
mov al, byte [ecx - 1]
test al, al
je 0x485ea4
cmp al, 0xff
je 0x485ea4
cmp edi, edx
jne 0x485ec8
dec al
push edx
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00403b70
jmp 0x485ef6
cmp edi, edx
jne 0x485eb3
push 1
mov ecx, ebx
call fcn.00403b70
jmp 0x485ef6
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x485ebf
cmp eax, edi
jae 0x485ed0
push 1
mov ecx, ebx
call fcn.00403b70
push edi
mov ecx, ebx
call fcn.004054e0
mov ecx, edi
mov edi, dword [ebx + 4]
mov eax, ecx
lea esi, [ebp - 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0xc]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov esi, dword [ebp - 0x10]
mov dword [ebx + 8], eax
mov byte [ecx + eax], 0
mov ecx, dword [ebp + 8]
call fcn.004811f0
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
push edx
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, eax
test edi, edi
je 0x485e22
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 0x103
je 0x485f61
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x485f52
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x485f52
mov edx, dword [0x4fcce8]
push eax
push ecx
push edi
push 0xb5
push edx
call fcn.004752f0
add esp, 0x14
mov eax, 0x80000000
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esp, [ebp - 0x2c]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret