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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
push edi
mov edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
test ebx, ebx
je 0x100180e3
cmp word [ebx], ax
je 0x100180e3
lea eax, [ebp - 8]
push eax
push 0xf003f
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
je 0x10017f57
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10017f47
test byte [eax + 0x1c], 4
je 0x10017f47
push esi
push ebx
push 0x1000bcb8
push 0x27
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001fe35
cmp esi, 2
jne 0x1001817f
mov esi, edi
jmp 0x1001817f
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]
mov esi, eax
test esi, esi
je 0x10017fa6
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001817f
test byte [eax + 0x1c], 1
je 0x1001817f
push esi
push 0x1000bcb8
push 0x28
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001334b
jmp 0x1001817f
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10017fd6
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10017f50
test byte [eax + 0x1c], 4
je 0x10017f50
push 0x1000bcb8
push 0x29
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1000c7e1
jmp 0x10017f50
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10001501
mov edi, eax
pop ecx
test edi, edi
jne 0x1001802e
push 0xe
pop esi
mov ecx, dword [0x100320c8]
cmp ecx, 0x100320c8
je 0x1001817f
test byte [ecx + 0x1c], 1
je 0x1001817f
mov eax, dword [ebp - 4]
shl eax, 2
push eax
push 0x1000bcb8
push 0x2a
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.1001fead
jmp 0x1001817f
xor ebx, ebx
cmp dword [ebp - 4], ebx
jbe 0x10018086
push 2
pop edx
xor ecx, ecx
mov eax, 0x104
mul edx
seto cl
mov dword [ebp - 0xc], 0x104
neg ecx
or ecx, eax
push ecx
call fcn.10001501
pop ecx
mov dword [edi + ebx*4], eax
test eax, eax
je 0x100180b4
xor ecx, ecx
push ecx
push ecx
push ecx
mov word [eax], cx
push ecx
lea eax, [ebp - 0xc]
push eax
push dword [edi + ebx*4]
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
test esi, esi
jne 0x1001808d
inc ebx
push 2
pop edx
cmp ebx, dword [ebp - 4]
jb 0x10018038
xor esi, esi
jmp 0x10018112
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10018112
test byte [eax + 0x1c], 1
je 0x10018112
push esi
push 0x1000bcb8
push 0x2c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001334b
jmp 0x10018112
push 0xe
pop esi
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x10018112
test byte [eax + 0x1c], 1
je 0x10018112
push ebx
push 0x208
push 0x1000bcb8
push 0x2b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1001fb46
jmp 0x10018112
push reloc.KERNEL32.dll_VerSetConditionMask
pop esi
mov eax, dword [0x100320c8]
cmp eax, 0x100320c8
je 0x1001818e
test byte [eax + 0x1c], 1
je 0x1001818e
push 0x1000bcb8
push 0x26
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.1000c7e1
test edi, edi
je 0x1001817f
xor ebx, ebx
cmp dword [ebp - 4], ebx
jbe 0x10018178
cmp dword [edi + ebx*4], 0
je 0x10018172
push dword [edi + ebx*4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp + 0xc], eax
test esi, esi
je 0x10018165
mov ecx, dword [0x100320c8]
cmp ecx, 0x100320c8
je 0x10018163
test byte [ecx + 0x1c], 2
je 0x10018163
push esi
push dword [edi + ebx*4]
push 0x1000bcb8
push 0x2d
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.1001fe35
mov eax, dword [ebp + 0xc]
mov esi, eax
push dword [edi + ebx*4]
call fcn.10001485
and dword [edi + ebx*4], 0
pop ecx
inc ebx
cmp ebx, dword [ebp - 4]
jb 0x1001811d
push edi
call fcn.10001485
pop ecx
cmp dword [ebp - 8], 0
je 0x1001818e
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8