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

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.004fe1a0
push 0xffffffffffffffff
push 0x51dd3b
mov eax, dword fs:[0]
push eax
sub esp, 0x864
mov eax, dword [0x5a4aa8]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x100c]
mov dword [ebp - 0x24], eax
mov edi, dword [ebp + 0x1010]
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x2c], 0x400
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], edx
cmp eax, edx
je 0x4928f6
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, dx
jne 0x492665
sub eax, esi
sar eax, 1
je 0x4928f6
lea esi, [ebp - 0x870]
call fcn.0049d8e0
mov byte [ebp - 4], 1
cmp byte [eax + 0x18], 0
sete bl
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.0049d9f0
test bl, bl
je 0x4926a8
mov byte [ebp + 0x1014], 0
jmp 0x4926d2
cmp byte [ebp + 0x1014], 0
je 0x4926d2
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x4926d2
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
test edi, edi
jne 0x4926db
mov edi, reloc.OLEAUT32.dll_SysReAllocString
mov ebx, dword [ebp - 0x24]
cmp byte [ebp + 0x1014], 0
jne 0x4926fa
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x492821
mov eax, 0xf003f
mov dword [ebp - 0x38], eax
cmp byte [ebp + 0x1014], 0
je 0x492713
mov eax, 0xf013f
mov dword [ebp - 0x38], eax
lea ecx, [ebp - 0x18]
push ecx
push eax
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x49273a
mov dword [ebp - 0x44], eax
push 0x5814b0
lea edx, [ebp - 0x44]
push edx
call fcn.004fd5a3
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x492774
mov dword [ebp - 0x30], eax
push 0x5814b0
lea edx, [ebp - 0x30]
push edx
call fcn.004fd5a3
mov esi, dword [ebp - 0x20]
add esi, 0xffffffff
mov dword [ebp - 0x40], esi
test esi, esi
jl 0x4927ed
push 0x800
push 0
lea eax, [ebp]
push eax
call fcn.004fd670
add esp, 0xc
mov dword [ebp - 0x2c], 0x800
lea ecx, [ebp - 0x54]
push ecx
push 0
push 0
push 0
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp]
push eax
push esi
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x4927e8
push eax
mov edx, dword [ebp - 0x18]
push edx
lea eax, [ebp]
push eax
call fcn.004925f0
add esp, 0xc
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4927e8
mov dword [ebp - 0x3c], eax
push 0x5814b0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.004fd5a3
sub esi, 1
jmp 0x49277a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x492802
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x492816
push 0
push pe_nt_image_headers32
push ebx
push edi
call eax
jmp 0x49281e
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x14], eax
push 0x800
push 0
lea edx, [ebp + 0x800]
push edx
call fcn.004fd670
push ebx
push 0x400
lea eax, [ebp + 0x800]
push eax
call fcn.004fa94e
add esp, 0x18
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyW]
mov esi, dword [ebp + 0x1014]
push 0x5c
lea ecx, [ebp + 0x800]
push ecx
call fcn.004fa6eb
add esp, 8
test eax, eax
je 0x4928ab
mov word [eax], 0
push esi
push edi
lea edx, [ebp + 0x800]
call fcn.00493090
add esp, 8
test al, al
je 0x4928ab
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x49289d
push 0
push pe_nt_image_headers32
lea edx, [ebp + 0x800]
push edx
push edi
call eax
jmp 0x4928a7
lea eax, [ebp + 0x800]
push eax
push edi
call ebx
test eax, eax
je 0x492855
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4928c0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4928ce
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.004fa103
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x34], eax
push 0x5814b0
lea ecx, [ebp - 0x34]
push ecx
call fcn.004fd5a3
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0xffffffff
mov eax, 0x492922
ret