Function at 0x49da9d
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff3bc
xor eax, eax
mov dword [ebp - 0x40], eax
lea edx, [ebp - 4]
push edx
push 9
push 0
push 0x7719c3
push SysStringLen
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x49dad3
xor eax, eax
jmp 0x49df3c
xor edx, edx
mov dword [ebp - 0x18], edx
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x49df31
mov dword [ebp - 0x30], 0x400
push 0x400
push 0
lea edx, [ebp - 0x444]
push edx
call fcn.0066cc88
add esp, 0xc
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x444]
push eax
mov edx, dword [ebp - 0x18]
inc dword [ebp - 0x18]
push edx
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
test ecx, ecx
jne 0x49df26
lea eax, [ebp - 0x444]
push eax
call fcn.0049cb24
pop ecx
mov byte [ebp - 0x41], al
lea edx, [ebp - 0xc]
push edx
push 1
push 0
lea ecx, [ebp - 0x444]
push ecx
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x49dadd
mov dword [ebp - 0x30], 0x400
mov dword [ebp - 0x34], 1
push 0x400
push 0
lea edx, [ebp - 0x844]
push edx
call fcn.0066cc88
add esp, 0xc
lea ecx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x844]
push eax
lea edx, [ebp - 0x34]
push edx
push 0
push 0x7719db
push dword [ebp - 0xc]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x49df1e
push dword [ebp + 8]
push str.Scsi_Bus_0_s
lea eax, [ebp - 0x444]
push eax
call fcn.006712b0
add esp, 0xc
lea edx, [ebp - 8]
push edx
push 1
push 0
lea ecx, [ebp - 0x444]
push ecx
push dword [ebp - 0xc]
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0x20], eax
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x49dadd
mov byte [ebp - 0x42], 0
lea edx, [ebp - 8]
push edx
push 9
push 0
push str.Scsi_Bus_0
push dword [ebp - 0xc]
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
test ecx, ecx
jne 0x49dadd
xor eax, eax
mov dword [ebp - 0x1c], eax
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x30], 0x400
push 0x400
push 0
lea ecx, [ebp - 0x444]
push ecx
call fcn.0066cc88
add esp, 0xc
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x444]
push edx
mov ecx, dword [ebp - 0x1c]
inc dword [ebp - 0x1c]
push ecx
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x49df0b
push 0xa
push 0x7719fb
lea edx, [ebp - 0x444]
push edx
call fcn.0066d09c
add esp, 0xc
test eax, eax
jne 0x49df0b
lea ecx, [ebp - 0x444]
push ecx
call fcn.0049cb24
pop ecx
mov byte [ebp - 0x43], al
mov byte [ebp - 0x44], 0
lea eax, [ebp - 0x444]
push eax
push 0x771a06
lea edx, [ebp - 0x844]
push edx
call fcn.006712b0
add esp, 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0
lea eax, [ebp - 0x844]
push eax
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
test edx, edx
jne 0x49df0b
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], 0x400
mov dword [ebp - 0x34], 1
push 0x400
push 0
lea eax, [ebp - 0x844]
push eax
call fcn.0066cc88
add esp, 0xc
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x844]
push ecx
lea eax, [ebp - 0x34]
push eax
push 0
push 0x771a1b
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
test edx, edx
jne 0x49de9e
push dword [ebp + 0xc]
call fcn.0066ce38
pop ecx
push eax
push dword [ebp + 0xc]
lea ecx, [ebp - 0x82c]
push ecx
call fcn.0066d09c
add esp, 0xc
test eax, eax
jne 0x49de9e
mov dword [ebp - 0x30], 0x400
mov dword [ebp - 0x34], 1
push 0x400
push 0
lea eax, [ebp - 0x844]
push eax
call fcn.0066cc88
add esp, 0xc
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x844]
push ecx
lea eax, [ebp - 0x34]
push eax
push 0
push 0x771a26
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
test edx, edx
jne 0x49ddce
push 0x771a31
lea ecx, [ebp - 0x844]
push ecx
call fcn.0066d004
add esp, 8
test eax, eax
jne 0x49ddce
inc dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0x400
mov dword [ebp - 0x34], 1
push 0x400
push 0
lea eax, [ebp - 0x844]
push eax
call fcn.0066cc88
add esp, 0xc
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x844]
push ecx
lea eax, [ebp - 0x34]
push eax
push 0
push 0x771a41
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
test edx, edx
jne 0x49de35
push 0x771a46
lea ecx, [ebp - 0x844]
push ecx
call fcn.0066d004
add esp, 8
test eax, eax
jne 0x49de35
inc dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0x400
mov dword [ebp - 0x34], 1
push 0x400
push 0
lea eax, [ebp - 0x844]
push eax
call fcn.0066cc88
add esp, 0xc
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x844]
push ecx
lea eax, [ebp - 0x34]
push eax
push 0
push 0x771a56
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegQueryValueExA
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x20]
test edx, edx
jne 0x49de9e
push 5
push 0x771a61
lea ecx, [ebp - 0x844]
push ecx
call fcn.0066d09c
add esp, 0xc
test eax, eax
jne 0x49de9e
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
dec eax
jl 0x49df03
lea edx, [ebp - 0x43a]
push edx
call fcn.00674df8
pop ecx
imul ecx, dword [ebp - 0x40], 0x23
mov dword [ecx*8 + 0xbca750], eax
imul eax, dword [ebp - 0x40], 0x23
mov dl, byte [ebp - 0x41]
mov byte [eax*8 + 0xbca85a], dl
imul ecx, dword [ebp - 0x40], 0x23
mov al, byte [ebp - 0x42]
mov byte [ecx*8 + 0xbca85b], al
imul edx, dword [ebp - 0x40], 0x23
mov cl, byte [ebp - 0x43]
mov byte [edx*8 + 0xbca85c], cl
imul eax, dword [ebp - 0x40], 0x23
mov dl, byte [ebp - 0x44]
mov byte [eax*8 + 0xbca85d], dl
imul ecx, dword [ebp - 0x40], 0x23
mov byte [ecx*8 + 0xbca755], 0
inc dword [ebp - 0x40]
push dword [ebp - 0x10]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x49dc2f
push dword [ebp - 8]
call sub.ADVAPI32.DLL_RegCloseKey
push dword [ebp - 0xc]
call sub.ADVAPI32.DLL_RegCloseKey
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x49dae8
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov eax, dword [ebp - 0x40]
mov esp, ebp
pop ebp
ret