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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x874
mov eax, dword [0x101401a0]
xor eax, esp
mov dword [esp + 0x870], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [esp + 0x34], eax
xor eax, eax
push 0x1fc
mov word [esp + 0x64], ax
xor esi, esi
lea eax, [esp + 0x66]
push esi
push eax
call fcn.100ab9a0
mov edi, 0xff
add esp, 0xc
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x30], 7
mov dword [esp + 0x14], 0xf003f
call fcn.1001505f
lea eax, [eax + eax + 2]
mov dword [esp + 0x10], esi
mov dword [esp + 0x38], eax
cmp eax, esi
jle 0x100154c8
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [esp + 0x10], 1
jle 0x100152f6
or dword [esp + 0x14], 0x100
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x18]
push esi
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
push 0x80000002
call ebx
test eax, eax
jne 0x100154b6
push esi
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x74]
push eax
mov dword [esp + 0x3c], esi
mov dword [esp + 0x30], edi
push esi
jmp 0x10015497
inc dword [esp + 0x24]
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x46c]
push 0x1012edac
push eax
mov dword [esp + 0x24], edi
call fcn.100150dc
push 0x1fe
lea eax, [esp + 0x70]
push esi
push eax
call fcn.100ab9a0
lea eax, [esp + 0x480]
add esp, 0x18
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, si
jne 0x1001536c
sub eax, ecx
sar eax, 1
je 0x10015485
lea eax, [esp + 0x468]
push eax
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
lea eax, [esp + 0x678]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x18]
lea eax, [esp + 0x678]
push esi
push eax
push 0x80000002
call ebx
test eax, eax
jne 0x10015485
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x38]
push eax
push esi
push str.Characteristics
push dword [esp + 0x40]
mov dword [esp + 0x34], 4
mov dword [esp + 0x38], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test byte [esp + 0x20], 4
je 0x10015485
mov eax, 0x208
push eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x264]
push esi
push eax
call fcn.100ab9a0
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x264]
push eax
lea eax, [esp + 0x38]
push eax
push esi
push str.DriverDesc
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp word [esp + 0x260], si
je 0x10015485
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.10014fe8
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x10015461
mov eax, dword [eax + 4]
jmp 0x10015464
add eax, 4
mov ecx, dword [esp + 0x34]
push 1
push eax
call fcn.1001515e
push esi
push 1
lea ecx, [esp + 0x48]
call fcn.100015c0
lea ecx, [esp + 0x40]
call fcn.10002740
push esi
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x74]
push eax
push dword [esp + 0x3c]
push dword [esp + 0x44]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
jne 0x10015330
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x38]
jl 0x100152e7
mov ecx, dword [esp + 0x87c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100a1c30
mov esp, ebp
pop ebp
ret 4