Function at 0x1000c520
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10036fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x1004f100]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push esi
push edi
mov eax, dword [0x1004f100]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
push 0x3b
xor eax, eax
xor edi, edi
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], edi
mov word [esp + 0x30], ax
call fcn.10001a60
mov dword [esp + 0x50], edi
mov eax, dword [esp + 0x28]
mov ebx, 8
mov dword [esp + 0x10], edi
cmp dword [esp + 0x3c], ebx
jae 0x1000c597
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push ecx
push 0xf013f
push edi
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
je 0x1000c5f0
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x3c], ebx
jae 0x1000c5c2
lea eax, [esp + 0x28]
push eax
push esi
push 0x10040450
push ecx
call fcn.1001af90
add esp, 4
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
cmp dword [esp + 0x3c], ebx
jb 0x1000c74f
mov edx, dword [esp + 0x28]
push edx
jmp 0x1000c747
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
push edi
push str.NoDrives
push edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x2c], 4
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1000c674
cmp dword [esp + 0x20], edi
je 0x1000c674
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
push 4
push edi
push str.NoDrives
push edx
mov dword [esp + 0x34], edi
call ebx
cmp eax, edi
je 0x1000c674
cmp dword [esp + 0x3c], 8
mov ecx, dword [esp + 0x28]
jae 0x1000c65a
lea ecx, [esp + 0x28]
push ecx
push eax
push str.HideDosName_set_key_value_error:_08x_keypath:_s_NoDrives
push ecx
call fcn.1001af90
add esp, 4
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edi
push edi
push str.NoViewOnDrive
push edx
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], 4
call esi
mov esi, eax
cmp esi, edi
jne 0x1000c6f6
cmp dword [esp + 0x18], edi
je 0x1000c6f6
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
push 4
push edi
push str.NoViewOnDrive
push edx
mov dword [esp + 0x34], edi
call ebx
mov esi, eax
cmp esi, edi
je 0x1000c6f6
mov eax, dword [esp + 0x28]
mov ebx, 8
cmp dword [esp + 0x3c], ebx
jae 0x1000c6da
lea eax, [esp + 0x28]
push eax
push esi
push str.HideDosName_set_key_value_error:_08x_keypath:_s_NoViewOnDrive
push ecx
call fcn.1001af90
add esp, 4
mov ecx, eax
call fcn.1001b4f0
add esp, 0xc
jmp 0x1000c6fb
mov ebx, 8
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x10], edi
cmp dword [esp + 0x3c], ebx
jae 0x1000c718
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
push eax
push ecx
push edx
push esi
push str.ReSetNoDrivesValue_Rlt:_08x_NoDrives:_08x_NoViewOnDrive:_08x_To_0x00000000__Path:_s
push ecx
call fcn.1001af90
add esp, 4
mov ecx, eax
call fcn.1001b3f0
add esp, 0x14
cmp dword [esp + 0x3c], ebx
jb 0x1000c74f
mov eax, dword [esp + 0x28]
push eax
call fcn.100269ba
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100269c5
mov esp, ebp
pop ebp
ret