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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x4dd52c]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x420], eax
mov word [ebp - 0x414], si
mov edx, 0x81
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x412]
rep stosd dword es:[edi], eax
mov word [ebp - 0x20c], si
stosw word es:[edi], ax
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x430], esi
mov esi, dword [ebp + 0xc]
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x20a]
rep stosd dword es:[edi], eax
lea esi, [esi + esi*2]
shl esi, 2
push dword [esi + 0x41474c]
stosw word es:[edi], ax
push dword [esi + 0x414748]
mov edi, dword [sym.imp.msvcrt.dll_swprintf]
lea eax, [ebp - 0x20c]
push 0x416afc
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x416ae4
push eax
call edi
mov eax, dword [ebp + 0x14]
add esp, 0x1c
mov dword [ebp - 0x428], eax
lea eax, [ebx + 0x1c340]
push eax
lea ecx, [ebx + 0x1bf30]
mov dword [ebp - 0x42c], eax
push ecx
lea eax, [ebp - 0x418]
xor edi, edi
push eax
mov dword [ebp - 0x418], edi
mov dword [ebp - 0x424], ecx
call fcn.004805f0
test eax, eax
jne 0x4a6b37
lea eax, [ebp - 0x428]
push eax
push dword [ebp - 0x420]
lea eax, [ebp - 0x20c]
push edi
push edi
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a6b2b
mov dword [ebp - 0x434], 1
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x42c]
lea eax, [ebp - 0x418]
push dword [ebp - 0x424]
mov dword [ebp - 0x428], 4
push eax
mov dword [ebp - 0x418], edi
call fcn.004805f0
test eax, eax
jne 0x4a6ba0
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x41c]
push eax
push edi
push edi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a6b94
mov dword [ebp - 0x430], 1
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x434], edi
je 0x4a6bb4
cmp dword [ebp - 0x430], edi
jne 0x4a6ca0
mov eax, dword [ebx + 0x1bef4]
cmp eax, edi
je 0x4a6ca0
cmp dword [ebp - 0x420], edi
je 0x4a6c8c
cmp dword [ebp + 0x14], edi
je 0x4a6c8c
push dword [ebp + 0x14]
push dword [ebp - 0x420]
push dword [esi + 0x414748]
push edi
push dword [ebx + 4]
call eax
push dword [ebp - 0x42c]
mov dword [ebp - 0x41c], eax
push dword [ebp - 0x424]
lea eax, [ebp - 0x418]
push eax
mov dword [ebp - 0x418], edi
call fcn.004806cf
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jne 0x4a6c41
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x420]
push 3
push edi
push eax
push dword [ebp - 0x418]
call esi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x42c]
lea eax, [ebp - 0x418]
push dword [ebp - 0x424]
mov dword [ebp - 0x418], edi
push eax
call fcn.004806cf
test eax, eax
jne 0x4a6ca0
push 4
lea eax, [ebp - 0x41c]
push eax
push 3
push edi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
call esi
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a6ca0
push edi
push edi
push dword [esi + 0x414748]
push edi
push dword [ebx + 4]
call eax
mov dword [ebp - 0x41c], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x41c]
pop edi
pop esi
pop ebx
call fcn.004a9585
leave
ret 0x10