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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101d1b35
push eax
mov eax, 0x1244
mov dword fs:[0], esp
call fcn.101ab570
xor al, al
mov dword [ebp - 0x38], 0x4000000
push ebx
xor ebx, ebx
mov byte [ebp - 0xd], al
mov eax, dword [ebp + 8]
test eax, eax
push esi
mov esi, 0x101de70d
mov dword [ebp - 0x40], ebx
cmovne esi, eax
mov dword [ebp - 0x3c], ebx
push edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x44], esi
cmp byte [ebp + 0xc], bl
mov edx, 0x20119
mov eax, 0xf013f
mov dword [ebp - 4], ebx
cmovne edx, eax
xor ecx, ecx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x34], ecx
jmp 0x10066cc0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edx
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsLayers
push dword [ecx + 0x101ee94c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10066ed2
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], 0x104
push eax
lea eax, [ebp - 0x1250]
mov dword [ebp - 0x24], 0x1000
push eax
lea eax, [ebp - 0x28]
xor edi, edi
push eax
push edi
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x28], edi
push eax
lea eax, [ebp - 0x250]
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x10066ec6
cmp dword [ebp - 0x28], 1
jne 0x10066d82
test ebx, ebx
jne 0x10066d6e
push 4
push ebx
push ebx
push esi
mov byte [ebp - 0x37], 1
call dword [sym.imp.vstdlib_s.dll_V_UTF8ToUTF16]
xor ecx, ecx
mov esi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10021950
push 0
mov ebx, eax
push esi
mov esi, dword [ebp - 0x30]
push ebx
push esi
mov dword [ebp - 0x40], ebx
call dword [sym.imp.vstdlib_s.dll_V_UTF8ToUTF16]
add esp, 0x24
lea eax, [ebp - 0x250]
push ebx
push eax
call fcn.101b9651
add esp, 8
test eax, eax
je 0x10066dcd
xor eax, eax
mov dword [ebp - 0x2c], 0x104
mov word [ebp - 0x1250], ax
inc edi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0x1000
push eax
lea eax, [ebp - 0x1250]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x250]
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
je 0x10066d27
jmp 0x10066ec6
mov al, byte [ebp + 0x10]
xor esi, esi
test al, al
je 0x10066dde
test esi, esi
je 0x10066e74
lea eax, [ebp - 0x1250]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 0
mov word [ebp - 0x13], 0
mov byte [ebp - 0x11], 4
mov dword [ebp - 0x1c], eax
mov ebx, dword [esi*4 + 0x1024c7c4]
push 4
push 0
push 0
push eax
mov byte [ebp - 4], 1
mov byte [ebp - 0x14], 1
call dword [sym.imp.vstdlib_s.dll_V_UTF16ToUTF8]
mov edi, eax
push edi
call fcn.10021950
push 0
push edi
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1250]
push eax
call dword [sym.imp.vstdlib_s.dll_V_UTF16ToUTF8]
mov edi, dword [ebp - 0x20]
push ebx
push edi
call dword [sym.imp.vstdlib_s.dll_char_const____cdecl_V_stristr_char_const___char_const__]
add esp, 0x2c
test eax, eax
jne 0x10066e80
push edi
mov byte [ebp - 4], al
call fcn.10021980
mov al, byte [ebp + 0x10]
add esp, 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x4000000
inc esi
cmp esi, 0xf
jb 0x10066dd2
jmp 0x10066ec3
cmp byte [ebp + 0xc], 0
mov byte [ebp - 0xd], 1
je 0x10066e9a
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push edi
mov byte [ebp - 4], 0
call fcn.10021980
add esp, 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x4000000
mov ebx, dword [ebp - 0x40]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x48]
add ecx, 4
mov dword [ebp - 0x34], ecx
cmp ecx, 8
jb 0x10066cc0
cmp byte [ebp - 0x37], 0
je 0x10066ef6
push ebx
call fcn.10021980
add esp, 4
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0xd]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret