Function at 0x40fd60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430126
mov eax, dword fs:[0]
push eax
sub esp, 0xd0c
mov eax, dword [0x448070]
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
push str.Entering____AreFCoEBootEnabledPortsPresent__
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
xor esi, esi
push 2
push esi
push esi
push 0x4384d4
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsW]
mov edi, eax
cmp edi, 0xffffffff
je 0x410006
lea eax, [ebp - 0xa54]
mov dword [ebp - 0xa54], 0x1c
push eax
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
cmp eax, 1
jne 0x40ffd7
push 0
push 0x208
lea eax, [ebp - 0xa38]
push eax
push 0
push 9
lea eax, [ebp - 0xa54]
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyW]
cmp eax, 1
jne 0x40ffa8
push str.SYSTEMCurrentControlSetControlClass_
lea eax, [ebp - 0x628]
mov dword [ebp - 0xc24], 0
push 0x104
push eax
mov dword [ebp - 0xc30], 0x104
call fcn.0041c1ed
lea eax, [ebp - 0xa38]
push eax
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.0041d6ab
add esp, 0x18
lea eax, [ebp - 0xc24]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x628]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ffa1
lea eax, [ebp - 0xc30]
push eax
lea eax, [ebp - 0x830]
push eax
push 0
push 0
push str.NetCfgInstanceId
push dword [ebp - 0xc24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ffa1
lea ecx, [ebp - 0xd18]
call fcn.00405540
push 0x1c8
lea eax, [ebp - 0xc1c]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0xc20], 0
call fcn.0041c090
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0041c090
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0041c090
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x218]
push str.DEVICE_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x30
lea eax, [ebp - 0x420]
lea ecx, [ebp - 0xd18]
push eax
push 1
lea eax, [ebp - 0x218]
push eax
call fcn.00405bd0
cmp al, 1
jne 0x40ff7f
lea eax, [ebp - 0xc20]
push eax
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0xd18]
call fcn.004057b0
lea eax, [ebp - 0xc1c]
push eax
push dword [ebp - 0xc20]
lea ecx, [ebp - 0xd18]
call fcn.004059d0
lea eax, [ebp - 0xc20]
push eax
lea ecx, [ebp - 0xd18]
call fcn.00405620
lea ecx, [ebp - 0xd18]
call fcn.004056c0
test byte [ebp - 0xa74], 3
je 0x40ff8d
mov esi, 1
lea ecx, [ebp - 0xd18]
mov dword [ebp - 4], 0xffffffff
call fcn.00405590
jmp 0x40ffba
push str.Failed_to_get_NetCfgInstanceID_from_PCI_device
jmp 0x40ffad
push str.Failed_to_get_driver_key_from_PCI_device
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
lea eax, [ebp - 0xa54]
inc ebx
push eax
push ebx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
cmp eax, 1
je 0x40fde0
test esi, esi
jne 0x40fffd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
jne 0x40ffeb
push str.Exhausted_list_of_PCI_devices
jmp 0x40fff0
push str.Failed_to_enumerate_all_PCI_devices
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
jmp 0x410018
push str.Failed_to_enumerate_any_PCI_devices
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
lea ecx, [ebp - 0xc28]
call fcn.00405fc0
lea eax, [ebp - 0xc2c]
mov dword [ebp - 4], 1
push eax
sub esp, 0x18
mov dword [ebp - 0xc2c], 0
mov ecx, esp
push str.FcoE_RemoteBooted
call sym.SetupBD.exe_public:_void___thiscall_CNcsString::constructor_wchar_t_const__
lea ecx, [ebp - 0xc28]
call fcn.004076b0
test al, al
je 0x410067
mov eax, 1
cmp dword [ebp - 0xc2c], eax
cmove esi, eax
push str.Exiting____AreFCoEBootEnabledPortsPresent__
push 0x44aca0
call sym.SetupBD.exe_public:_void___cdecl_CNcsDebug::Print_wchar_t_const__
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc28]
call fcn.00406000
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.0041b486
mov esp, ebp
pop ebp
ret