Function at 0x100e6b70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc78
mov eax, dword [0x102519c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0xc58], esi
push eax
lea ecx, [ebp - 0xc44]
mov dword [ebp - 0xc64], edi
mov dword [ebp - 0xc5c], ebx
call fcn.10002490
mov ecx, edi
call fcn.100e82d0
or edi, 0xffffffff
test eax, eax
jne 0x100e73e0
cmp esi, reloc.OLEAUT32.dll_SysReAllocString
jne 0x100e6bfd
push str.ShellFolder
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0xc3c]
push eax
call fcn.10007f40
push 0x200
lea ebx, [edi + 2]
push dword [eax]
push esi
call fcn.10176c90
add esp, 0x18
mov byte [ebp - 0xc35], bl
test eax, eax
je 0x100e6c04
mov byte [ebp - 0xc35], 0
test bl, 1
je 0x100e6c29
mov edx, dword [ebp - 0xc3c]
and ebx, 0xfffffffe
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100e6c29
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xc35], 0
jne 0x100e73e0
call fcn.10009c50
test eax, eax
jne 0x100e6cb6
cmp esi, reloc.OLEAUT32.dll_SysReAllocString
jne 0x100e6c7d
push str._shell
lea eax, [ebp - 0xc44]
or ebx, 2
push eax
lea eax, [ebp - 0xc3c]
push eax
call fcn.10007f40
push 0x200
push dword [eax]
push esi
call fcn.10176c90
add esp, 0x18
mov byte [ebp - 0xc35], 1
test eax, eax
je 0x100e6c84
mov byte [ebp - 0xc35], 0
test bl, 2
je 0x100e6ca9
mov edx, dword [ebp - 0xc3c]
and ebx, 0xfffffffd
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100e6ca9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xc35], 0
jne 0x100e73e0
push str.ShellFolder
lea eax, [ebp - 0xc44]
mov dword [ebp - 0xc54], 0xffffffff
push eax
lea eax, [ebp - 0xc3c]
mov dword [ebp - 0xc60], 0
push eax
mov dword [ebp - 0xc50], 4
mov dword [ebp - 0xc74], 0
mov dword [ebp - 0xc70], 0
mov dword [ebp - 0xc6c], 0xffffffff
call fcn.10007f40
add esp, 0xc
lea ecx, [ebp - 0xc74]
push 0xf023f
push dword [eax]
push esi
call fcn.10058810
mov edx, dword [ebp - 0xc3c]
test eax, eax
mov eax, edi
sete byte [ebp - 0xc35]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100e6d46
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xc35], 0
je 0x100e6e8c
cmp dword [ebp - 0xc70], 0
mov ecx, dword [ebp - 0xc50]
mov dword [ebp - 0xc3c], ecx
je 0x100e6de1
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x100e6d7e
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x41
call fcn.10003680
add esp, 4
mov ecx, eax
lea eax, [ebp - 0xc50]
push eax
lea eax, [ebp - 0xc54]
push eax
lea eax, [ebp - 0xc60]
push eax
mov eax, dword [ebp - 0xc70]
push 0
push str.Attributes
push eax
test ecx, ecx
je 0x100e6db5
call ecx
jmp 0x100e6dbb
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc4c], eax
test esi, esi
je 0x100e6dcc
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc4c], 0
mov esi, dword [ebp - 0xc58]
je 0x100e6e54
mov ecx, dword [ebp - 0xc3c]
cmp dword [ebp - 0xc74], 0
je 0x100e6e54
mov dword [ebp - 0xc50], ecx
call fcn.10003180
mov esi, dword [eax + 0x154]
test esi, esi
je 0x100e6e06
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x41
call fcn.10003680
add esp, 4
mov ecx, eax
lea eax, [ebp - 0xc50]
push eax
lea eax, [ebp - 0xc54]
push eax
lea eax, [ebp - 0xc60]
push eax
mov eax, dword [ebp - 0xc74]
push 0
push str.Attributes
push eax
test ecx, ecx
je 0x100e6e3d
call ecx
jmp 0x100e6e43
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x100e6e4e
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp - 0xc58]
cmp esi, reloc.OLEAUT32.dll_SysReAllocString
jne 0x100e6e65
cmp dword [ebp - 0xc54], 0x24
jmp 0x100e6e86
cmp esi, 0x80000001
jne 0x100e6e8c
mov eax, dword [ebp - 0xc54]
cmp eax, 0x24
je 0x100e6e8c
cmp eax, 0xffffffff
je 0x100e6e8c
test eax, eax
je 0x100e6e8c
cmp eax, 0x100000
jne 0x100e70d7
push 0x410
lea eax, [ebp - 0x414]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
call fcn.100dba30
cmp eax, 0x2711
je 0x100e6ebe
call fcn.100dba30
cmp eax, 0x2712
jne 0x100e6f45
cmp esi, reloc.OLEAUT32.dll_SysReAllocString
jne 0x100e6f0f
push str.ShellFolder
lea eax, [ebp - 0xc44]
or ebx, 4
push eax
lea eax, [ebp - 0xc3c]
push eax
call fcn.10007f40
push 0x20019
push 0x410
lea ecx, [ebp - 0x414]
push ecx
push 1
push str.HideOnDesktopPerUser
push dword [eax]
push esi
call fcn.10176900
add esp, 0x28
mov byte [ebp - 0xc35], 1
test eax, eax
je 0x100e6f16
mov byte [ebp - 0xc35], 0
test bl, 4
je 0x100e6f38
mov edx, dword [ebp - 0xc3c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100e6f38
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xc35], 0
jne 0x100e70d7
call fcn.100dd1f0
test eax, eax
je 0x100e7345
push 0x410
lea eax, [ebp - 0x414]
push 0
push eax
call sub.msvcrt.dll_memset
push str._shellNoAddOnscommand
lea eax, [ebp - 0xc44]
mov dword [ebp - 0xc3c], 1
push eax
lea eax, [ebp - 0xc48]
push eax
call fcn.10007f40
push 0x410
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0xc3c]
push ecx
push 0x10202940
push dword [eax]
push esi
call fcn.10176b60
mov edx, dword [ebp - 0xc48]
add esp, 0x30
mov ebx, eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x100e6fc9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
je 0x100e7102
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0xc40]
call fcn.10002490
push 0x10202c94
push 0x10202c94
lea ecx, [ebp - 0xc40]
call fcn.10003450
cmp dword [ebp - 0xc3c], 2
je 0x100e700a
cmp eax, 1
jg 0x100e70cc
mov eax, dword [ebp - 0xc64]
lea ecx, [ebp - 0xc48]
add eax, 0x2f8
push eax
call fcn.10002490
push 0x10202940
push 0x10209334
lea ecx, [ebp - 0xc48]
call fcn.10003450
lea eax, [ebp - 0x414]
push 0x208
push eax
call fcn.100d9f60
lea ecx, [ebp - 0x414]
add esp, 8
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e7053
sub ecx, edx
lea eax, [ebp - 0x414]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc40]
call fcn.10003740
push 0x10202940
push 0x10209334
lea ecx, [ebp - 0xc40]
call fcn.10003450
lea eax, [ebp - 0xc40]
push eax
call fcn.100de5f0
push dword [ebp - 0xc48]
push dword [ebp - 0xc40]
call sub.msvcrt.dll__wcsicmp
add esp, 0xc
test eax, eax
je 0x100e70ec
call fcn.100db460
cmp eax, 0xa
jb 0x100e70c1
call fcn.10009c50
test eax, eax
jne 0x100e70ec
lea ecx, [ebp - 0xc48]
call fcn.10007e10
lea ecx, [ebp - 0xc40]
call fcn.10007e10
lea ecx, [ebp - 0xc74]
mov esi, 1
call fcn.10008220
jmp 0x100e73e5
lea ecx, [ebp - 0xc48]
call fcn.10007e10
lea ecx, [ebp - 0xc40]
call fcn.10007e10
push str._shellexContextMenuHandlers
lea eax, [ebp - 0xc44]
xor ebx, ebx
push eax
lea eax, [ebp - 0xc40]
mov dword [ebp - 0xc48], ebx
push eax
mov dword [ebp - 0xc4c], ebx
call fcn.10007f40
add esp, 0xc
lea ecx, [ebp - 0xc4c]
push ecx
push 0x20019
push ebx
push dword [eax]
push esi
call fcn.100081c0
lea ecx, [ebp - 0xc40]
mov esi, eax
call fcn.10007e10
test esi, esi
jne 0x100e731a
push 0x410
lea eax, [ebp - 0x824]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x824]
push 0x208
push eax
push esi
push dword [ebp - 0xc4c]
call fcn.100e55b0
test eax, eax
jne 0x100e7309
lea ebx, [ebx]
push 0x410
lea eax, [ebp - 0xc34]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x824]
lea ecx, [ebp - 0xc5c]
push eax
call fcn.10002490
push eax
push str._shellexContextMenuHandlers_
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0xc78]
push eax
call fcn.10007f40
add esp, 0xc
push eax
lea eax, [ebp - 0xc40]
push eax
call fcn.10007e90
push 0x20019
push 0x410
lea ecx, [ebp - 0xc34]
push ecx
push 1
push 0x10202940
push dword [eax]
push dword [ebp - 0xc58]
call fcn.10176900
mov edx, dword [ebp - 0xc40]
add esp, 0x28
mov esi, eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x100e7228
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc78]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100e7245
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc5c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100e7262
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x100e72d2
push str.871C5380_42A0_1069_A2EA_08002B30309D
lea eax, [ebp - 0xc34]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100e72c8
mov esi, dword [ebp - 0xc64]
lea eax, [ebp - 0xc34]
push 0
push 0x10202940
push 0x10202940
push 0x10202940
push eax
push 0xb2
lea ecx, [esi + 0xc4]
call fcn.1005ccb0
cmp eax, 2
jg 0x100e70d7
lea ecx, [esi + 0xc4]
call fcn.1005ce20
test eax, eax
je 0x100e70d7
jmp 0x100e72d2
mov dword [ebp - 0xc48], 1
push 0x410
lea eax, [ebp - 0x824]
inc ebx
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x824]
push 0x208
push eax
push ebx
push dword [ebp - 0xc4c]
call fcn.100e55b0
test eax, eax
je 0x100e7190
push dword [ebp - 0xc4c]
call fcn.10034ac0
mov ebx, dword [ebp - 0xc48]
cmp dword [ebp - 0xc58], reloc.OLEAUT32.dll_SysReAllocString
jne 0x100e73d1
test ebx, ebx
jne 0x100e73d1
lea ecx, [ebp - 0xc74]
lea esi, [ebx + 1]
call fcn.10008220
jmp 0x100e73e5
push str._shellNoAddOns
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0xc5c]
push eax
call fcn.10007f40
push 0x200
push dword [eax]
push esi
call fcn.10176c90
mov edx, dword [ebp - 0xc5c]
add esp, 0x18
mov ebx, eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x100e738c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test ebx, ebx
jne 0x100e70d7
push str._shellex
lea eax, [ebp - 0xc44]
push eax
lea eax, [ebp - 0xc5c]
push eax
call fcn.10007f40
push 0x200
push dword [eax]
push esi
call fcn.10176c90
add esp, 0x18
lea ecx, [ebp - 0xc5c]
mov esi, eax
call fcn.10007e10
test esi, esi
jne 0x100e70d7
lea ecx, [ebp - 0xc74]
xor esi, esi
call fcn.10008220
jmp 0x100e73e5
mov esi, 1
mov eax, dword [ebp - 0xc44]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x100e7400
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101f99c6
mov esp, ebp
pop ebp
ret 8