Function at 0x4173ea
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x4437f0
push str.OpenSetupAndConfigLib_n
push esi
call fcn.0040b895
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
xor eax, eax
cmp dword [0x456300], eax
pop ecx
push 0x20
pop ebp
je 0x41744f
cmp dword [0x456304], eax
je 0x41744f
cmp dword [0x456308], eax
je 0x41745c
cmp dword [0x45630c], eax
jne 0x417cf4
call fcn.00413ff3
test eax, eax
jne 0x417cf4
call fcn.0041401f
test eax, eax
jne 0x417cf4
cmp dword [0x456308], 0
jne 0x4175ad
push str.kernel32.dll
call ebx
test eax, eax
mov dword [0x456308], eax
jne 0x41747e
push str.Unable_to_load_kernel32.dll_n
push esi
call fcn.0040ba1f
pop ecx
pop ecx
jmp 0x4175ad
push str.GetLongPathNameA
push eax
call edi
test eax, eax
mov dword [0x45625c], eax
jne 0x417496
push str.Unable_to_load_GetLongPathName_from_ghKernelLib_n
jmp 0x41749b
push str.Successfully_loaded_GetLongPathName_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.GetDiskFreeSpaceExA
push dword [0x456308]
call edi
test eax, eax
mov dword [0x456290], eax
jne 0x4174c2
push str.Unable_to_load_GetDiskFreeSpaceEx_from_ghKernelLib_n
jmp 0x4174c7
push str.Successfully_loaded_GetDiskFreeSpaceEx_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.CreateToolhelp32Snapshot
push dword [0x456308]
call edi
test eax, eax
mov dword [0x456288], eax
jne 0x4174ee
push str.Unable_to_load_CreateToolhelp32Snapshot_from_ghKernelLib_n
jmp 0x4174f3
push str.Successfully_loadedCreateToolhelp32Snapshot_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.Process32First
push dword [0x456308]
call edi
test eax, eax
mov dword [0x456268], eax
jne 0x41751a
push str.Unable_to_load_Process32First_from_ghKernelLib_n
jmp 0x41751f
push str.Successfully_loadedProcess32First_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.Process32Next
push dword [0x456308]
call edi
test eax, eax
mov dword [0x4562d8], eax
jne 0x417546
push str.Unable_to_load_Process32Next_from_ghKernelLib_n
jmp 0x41754b
push str.Successfully_loadedProcess32Next_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.Wow64EnableWow64FsRedirection
push dword [0x456308]
call edi
test eax, eax
mov dword [0x4562fc], eax
jne 0x417572
push str.Unable_to_load_Wow64EnableWow64FsRedirection_from_ghKernelLib_n
jmp 0x417577
push str.Successfully_loadedWow64EnableWow64FsRedirection_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.GetSystemWow64DirectoryA
push dword [0x456308]
call edi
test eax, eax
mov dword [0x4562b4], eax
jne 0x41759e
push str.Unable_to_load_GetSystemWow64Directory_from_ghKernelLib_n
jmp 0x4175a3
push str.Successfully_loaded_GetSystemWow64Directory_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
cmp dword [0x45630c], 0
jne 0x417617
call fcn.00413e88
test eax, eax
je 0x4175c8
call fcn.00413ea6
test eax, eax
je 0x4175d1
call fcn.0041401f
test eax, eax
je 0x417617
push str.newdev.dll
call ebx
test eax, eax
mov dword [0x45630c], eax
jne 0x4175f0
push str.Unable_to_load_newdev.dll_n
push esi
call fcn.0040ba1f
pop ecx
pop ecx
jmp 0x417617
push str.UpdateDriverForPlugAndPlayDevicesA
push eax
call edi
test eax, eax
mov dword [0x456294], eax
jne 0x417608
push str.Unable_to_load_UpdateDriverForPlugAndPlayDevices_from_ghNewdevLib_n
jmp 0x41760d
push str.Successfully_loaded_UpdateDriverForPlugAndPlayDevices_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
cmp dword [0x456300], 0
jne 0x417b01
push str.setupapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x456300], eax
jne 0x41764a
push str.Unable_to_load_setupapi.dll_n
push esi
call fcn.0040ba1f
pop ecx
pop ecx
jmp 0x417b01
push str.SetupDiGetDeviceInstallParamsA
push eax
call edi
test eax, eax
mov dword [0x4562ec], eax
jne 0x417662
push str.Unable_to_load_SetupDiGetDeviceInstallParams_from_ghSetupLib_n
jmp 0x417667
push str.Successfully_loaded_SetupDiGetDeviceInstallParams_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.SetupDiGetDeviceRegistryPropertyA
push dword [0x456300]
call edi
test eax, eax
mov dword [0x4562d0], eax
jne 0x41768e
push str.Unable_to_load_SetupDiGetDeviceRegistryProperty_from_ghSetupLib_n
jmp 0x417693
push str.Successfully_loaded_SetupDiGetDeviceRegistryProperty_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.SetupDiGetSelectedDriverA
push dword [0x456300]
call edi
test eax, eax
mov dword [0x456284], eax
jne 0x4176ba
push str.Unable_to_load_SetupDiGetSelectedDriver_from_ghSetupLib_n
jmp 0x4176bf
push str.Successfully_loaded_SetupDiGetSelectedDriver_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.SetupCopyOEMInfA
push dword [0x456300]
call edi
test eax, eax
mov dword [0x4562f4], eax
jne 0x4176e6
push str.Unable_to_load_SetupCopyOEMInf_from_ghSetupLib_n
jmp 0x4176eb
push str.Successfully_loaded_SetupCopyOEMInf_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.SetupFreeSourceListA
push dword [0x456300]
call edi
test eax, eax
mov dword [0x45628c], eax
jne 0x417712
push str.Unable_to_load_SetupFreeSourceList_from_ghSetupLib_n
jmp 0x417717
push str.Successfully_loaded_SetupFreeSourceList_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.SetupQuerySourceListA
push dword [0x456300]
call edi
test eax, eax
mov dword [0x4562dc], eax
jne 0x41773e
push str.Unable_to_load_SetupQuerySourceList_from_ghSetupLib_n
jmp 0x417743
push str.Successfully_loaded_SetupQuerySourceList_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
mov ebx, str.SetupDiOpenClassRegKeyExA
push ebx
push dword [0x456300]
call edi
test eax, eax
mov dword [0x4562f8], eax
jne 0x41776b
push str.Unable_to_load_SetupDiOpenClassRegKeyEx_from_ghSetupLib_n
jmp 0x417770
push str.Successfully_loaded_SetupDiOpenClassRegKeyEx_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.SetupDiGetClassDevsA
push dword [0x456300]
call edi
test eax, eax
mov dword [0x456254], eax
jne 0x417797
push str.Unable_to_load_SetupDiGetClassDevs_from_ghSetupLib_n
jmp 0x41779c
push str.Successfully_loaded_SetupDiGetClassDevs_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.SetupDiGetDeviceInterfaceDetailA
push dword [0x456300]
call edi
test eax, eax
mov dword [0x4562b0], eax
jne 0x4177c3
push str.Unable_to_load_SetupDiGetDeviceInterfaceDetail_from_ghSetupLib_n
jmp 0x4177c8
push str.Successfully_loaded_SetupDiGetDeviceInterfaceDetail_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push ebx
push dword [0x456300]
call edi
test eax, eax
mov dword [0x4562f8], eax
jne 0x4177eb
push str.Unable_to_load_SetupDiOpenClassRegKeyEx_from_ghSetupLib_n
jmp 0x4177f0
push str.Successfully_loaded_SetupDiOpenClassRegKeyEx_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.SetupDiClassNameFromGuidA
push dword [0x456300]
call edi
test eax, eax
mov dword [0x4562bc], eax
jne 0x417817
push str.Unable_to_load_SetupDiClassNameFromGuid_from_ghSetupLib_n
jmp 0x41781c
push str.Successfully_loaded_SetupDiClassNameFromGuid_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.SetupDiGetDeviceInstanceIdA
push dword [0x456300]
call edi
test eax, eax
mov dword [0x4562c0], eax
jne 0x417843
push str.Unable_to_load_SetupDiGetDeviceInstanceId_from_ghSetupLib_n
jmp 0x417848
push str.Successfully_loaded_SetupDiGetDeviceInstanceId_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.SetupDiGetClassInstallParamsA
push dword [0x456300]
call edi
test eax, eax
mov dword [0x4562e4], eax
jne 0x41786f
push str.Unable_to_load_SetupDiGetClassInstallParams_from_ghSetupLib_n
jmp 0x417874
push str.Successfully_loaded_SetupDiGetClassInstallParams_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.SetupDiInstallClassExA
push dword [0x456300]
call edi
test eax, eax
mov dword [0x4562f0], eax
jne 0x41789b
push str.Unable_to_load_SetupDiInstallClassEx_from_ghSetupLib_n
jmp 0x4178a0
push str.Successfully_loaded_SetupDiInstallClassEx_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.SetupAddToSourceListA
push dword [0x456300]
call edi
test eax, eax
mov dword [0x45626c], eax
jne 0x4178c7
push str.Unable_to_load_SetupAddToSourceList_from_ghSetupLib_n
jmp 0x4178cc
push str.Successfully_loaded_SetupAddToSourceList_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
call fcn.00413fd7
test eax, eax
jne 0x41791d
call fcn.00413ea6
test eax, eax
jne 0x41791d
call fcn.00413ec4
test eax, eax
jne 0x41791d
push str.SetupUninstallOEMInfA
push dword [0x456300]
call edi
test eax, eax
mov dword [0x4562a4], eax
jne 0x41790e
push str.Unable_to_load_SetupUninstallOEMInf_from_ghSetupLib_n
jmp 0x417913
push str.Successfully_loaded_SetupUninstallOEMInf_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.CMP_WaitNoPendingInstallEvents
push dword [0x456300]
call edi
test eax, eax
mov dword [0x45627c], eax
jne 0x41793a
push str.Unable_to_load_CMP_WaitNoPendingInstallEvents_from_ghSetupLib_n
jmp 0x41793f
push str.Successfully_loadedCMP_WaitNoPendingInstallEvents_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.SetupDiEnumDeviceInterfaces
push dword [0x456300]
call edi
test eax, eax
mov dword [0x456250], eax
jne 0x417966
push str.Unable_to_load_SetupDiEnumDeviceInterfaces_from_ghSetupLib_n
jmp 0x41796b
push str.Successfully_loadedSetupDiEnumDeviceInterfaces_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.SetupDiOpenDeviceInterfaceRegKey
push dword [0x456300]
call edi
test eax, eax
mov dword [0x4562a8], eax
jne 0x417992
push str.Unable_to_load_SetupDiOpenDeviceInterfaceRegKey_from_ghSetupLib_n
jmp 0x417997
push str.Successfully_loadedSetupDiOpenDeviceInterfaceRegKey_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.SetupDiDestroyDeviceInfoList
push dword [0x456300]
call edi
test eax, eax
mov dword [0x45629c], eax
jne 0x4179be
push str.Unable_to_load_SetupDiDestroyDeviceInfoList_from_ghSetupLib_n
jmp 0x4179c3
push str.Successfully_loadedSetupDiDestroyDeviceInfoList_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.SetupDiBuildClassInfoList
push dword [0x456300]
call edi
test eax, eax
mov dword [0x456274], eax
jne 0x4179ea
push str.Unable_to_load_SetupDiBuildClassInfoList_from_ghSetupLib_n
jmp 0x4179ef
push str.Successfully_loadedSetupDiBuildClassInfoList_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.SetupDiEnumDeviceInfo
push dword [0x456300]
call edi
test eax, eax
mov dword [0x4562e0], eax
jne 0x417a16
push str.Unable_to_load_SetupDiEnumDeviceInfo_from_ghSetupLib_n
jmp 0x417a1b
push str.Successfully_loadedSetupDiEnumDeviceInfo_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.SetupDiDestroyDriverInfoList
push dword [0x456300]
call edi
test eax, eax
mov dword [0x456270], eax
jne 0x417a42
push str.Unable_to_load_SetupDiDestroyDriverInfoList_from_ghSetupLib_n
jmp 0x417a47
push str.Successfully_loadedSetupDiDestroyDriverInfoList_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.SetupOpenFileQueue
push dword [0x456300]
call edi
test eax, eax
mov dword [0x456280], eax
jne 0x417a6e
push str.Unable_to_load_SetupOpenFileQueue_from_ghSetupLib_n
jmp 0x417a73
push str.Successfully_loadedSetupOpenFileQueue_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.SetupCloseFileQueue
push dword [0x456300]
call edi
test eax, eax
mov dword [0x4562c8], eax
jne 0x417a9a
push str.Unable_to_load_SetupCloseFileQueue_from_ghSetupLib_n
jmp 0x417a9f
push str.Successfully_loadedSetupCloseFileQueue_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.SetupDiOpenClassRegKey
push dword [0x456300]
call edi
test eax, eax
mov dword [0x456278], eax
jne 0x417ac6
push str.Unable_to_load_SetupDiOpenClassRegKey_from_ghSetupLib_n
jmp 0x417acb
push str.Successfully_loadedSetupDiOpenClassRegKey_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.SetupDiRemoveDevice
push dword [0x456300]
call edi
test eax, eax
mov dword [0x4562d4], eax
jne 0x417af2
push str.Unable_to_load_SetupDiRemoveDevice_from_ghSetupLib_n
jmp 0x417af7
push str.Successfully_loadedSetupDiRemoveDevice_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
cmp dword [0x456304], 0
jne 0x417ce7
push str.cfgmgr32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x456304], eax
jne 0x417b34
push str.Unable_to_load_cfgmgr32.dll_n
push esi
call fcn.0040ba1f
pop ecx
pop ecx
jmp 0x417ce7
push str.CM_Get_Device_IDA
push eax
call edi
test eax, eax
mov dword [0x4562b8], eax
jne 0x417b4c
push str.Unable_to_load_CM_Get_Device_ID_from_ghConfigLib_n
jmp 0x417b51
push str.Successfully_loaded_CM_Get_Device_ID_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.CM_Get_Device_ID_Size
push dword [0x456304]
call edi
test eax, eax
mov dword [0x456298], eax
jne 0x417b78
push str.Unable_to_load_CM_Get_Device_ID_Size_from_ghConfigLib_n
jmp 0x417b7d
push str.Successfully_loadedCM_Get_Device_ID_Size_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.CM_Get_Parent
push dword [0x456304]
call edi
test eax, eax
mov dword [0x4562ac], eax
jne 0x417ba4
push str.Unable_to_load_CM_Get_Parent_from_ghConfigLib_n
jmp 0x417ba9
push str.Successfully_loadedCM_Get_Parent_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.CM_Get_Child
push dword [0x456304]
call edi
test eax, eax
mov dword [0x4562a0], eax
jne 0x417bd0
push str.Unable_to_load_CM_Get_Child_from_ghConfigLib_n
jmp 0x417bd5
push str.Successfully_loadedCM_Get_Child_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.CM_Get_Sibling
push dword [0x456304]
call edi
test eax, eax
mov dword [0x4562cc], eax
jne 0x417bfc
push str.Unable_to_load_CM_Get_Sibling_from_ghConfigLib_n
jmp 0x417c01
push str.Successfully_loadedCM_Get_Sibling_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.CM_Get_DevNode_Status
push dword [0x456304]
call edi
test eax, eax
mov dword [0x456264], eax
jne 0x417c28
push str.Unable_to_load_CM_Get_DevNode_Status_from_ghConfigLib_n
jmp 0x417c2d
push str.Successfully_loadedCM_Get_DevNode_Status_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.CM_Locate_DevNodeA
push dword [0x456304]
call edi
test eax, eax
mov dword [0x456260], eax
jne 0x417c54
push str.Unable_to_load_CM_Locate_DevNode_from_ghConfigLib_n
jmp 0x417c59
push str.Successfully_loaded_CM_Locate_DevNode_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.CM_Reenumerate_DevNode_Ex
push dword [0x456304]
call edi
test eax, eax
mov dword [0x4562c4], eax
jne 0x417c80
push str.Unable_to_load_CM_Reenumerate_DevNode_Ex_from_ghConfigLib_n
jmp 0x417c85
push str.Successfully_loadedCM_Reenumerate_DevNode_Ex_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.CM_Reenumerate_DevNode
push dword [0x456304]
call edi
test eax, eax
mov dword [0x4562e8], eax
jne 0x417cac
push str.Unable_to_load_CM_Reenumerate_DevNode_from_ghConfigLib_n
jmp 0x417cb1
push str.Successfully_loadedCM_Reenumerate_DevNode_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.CM_Locate_DevNode_ExA
push dword [0x456304]
call edi
test eax, eax
mov dword [0x456258], eax
jne 0x417cd8
push str.Unable_to_load_CM_Locate_DevNode_Ex_from_ghConfigLib_n
jmp 0x417cdd
push str.Successfully_loaded_CM_Locate_DevNode_Ex_n
push ebp
push esi
call fcn.004018f0
add esp, 0xc
push str.OpenSetupAndConfigLib_returns_n
push esi
call fcn.0040b895
pop ecx
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
ret