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

Disassembly:
sub esp, 0x440
mov eax, dword [0x56c3c0]
xor eax, esp
mov dword [esp + 0x43c], eax
mov eax, dword [esp + 0x444]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x458]
push edi
mov edi, dword [esp + 0x460]
lea edx, [esp + 0x10]
push edx
push 0x2001f
mov ebx, ecx
mov ecx, dword [esp + 0x460]
push 0
push ecx
push eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [esp + 0x2c]
mov ebp, eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0x2001f
push 0
push 0x53f778
push 0
push edx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test ebp, ebp
jne 0x46d1d6
test eax, eax
jne 0x46d1d6
test esi, esi
je 0x46d1dd
lea eax, [esp + 0x3c]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1f]
push ecx
lea edx, [esp + 0x40]
push edx
push ebp
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x46d1a2
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1f]
push edx
push eax
push ebp
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0x10]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, eax
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x28]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
push edi
call esi
test ebp, ebp
je 0x46d384
xor eax, eax
jmp 0x46d389
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [esp + 0x20], 0
mov edx, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push ecx
push 0
push 0
push 0
push edx
call ebp
test eax, eax
jne 0x46d3a4
cmp dword [esp + 0x20], eax
jbe 0x46d289
mov eax, dword [esp + 0x1c]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004910ff
mov ecx, dword [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x20]
add esp, 4
inc eax
push eax
push esi
push 0
push ecx
call edi
test eax, eax
jne 0x46d3bc
mov edx, dword [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
mov ecx, ebx
call fcn.0046d0e0
push esi
test eax, eax
je 0x46d3dd
call fcn.0049110a
add esp, 4
cmp dword [esp + 0x20], 0
ja 0x46d1f1
push 0
push 0
lea ecx, [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
call ebp
test eax, eax
jne 0x46d3e5
cmp dword [esp + 0x24], eax
jbe 0x46d35c
mov eax, dword [esp + 0x34]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004910ff
push 0x3ff
mov edi, eax
lea eax, [esp + 0x55]
push 0
push eax
mov byte [esp + 0x5c], 0
call fcn.004d5720
xor esi, esi
add esp, 0x10
cmp dword [esp + 0x24], esi
jle 0x46d353
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x46d310
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x50]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x38]
push eax
push 0
lea ecx, [esp + 0x54]
push ecx
push edi
push esi
push edx
call ebp
test eax, eax
jne 0x46d34c
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x50]
push ecx
push edx
push 0
push edi
push eax
call ebx
inc esi
cmp esi, dword [esp + 0x24]
jl 0x46d310
push edi
call fcn.0049110a
add esp, 4
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x46d3b8
mov eax, 1
mov ecx, dword [esp + 0x44c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004d6555
add esp, 0x440
ret 0x10
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
xor eax, eax
jmp 0x46d389
push esi
call fcn.0049110a
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
push eax
call esi
mov ecx, dword [esp + 0x14]
push ecx
call esi
xor eax, eax
jmp 0x46d389
call fcn.0049110a
add esp, 4
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
xor eax, eax
jmp 0x46d389