Function at 0x485ae0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
test ebx, ebx
push edi
mov dword [ebp - 0xc], 0
je 0x485b06
test esi, esi
jle 0x485b06
mov byte [ebx + esi - 1], 0
mov byte [ebx], 0
mov ecx, dword [str.SoftwareMicrosoftWindows_NTCurrentVersionHotFix]
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 0x485b5a
test ebx, ebx
je 0x485cf4
test esi, esi
jle 0x485cf4
mov edx, dword [0x4fcce8]
push esi
push ebx
push eax
push 0x54
push edx
call fcn.004752f0
add esp, 0x14
mov eax, 0x80000000
lea esp, [ebp - 0x20]
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]
mov edi, eax
test edi, edi
je 0x485bbe
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x485cf4
test esi, esi
jle 0x485cf4
mov eax, dword [0x4fcce8]
push esi
push ebx
push edi
push 0x6b
push eax
call fcn.004752f0
add esp, 0x14
mov eax, 0x80000000
lea esp, [ebp - 0x20]
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 ecx, dword [ebp - 4]
mov esi, esp
push edi
push esi
push 0
push ecx
mov dword [ebp - 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, eax
test edi, edi
jne 0x485cc3
mov dl, byte [ebp + 0x13]
sub esp, 0x10
mov ebx, esp
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov byte [ebx], dl
xor edx, edx
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
mov dword [ebp - 0x10], esp
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ecx
cmp edi, 0xfffffffd
mov dword [ebp - 0x10], edi
jbe 0x485c23
call fcn.00463c83
xor edx, edx
mov ecx, dword [ebx + 4]
cmp ecx, edx
je 0x485c48
mov al, byte [ecx - 1]
test al, al
je 0x485c48
cmp al, 0xff
je 0x485c48
cmp edi, edx
jne 0x485c6c
dec al
push edx
mov byte [ecx - 1], al
mov ecx, ebx
call fcn.00403b70
jmp 0x485c97
cmp edi, edx
jne 0x485c57
push 1
mov ecx, ebx
call fcn.00403b70
jmp 0x485c97
mov eax, dword [ebx + 0xc]
cmp eax, 0x1f
ja 0x485c63
cmp eax, edi
jae 0x485c74
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
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
mov esi, dword [ebp - 0x14]
mov dword [ebx + 8], eax
mov byte [ecx + eax], 0
mov ecx, dword [ebp + 8]
call fcn.004811f0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
inc eax
push edx
push esi
mov dword [ebp - 0xc], eax
push eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, eax
test edi, edi
je 0x485bee
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 0x103
je 0x485d03
test ebx, ebx
je 0x485cf4
mov eax, dword [ebp + 0x10]
test eax, eax
jle 0x485cf4
mov edx, dword [0x4fcce8]
push eax
push ebx
push edi
push 0x7d
push edx
call fcn.004752f0
add esp, 0x14
mov eax, 0x80000000
lea esp, [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea esp, [ebp - 0x20]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret