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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4dd52c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push edi
push dword [ebp + 0x10]
mov dword [ebp - 0x214], eax
xor eax, eax
mov word [ebp - 0x20c], ax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov ecx, 0x81
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]
lea eax, [ebp - 0x20c]
push 0x416abc
push eax
call dword [sym.imp.msvcrt.dll_swprintf]
mov edi, dword [ebp + 0x18]
and dword [ebp - 0x210], 0
add esp, 0x14
lea eax, [ebx + 0x19e44]
push eax
lea ecx, [ebx + 0x19a24]
mov dword [ebp - 0x220], eax
push ecx
lea eax, [ebp - 0x210]
add edi, edi
push eax
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x21c], ecx
call fcn.004805f0
test eax, eax
jne 0x4a6032
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push 0
push 0
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a5ff9
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x228], eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0x22c], eax
je 0x4a6034
mov eax, dword [ebp - 0x228]
shr eax, 1
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x218]
pop edi
pop esi
pop ebx
call fcn.004a9585
leave
ret 0x14
xor eax, eax
mov ecx, dword [ebx + 0x197a4]
cmp ecx, eax
je 0x4a601d
cmp dword [ebp - 0x214], eax
je 0x4a60e5
cmp dword [ebp + 0x18], eax
je 0x4a60e5
push dword [ebp + 0x18]
push dword [ebp - 0x214]
push dword [esi + 0x41474c]
push dword [ebp + 0x10]
push dword [esi + 0x414748]
push eax
push dword [ebx + 0x5010]
call ecx
push dword [ebp - 0x220]
xor esi, esi
push dword [ebp - 0x21c]
mov dword [ebp - 0x218], eax
cmp eax, esi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], esi
push eax
je 0x4a60af
call fcn.004806cf
test eax, eax
jne 0x4a601d
push edi
push dword [ebp - 0x214]
jmp 0x4a60be
call fcn.004806cf
test eax, eax
jne 0x4a601d
push esi
push esi
push 3
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a601d
push eax
push eax
push dword [esi + 0x41474c]
push dword [ebp + 0x10]
push dword [esi + 0x414748]
push eax
push dword [ebx + 0x5010]
call ecx
test eax, eax
mov dword [ebp - 0x218], eax
je 0x4a601d
mov edi, eax
add edi, edi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp - 0x214], eax
je 0x4a601d
push dword [ebp - 0x218]
mov ecx, edi
mov edi, dword [ebp - 0x214]
push dword [ebp - 0x214]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push dword [esi + 0x41474c]
xor edi, edi
push dword [ebp + 0x10]
push dword [esi + 0x414748]
push edi
push dword [ebx + 0x5010]
call dword [ebx + 0x197a4]
push dword [ebp - 0x220]
mov esi, eax
push dword [ebp - 0x21c]
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x210], edi
call fcn.004806cf
cmp esi, edi
je 0x4a61a4
test eax, eax
jne 0x4a61cc
lea eax, [esi + esi]
push eax
push dword [ebp - 0x214]
jmp 0x4a61aa
test eax, eax
jne 0x4a61cc
push edi
push edi
push 3
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4a601d