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

Disassembly:
sub esp, 0x9b8
mov eax, dword [0x4d8620]
xor eax, esp
mov dword [esp + 0x9b4], eax
mov eax, dword [esp + 0x9bc]
push ebp
mov ebp, dword [esp + 0x9c4]
lea ecx, [esp + 8]
push ecx
push 0x20019
push 0
push eax
push 0x80000001
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x45f7d1
xor al, al
pop ebp
mov ecx, dword [esp + 0x9b4]
xor ecx, esp
call fcn.004aedbb
add esp, 0x9b8
ret 8
push esi
push edi
mov esi, ebp
mov edi, 0x80000001
call fcn.0045f280
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ebp
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x45f818
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45f811
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x45f9e0
push 0x100000
call fcn.004aee96
mov edi, eax
add esp, 4
test edi, edi
jne 0x45f83c
mov ecx, 0x513904
call fcn.004299a0
xor al, al
jmp 0x45f9e0
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
push ebx
lea ecx, [esp + 0x18]
push ecx
push edi
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
xor ebx, ebx
push ebx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1d8]
push ecx
push ebx
push edx
mov dword [esp + 0x30], 0x200
mov dword [esp + 0x38], 0x100000
call esi
test eax, eax
jne 0x45f8d7
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push edi
push ecx
push 0
lea edx, [esp + 0x1d4]
push edx
push eax
call ebp
lea ecx, [esp + 0x18]
push ecx
push edi
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x20]
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1d8]
push ecx
inc ebx
push ebx
push edx
mov dword [esp + 0x30], 0x200
mov dword [esp + 0x38], 0x100000
call esi
test eax, eax
je 0x45f880
mov ebp, dword [esp + 0x24]
push edi
call fcn.004aef60
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
add esp, 4
xor esi, esi
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
push esi
push esi
push esi
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x48]
push edx
push esi
mov ebx, 0xc8
push eax
mov dword [esp + 0x30], ebx
call edi
test eax, eax
jne 0x45f9c1
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
push ecx
push edx
lea eax, [esp + 0x5cc]
push 0x4c9588
push eax
mov edx, 0x200
call fcn.004a5ca0
lea ecx, [esp + 0x44]
push ecx
push ebp
lea edx, [esp + 0x1dc]
push 0x4c9588
push edx
mov edx, 0x200
call fcn.004a5ca0
add esp, 0x20
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
lea edx, [esp + 0x1e0]
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x45f9c1
lea eax, [esp + 0x1c4]
push eax
lea ecx, [esp + 0x5c8]
push ecx
call fcn.0045f770
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x18]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x48]
push ecx
inc esi
push esi
push edx
mov dword [esp + 0x30], ebx
call edi
test eax, eax
je 0x45f913
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
test eax, eax
je 0x45f9d3
push eax
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x45f9de
push eax
call esi
mov al, 1
mov ecx, dword [esp + 0x9c0]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004aedbb
add esp, 0x9b8
ret 8