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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0a38
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x5603e8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x15c], edi
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
lea eax, [ebp - 0x14c]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
mov esi, 1
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x4993d8
lea ecx, [ebp - 0x140]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
cmp edi, ecx
je 0x499382
mov ecx, edi
call fcn.00498b30
lea edx, [ebp - 0x140]
push edx
mov ecx, edi
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::_Container_base0::_Swap_all_struct_std::_Container_base0__]
mov eax, dword [ebp - 0x140]
mov ecx, dword [ebp - 0x13c]
mov edx, dword [ebp - 0x138]
mov dword [edi], eax
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x154], esi
mov byte [ebp - 4], bl
cmp dword [ebp - 0x140], ebx
je 0x499679
lea ecx, [ebp - 0x140]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::_Container_base0::_Orphan_all_void_]
mov eax, dword [ebp - 0x15c]
mov edx, dword [ebp - 0x13c]
push eax
mov eax, dword [ebp - 0x140]
lea ecx, [ebp - 0x134]
push ecx
push edx
push eax
call fcn.00495b90
mov ecx, dword [ebp - 0x140]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 0x14
jmp 0x499679
mov ecx, dword [ebp - 0x14c]
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x130]
push edx
lea eax, [ebp - 0x110]
push eax
push ebx
push ecx
mov dword [ebp - 0x150], ebx
mov dword [ebp - 0x130], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4995c1
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x499420
mov ecx, dword [ebp - 0x14c]
lea edx, [ebp - 0x144]
push edx
push 0x20019
push ebx
lea eax, [ebp - 0x110]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x49957d
lea edx, [ebp - 0x130]
push edx
mov edx, dword [ebp - 0x144]
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x148]
push ecx
push ebx
push str.Characteristics
push edx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x130], 4
call esi
cmp eax, ebx
jne 0x499570
test byte [ebp - 0x158], 4
je 0x499570
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x144]
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x148]
push edx
push ebx
push str.ComponentId
push eax
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x130], 0x100
call esi
cmp eax, ebx
jne 0x499567
push 3
lea ecx, [ebp - 0x110]
push 0x533a88
push ecx
call dword [sym.imp.MSVCR100.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x499567
lea edx, [ebp - 0x130]
push edx
mov edx, dword [ebp - 0x144]
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x148]
push ecx
push ebx
push str.NetCfgInstanceId
push edx
mov dword [ebp - 0x148], ebx
mov dword [ebp - 0x130], 0x100
call esi
cmp eax, ebx
jne 0x49955e
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x12c]
call fcn.0048f640
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 2
call fcn.00499030
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], 1
call fcn.00484f40
mov edx, dword [ebp - 0x144]
push edx
jmp 0x499577
mov eax, dword [ebp - 0x144]
push eax
jmp 0x499577
mov ecx, dword [ebp - 0x144]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x150]
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x130]
push edx
mov edx, dword [ebp - 0x14c]
lea ecx, [ebp - 0x110]
inc eax
push ecx
push eax
push edx
mov dword [ebp - 0x130], 0x100
mov dword [ebp - 0x150], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x499420
mov esi, 1
lea eax, [ebp - 0x140]
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
cmp edi, eax
je 0x499612
mov ecx, eax
push ecx
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::_Container_base0::_Swap_all_struct_std::_Container_base0__]
mov edx, dword [ebp - 0x140]
mov eax, dword [ebp - 0x13c]
mov ecx, dword [ebp - 0x138]
mov dword [edi], edx
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x154], esi
mov byte [ebp - 4], bl
cmp dword [ebp - 0x140], ebx
je 0x499679
lea ecx, [ebp - 0x140]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::_Container_base0::_Orphan_all_void_]
mov edi, dword [ebp - 0x13c]
mov esi, dword [ebp - 0x140]
cmp esi, edi
je 0x49966a
nop
cmp dword [esi + 0x14], 0x10
jb 0x499651
mov edx, dword [esi]
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
add esi, 0x1c
cmp esi, edi
jne 0x499640
mov esi, dword [ebp - 0x140]
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
mov edi, dword [ebp - 0x15c]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b12f6
mov esp, ebp
pop ebp
ret