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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
cmp esi, ebx
je 0x10075eb
push edi
push 1
push 0xce
call fcn.0100339e
cmp dword [esi + 0x14], 1
mov dword [ebp - 0x18], eax
je 0x100760e
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x10077d0
push ebx
push eax
call fcn.0100243e
test eax, eax
je 0x100761c
mov edi, dword [esi + 0x44]
push 2
push 0xcd
call fcn.0100339e
mov dword [ebp + 8], eax
push dword [esi + 0x10]
push dword [ebp - 0x18]
push edi
push dword [ebp + 8]
call fcn.010034ce
cmp eax, 2
jg 0x1005337
je 0x100762e
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x5c]
or eax, 0xf003f
push eax
push ebx
push dword [esi + 0x3c]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x1007660
call fcn.010015e4
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x1007654
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x1007679
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
lea eax, [ebp - 8]
push eax
call fcn.01001324
cmp edi, ebx
jne 0x10077ae
push ebx
call fcn.01003151
push 0x20000
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x20
push eax
call fcn.010030dc
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
push 0x57
call fcn.01003151
push 0x20000
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
push eax
call fcn.010030dc
push 0x57
pop eax
jmp 0x10053ca
mov edi, dword [esi + 0x40]
push ebx
push 0xcc
jmp 0x100532f
push ebx
push 0x1f5
call fcn.0100339e
mov edi, eax
jmp 0x1005328
mov esi, 0x4c7
push esi
call fcn.01003151
push 0x20000
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x20
push eax
call fcn.010030dc
mov eax, esi
jmp 0x10053c9
lea eax, [ebp - 8]
push eax
call fcn.01001324
push 0xe
pop edi
push edi
call fcn.01003151
push 0x20001
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
jmp 0x10053c1
cmp dword [esi + 0x14], 1
jne 0x100539c
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
cmp edi, ebx
jne 0x100539c
cmp dword [ebp - 0x14], ebx
je 0x100539c
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax + 4]
push eax
call fcn.010026af
mov dword [ebp - 0x10], eax
cmp eax, ebx
jne 0x10076cf
push 0xe
pop edi
jmp 0x100539c
xor edi, edi
xor esi, esi
mov dword [ebp + 8], ebx
cmp dword [ebp - 0x14], ebx
jbe 0x1007722
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], eax
add eax, eax
cmp eax, ebx
je 0x10076f0
mov byte [ecx], bl
inc ecx
dec eax
jne 0x10076ea
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
cmp esi, ebx
jne 0x100776b
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.01002c06
cmp eax, 0xffffffff
jne 0x1007773
push 0xe
pop esi
mov dword [ebp + 8], esi
lea eax, [ebp - 0x10]
push eax
call fcn.01002024
push dword [ebp - 0x18]
call fcn.01002dfe
mov edi, eax
cmp esi, 0xe
je 0x10077a6
cmp edi, ebx
je 0x10077a6
xor esi, esi
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
cmp edi, ebx
jbe 0x10077a6
push esi
push dword [ebp - 0x18]
call fcn.01002f4a
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x100777e
cmp dword [ebp + 8], ebx
jne 0x1007781
mov dword [ebp + 8], eax
jmp 0x1007781
cmp dword [ebp + 8], ebx
jne 0x1007773
mov dword [ebp + 8], esi
inc edi
cmp edi, dword [ebp - 0x14]
jae 0x1007722
jmp 0x10076db
inc dword [ebp - 4]
inc esi
cmp esi, edi
jb 0x100774a
cmp dword [ebp - 4], ebx
je 0x10077a6
cmp edi, dword [ebp - 0x14]
jne 0x100779c
cmp dword [ebp - 4], edi
jne 0x100779c
xor edi, edi
jmp 0x100539c
mov edi, 0x80030201
jmp 0x100539c
mov edi, dword [ebp + 8]
jmp 0x100539c
cmp edi, 0x80030201
jne 0x1007660
push ebx
push 0x8d
call fcn.0100339e
push eax
call fcn.01002f79
jmp 0x1007666
push 0x57
call fcn.01003151
push 0x20000
call dword [sym.imp.msvcrt.dll___iob_func]
add eax, 0x40
push eax
call fcn.010030dc
push 0x57
pop eax
jmp 0x10053c9