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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, edx
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
cmp ebx, eax
je 0x4d0a36
cmp edi, eax
je 0x4d0a36
push 0x206
push eax
lea edx, [ebp - 0x20a]
xor ecx, ecx
push edx
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x424], eax
mov word [ebp - 0x20c], cx
call fcn.004da450
mov eax, 0x208
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x420], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x412]
push ecx
mov dword [ebp - 0x428], 0
mov word [ebp - 0x414], ax
call fcn.004da450
add esp, 0x18
cmp dword [ebp + 8], 0
je 0x4d08bd
lea edx, [ebp - 0x418]
push edx
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4d08bd
mov eax, dword [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret 8
push 0
lea ecx, [ebp - 0x41c]
push ecx
push 0
push 2
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea edx, [ebp - 0x418]
push edx
push 1
push 0
push ebx
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4d09fd
test edi, edi
jne 0x4d09fd
mov ecx, dword [ebp - 0x418]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x424]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4d09fd
xor esi, esi
cmp dword [ebp - 0x424], esi
jbe 0x4d09fd
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x82
lea edi, [ebp - 0x414]
rep stosd dword es:[edi], eax
xor eax, eax
movzx edx, ax
mov eax, edx
shl edx, 0x10
or eax, edx
mov ecx, 0x82
lea edi, [ebp - 0x20c]
rep stosd dword es:[edi], eax
mov eax, 0x208
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x428]
push edx
mov edx, dword [ebp - 0x418]
push 0
lea eax, [ebp - 0x430]
push eax
lea ecx, [ebp - 0x414]
push ecx
push esi
push edx
mov dword [ebp - 0x428], 0
call ebx
test eax, eax
jne 0x4d09f0
mov eax, dword [ebp - 0x420]
mov edx, dword [ebp - 0x428]
push eax
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x41c]
push edx
push 0
lea eax, [ebp - 0x414]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4d09f0
mov dword [ebp - 0x42c], 1
inc esi
cmp esi, dword [ebp - 0x424]
jb 0x4d0937
mov eax, dword [ebp - 0x418]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4d0a10
push eax
call esi
mov eax, dword [ebp - 0x41c]
test eax, eax
je 0x4d0a1d
push eax
call esi
mov eax, dword [ebp - 0x42c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004d5564
mov esp, ebp
pop ebp
ret 8