Function at 0x106d930
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push 0x102f508
push dword [0x10b247c]
push dword [0x10b2478]
call dword [sym.imp.ADVAPI32.dll_EventEnabled]
test al, al
je 0x106dbef
push ebx
push edi
push 1
xor edi, edi
push edi
push 0x10153f0
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 0x106dbb5
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 0x106dd7c
push eax
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106d9a5
inc eax
cmp dword [ebp - 0xc], eax
jne 0x106d9a5
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106dd5c
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106d9c9
cmp dword [ebp - 0xc], edi
jne 0x106d9c9
or dword [ebp - 4], 2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106dd30
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106d9ee
cmp dword [ebp - 0xc], 1
jne 0x106d9ee
or dword [ebp - 4], 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106dd10
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106da13
cmp dword [ebp - 0xc], 1
jne 0x106da13
or dword [ebp - 4], 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106dd00
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106da38
cmp dword [ebp - 0xc], 2
jne 0x106da38
or dword [ebp - 4], 0x20
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106dce8
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106da5d
cmp dword [ebp - 0xc], 1
jne 0x106da5d
or dword [ebp - 4], 0x40
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106dcc4
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106da84
cmp dword [ebp - 0xc], edi
jne 0x106da84
or dword [ebp - 4], 0x80
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106dca0
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106daac
cmp dword [ebp - 0xc], 2
jne 0x106daac
or dword [ebp - 4], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106dc90
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106dad4
cmp dword [ebp - 0xc], 1
jne 0x106dad4
or dword [ebp - 4], 0x400
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106dc70
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106dafc
cmp dword [ebp - 0xc], 1
jne 0x106dafc
or dword [ebp - 4], 0x800
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106dc54
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106db24
cmp dword [ebp - 0xc], 1
jne 0x106db24
or dword [ebp - 4], 0x1000
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106dc34
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106db4c
cmp dword [ebp - 0xc], 1
jne 0x106db4c
or dword [ebp - 4], 0x2000
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106dc14
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x106db74
cmp dword [ebp - 0xc], 1
jne 0x106db74
or dword [ebp - 4], 0x4000
push 0x106dd8c
mov dword [ebp - 8], ebx
call dword [sym.imp.SHLWAPI.dll_Ordinal_618]
test eax, eax
jne 0x106dba4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x106dbf4
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x106dbab
cmp dword [ebp - 0xc], 1
jne 0x106dbab
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 0x106dbdb
or dword [ebp - 4], ebx
push dword [ebp - 4]
push 0x244
push 0x102f508
call fcn.0101588e
pop edi
pop ebx
leave
ret