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

Disassembly:
push 0x28
mov eax, 0x6cad8c
call fcn.00648b1c
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], ecx
call fcn.005339f6
mov edi, eax
xor esi, esi
cmp dword [edi + 0xc], 4
je 0x5348ee
mov ecx, dword [ebp - 0x10]
mov ebx, dword [edi + 0x10]
add ebx, dword [ebp - 0x18]
cmp ecx, 2
jne 0x534912
mov eax, dword [edi + 4]
test eax, eax
je 0x5348fb
cmp dword [edi + 8], 0
je 0x5348db
and dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
push 0x2001f
push eax
push dword [edi]
call fcn.0051e4ac
test eax, eax
jne 0x534ab1
push dword [edi + 8]
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
jne 0x534aad
lea ecx, [ebp - 0x34]
jmp 0x534a93
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
je 0x534a98
mov ecx, esi
call fcn.00534cf6
call fcn.00648ae5
ret
cmp dword [edi + 8], 0
je 0x534a9b
push dword [edi + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x5348e4
and dword [ebp - 0x28], 0
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
and dword [ebp - 4], 0
mov eax, 0x2001f
cmp ecx, 1
lea ecx, [ebp - 0x28]
lea edx, [eax - 6]
cmovne eax, edx
push eax
push dword [edi + 4]
push dword [edi]
call fcn.0051e4ac
mov esi, eax
test esi, esi
je 0x53496e
cmp dword [ebp - 0x10], 0
je 0x534a69
push ecx
push ecx
push 0x2001f
push ecx
push ecx
push dword [edi + 4]
lea ecx, [ebp - 0x28]
push dword [edi]
call fcn.00534d73
mov esi, eax
test esi, esi
jne 0x534a69
mov eax, dword [edi + 0xc]
xor edx, edx
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x14], ecx
sub eax, edx
je 0x534a70
sub eax, 1
je 0x534a16
sub eax, 1
je 0x5349f3
sub eax, 1
jne 0x534a8c
cmp dword [ebp - 0x10], edx
jne 0x5349dd
lea eax, [ebp - 0x14]
mov dword [ebp - 0x1c], 3
push eax
push ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
push eax
push edx
push dword [edi + 8]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x534a8c
mov ecx, eax
call fcn.00534cf6
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.0051e50a
mov eax, esi
jmp 0x5348f5
push ecx
push ebx
push 3
push edx
push dword [edi + 8]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x534a8a
cmp dword [ebp - 0x10], 1
jne 0x534a08
mov eax, dword [ebx]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 4
push eax
push 4
jmp 0x5349e1
push ebx
push dword [edi + 8]
lea ecx, [ebp - 0x28]
call fcn.00534ddd
jmp 0x534a8a
cmp dword [ebp - 0x10], 1
jne 0x534a2c
push ecx
push dword [ebx]
push dword [edi + 8]
lea ecx, [ebp - 0x28]
call fcn.0051e38e
jmp 0x534a8a
lea eax, [ebp - 0x14]
push eax
push edx
push dword [edi + 8]
lea ecx, [ebp - 0x28]
call fcn.0051e3d6
test eax, eax
jne 0x5349c5
push dword [ebp - 0x14]
mov ecx, ebx
call fcn.005159ef
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [edi + 8]
lea ecx, [ebp - 0x28]
call fcn.0051e3d6
push 0xffffffffffffffff
mov ecx, ebx
mov esi, eax
call fcn.0051d5f9
test esi, esi
je 0x534a8c
mov ecx, esi
jmp 0x5349c7
cmp dword [ebp - 0x10], 1
jne 0x534a7a
push ecx
push ebx
jmp 0x534a1f
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [edi + 8]
lea ecx, [ebp - 0x28]
call fcn.0051e3d6
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0051e50a
mov ecx, dword [ebp - 0x10]
add edi, 0x18
cmp dword [edi + 0xc], 4
jne 0x53487d
jmp 0x5348ee
mov ecx, esi
jmp 0x534ab3
mov ecx, eax
call fcn.00534cf6
lea ecx, [ebp - 0x34]
jmp 0x5349cf