Function at 0x5add6e18
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x5adf1018]
push esi
push edi
push 0x2001f
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], eax
call fcn.5addbbf3
lea eax, [ebp - 0x420]
push eax
push 3
xor edi, edi
push edi
mov esi, 0x5addbb80
push esi
push 0x80000002
call dword [sym.imp._CADVAPI.dll_RegOpenKeyExW]
test eax, eax
jne 0x5add6f4e
push edi
lea eax, [ebp - 0x41c]
push eax
push edi
push 3
push edi
push edi
push edi
push esi
lea ecx, [ebp - 0x428]
call fcn.5addbcf2
push eax
call dword [sym.imp._CADVAPI.dll_RegCreateKeyExW]
test eax, eax
jne 0x5ade1b36
push ebx
lea eax, [ebp - 0x43c]
push eax
mov esi, 0x5add6dd4
push esi
push dword [ebp - 0x420]
call fcn.5add6f5b
cmp eax, edi
mov dword [ebp - 0x418], eax
jl 0x5add6f46
lea eax, [ebp - 0x42c]
push eax
push esi
push dword [ebp - 0x41c]
call fcn.5add6f5b
test eax, eax
jl 0x5ade19bb
mov eax, dword [ebp - 0x43c]
cmp eax, dword [ebp - 0x42c]
jne 0x5ade19c6
lea eax, [ebp - 0x424]
push eax
mov esi, 0x5adcd124
push esi
push dword [ebp - 0x420]
xor ebx, ebx
inc ebx
mov dword [ebp - 0x424], ebx
call fcn.5add6f5b
test eax, eax
jl 0x5add6f10
cmp dword [ebp - 0x424], edi
je 0x5ade1b17
push dword [ebp - 0x41c]
call dword [sym.imp._CADVAPI.dll_RegCloseKey]
pop ebx
push dword [ebp - 0x420]
call dword [sym.imp._CADVAPI.dll_RegCloseKey]
lea ecx, [ebp - 0x428]
call fcn.5addbc14
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
pop edi
pop esi
call fcn.5adc1549
leave
ret
mov dword [ebp - 0x418], edi
jmp 0x5add6edf
mov dword [ebp - 0x418], edi
jmp 0x5add6f29
mov dword [ebp - 0x42c], edi
jmp 0x5add6ecd
push eax
push esi
push dword [ebp - 0x41c]
call fcn.5aded95a
cmp eax, edi
mov dword [ebp - 0x418], eax
jl 0x5ade19f8
lea eax, [ebp - 0x434]
push eax
push 0x5ade3e84
push dword [ebp - 0x420]
call fcn.5add6f5b
test eax, eax
jge 0x5ade19fe
mov dword [ebp - 0x434], edi
cmp dword [ebp - 0x434], edi
mov esi, 0x104
jne 0x5ade1a3c
push esi
lea eax, [ebp - 0x414]
push eax
push 0x5adcd0f4
push dword [ebp - 0x41c]
call fcn.5addc169
test eax, eax
jl 0x5ade1a3c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp._CKERNEL.dll_lstrlenW]
test eax, eax
jne 0x5add6edf
xor ebx, ebx
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x430]
push eax
push edi
lea eax, [ebp - 0x440]
push eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push dword [ebp - 0x420]
mov dword [ebp - 0x440], esi
mov dword [ebp - 0x438], 0x208
call dword [sym.imp._CADVAPI.dll_RegEnumValueW]
inc ebx
cmp eax, edi
jne 0x5ade1af2
cmp dword [ebp - 0x430], 1
je 0x5ade1a96
cmp dword [ebp - 0x430], 2
jne 0x5ade1ae6
push 0x5ade3e84
lea eax, [ebp - 0x20c]
push eax
call fcn.5adc6a30
test eax, eax
je 0x5ade1ae6
push 0x5adcd0f4
lea eax, [ebp - 0x20c]
push eax
call fcn.5adc6a30
test eax, eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x41c]
jne 0x5ade1adb
call fcn.5adeda1a
jmp 0x5ade1ae0
call fcn.5aded9da
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], edi
jge 0x5ade1a3e
mov esi, dword [sym.imp._CADVAPI.dll_RegDeleteValueW]
push 0x5adcd0e0
push dword [ebp - 0x41c]
call esi
push 0x5adcd0cc
push dword [ebp - 0x41c]
call esi
jmp 0x5add6edf
push edi
push esi
push dword [ebp - 0x41c]
call fcn.5aded95a
push ebx
push esi
push dword [ebp - 0x420]
call fcn.5aded95a
jmp 0x5add6f10
call dword [sym.imp._CKERNEL.dll_GetLastError]
cmp eax, edi
jle 0x5ade1b4a
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x418], eax
jmp 0x5add6f1d