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

Disassembly:
sub esp, 0xd84
mov eax, dword [0x4cc3b0]
xor eax, esp
mov dword [esp + 0xd80], eax
mov eax, dword [esp + 0xd88]
push ebp
mov ebp, dword [esp + 0xd90]
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
push eax
push 0x80000001
mov dword [esp + 0x30], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x45b67d
xor al, al
pop ebp
mov ecx, dword [esp + 0xd80]
xor ecx, esp
call fcn.004a4bb3
add esp, 0xd84
ret 8
push esi
push edi
mov esi, ebp
mov edi, 0x80000001
call fcn.0045b130
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ebp
push edi
call esi
test eax, eax
je 0x45b6c6
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45b6bf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x45b870
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x5c4]
push edx
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x20]
xor edi, edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x44]
push edx
push edi
push eax
mov dword [esp + 0x30], 0xc8
mov dword [esp + 0x38], 0x3e8
call ebx
test eax, eax
jne 0x45b771
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, edi
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x5c4]
push edx
mov edx, dword [esp + 0x24]
push eax
push 0
lea ecx, [esp + 0x40]
push ecx
push edx
call esi
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x5c4]
push ecx
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x44]
push ecx
inc edi
push edi
push edx
mov dword [esp + 0x30], 0xc8
mov dword [esp + 0x38], 0x3e8
call ebx
test eax, eax
je 0x45b710
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
xor edi, edi
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x18]
push edi
push edi
push edi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x44]
push edx
push edi
push eax
mov dword [esp + 0x30], 0xc8
call ebx
test eax, eax
jne 0x45b851
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x30]
push ecx
push edx
lea eax, [esp + 0x5c8]
push 0x4bde10
push eax
mov edx, 0x200
call fcn.0049c880
lea ecx, [esp + 0x40]
push ecx
push ebp
lea edx, [esp + 0x1d8]
push 0x4bde10
push edx
mov edx, 0x200
call fcn.0049c880
add esp, 0x20
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x1dc]
push edx
push 0x80000001
call esi
test eax, eax
jne 0x45b851
lea eax, [esp + 0x1c0]
push eax
lea ecx, [esp + 0x5c4]
push ecx
call fcn.0045b620
lea edx, [esp + 0x20]
push edx
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x44]
push ecx
inc edi
push edi
push edx
mov dword [esp + 0x30], 0xc8
call ebx
test eax, eax
je 0x45b7a3
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
test eax, eax
je 0x45b863
push eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45b86e
push eax
call esi
mov al, 1
mov ecx, dword [esp + 0xd8c]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004a4bb3
add esp, 0xd84
ret 8