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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x1035030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x1003b00
push eax
push 0x1002610
xor edi, edi
push 0x1003a9c
mov esi, ecx
lea eax, [ebp - 0x20c]
xor ecx, ecx
push 0x104
push eax
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x224], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x220], edi
mov word [ebp - 0x20c], cx
call fcn.01006a35
add esp, 0x18
cmp eax, edi
jge 0x1017066
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x1017325
test byte [ecx + 0x1c], 1
je 0x1017325
push eax
push 0x1003a20
push 0x50
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01004eb4
jmp 0x1017325
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push edi
lea eax, [ebp - 0x20c]
push eax
xor eax, eax
cmp dword [esi + 0x280], edi
setne al
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x10170bb
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x1017325
test byte [ecx + 0x1c], 4
je 0x1017325
push eax
push 0x1003a20
push 0x51
jmp 0x1017056
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x210]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1017325
mov eax, dword [ebp - 0x210]
cmp eax, edi
jne 0x101711b
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x1017325
test byte [eax + 0x1c], 4
je 0x1017325
push 0x1003a20
push 0x52
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004e8e
jmp 0x1017325
push ebx
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 - 0x218], eax
mov ebx, 0x1003a20
cmp eax, edi
jne 0x1017177
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x10172ad
test byte [eax + 0x1c], 1
je 0x10172ad
mov ecx, dword [ebp - 0x210]
shl ecx, 2
push ecx
push ebx
push 0x53
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x10172ad
cmp dword [ebp - 0x210], edi
jbe 0x10172ad
push 0x20
pop esi
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
mov dword [ebp - 0x224], esi
neg ecx
or ecx, eax
push ecx
call fcn.01011bcc
pop ecx
mov ecx, dword [ebp - 0x218]
lea esi, [ecx + edi*4]
mov dword [esi], eax
test eax, eax
je 0x101725d
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x220]
push eax
push ecx
lea eax, [ebp - 0x224]
push eax
mov dword [ebp - 0x21c], 8
push dword [esi]
push edi
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1017288
cmp dword [ebp - 0x220], 0xb
je 0x1017235
cmp dword [ebp - 0x21c], 8
jne 0x1017235
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x101724e
test byte [eax + 0x1c], 2
je 0x101724e
push dword [esi]
push dword [ebp - 0x220]
push ebx
push 0x56
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100503a
jmp 0x101724e
mov eax, dword [ebp - 0x22c]
or eax, dword [ebp - 0x228]
je 0x101724e
push dword [esi]
call fcn.01011bdc
and dword [esi], 0
pop ecx
inc edi
cmp edi, dword [ebp - 0x210]
jb 0x1017183
jmp 0x10172ab
mov eax, dword [0x1035014]
cmp eax, 0x1035014
je 0x10172ab
test byte [eax + 0x1c], 1
je 0x10172ab
mov ecx, dword [ebp - 0x224]
add ecx, ecx
push ecx
push ebx
push 0x54
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01004eb4
jmp 0x10172ab
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x10172ab
test byte [ecx + 0x1c], 1
je 0x10172ab
push eax
push ebx
push 0x55
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.01004eb4
xor edi, edi
cmp dword [ebp - 0x218], edi
je 0x1017324
cmp dword [ebp - 0x210], edi
jbe 0x1017318
mov eax, dword [ebp - 0x218]
lea esi, [eax + edi*4]
mov eax, dword [esi]
test eax, eax
je 0x101730d
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1017302
mov ecx, dword [0x1035014]
cmp ecx, 0x1035014
je 0x1017302
test byte [ecx + 0x1c], 2
je 0x1017302
push eax
push dword [esi]
push ebx
push 0x57
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 - 0x210]
jb 0x10172bd
xor edi, edi
push dword [ebp - 0x218]
call fcn.01011bdc
pop ecx
pop ebx
cmp dword [ebp - 0x214], edi
pop edi
pop esi
je 0x101733b
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01011f27
leave
ret 4