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

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.10013cc0
push 0xffffffffffffffff
push 0x10023758
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x1002eb3c]
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 - 0x30], eax
mov edi, dword [ebp + 0x1010]
mov byte [ebp + 0x1014], 0
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0x400
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], edx
cmp eax, edx
je 0x10004f3d
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, dx
jne 0x10004cf6
sub eax, esi
sar eax, 1
je 0x10004f3d
lea esi, [ebp - 0x6c]
call fcn.10005090
mov byte [ebp - 4], 1
cmp byte [eax + 0x18], 0
sete bl
mov byte [ebp - 4], 0
mov ecx, esi
call fcn.10005170
test bl, bl
je 0x10004d34
mov byte [ebp + 0x1014], 0
test edi, edi
jne 0x10004d3d
mov edi, 0x80000002
mov ebx, dword [ebp - 0x30]
push ebx
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10004e68
mov dword [ebp - 0x40], 0xf003f
lea eax, [ebp - 0x18]
push eax
push 0xf003f
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10004d85
mov dword [ebp - 0x3c], eax
push 0x1002b078
lea ecx, [ebp - 0x3c]
push ecx
call fcn.100117d0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
push 0
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10004dbf
mov dword [ebp - 0x38], eax
push 0x1002b078
lea ecx, [ebp - 0x38]
push ecx
call fcn.100117d0
mov esi, dword [ebp - 0x1c]
add esi, 0xffffffff
mov dword [ebp - 0x24], esi
test esi, esi
jl 0x10004e38
push 0x800
push 0
lea edx, [ebp]
push edx
call fcn.100131f0
add esp, 0xc
mov dword [ebp - 0x20], 0x800
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp]
push edx
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x10004e33
push eax
mov ecx, dword [ebp - 0x18]
push ecx
lea edx, [ebp]
push edx
call fcn.10004c80
add esp, 0xc
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10004e33
mov dword [ebp - 0x34], eax
push 0x1002b078
lea eax, [ebp - 0x34]
push eax
call fcn.100117d0
sub esi, 1
jmp 0x10004dc5
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10004e4d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x18], 0
xor eax, eax
je 0x10004e5d
push eax
push 0x100
push ebx
push edi
call eax
jmp 0x10004e65
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x14], eax
push 0x800
push 0
lea ecx, [ebp + 0x800]
push ecx
call fcn.100131f0
push ebx
push 0x400
lea edx, [ebp + 0x800]
push edx
call fcn.100110d5
add esp, 0x18
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteEmptyKeyW]
mov esi, dword [ebp + 0x1014]
lea esp, [esp]
push 0x5c
lea eax, [ebp + 0x800]
push eax
call fcn.10010db5
add esp, 8
test eax, eax
je 0x10004ef2
mov word [eax], 0
push esi
push edi
lea edx, [ebp + 0x800]
call fcn.10004f80
add esp, 8
test al, al
je 0x10004ef2
xor eax, eax
je 0x10004ee4
push eax
push 0x100
lea ecx, [ebp + 0x800]
push ecx
push edi
call eax
jmp 0x10004eee
lea edx, [ebp + 0x800]
push edx
push edi
call ebx
test eax, eax
je 0x10004ea0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10004f07
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x10004f15
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.100109d1
add ebp, 0x1004
mov esp, ebp
pop ebp
ret
mov eax, 0x57
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], eax
push 0x1002b078
lea eax, [ebp - 0x28]
push eax
call fcn.100117d0
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, 0x10004f69
ret