Function at 0x100038f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov dword [ebp - 0x10], 0xe000020e
mov dword [ebp - 0x28], 1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10005ed0
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x10003927
xor eax, eax
jmp 0x10003ca5
lea edx, [ebp - 0xc]
push edx
push 0x20019
push 0
push str.SystemCurrentControlSetControlCoDeviceInstallers
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100039e4
lea eax, [ebp - 0x84]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x10
push ecx
call fcn.10006110
add esp, 8
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0x20
lea eax, [ebp - 0x84]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x100039da
mov edx, dword [ebp - 8]
push edx
call 0x10000000
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0x20
lea edx, [ebp - 0x84]
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x100039ce
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.10007b50
add esp, 0x10
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 4]
push edx
call 0x10000000
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x28], 0
jne 0x100039f1
xor eax, eax
jmp 0x10003ca5
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
mov edx, dword [ebp - 0x14]
push edx
call fcn.100069b0
add esp, 0xc
test eax, eax
jne 0x10003a8e
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x20
push str.CoInstallers32
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x10003a84
mov edx, dword [ebp - 8]
push edx
call 0x10000000
add esp, 4
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0x20
push str.CoInstallers32
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x10003a78
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call fcn.10007b50
add esp, 0x10
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 4]
push ecx
call 0x10000000
add esp, 4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x20019
mov eax, dword [ebp - 0x14]
add eax, 0x10
push eax
call sym.vtvbtoyx.dll__SetupDiOpenClassRegKey_8
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
je 0x10003bbd
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 2
push str.Installer32
push 0
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x10003bb3
mov eax, dword [ebp - 8]
push eax
call 0x10000000
add esp, 4
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0
push 2
push str.Installer32
push 0
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x10003ba7
push 0x2c
mov ecx, dword [ebp - 4]
push ecx
call sub.MSVCRT.dll_wcschr
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10003b22
xor edx, edx
mov eax, dword [ebp - 0x18]
mov word [eax], dx
push 0x800
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x10003ba7
cmp dword [ebp - 0x18], 0
je 0x10003b73
mov edx, dword [ebp - 0x18]
add edx, 2
push edx
call 0x10000000
add esp, 4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x30]
push edx
call 0x10000000
add esp, 4
jmp 0x10003b85
push str.ClassInstall
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x10003b9d
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 4]
push edx
call 0x10000000
add esp, 4
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0xe000020e
jne case.0x10003bed.2
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
sub edx, 1
mov dword [ebp - 0x24], edx
cmp dword [ebp - 0x24], 0x29
ja case.0x10003bed.2
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 0x10003cd0]
jmp dword [ecx*4 + 0x10003cac]
push 0
push 0
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sym.vtvbtoyx.dll__SetupDiRegisterDeviceInfo_24
jmp 0x10003ca5
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sym.vtvbtoyx.dll__SetupDiRemoveDevice_8
jmp 0x10003ca5
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sym.vtvbtoyx.dll__SetupDiSelectBestCompatDrv_8
jmp 0x10003ca5
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sym.vtvbtoyx.dll__SetupDiRegisterCoDeviceInstallers_8
jmp 0x10003ca5
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sym.vtvbtoyx.dll__SetupDiInstallDriverFiles_8
jmp 0x10003ca5
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sym.vtvbtoyx.dll__SetupDiInstallDeviceInterfaces_8
jmp 0x10003ca5
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call sym.vtvbtoyx.dll__SetupDiInstallDevice_8
jmp 0x10003ca5
mov ecx, dword [ebp + 8]
push ecx
push str.Unhandled_function__x._n
call 0x10000000
add esp, 8
cmp dword [ebp - 0x10], 0
je 0x10003c8c
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x10], 0
jne 0x10003c9b
mov dword [ebp - 0x34], 1
jmp 0x10003ca2
mov dword [ebp - 0x34], 0
mov eax, dword [ebp - 0x34]
mov esp, ebp
pop ebp
ret 0xc