Function at 0x409fae
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44c
lea eax, [ebp - 0x3c]
push ebx
push eax
lea eax, [ebp - 0x4c]
push 1
push eax
push 0x4b40d0
call dword [sym.imp.SETUPAPI.dll_SetupDiClassGuidsFromNameA]
test eax, eax
jne 0x409fdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetupDiClassGuidsFromName___ERROR_d
jmp 0x40a002
xor ebx, ebx
push 0xa
push ebx
lea eax, [ebp - 0x4c]
push ebx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x40a014
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetupDiGetClassDevs___ERROR_d
push 0x4c2700
call fcn.004319c7
add esp, 0xc
jmp 0x40a23f
push edi
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
mov dword [ebp - 8], ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x1c
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x40a215
push esi
mov esi, 0x200
jmp 0x40a049
xor ebx, ebx
push ebx
lea eax, [ebp - 0x24c]
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
and byte [ebp - 0x24c], 0
push esi
push eax
push ebx
lea eax, [ebp - 0x38]
push 0x16
push eax
push dword [ebp - 4]
call edi
test eax, eax
jne 0x40a07d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetupDiGetDeviceRegistryProperty_SPDRP_ENMERATOR_NAME__ERROR_d
jmp 0x40a0f8
lea eax, [ebp - 0x24c]
push 0x4b4040
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
mov ebx, eax
pop ecx
neg ebx
sbb bl, bl
pop ecx
inc bl
jne 0x40a0d1
lea eax, [ebp - 0x24c]
push 0x4b403c
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
pop ecx
test eax, eax
pop ecx
je 0x40a0d1
lea eax, [ebp - 0x24c]
push eax
push dword [ebp - 8]
push str.AddAdrs_2__u__s
push 0x4c2700
call fcn.004319df
jmp 0x40a160
push 0
lea eax, [ebp - 0x24c]
push esi
push eax
push 0
lea eax, [ebp - 0x38]
push 9
push eax
push dword [ebp - 4]
call edi
test eax, eax
jne 0x40a10a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetupDiGetDeviceRegistryProperty_SPDRP_DRIVER__ERROR_d
push 0x4c2700
call fcn.004319c7
add esp, 0xc
jmp 0x40a1e8
lea eax, [ebp - 0x24c]
push eax
push str.SystemCurrentControlSetControlClass
lea eax, [ebp - 0x44c]
push 0x4b3fc4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x44c]
push 0
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40a168
push eax
lea eax, [ebp - 0x44c]
push eax
push str.RegOpenKey__s__Error_d
push 0x4c2700
call fcn.004319c7
add esp, 0x10
jmp 0x40a1e8
lea eax, [ebp - 0x10]
and byte [ebp - 0x24c], 0
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.NetCfgInstanceId
mov dword [ebp - 0x10], esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40a1cc
cmp dword [ebp - 0x14], 1
jne 0x40a1cc
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.0040a242
pop ecx
test al, al
pop ecx
je 0x40a1df
test bl, bl
mov ecx, 0x4c29b8
jne 0x40a1bf
mov ecx, 0x4c29d0
lea eax, [ebp - 0x1c]
push 6
push eax
call fcn.00432271
jmp 0x40a1df
push eax
push str.RegQueryValueEx__NetCfgInstanceId___ERROR_d
push 0x4c2700
call fcn.004319c7
add esp, 0xc
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 8]
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x34]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x1c
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x40a047
pop esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
pop edi
je 0x40a236
push eax
push str.SetupDiEnumDeviceInfo___ERROR_d
push 0x4c2700
call fcn.004319c7
add esp, 0xc
push dword [ebp - 4]
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
pop ebx
leave
ret