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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100bcfe6
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x100f51d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x448], eax
mov dword [ebp - 0x454], ecx
mov ecx, dword [ebp + 8]
mov dword [eax], 0
mov dword [ebp - 0x44c], ecx
mov dword [ebp - 0x444], 0
mov dword [ecx], 0
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x444]
push 8
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10010e10
mov esi, dword [ebp - 0x444]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10054da4
xor esi, esi
jmp 0x10055019
xor edi, edi
jmp 0x10054db0
lea eax, [ebp - 0x45c]
mov dword [ebp - 0x42c], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x424]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10055014
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x430], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x428]
push eax
push 1
push 0
lea eax, [ebp - 0x424]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10054ee6
mov esi, dword [ebp - 0x428]
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x434], eax
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x438], esi
push eax
lea eax, [ebp - 0x450]
mov dword [ebp - 0x428], 0x208
push eax
push 0
push str.NetCfgInstanceId
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10054ec9
mov eax, dword [ebp - 0x450]
cmp eax, 1
je 0x10054e81
cmp eax, 2
jne 0x10054ec9
mov ecx, dword [ebp - 0x428]
test ecx, ecx
je 0x10054ea1
test cl, 1
jne 0x10054ec9
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x21e], 0
je 0x10054eaa
jmp 0x10054ec9
xor eax, eax
mov word [ebp - 0x21c], ax
push dword [ebp - 0x454]
lea eax, [ebp - 0x21c]
shr ecx, 1
push eax
mov dword [ebp - 0x42c], ecx
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
je 0x10054f06
mov byte [ebp - 4], 0
test esi, esi
je 0x10054ede
push esi
call ebx
mov dword [ebp - 0x438], 0
mov esi, dword [ebp - 0x444]
jmp 0x10054eea
mov byte [ebp - 4], 0
inc edi
mov dword [ebp - 0x434], 0
cmp edi, 0x100
jl 0x10054db0
jmp 0x10055014
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
push str.BusType
lea ecx, [ebp - 0x438]
call fcn.1004e550
test eax, eax
jne 0x10054ff5
lea eax, [ebp - 0x21c]
push eax
call fcn.1009e11f
add esp, 4
cmp eax, 5
je 0x10054fdc
test eax, eax
jne 0x10054ff5
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x42c], 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
push str.DriverDesc
lea ecx, [ebp - 0x438]
call fcn.1004e550
test eax, eax
jne 0x10054ff5
push 9
lea eax, [ebp - 0x21c]
push str.Microsoft
push eax
call fcn.100a6f32
add esp, 0xc
test eax, eax
jne 0x10054ff5
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x428]
push eax
push ecx
lea ecx, [ebp - 0x438]
call fcn.10056310
test eax, eax
jne 0x10054ff5
cmp dword [ebp - 0x428], 6
jne 0x10054ff5
mov eax, dword [ebp - 0x448]
mov edx, dword [ebp - 0x44c]
mov dword [eax], 1
mov dword [edx], 0
jmp 0x10054ff5
mov eax, dword [ebp - 0x448]
mov ecx, esi
mov edx, dword [ebp - 0x44c]
mov dword [eax], 1
call fcn.10054aa0
mov byte [ebp - 4], 0
test esi, esi
je 0x1005500a
push esi
call ebx
mov dword [ebp - 0x438], 0
mov dword [ebp - 0x434], 0
mov esi, 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x444]
test eax, eax
je 0x10055037
push eax
call ebx
mov dword [ebp - 0x444], 0
mov eax, esi
mov dword [ebp - 0x440], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10071699
mov esp, ebp
pop ebp
ret