Function at 0x4b6a90
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595d8b
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x620514]
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, edx
mov dword [ebp - 0x70], ecx
or eax, 0xffffffff
mov word [ebp - 0x4c], 0x100
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartupApprovedRun
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], eax
call fcn.004043d0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerStartupApprovedRun32
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.004043d0
mov dword [ebp - 4], 1
mov ebx, 0xf003f
push 0x800
mov dword [ebp - 0x78], SysStringLen
mov dword [ebp - 0x74], reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x48], 0
call fcn.0055f4af
push 0x800
mov esi, eax
mov dword [ebp - 0x54], 0x400
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov dword [ebp - 0x58], 0
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
nop dword [eax]
mov dl, byte [ebp + ecx - 0x4c]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x41], dl
mov dword [ebp - 0x50], eax
xor ecx, ecx
mov dword [ebp - 0x5c], ecx
nop dword [eax]
mov eax, ebx
or eax, 0x100
test dl, dl
cmove eax, ebx
mov ebx, dword [ebp - 0x50]
mov edx, eax
mov eax, ebx
mov dword [ebp - 0x68], edx
cmp dword [ebx + 0x14], 8
jb 0x4b6b7e
mov eax, dword [ebx]
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x5c]
push edx
push 0
push eax
push dword [ebp + ecx*4 - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4b6ced
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4b6ba5
mov eax, dword [edi]
lea ecx, [ebp - 0x54]
push ecx
push esi
lea ecx, [ebp - 0x58]
push ecx
push 0
push eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x4b6ccf
cmp byte [ebp + 8], al
je 0x4b6bd4
cmp word [esi], 3
jne 0x4b6c01
lea eax, [ebx + 2]
jmp 0x4b6bdf
cmp word [esi], 3
je 0x4b6c01
mov eax, 3
mov word [esi], ax
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x4b6bec
mov eax, dword [edi]
push dword [ebp - 0x54]
push esi
push dword [ebp - 0x58]
push 0
push eax
push dword [ebp - 0x48]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
push esi
call fcn.0055f493
mov eax, dword [ebp - 0x48]
add esp, 4
test eax, eax
je 0x4b6c1d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [ebp - 0x48], eax
xor esi, esi
test ebx, ebx
je 0x4b6cfb
test eax, eax
je 0x4b6c35
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x48], esi
mov ecx, dword [ebp - 0x5c]
mov ebx, dword [ebp - 0x68]
inc ecx
mov dl, byte [ebp - 0x41]
mov dword [ebp - 0x5c], ecx
cmp ecx, 2
jb 0x4b6b60
mov ebx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x64]
add ebx, 0x18
mov eax, dword [ebp - 0x68]
inc edx
mov dword [ebp - 0x64], edx
cmp edx, 2
mov dl, byte [ebp - 0x41]
mov dword [ebp - 0x50], ebx
mov ebx, eax
jb 0x4b6b54
mov ecx, dword [ebp - 0x6c]
inc ecx
mov dword [ebp - 0x6c], ecx
cmp ecx, 2
jb 0x4b6b40
test esi, esi
je 0x4b6c89
push esi
call fcn.0055f493
add esp, 4
push fcn.00404320
push 2
push 0x18
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.0055f303
mov ecx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x60]
mov dword [ecx + 4], eax
mov eax, ecx
mov dword [ecx], 0xa802f3
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.0055e833
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4b6c4b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x48], 0
jmp 0x4b6c4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x60], eax
jmp 0x4b6c4e
mov ebx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x60]
push fcn.00404320
push 2
mov dword [ebx + 4], eax
lea eax, [ebp - 0x40]
push 0x18
mov dword [ebx], esi
push eax
mov dword [ebp - 4], 0xffffffff
call fcn.0055f303
mov eax, ebx
jmp 0x4b6cb3