Function at 0x4a6715
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 - 0x424], 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 - 0x420], esi
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x418], 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 - 0x430], eax
lea eax, [ebx + 0x19e44]
push eax
lea ecx, [ebx + 0x19a24]
mov dword [ebp - 0x42c], eax
push ecx
lea eax, [ebp - 0x41c]
xor edi, edi
push eax
mov dword [ebp - 0x41c], edi
mov dword [ebp - 0x428], ecx
call fcn.004805f0
test eax, eax
jne 0x4a6832
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 0x424]
lea eax, [ebp - 0x20c]
push edi
push edi
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a6826
mov dword [ebp - 0x434], 1
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x42c]
lea eax, [ebp - 0x41c]
push dword [ebp - 0x428]
mov dword [ebp - 0x430], 4
push eax
mov dword [ebp - 0x41c], edi
call fcn.004805f0
test eax, eax
jne 0x4a689b
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x420]
push eax
push edi
push edi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a688f
mov dword [ebp - 0x418], 1
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x424], edi
je 0x4a68a8
cmp dword [ebp + 0x14], edi
jne 0x4a68b5
cmp dword [ebp - 0x418], 1
je 0x4a6a00
cmp dword [ebp - 0x434], edi
je 0x4a68c9
cmp dword [ebp - 0x418], edi
jne 0x4a6a00
mov eax, dword [ebx + 0x197a0]
cmp eax, edi
je 0x4a6a00
cmp dword [ebp - 0x424], edi
je 0x4a699c
cmp dword [ebp + 0x14], edi
je 0x4a699c
push dword [ebp + 0x14]
push dword [ebp - 0x424]
push dword [esi + 0x414748]
push edi
push dword [ebx + 0x5010]
call eax
push dword [ebp - 0x42c]
mov dword [ebp - 0x420], eax
push dword [ebp - 0x428]
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 0x4a6959
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push dword [ebp - 0x424]
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 - 0x428]
mov dword [ebp - 0x418], edi
push eax
call fcn.004806cf
test eax, eax
jne 0x4a6a00
push 4
lea eax, [ebp - 0x420]
push eax
push 3
push edi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
call esi
jmp 0x4a69f4
push edi
push edi
push dword [esi + 0x414748]
push edi
push dword [ebx + 0x5010]
call eax
push dword [ebp - 0x42c]
mov dword [ebp - 0x420], eax
push dword [ebp - 0x428]
lea eax, [ebp - 0x418]
push eax
mov dword [ebp - 0x418], edi
call fcn.004806cf
test eax, eax
jne 0x4a6a00
push 4
lea eax, [ebp - 0x420]
push eax
push 3
push edi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x420]
pop edi
pop esi
pop ebx
call fcn.004a9585
leave
ret 0x10