Function at 0x407ad0
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.00409da0
mov eax, dword [esp + 0xc4]
cmp eax, 5
je 0x407d18
cmp eax, 6
je 0x407d18
lea ecx, [esp + 0xc]
push ecx
push 3
push 0
cmp eax, 0xb
jne 0x407bda
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerAutoplayHandlers
push SysReAllocString
call edi
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x407bd4
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 0x407b71
mov eax, dword [esp + 0xc]
push eax
jmp 0x407d6c
cmp dword [esp + 0x18], 1
jne 0x407b82
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x407db6
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 0x407db5
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 0x407b78
cmp dword [esp + 0x10], 1
je 0x407b67
mov edx, dword [esp + 0xc]
push edx
jmp 0x407db6
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 0x407bfd
push edx
jmp 0x407c4d
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 0x407c2e
mov eax, dword [esp + 0xc]
push eax
jmp 0x407c4d
mov eax, dword [esp + 0x10]
cmp eax, 0xb5
je 0x407b78
cmp eax, 0xff
je 0x407b78
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 0x407d10
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 0x407ccd
mov ecx, dword [esp + 0xc]
push ecx
call ebp
lea ecx, [esp + 0x20]
call fcn.00409eb0
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.0043675a
add esp, 0x100
ret
mov eax, dword [esp + 0x18]
cmp eax, 0xb5
je 0x407d0c
cmp eax, 0xff
je 0x407d0c
mov edx, dword [esp + 0xc]
push edx
call ebp
lea ecx, [esp + 0x20]
call fcn.00409eb0
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.0043675a
add esp, 0x100
ret
mov eax, dword [esp + 0xc]
push eax
call ebp
jmp 0x407dbc
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 0x407db5
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 0x407d98
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.00409eb0
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.0043675a
add esp, 0x100
ret
mov eax, dword [esp + 0x10]
cmp eax, 0xb5
je 0x407db1
cmp eax, 0xff
je 0x407db1
mov edx, dword [esp + 0xc]
push edx
jmp 0x407d6c
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.00409eb0
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.0043675a
add esp, 0x100
ret