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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x670d66
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x718924]
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 ebx, dword [ebp + 8]
xor esi, esi
xor edi, edi
mov dword [ebp - 0x13c], ebx
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x148], esi
mov dword [ebp - 0x144], esi
lea eax, [ebp - 0x138]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4c07de
mov dword [ebx], esi
mov dword [ebx + 4], esi
mov dword [ebx + 8], esi
jmp 0x4c0a99
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x13c], 0
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x12c], 0x100
push eax
push 0
push dword [ebp - 0x138]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4c0a8b
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x130]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x138]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4c0a43
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x140]
mov dword [ebp - 0x12c], 4
push eax
lea eax, [ebp - 0x134]
push eax
push 0
push str.Characteristics
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c0a3b
test byte [ebp - 0x140], 4
je 0x4c0a3b
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x12c], 0x100
push eax
lea eax, [ebp - 0x134]
push eax
push 0
push str.ComponentId
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c0a3b
push 3
lea eax, [ebp - 0x110]
push 0x676de0
push eax
call fcn.004f9399
add esp, 0xc
test eax, eax
jne 0x4c0a3b
mov dword [ebp - 0x134], eax
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 0x12c], 0x100
push eax
lea eax, [ebp - 0x134]
push eax
push 0
push str.NetCfgInstanceId
push dword [ebp - 0x130]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4c0a3b
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x114], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x128], al
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4c0960
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
lea ecx, [ebp - 0x128]
call fcn.0045d850
mov byte [ebp - 4], 1
cmp esi, dword [ebp - 0x144]
je 0x4c09e2
mov eax, dword [ebp - 0x128]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x124]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x120]
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x11c]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x118]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x114]
mov dword [esi + 0x14], eax
mov eax, 0xf
add esi, 0x18
mov byte [ebp - 0x128], 0
mov dword [ebp - 0x148], esi
jmp 0x4c0a01
lea eax, [ebp - 0x128]
push eax
push esi
lea ecx, [ebp - 0x14c]
call fcn.0044f9d0
mov esi, dword [ebp - 0x148]
mov eax, dword [ebp - 0x114]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x4c0a3b
mov ecx, dword [ebp - 0x128]
lea edx, [eax + 1]
mov eax, ecx
cmp edx, 0x1000
jb 0x4c0a31
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c0ab7
push edx
push ecx
call fcn.004cb4db
add esp, 8
push dword [ebp - 0x130]
call edi
mov eax, dword [ebp - 0x13c]
lea ecx, [ebp - 0x12c]
push 0
push 0
push 0
push 0
push ecx
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x12c], 0x100
inc eax
push ecx
push eax
push dword [ebp - 0x138]
mov dword [ebp - 0x13c], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4c0824
mov edi, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x144]
mov dword [ebx], edi
mov dword [ebx + 4], esi
mov dword [ebx + 8], eax
mov eax, ebx
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.004cb998
mov esp, ebp
pop ebp
ret
call fcn.004e6589
int3