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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2b78
call fcn.004d2a50
mov eax, dword [0x550070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov ecx, 0x13
mov esi, str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002bE10318
lea edi, [ebp - 0x54]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 0x2b70], 1
lea eax, [ebp - 0x2b68]
push eax
push 0x20119
push 0
lea ecx, [ebp - 0x54]
push ecx
push reloc.upgrade.dll_Ordinal_2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40713f
mov eax, 2
jmp 0x407330
mov dword [ebp - 0x2b64], 0
jmp 0x40715a
mov edx, dword [ebp - 0x2b64]
add edx, 1
mov dword [ebp - 0x2b64], edx
mov dword [ebp - 0x2b54], 0x3e8
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2b54]
push eax
lea ecx, [ebp - 0x43c]
push ecx
mov edx, dword [ebp - 0x2b64]
push edx
mov eax, dword [ebp - 0x2b68]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x407197
jmp 0x40731d
lea ecx, [ebp - 0x2b60]
push ecx
push 0x20119
push 0
lea edx, [ebp - 0x43c]
push edx
mov eax, dword [ebp - 0x2b68]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4071bf
jmp 0x40714b
mov dword [ebp - 0x2b54], 0x2710
lea ecx, [ebp - 0x2b54]
push ecx
lea edx, [ebp - 0x2b4c]
push edx
lea eax, [ebp - 0x2b78]
push eax
push 0
push str.NetCfgInstanceId
mov ecx, dword [ebp - 0x2b60]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40730b
lea edx, [ebp - 0x2b4c]
mov dword [ebp - 0x2b5c], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2b58], eax
mov ecx, dword [ebp - 0x2b58]
mov dl, byte [ecx]
mov byte [ebp - 0x2b4d], dl
mov eax, dword [ebp - 0x2b5c]
cmp dl, byte [eax]
jne 0x40726d
cmp byte [ebp - 0x2b4d], 0
je 0x407261
mov ecx, dword [ebp - 0x2b58]
mov dl, byte [ecx + 1]
mov byte [ebp - 0x2b4e], dl
mov eax, dword [ebp - 0x2b5c]
cmp dl, byte [eax + 1]
jne 0x40726d
add dword [ebp - 0x2b58], 2
add dword [ebp - 0x2b5c], 2
cmp byte [ebp - 0x2b4e], 0
jne 0x40720f
mov dword [ebp - 0x2b6c], 0
jmp 0x407278
sbb ecx, ecx
or ecx, 1
mov dword [ebp - 0x2b6c], ecx
mov edx, dword [ebp - 0x2b6c]
mov dword [ebp - 0x2b74], edx
cmp dword [ebp - 0x2b74], 0
jne 0x40730b
mov dword [ebp - 0x2b54], 0x2710
lea eax, [ebp - 0x2b54]
push eax
lea ecx, [ebp - 0x2b4c]
push ecx
lea edx, [ebp - 0x2b78]
push edx
push 0
push str.MatchingDeviceId
mov eax, dword [ebp - 0x2b60]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40730b
lea ecx, [ebp - 0x2b4c]
push ecx
push str.MatchingDeviceId:___s__n
call fcn.00408070
add esp, 8
push 4
push 0x512068
lea edx, [ebp - 0x2b4c]
push edx
call fcn.004e97a6
add esp, 0xc
test eax, eax
jne 0x40730b
mov eax, dword [ebp - 0x2b60]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2b70], 0
jmp 0x40731d
mov ecx, dword [ebp - 0x2b60]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40714b
mov edx, dword [ebp - 0x2b68]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2b70]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d181f
mov esp, ebp
pop ebp
ret