Function at 0x4060b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x100
mov eax, dword [0x45c5b0]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebp
push esi
push edi
lea eax, [esp + 0x20]
push eax
call fcn.004074b0
mov eax, dword [esp + 0xc4]
cmp eax, 5
je 0x4062f8
cmp eax, 6
je 0x4062f8
lea ecx, [esp + 0xc]
push ecx
push 3
push 0
cmp eax, 0xb
jne 0x4061ba
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerAutoplayHandlers
push SysReAllocString
call edi
mov edx, dword [esp + 0xc]
test eax, eax
jne 0x4061b4
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 0x406151
mov eax, dword [esp + 0xc]
push eax
jmp 0x40634c
cmp dword [esp + 0x18], 1
jne 0x406162
mov ecx, dword [esp + 0xc]
push ecx
jmp 0x406396
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 0x406395
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 0x406158
cmp dword [esp + 0x10], 1
je 0x406147
mov edx, dword [esp + 0xc]
push edx
jmp 0x406396
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 0x4061dd
push edx
jmp 0x40622d
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 0x40620e
mov eax, dword [esp + 0xc]
push eax
jmp 0x40622d
mov eax, dword [esp + 0x10]
cmp eax, 0xb5
je 0x406158
cmp eax, 0xff
je 0x406158
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 0x4062f0
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 0x4062ad
mov ecx, dword [esp + 0xc]
push ecx
call ebp
lea ecx, [esp + 0x20]
call fcn.004075c0
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.00430bec
add esp, 0x100
ret
mov eax, dword [esp + 0x18]
cmp eax, 0xb5
je 0x4062ec
cmp eax, 0xff
je 0x4062ec
mov edx, dword [esp + 0xc]
push edx
call ebp
lea ecx, [esp + 0x20]
call fcn.004075c0
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.00430bec
add esp, 0x100
ret
mov eax, dword [esp + 0xc]
push eax
call ebp
jmp 0x40639c
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 0x406395
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 0x406378
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.004075c0
mov eax, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.00430bec
add esp, 0x100
ret
mov eax, dword [esp + 0x10]
cmp eax, 0xb5
je 0x406391
cmp eax, 0xff
je 0x406391
mov edx, dword [esp + 0xc]
push edx
jmp 0x40634c
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x20]
call fcn.004075c0
mov ecx, dword [esp + 0x104]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00430bec
add esp, 0x100
ret