Function at 0x4015a0
Capabilities:
Query or enumerate registry key
Set registry value

Disassembly:
sub esp, 0x22c
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x35]
mov byte [esp + 0x34], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x139]
mov byte [esp + 0x138], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [esp + 0x240]
lea eax, [esp + 0x138]
push edi
push str.SYSTEMCurrentControlSetControlClass_s
push eax
mov dword [esp + 0x2c], 0x104
xor ebp, ebp
call fcn.004038d2
add esp, 0xc
lea ecx, [esp + 0x24]
lea edx, [esp + 0x138]
push ecx
push 0xf003f
push ebp
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401a9f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x2c]
xor esi, esi
push eax
mov eax, dword [esp + 0x28]
push esi
push esi
lea ecx, [esp + 0x2c]
push esi
lea edx, [esp + 0x44]
push ecx
push edx
push esi
push eax
call ebx
test eax, eax
jne 0x401728
lea ecx, [esp + 0x34]
push ecx
call fcn.004039bc
add esp, 4
cmp eax, ebp
jbe 0x40166f
lea edx, [ebp + 1]
cmp eax, edx
jne 0x401699
mov dword [esp + 0x10], eax
mov ebp, eax
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x28]
push 0
push 0
push 0
lea edx, [esp + 0x44]
inc esi
push ecx
push edx
push esi
push eax
mov dword [esp + 0x40], 0x104
call ebx
test eax, eax
je 0x401651
cmp ebp, 0x270f
jb 0x401728
push str.36FC9E60_C465_11CF_8056_444553540000
push edi
call fcn.00403930
add esp, 8
test eax, eax
jne 0x4016c3
push str.SYSTEMCurrentControlSetEnumUSB
push str.usbstor.inf
jmp 0x4016fd
push str.4D36E967_E325_11CE_BFC1_08002BE10318
push edi
call fcn.00403930
add esp, 8
test eax, eax
jne 0x4016e1
push str.SYSTEMCurrentControlSetEnumUSBSTOR
push str.disk.inf
jmp 0x4016fd
push str.4D36E965_E325_11CE_BFC1_08002BE10318
push edi
call fcn.00403930
add esp, 8
test eax, eax
jne 0x40171b
push str.SYSTEMCurrentControlSetEnumUSBSTOR
push str.cdrom.inf
push edi
call fcn.00401af0
add esp, 0xc
test eax, eax
je 0x40171b
mov dword [esp + 0x10], 0
mov ebp, dword [esp + 0x10]
jmp 0x40162d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x22c
ret
inc ebp
lea ecx, [esp + 0x138]
push ebp
push ecx
lea edx, [esp + 0x3c]
push str._s_04d
push edx
mov dword [esp + 0x20], ebp
call fcn.004038d2
lea eax, [esp + 0x44]
push 0
push eax
call fcn.00401520
mov esi, eax
add esp, 0x18
test esi, esi
je 0x401a94
mov ebx, 1
push str.4D36E967_E325_11CE_BFC1_08002BE10318
push edi
mov byte [esp + 0x1c], 0
mov byte [esp + 0x1d], 0x80
mov byte [esp + 0x1e], 0x62
mov byte [esp + 0x1f], 0xc5
mov byte [esp + 0x20], 0xc0
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], 0xc1
mov byte [esp + 0x23], bl
mov byte [esp + 0x24], 0
call fcn.00403930
add esp, 8
test eax, eax
jne 0x401885
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.disk.inf
call ebp
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
push str.disk.inf
push ebx
push 0
push str.InfPath
push esi
call edi
push str.disk_install
call ebp
inc eax
push eax
push str.disk_install
push ebx
push 0
push str.InfSection
push esi
call edi
push 0x40a25c
call ebp
inc eax
push eax
push 0x40a25c
push ebx
push 0
push str.InfSectionExt
push esi
call edi
push str.Microsoft
call ebp
inc eax
push eax
push str.Microsoft
push ebx
push 0
push str.ProviderName
push esi
call edi
lea ecx, [esp + 0x14]
push 8
push ecx
push 3
push 0
push str.DriverDateData
push esi
call edi
push str.7_1_2001
call ebp
inc eax
push eax
push str.7_1_2001
push ebx
push 0
push str.DriverDate
push esi
call edi
push str.5.1.2535.0
call ebp
inc eax
push eax
push str.5.1.2535.0
push ebx
push 0
push str.DriverVersion
push esi
call edi
push str.gendisk
call ebp
inc eax
push eax
push str.gendisk
push ebx
push 0
push str.MatchingDeviceId
push esi
call edi
push str.Disk_Drive
call ebp
inc eax
push eax
push str.Disk_Drive
jmp 0x401a85
push str.4D36E965_E325_11CE_BFC1_08002BE10318
push edi
call fcn.00403930
add esp, 8
test eax, eax
jne 0x40197c
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.storprop.dll_DvdPropPageProvider
call ebp
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
push str.storprop.dll_DvdPropPageProvider
push ebx
push 0
push str.EnumPropPages32
push esi
call edi
push str.cdrom.inf
call ebp
inc eax
push eax
push str.cdrom.inf
push ebx
push 0
push str.InfPath
push esi
call edi
push str.cdrom_install
call ebp
inc eax
push eax
push str.cdrom_install
push ebx
push 0
push str.InfSection
push esi
call edi
push str.Microsoft
call ebp
inc eax
push eax
push str.Microsoft
push ebx
push 0
push str.ProviderName
push esi
call edi
lea edx, [esp + 0x14]
push 8
push edx
push 3
push 0
push str.DriverDateData
push esi
call edi
push str.7_1_2001
call ebp
inc eax
push eax
push str.7_1_2001
push ebx
push 0
push str.DriverDate
push esi
call edi
push str.5.1.2535.0
call ebp
inc eax
push eax
push str.5.1.2535.0
push ebx
push 0
push str.DriverVersion
push esi
call edi
push str.gencdrom
call ebp
inc eax
push eax
push str.gencdrom
push ebx
push 0
push str.MatchingDeviceId
push esi
call edi
push str.CD_ROM_Drive
call ebp
inc eax
push eax
push str.CD_ROM_Drive
jmp 0x401a85
push str.36FC9E60_C465_11CF_8056_444553540000
push edi
call fcn.00403930
add esp, 8
test eax, eax
jne 0x401a94
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0x28]
push 4
push eax
push 4
push 0
push str.DriverFlags
push esi
mov dword [esp + 0x40], ebx
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push str.usbstor.inf
call ebp
inc eax
push eax
push str.usbstor.inf
push ebx
push 0
push str.InfPath
push esi
call edi
push str.USBSTOR_BULK
call ebp
inc eax
push eax
push str.USBSTOR_BULK
push ebx
push 0
push str.InfSection
push esi
call edi
push 0x40a25c
call ebp
inc eax
push eax
push 0x40a25c
push ebx
push 0
push str.InfSectionExt
push esi
call edi
push str.Microsoft
call ebp
inc eax
push eax
push str.Microsoft
push ebx
push 0
push str.ProviderName
push esi
call edi
lea ecx, [esp + 0x14]
push 8
push ecx
push 3
push 0
push str.DriverDateData
push esi
call edi
push str.7_1_2001
call ebp
inc eax
push eax
push str.7_1_2001
push ebx
push 0
push str.DriverDate
push esi
call edi
push str.5.1.2600.0
call ebp
inc eax
push eax
push str.5.1.2600.0
push ebx
push 0
push str.DriverVersion
push esi
call edi
push str.usbclass_08subclass_06prot_50
call ebp
inc eax
push eax
push str.usbclass_08subclass_06prot_50
push ebx
push 0
push str.MatchingDeviceId
push esi
call edi
push str.USB_Mass_Storage_Device
call ebp
inc eax
push eax
push str.USB_Mass_Storage_Device
push ebx
push 0
push str.DriverDesc
push esi
call edi
mov ebp, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x22c
ret