Function at 0x407a10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x100
mov eax, dword [0x4a55d0]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebp
push esi
push edi
lea eax, [esp + 0x20]
push eax
call fcn.00409cb0
mov eax, dword [esp + 0xc4]
cmp eax, 5
je 0x407c58
cmp eax, 6
je 0x407c58
lea ecx, [esp + 0xc]
push ecx
push 3
push 0
cmp eax, 0xb
jne 0x407b1a
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerAutoplayHandlers
push SysReAllocString
call edi
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x407b14
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push str.DisableAutoplay
mov ebp, 4
push edx
mov dword [esp + 0x34], ebp
call esi
test eax, eax
je 0x407ab1
mov eax, dword [esp + 0xc]
push eax
jmp 0x407cac
cmp dword [esp + 0x18], 1
jne 0x407ac2
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x407cf6
lea edx, [esp + 0xc]
push edx
push 3
push 0
push str.SYSTEMCurrentControlSetServicesCdrom
push reloc.OLEAUT32.dll_SysReAllocString
call edi
test eax, eax
mov eax, dword [esp + 0xc]
jne 0x407cf5
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push str.AutoRun
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], ebp
call esi
test eax, eax
jne 0x407ab8
cmp dword [esp + 0x10], 1
je 0x407aa7
mov edx, dword [esp + 0xc]
push edx
jmp 0x407cf6
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0xc]
test eax, eax
je 0x407b3d
push edx
jmp 0x407b8d
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
push str.NoDriveTypeAutoRun
push edx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 4
call edi
test eax, eax
je 0x407b6e
mov eax, dword [esp + 0xc]
push eax
jmp 0x407b8d
mov eax, dword [esp + 0x10]
cmp eax, 0xb5
je 0x407ab8
cmp eax, 0xff
je 0x407ab8
mov ecx, dword [esp + 0xc]
push ecx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call ebp
lea edx, [esp + 0xc]
push edx
push 3
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push SysReAllocString
call esi
test eax, eax
mov eax, dword [esp + 0xc]
jne 0x407c50
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push str.NoDriveTypeAutoRun
push eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 4
call edi
test eax, eax
je 0x407c0d
mov ecx, dword [esp + 0xc]
push ecx
call ebp
lea ecx, [esp + 0x20]
call fcn.00409dc0
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.00436738
add esp, 0x100
ret
mov eax, dword [esp + 0x18]
cmp eax, 0xb5
je 0x407c4c
cmp eax, 0xff
je 0x407c4c
mov edx, dword [esp + 0xc]
push edx
call ebp
lea ecx, [esp + 0x20]
call fcn.00409dc0
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.00436738
add esp, 0x100
ret
mov eax, dword [esp + 0xc]
push eax
call ebp
jmp 0x407cfc
lea edx, [esp + 0xc]
push edx
push 3
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov eax, dword [esp + 0xc]
jne 0x407cf5
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0
push str.NoDriveTypeAutoRun
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x407cd8
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.00409dc0
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.00436738
add esp, 0x100
ret
mov eax, dword [esp + 0x10]
cmp eax, 0xb5
je 0x407cf1
cmp eax, 0xff
je 0x407cf1
mov edx, dword [esp + 0xc]
push edx
jmp 0x407cac
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.00409dc0
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00436738
add esp, 0x100
ret