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

Disassembly:
sub esp, 0x41c
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x221]
mov byte [esp + 0x220], bl
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 + 0x19]
mov byte [esp + 0x18], bl
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 + 0x11d]
mov byte [esp + 0x11c], bl
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 + 0x325]
mov byte [esp + 0x324], bl
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x42c]
push 5
stosw word es:[edi], ax
push 0x5c
push esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0x104
stosb byte es:[edi], al
call fcn.00401f60
add esp, 0xc
test eax, eax
je 0x40253a
lea eax, [esp + 0xc]
push eax
push 0xf003f
push ebx
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40253a
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x324]
push ecx
push edx
push ebx
push ebx
push str.Driver
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4022cc
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
add esp, 0x41c
ret
push str.Disk
push esi
call fcn.00403a50
add esp, 8
test eax, eax
je 0x4022f3
mov edx, dword [str.Disk]
mov al, byte [0x40a4b8]
mov dword [esp + 0x18], edx
mov byte [esp + 0x1c], al
jmp 0x40233a
push str.Cdrom
push esi
call fcn.00403a50
add esp, 8
test eax, eax
je 0x402327
mov ecx, dword [str.Cdrom]
mov dx, word [0x40a4b0]
mov dword [esp + 0x18], ecx
mov word [esp + 0x1c], dx
mov ecx, 9
mov esi, str.4D36E965_E325_11CE_BFC1_08002BE10318
jmp 0x402344
mov eax, dword [str.Disk]
mov cl, byte [0x40a4b8]
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], cl
mov ecx, 9
mov esi, str.4D36E967_E325_11CE_BFC1_08002BE10318
lea edi, [esp + 0x220]
lea edx, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push ebp
push edx
lea eax, [esp + 0x124]
push str._s_Drive
push eax
movsb byte es:[edi], byte [esi]
call fcn.004038d2
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 0xc
lea ecx, [esp + 0x120]
push ecx
call ebp
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
lea edx, [esp + 0x120]
push eax
mov eax, dword [esp + 0x14]
push edx
push 1
push ebx
push str.DeviceDesc
push eax
call esi
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push 4
push ecx
push 4
push ebx
push str.Capabilities
push edx
call esi
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push 4
push eax
push 4
push ebx
push str.UINumber
push ecx
call esi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x120]
push ebx
push ebx
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
push ebx
push edx
lea eax, [esp + 0x130]
push str.USBSTOR_s_cUSBSTORRAW_c_c
push eax
call fcn.004038d2
lea ecx, [esp + 0x138]
push 0x104
push ecx
call fcn.00401ab0
add esp, 0x20
lea edx, [esp + 0x120]
push eax
mov eax, dword [esp + 0x14]
push edx
push 7
push ebx
push str.CompatibleIDs
push eax
call esi
lea ecx, [esp + 0x224]
push ecx
call ebp
inc eax
lea edx, [esp + 0x224]
push eax
push edx
push 1
push ebx
mov eax, dword [esp + 0x20]
push str.ClassGUID
push eax
call esi
lea ecx, [esp + 0x1c]
push str.Cdrom
push ecx
call fcn.00403930
add esp, 8
test eax, eax
jne 0x402473
push str.CDROM
call ebp
mov edx, dword [esp + 0x10]
inc eax
push eax
push str.CDROM
push 1
push ebx
push str.Class
push edx
jmp 0x40248e
push str.DiskDrive
call ebp
inc eax
push eax
mov eax, dword [esp + 0x14]
push str.DiskDrive
push 1
push ebx
push str.Class
push eax
call esi
lea ecx, [esp + 0x224]
push ecx
call fcn.004015a0
lea edx, [esp + 0x228]
push eax
push edx
lea eax, [esp + 0x12c]
push str._s_04d
push eax
call fcn.004038d2
add esp, 0x14
lea ecx, [esp + 0x120]
push ecx
call ebp
inc eax
lea edx, [esp + 0x120]
push eax
mov eax, dword [esp + 0x14]
push edx
push 1
push ebx
push str.Driver
push eax
call esi
push str._Standard_Disk_Drive_
call ebp
mov ecx, dword [esp + 0x10]
inc eax
push eax
push str._Standard_Disk_Drive_
push 1
push ebx
push 0x40a3d8
push ecx
call esi
lea edx, [esp + 0x1c]
push edx
call ebp
mov ecx, dword [esp + 0x10]
inc eax
push eax
lea eax, [esp + 0x20]
push eax
push 1
push ebx
push str.Service
push ecx
call esi
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push 4
push edx
push 4
push ebx
push str.ConfigFlags
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x41c
ret