Function at 0x52f9d4
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x52fbed
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 8]
call fcn.00406dd4
mov eax, dword [ebp - 0x1c]
call fcn.0052f2f4
mov byte [ebp - 0x15], al
cmp byte [ebp - 0x15], 0
jne 0x52fa27
lea eax, [ebp - 0x1c]
mov ecx, 1
mov edx, 1
call fcn.0040760c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.005307f4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x52fb06
xor eax, eax
push ebp
push 0x52faff
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.0052f674
lea edx, [ebp - 0x44]
mov eax, dword [ebp - 4]
call fcn.0052fc68
test al, al
je 0x52fadd
mov ecx, dword [ebp - 0x40]
inc ecx
lea eax, [ebp - 0x20]
xor edx, edx
call fcn.00406ebc
mov eax, dword [ebp - 0x44]
dec eax
cmp eax, 0
jl 0x52fadd
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00406e0c
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_RegEnumKeyExW
test eax, eax
jne 0x52fad4
mov eax, dword [ebp - 0x20]
call fcn.00406e0c
mov edx, eax
lea eax, [ebp - 0x48]
call fcn.00406f3c
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.0052f9d4
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xffffffff
jne 0x52fa8a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52fb06
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.0052f674
mov eax, dword [ebp - 0x28]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [0x729664], 0
je 0x52fbaa
cmp dword [0x72966c], 0
je 0x52fb4d
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00406e0c
push eax
mov dl, byte [ebp - 0x15]
mov eax, dword [ebp - 4]
call fcn.0052f63c
push eax
call dword [0x72966c]
test eax, eax
sete byte [ebp - 9]
jmp 0x52fbca
cmp dword [0x72966c], 0
jne 0x52fbaa
push 0x52fbfc
push 0x52fc1c
call sub.kernel32.dll_LoadLibraryW
push eax
call fcn.0040a5cc
mov dword [0x72966c], eax
cmp dword [0x72966c], 0
je 0x52fbaa
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00406e0c
push eax
mov dl, byte [ebp - 0x15]
mov eax, dword [ebp - 4]
call fcn.0052f63c
push eax
call dword [0x72966c]
test eax, eax
sete byte [ebp - 9]
jmp 0x52fbca
mov eax, dword [ebp - 0x1c]
call fcn.00406e0c
push eax
mov dl, byte [ebp - 0x15]
mov eax, dword [ebp - 4]
call fcn.0052f63c
push eax
call sub.advapi32.dll_RegDeleteKeyW
test eax, eax
sete byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52fbf4
lea eax, [ebp - 0x48]
call fcn.00406d70
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00406d78
ret