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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x524f16
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x590cc0]
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 esi, dword [ebp + 8]
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x158], esi
mov dword [ebp - 0x140], ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x150], edi
mov dword [ebp - 0x14c], ebx
lea eax, [ebp - 0x13c]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push 0x80000002
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x414e1a
lea ecx, [ebp - 0x154]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
cmp esi, ecx
je 0x415071
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
jmp 0x415071
mov ecx, dword [ebp - 0x13c]
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 - 0x140], ebx
mov dword [ebp - 0x130], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x415000
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x414e60
mov ecx, dword [ebp - 0x13c]
lea edx, [ebp - 0x134]
push edx
push 0x20019
push ebx
lea eax, [ebp - 0x110]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x414fbb
lea edx, [ebp - 0x130]
push edx
mov edx, dword [ebp - 0x134]
lea eax, [ebp - 0x144]
push eax
lea ecx, [ebp - 0x138]
push ecx
push ebx
push str.Characteristics
push edx
mov dword [ebp - 0x144], ebx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x130], 4
call edi
test eax, eax
jne 0x414fae
test byte [ebp - 0x144], 4
je 0x414fae
lea eax, [ebp - 0x130]
push eax
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x138]
push edx
push ebx
push str.ComponentId
push eax
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x130], 0x100
call edi
test eax, eax
jne 0x414fa5
push 3
lea ecx, [ebp - 0x110]
push 0x53f778
push ecx
call fcn.004d8721
add esp, 0xc
test eax, eax
jne 0x414fa5
lea edx, [ebp - 0x130]
push edx
mov edx, dword [ebp - 0x134]
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x138]
push ecx
push ebx
push str.NetCfgInstanceId
push edx
mov dword [ebp - 0x138], ebx
mov dword [ebp - 0x130], 0x100
call edi
cmp eax, ebx
jne 0x414f9c
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x12c]
call fcn.0040c230
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 1
call fcn.00412ed0
lea ecx, [ebp - 0x12c]
mov byte [ebp - 4], bl
call fcn.00489c30
mov edx, dword [ebp - 0x134]
push edx
jmp 0x414fb5
mov eax, dword [ebp - 0x134]
push eax
jmp 0x414fb5
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x140]
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x130]
push edx
mov edx, dword [ebp - 0x13c]
lea ecx, [ebp - 0x110]
inc eax
push ecx
push eax
push edx
mov dword [ebp - 0x130], 0x100
mov dword [ebp - 0x140], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x414e60
mov edi, dword [ebp - 0x150]
lea eax, [ebp - 0x154]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
cmp esi, eax
je 0x415028
mov ecx, dword [ebp - 0x154]
mov edx, dword [ebp - 0x14c]
mov dword [esi], ecx
mov dword [esi + 4], edi
mov dword [esi + 8], edx
jmp 0x415071
mov eax, dword [ebp - 0x154]
cmp eax, ebx
je 0x415071
mov esi, eax
cmp eax, edi
je 0x41505c
cmp dword [esi + 0x14], 0x10
jb 0x415049
mov eax, dword [esi]
push eax
call fcn.004b9008
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
add esi, 0x1c
cmp esi, edi
jne 0x415038
mov ecx, dword [ebp - 0x154]
push ecx
call fcn.004b9008
mov esi, dword [ebp - 0x158]
add esp, 4
mov eax, esi
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.004b9ff3
mov esp, ebp
pop ebp
ret