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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push edi
xor edi, edi
lea eax, [ebp - 8]
push eax
push 0xf003f
push edi
push 0x10022e8
push 0x80000002
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x1005ffe
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x100624d
test byte [ecx + 0x1c], 4
je 0x100624d
push eax
push 0x1002040
push 0xd2
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01004eb4
jmp 0x100624d
push edi
push edi
push edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x100624d
mov eax, dword [ebp - 4]
cmp eax, edi
jne 0x1006058
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x100624d
test byte [eax + 0x1c], 4
je 0x100624d
push 0x1002040
push 0xd3
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
jmp 0x100624d
push ebx
push esi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01011bcc
pop ecx
mov dword [ebp - 0xc], eax
mov ebx, 0x1002040
cmp eax, edi
jne 0x10060b2
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x10061e3
test byte [eax + 0x1c], 1
je 0x10061e3
mov ecx, dword [ebp - 4]
shl ecx, 2
push ecx
push ebx
push 0xd4
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x10061e3
cmp dword [ebp - 4], edi
jbe 0x10061e3
mov ecx, dword [ebp - 0xc]
push 0x20
pop eax
lea esi, [ecx + edi*4]
xor ecx, ecx
push 2
pop edx
mov dword [ebp - 0x18], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01011bcc
mov dword [esi], eax
mov dword [ebp - 0x10], 8
mov eax, dword [esi]
pop ecx
test eax, eax
je 0x1006190
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x10061bb
cmp dword [ebp - 0x14], 0xb
je 0x100614a
cmp dword [ebp - 0x10], 8
jne 0x100614a
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1006184
test byte [eax + 0x1c], 2
je 0x1006184
push dword [esi]
push dword [ebp - 0x14]
push ebx
push 0xd7
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100503a
jmp 0x1006184
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x20]
jb 0x1006184
mov edx, dword [ebp - 0x24]
ja 0x100615c
cmp dword [ebp + 8], edx
jbe 0x1006184
mov ecx, dword [ebp + 8]
sub ecx, edx
sbb eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
cmp eax, dword [edx + 0x1dc]
ja 0x1006184
jb 0x1006179
cmp ecx, dword [edx + 0x1d8]
jae 0x1006184
push dword [esi]
call fcn.01011bdc
and dword [esi], 0
pop ecx
inc edi
cmp edi, dword [ebp - 4]
jb 0x10060bb
jmp 0x10061e1
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x10061e1
test byte [eax + 0x1c], 1
je 0x10061e1
mov ecx, dword [ebp - 0x18]
add ecx, ecx
push ecx
push ebx
push 0xd5
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x10061e1
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x10061e1
test byte [ecx + 0x1c], 1
je 0x10061e1
push eax
push ebx
push 0xd6
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01004eb4
xor edi, edi
cmp dword [ebp - 0xc], edi
je 0x100624b
cmp dword [ebp - 4], edi
jbe 0x1006242
mov eax, dword [ebp - 0xc]
lea esi, [eax + edi*4]
mov eax, dword [esi]
test eax, eax
je 0x100623a
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x100622f
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x100622f
test byte [ecx + 0x1c], 2
je 0x100622f
push eax
push dword [esi]
push ebx
push 0xd8
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01004f4d
push dword [esi]
call fcn.01011bdc
and dword [esi], 0
pop ecx
inc edi
cmp edi, dword [ebp - 4]
jb 0x10061ed
xor edi, edi
push dword [ebp - 0xc]
call fcn.01011bdc
pop ecx
pop esi
pop ebx
cmp dword [ebp - 8], edi
pop edi
je 0x100625c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 8