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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x17c
mov eax, dword [0x1010f16c]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push esi
push edi
lea eax, [esp + 0x24]
mov ebx, ecx
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1005dbd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetTapAdapterName:_RegOpenKeyEx_failed:_0x_X
call fcn.10056110
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x30], esi
push eax
lea eax, [esp + 0xa4]
mov dword [esp + 0x24], 0x40
push eax
push esi
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x1005ddf2
test eax, eax
jne 0x1005ddde
lea eax, [esp + 0x90]
push eax
push str.SYSTEMCurrentControlSetControlClass4D36E972_E325_11CE_BFC1_08002BE10318
push str._s_s
lea eax, [esp + 0xdc]
push 0xaf
push eax
call fcn.100379c0
add esp, 0x14
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
lea eax, [esp + 0xdc]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1005ddd8
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x40
push eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push str.ComponentId
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1005ddd2
cmp dword [esp + 0x14], 1
jne 0x1005ddd2
lea eax, [esp + 0x90]
cmp dword [eax], 0x30706174
jne 0x1005ddd2
cmp dword [eax + 4], 0x313039
jne 0x1005ddd2
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x28
push eax
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push str.NetCfgInstanceId
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1005ddd2
cmp dword [esp + 0x14], 1
jne 0x1005ddd2
mov word [esp + 0x4f], ax
lea eax, [esp + 0x28]
push eax
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push str._s_sConnection
lea eax, [esp + 0xdc]
push 0xaf
push eax
call fcn.100379c0
add esp, 0x14
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
lea eax, [esp + 0xdc]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1005dd96
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x28
push eax
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push str.Name
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1005dd8b
cmp dword [esp + 0x14], 1
jne 0x1005dd8b
mov byte [esp + 0x77], al
jmp 0x1005dd90
mov byte [esp + 0x50], 0
push dword [esp + 0x1c]
call edi
mov eax, dword [ebx + 4]
cmp dword [ebx + 8], eax
je 0x1005ddc5
mov edi, eax
lea esi, [esp + 0x28]
mov ecx, 0x1a
rep movsd dword es:[edi], dword [esi]
push dword [esp + 0x18]
add dword [ebx + 4], 0x68
mov esi, dword [esp + 0x24]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
inc esi
jmp 0x1005dbe0
lea ecx, [esp + 0x28]
push ecx
push eax
mov ecx, ebx
call fcn.1005deb0
push dword [esp + 0x18]
call edi
inc esi
jmp 0x1005dbe0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetTapAdapterName:_RegEnumKeyEx_failed:_0x_X
call fcn.10056110
add esp, 8
push dword [esp + 0x24]
call edi
mov ecx, dword [esp + 0x184]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100908e7
mov esp, ebp
pop ebp
ret