Function at 0x106ade2
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push 0x102cf28
push dword [0x10b219c]
push dword [0x10b2198]
call dword [sym.imp.ADVAPI32.dll_EventEnabled]
test al, al
je 0x106b0a1
push ebx
push edi
push 1
xor edi, edi
push edi
push 0x1017868
push 1
mov dword [ebp - 4], edi
call dword [sym.imp.SHLWAPI.dll_Ordinal_635]
push 4
mov dword [ebp - 0x10], eax
pop ebx
cmp eax, edi
je 0x106b067
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push edi
push 0x106b22c
push eax
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106ae57
inc eax
cmp dword [ebp - 0xc], eax
jne 0x106ae57
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106b20c
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106ae7b
cmp dword [ebp - 0xc], edi
jne 0x106ae7b
or dword [ebp - 4], 2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106b1e0
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106aea0
cmp dword [ebp - 0xc], 1
jne 0x106aea0
or dword [ebp - 4], 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106b1c0
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106aec5
cmp dword [ebp - 0xc], 1
jne 0x106aec5
or dword [ebp - 4], 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106b1b0
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106aeea
cmp dword [ebp - 0xc], 2
jne 0x106aeea
or dword [ebp - 4], 0x20
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106b198
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106af0f
cmp dword [ebp - 0xc], 1
jne 0x106af0f
or dword [ebp - 4], 0x40
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106b174
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106af36
cmp dword [ebp - 0xc], edi
jne 0x106af36
or dword [ebp - 4], 0x80
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106b150
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106af5e
cmp dword [ebp - 0xc], 2
jne 0x106af5e
or dword [ebp - 4], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106b140
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106af86
cmp dword [ebp - 0xc], 1
jne 0x106af86
or dword [ebp - 4], 0x400
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106b120
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106afae
cmp dword [ebp - 0xc], 1
jne 0x106afae
or dword [ebp - 4], 0x800
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106b104
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106afd6
cmp dword [ebp - 0xc], 1
jne 0x106afd6
or dword [ebp - 4], 0x1000
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106b0e4
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106affe
cmp dword [ebp - 0xc], 1
jne 0x106affe
or dword [ebp - 4], 0x2000
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106b0c4
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106b026
cmp dword [ebp - 0xc], 1
jne 0x106b026
or dword [ebp - 4], 0x4000
push 0x106b23c
mov dword [ebp - 8], ebx
call dword [sym.imp.SHLWAPI.dll_Ordinal_618]
test eax, eax
jne 0x106b056
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106b0a4
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x106b05d
cmp dword [ebp - 0xc], 1
jne 0x106b05d
or dword [ebp - 4], 0x10000
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x30], edi
push eax
lea edi, [ebp - 0x2c]
rep stosd dword es:[edi], eax
push 0x80
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSetSettings]
test byte [ebp - 0x30], 0x20
je 0x106b08d
or dword [ebp - 4], ebx
push dword [ebp - 4]
push 0x244
push 0x102cf28
call fcn.0103152d
pop edi
pop ebx
leave
ret