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

Disassembly:
push 0x20
mov eax, 0x481cfd
call fcn.00456992
mov ebx, ecx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x10]
xor esi, esi
push eax
push str.HandleRegistry
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], esi
call fcn.0041e6cc
mov dword [ebp - 4], esi
push str.advapi32.dll
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x431705
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebx + 0x28]
mov esi, dword [ecx]
cmp esi, ecx
je 0x4318e9
and dword [ebp - 0x14], 0
mov edi, 0xf003f
cmp byte [esi + 0x1d], 0
je 0x4318e2
cmp dword [0x4c27bc], 0
je 0x431737
mov edi, dword [esi + 0xc]
or edi, 0xf003f
cmp byte [esi + 8], 0
lea ebx, [esi + 0x14]
je 0x4317fd
push dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
mov edx, ebx
call fcn.0041fc30
mov dword [ebp - 0x10], eax
pop ecx
test eax, eax
je 0x4317b1
cmp eax, 0x490
jne 0x4318bd
cmp byte [esi + 0x1c], 0
jne 0x4318bd
cmp byte [esi + 0x1d], 0
je 0x4318bd
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push edi
xor edi, edi
push edi
push edi
push edi
push dword [ebx]
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4318bd
cmp dword [ebp - 0x18], 1
sete al
mov byte [esi + 0x1e], al
jmp 0x4318bd
cmp byte [esi + 0x1c], 0
je 0x4318bd
xor eax, eax
cmp byte [esi + 0x1d], al
je 0x4317e3
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4317d5
push 0
push edi
push dword [ebx]
push dword [esi + 0x10]
call eax
jmp 0x4317e0
push dword [ebx]
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4318bd
cmp eax, 2
jne 0x4318bd
and dword [ebp - 0x10], 0
jmp 0x4318bd
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x14]
push eax
push edi
xor edi, edi
push edi
push dword [ebx]
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4318bd
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x18]
push eax
push edi
push edi
push edi
push dword [esi + 0x20]
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x431885
push dword [ebp - 0x18]
call fcn.004640c6
mov dword [esi + 0x28], eax
pop ecx
test eax, eax
jne 0x431854
mov dword [ebp - 0x10], 8
jmp 0x4318bd
push dword [ebp - 0x18]
push edi
push eax
call fcn.00457e10
add esp, 0xc
lea ecx, [ebp - 0x18]
lea eax, [esi + 0x34]
push ecx
push dword [esi + 0x28]
push eax
push edi
push dword [esi + 0x20]
push dword [ebp - 0x14]
call ebx
test eax, eax
jne 0x431888
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x3c], eax
mov byte [esi + 0x40], 1
jmp 0x431888
mov dword [ebp - 0x10], edi
cmp byte [esi + 0x1c], 0
je 0x43189c
push dword [esi + 0x20]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x4318b9
push dword [esi + 0x38]
push dword [esi + 0x2c]
push dword [esi + 0x30]
push edi
push dword [esi + 0x20]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x4318bd
mov byte [esi + 0x41], 1
cmp dword [ebp - 0x14], 0
je 0x4318cc
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
jne 0x4318e9
mov eax, dword [ebp - 0x20]
mov esi, dword [esi]
cmp esi, dword [eax + 0x28]
jne 0x431712
jmp 0x4318e9
mov dword [ebp - 0x10], 0x52
mov esi, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0041e740
mov eax, esi
call fcn.00456960
ret