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

Disassembly:
push 0xffffffffffffffff
push 0x432a18
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x43c070]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor esi, esi
xor edi, edi
mov dword [esp + 0x14], esi
lea eax, [esp + 0x18]
push eax
push 0xf003f
push edi
mov dword [esp + 0x34], edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerAdvancedFolderHiddenNOHIDDEN
push SysStringLen
mov dword [esp + 0x2c], edi
call ebx
cmp eax, edi
jne 0x40b179
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x24]
push eax
push edi
push str.CheckedValue
push esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esp + 0x10], 3
jne 0x40b15c
push 4
lea ecx, [esp + 0x1c]
push ecx
push 4
push edi
push str.CheckedValue
push esi
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [0x43e564], edi
jne 0x40b2c9
cmp esi, edi
je 0x40b179
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x14], esi
lea edx, [esp + 0x18]
push edx
push 0xf003f
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerAdvancedFolderHiddenSHOWALL
push SysStringLen
mov dword [esp + 0x2c], edi
call ebx
cmp eax, edi
jne 0x40b21f
xor eax, eax
cmp esi, edi
je 0x40b1a9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], esi
jne 0x40b21f
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
push edi
push str.CheckedValue
push esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esp + 0x10], 2
jne 0x40b202
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push edi
push str.CheckedValue
push esi
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [0x43e564], edi
jne 0x40b2c9
cmp esi, edi
je 0x40b21f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x18]
push ecx
push 0xf003f
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push 0x80000001
mov dword [esp + 0x2c], edi
call ebx
cmp eax, edi
jne 0x40b2c4
xor eax, eax
cmp esi, edi
je 0x40b24f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, edi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x14], esi
jne 0x40b2c4
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
push str.CheckedValue
push esi
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esp + 0x10], edi
jne 0x40b2ab
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push edi
push str.NoDriveTypeAutoRun
push esi
mov dword [esp + 0x30], 0x91
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [0x43e564], edi
jne 0x40b2c9
cmp esi, edi
je 0x40b2c4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [esp + 0x14], esi
call fcn.0040af70
cmp esi, edi
je 0x40b2d4
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret