Function at 0x4832d0
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
mov eax, dword [0x5954a0]
xor eax, ebp
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x474], ecx
lea eax, [ebp - 0x1c]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0x2001f
push 0
push 0x567128
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x18], 0
je 0x48333b
xor eax, eax
jmp 0x4836a3
cmp dword [ebp - 0x10], 0
je 0x483348
xor eax, eax
jmp 0x4836a3
cmp dword [ebp + 0x10], 0
je 0x4833e1
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 1]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x483396
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 1]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], 0
je 0x4833dc
xor eax, eax
jmp 0x4836a3
jmp 0x48369e
mov dword [ebp - 0x30], 0
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x483430
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4836a3
cmp dword [ebp - 0x30], 0
jbe 0x48352b
mov eax, dword [ebp - 0x38]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b304f
add esp, 4
mov dword [ebp - 0x45c], eax
mov eax, dword [ebp - 0x45c]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
add edx, 1
push edx
mov eax, dword [ebp - 0x40]
push eax
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4834c1
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x460], edx
mov eax, dword [ebp - 0x460]
push eax
call fcn.004b305a
add esp, 4
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4836a3
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x474]
call fcn.004832d0
test eax, eax
jne 0x483513
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x464], ecx
mov edx, dword [ebp - 0x464]
push edx
call fcn.004b305a
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4836a3
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x468], edx
mov eax, dword [ebp - 0x468]
push eax
call fcn.004b305a
add esp, 4
cmp dword [ebp - 0x30], 0
ja 0x4833e8
push 0
push 0
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x48357f
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4836a3
cmp dword [ebp - 0x2c], 0
jbe 0x48366f
mov eax, dword [ebp - 0x24]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b304f
add esp, 4
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x46c]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x450], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x44f]
push ecx
call fcn.004f8090
add esp, 0xc
mov dword [ebp - 0x458], 0
jmp 0x4835ef
mov edx, dword [ebp - 0x458]
add edx, 1
mov dword [ebp - 0x458], edx
mov eax, dword [ebp - 0x458]
cmp eax, dword [ebp - 0x2c]
jge 0x483657
lea ecx, [ebp - 0x48]
push ecx
lea edx, [ebp - 0x450]
push edx
lea eax, [ebp - 0x454]
push eax
push 0
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x458]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x483655
mov edx, dword [ebp - 0x48]
push edx
lea eax, [ebp - 0x450]
push eax
mov ecx, dword [ebp - 0x454]
push ecx
push 0
mov edx, dword [ebp - 0x4c]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x18], eax
jmp 0x4835e0
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x470], ecx
mov edx, dword [ebp - 0x470]
push edx
call fcn.004b305a
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x48369e
xor eax, eax
jmp 0x4836a3
mov eax, 1
mov ecx, dword [ebp - 0x50]
xor ecx, ebp
call fcn.004f8124
mov esp, ebp
pop ebp
ret 0x10