Function at 0x42217c
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 0x471d20
push str.OpenSetupAndConfigLib_n
push esi
call fcn.00415c75
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop ecx
xor eax, eax
cmp dword [0x482368], eax
pop ecx
push 0x20
pop ebp
je 0x4221e1
cmp dword [0x48236c], eax
je 0x4221e1
cmp dword [0x482370], eax
je 0x4221ee
cmp dword [0x482374], eax
jne 0x422a86
call fcn.0041671c
test eax, eax
jne 0x422a86
call fcn.00416748
test eax, eax
jne 0x422a86
cmp dword [0x482370], 0
jne 0x42233f
push str.kernel32.dll
call ebx
test eax, eax
mov dword [0x482370], eax
jne 0x422210
push str.Unable_to_load_kernel32.dll_n
push esi
call fcn.00415dff
pop ecx
pop ecx
jmp 0x42233f
push str.GetLongPathNameA
push eax
call edi
test eax, eax
mov dword [0x4822c4], eax
jne 0x422228
push str.Unable_to_load_GetLongPathName_from_ghKernelLib_n
jmp 0x42222d
push str.Successfully_loaded_GetLongPathName_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.GetDiskFreeSpaceExA
push dword [0x482370]
call edi
test eax, eax
mov dword [0x4822f8], eax
jne 0x422254
push str.Unable_to_load_GetDiskFreeSpaceEx_from_ghKernelLib_n
jmp 0x422259
push str.Successfully_loaded_GetDiskFreeSpaceEx_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.CreateToolhelp32Snapshot
push dword [0x482370]
call edi
test eax, eax
mov dword [0x4822f0], eax
jne 0x422280
push str.Unable_to_load_CreateToolhelp32Snapshot_from_ghKernelLib_n
jmp 0x422285
push str.Successfully_loadedCreateToolhelp32Snapshot_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.Process32First
push dword [0x482370]
call edi
test eax, eax
mov dword [0x4822d0], eax
jne 0x4222ac
push str.Unable_to_load_Process32First_from_ghKernelLib_n
jmp 0x4222b1
push str.Successfully_loadedProcess32First_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.Process32Next
push dword [0x482370]
call edi
test eax, eax
mov dword [0x482340], eax
jne 0x4222d8
push str.Unable_to_load_Process32Next_from_ghKernelLib_n
jmp 0x4222dd
push str.Successfully_loadedProcess32Next_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.Wow64EnableWow64FsRedirection
push dword [0x482370]
call edi
test eax, eax
mov dword [0x482364], eax
jne 0x422304
push str.Unable_to_load_Wow64EnableWow64FsRedirection_from_ghKernelLib_n
jmp 0x422309
push str.Successfully_loadedWow64EnableWow64FsRedirection_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.GetSystemWow64DirectoryA
push dword [0x482370]
call edi
test eax, eax
mov dword [0x48231c], eax
jne 0x422330
push str.Unable_to_load_GetSystemWow64Directory_from_ghKernelLib_n
jmp 0x422335
push str.Successfully_loaded_GetSystemWow64Directory_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
cmp dword [0x482374], 0
jne 0x4223a9
call fcn.004165ed
test eax, eax
je 0x42235a
call fcn.0041660b
test eax, eax
je 0x422363
call fcn.00416748
test eax, eax
je 0x4223a9
push str.newdev.dll
call ebx
test eax, eax
mov dword [0x482374], eax
jne 0x422382
push str.Unable_to_load_newdev.dll_n
push esi
call fcn.00415dff
pop ecx
pop ecx
jmp 0x4223a9
push str.UpdateDriverForPlugAndPlayDevicesA
push eax
call edi
test eax, eax
mov dword [0x4822fc], eax
jne 0x42239a
push str.Unable_to_load_UpdateDriverForPlugAndPlayDevices_from_ghNewdevLib_n
jmp 0x42239f
push str.Successfully_loaded_UpdateDriverForPlugAndPlayDevices_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
cmp dword [0x482368], 0
jne 0x422893
push str.setupapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x482368], eax
jne 0x4223dc
push str.Unable_to_load_setupapi.dll_n
push esi
call fcn.00415dff
pop ecx
pop ecx
jmp 0x422893
push str.SetupDiGetDeviceInstallParamsA
push eax
call edi
test eax, eax
mov dword [0x482354], eax
jne 0x4223f4
push str.Unable_to_load_SetupDiGetDeviceInstallParams_from_ghSetupLib_n
jmp 0x4223f9
push str.Successfully_loaded_SetupDiGetDeviceInstallParams_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.SetupDiGetDeviceRegistryPropertyA
push dword [0x482368]
call edi
test eax, eax
mov dword [0x482338], eax
jne 0x422420
push str.Unable_to_load_SetupDiGetDeviceRegistryProperty_from_ghSetupLib_n
jmp 0x422425
push str.Successfully_loaded_SetupDiGetDeviceRegistryProperty_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.SetupDiGetSelectedDriverA
push dword [0x482368]
call edi
test eax, eax
mov dword [0x4822ec], eax
jne 0x42244c
push str.Unable_to_load_SetupDiGetSelectedDriver_from_ghSetupLib_n
jmp 0x422451
push str.Successfully_loaded_SetupDiGetSelectedDriver_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.SetupCopyOEMInfA
push dword [0x482368]
call edi
test eax, eax
mov dword [0x48235c], eax
jne 0x422478
push str.Unable_to_load_SetupCopyOEMInf_from_ghSetupLib_n
jmp 0x42247d
push str.Successfully_loaded_SetupCopyOEMInf_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.SetupFreeSourceListA
push dword [0x482368]
call edi
test eax, eax
mov dword [0x4822f4], eax
jne 0x4224a4
push str.Unable_to_load_SetupFreeSourceList_from_ghSetupLib_n
jmp 0x4224a9
push str.Successfully_loaded_SetupFreeSourceList_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.SetupQuerySourceListA
push dword [0x482368]
call edi
test eax, eax
mov dword [0x482344], eax
jne 0x4224d0
push str.Unable_to_load_SetupQuerySourceList_from_ghSetupLib_n
jmp 0x4224d5
push str.Successfully_loaded_SetupQuerySourceList_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
mov ebx, str.SetupDiOpenClassRegKeyExA
push ebx
push dword [0x482368]
call edi
test eax, eax
mov dword [0x482360], eax
jne 0x4224fd
push str.Unable_to_load_SetupDiOpenClassRegKeyEx_from_ghSetupLib_n
jmp 0x422502
push str.Successfully_loaded_SetupDiOpenClassRegKeyEx_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.SetupDiGetClassDevsA
push dword [0x482368]
call edi
test eax, eax
mov dword [0x4822bc], eax
jne 0x422529
push str.Unable_to_load_SetupDiGetClassDevs_from_ghSetupLib_n
jmp 0x42252e
push str.Successfully_loaded_SetupDiGetClassDevs_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.SetupDiGetDeviceInterfaceDetailA
push dword [0x482368]
call edi
test eax, eax
mov dword [0x482318], eax
jne 0x422555
push str.Unable_to_load_SetupDiGetDeviceInterfaceDetail_from_ghSetupLib_n
jmp 0x42255a
push str.Successfully_loaded_SetupDiGetDeviceInterfaceDetail_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push ebx
push dword [0x482368]
call edi
test eax, eax
mov dword [0x482360], eax
jne 0x42257d
push str.Unable_to_load_SetupDiOpenClassRegKeyEx_from_ghSetupLib_n
jmp 0x422582
push str.Successfully_loaded_SetupDiOpenClassRegKeyEx_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.SetupDiClassNameFromGuidA
push dword [0x482368]
call edi
test eax, eax
mov dword [0x482324], eax
jne 0x4225a9
push str.Unable_to_load_SetupDiClassNameFromGuid_from_ghSetupLib_n
jmp 0x4225ae
push str.Successfully_loaded_SetupDiClassNameFromGuid_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.SetupDiGetDeviceInstanceIdA
push dword [0x482368]
call edi
test eax, eax
mov dword [0x482328], eax
jne 0x4225d5
push str.Unable_to_load_SetupDiGetDeviceInstanceId_from_ghSetupLib_n
jmp 0x4225da
push str.Successfully_loaded_SetupDiGetDeviceInstanceId_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.SetupDiGetClassInstallParamsA
push dword [0x482368]
call edi
test eax, eax
mov dword [0x48234c], eax
jne 0x422601
push str.Unable_to_load_SetupDiGetClassInstallParams_from_ghSetupLib_n
jmp 0x422606
push str.Successfully_loaded_SetupDiGetClassInstallParams_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.SetupDiInstallClassExA
push dword [0x482368]
call edi
test eax, eax
mov dword [0x482358], eax
jne 0x42262d
push str.Unable_to_load_SetupDiInstallClassEx_from_ghSetupLib_n
jmp 0x422632
push str.Successfully_loaded_SetupDiInstallClassEx_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.SetupAddToSourceListA
push dword [0x482368]
call edi
test eax, eax
mov dword [0x4822d4], eax
jne 0x422659
push str.Unable_to_load_SetupAddToSourceList_from_ghSetupLib_n
jmp 0x42265e
push str.Successfully_loaded_SetupAddToSourceList_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
call fcn.004166db
test eax, eax
jne 0x4226af
call fcn.0041660b
test eax, eax
jne 0x4226af
call fcn.00416629
test eax, eax
jne 0x4226af
push str.SetupUninstallOEMInfA
push dword [0x482368]
call edi
test eax, eax
mov dword [0x48230c], eax
jne 0x4226a0
push str.Unable_to_load_SetupUninstallOEMInf_from_ghSetupLib_n
jmp 0x4226a5
push str.Successfully_loaded_SetupUninstallOEMInf_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.CMP_WaitNoPendingInstallEvents
push dword [0x482368]
call edi
test eax, eax
mov dword [0x4822e4], eax
jne 0x4226cc
push str.Unable_to_load_CMP_WaitNoPendingInstallEvents_from_ghSetupLib_n
jmp 0x4226d1
push str.Successfully_loadedCMP_WaitNoPendingInstallEvents_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.SetupDiEnumDeviceInterfaces
push dword [0x482368]
call edi
test eax, eax
mov dword [0x4822b8], eax
jne 0x4226f8
push str.Unable_to_load_SetupDiEnumDeviceInterfaces_from_ghSetupLib_n
jmp 0x4226fd
push str.Successfully_loadedSetupDiEnumDeviceInterfaces_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.SetupDiOpenDeviceInterfaceRegKey
push dword [0x482368]
call edi
test eax, eax
mov dword [0x482310], eax
jne 0x422724
push str.Unable_to_load_SetupDiOpenDeviceInterfaceRegKey_from_ghSetupLib_n
jmp 0x422729
push str.Successfully_loadedSetupDiOpenDeviceInterfaceRegKey_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.SetupDiDestroyDeviceInfoList
push dword [0x482368]
call edi
test eax, eax
mov dword [0x482304], eax
jne 0x422750
push str.Unable_to_load_SetupDiDestroyDeviceInfoList_from_ghSetupLib_n
jmp 0x422755
push str.Successfully_loadedSetupDiDestroyDeviceInfoList_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.SetupDiBuildClassInfoList
push dword [0x482368]
call edi
test eax, eax
mov dword [0x4822dc], eax
jne 0x42277c
push str.Unable_to_load_SetupDiBuildClassInfoList_from_ghSetupLib_n
jmp 0x422781
push str.Successfully_loadedSetupDiBuildClassInfoList_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.SetupDiEnumDeviceInfo
push dword [0x482368]
call edi
test eax, eax
mov dword [0x482348], eax
jne 0x4227a8
push str.Unable_to_load_SetupDiEnumDeviceInfo_from_ghSetupLib_n
jmp 0x4227ad
push str.Successfully_loadedSetupDiEnumDeviceInfo_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.SetupDiDestroyDriverInfoList
push dword [0x482368]
call edi
test eax, eax
mov dword [0x4822d8], eax
jne 0x4227d4
push str.Unable_to_load_SetupDiDestroyDriverInfoList_from_ghSetupLib_n
jmp 0x4227d9
push str.Successfully_loadedSetupDiDestroyDriverInfoList_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.SetupOpenFileQueue
push dword [0x482368]
call edi
test eax, eax
mov dword [0x4822e8], eax
jne 0x422800
push str.Unable_to_load_SetupOpenFileQueue_from_ghSetupLib_n
jmp 0x422805
push str.Successfully_loadedSetupOpenFileQueue_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.SetupCloseFileQueue
push dword [0x482368]
call edi
test eax, eax
mov dword [0x482330], eax
jne 0x42282c
push str.Unable_to_load_SetupCloseFileQueue_from_ghSetupLib_n
jmp 0x422831
push str.Successfully_loadedSetupCloseFileQueue_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.SetupDiOpenClassRegKey
push dword [0x482368]
call edi
test eax, eax
mov dword [0x4822e0], eax
jne 0x422858
push str.Unable_to_load_SetupDiOpenClassRegKey_from_ghSetupLib_n
jmp 0x42285d
push str.Successfully_loadedSetupDiOpenClassRegKey_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.SetupDiRemoveDevice
push dword [0x482368]
call edi
test eax, eax
mov dword [0x48233c], eax
jne 0x422884
push str.Unable_to_load_SetupDiRemoveDevice_from_ghSetupLib_n
jmp 0x422889
push str.Successfully_loadedSetupDiRemoveDevice_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
cmp dword [0x48236c], 0
jne 0x422a79
push str.cfgmgr32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x48236c], eax
jne 0x4228c6
push str.Unable_to_load_cfgmgr32.dll_n
push esi
call fcn.00415dff
pop ecx
pop ecx
jmp 0x422a79
push str.CM_Get_Device_IDA
push eax
call edi
test eax, eax
mov dword [0x482320], eax
jne 0x4228de
push str.Unable_to_load_CM_Get_Device_ID_from_ghConfigLib_n
jmp 0x4228e3
push str.Successfully_loaded_CM_Get_Device_ID_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.CM_Get_Device_ID_Size
push dword [0x48236c]
call edi
test eax, eax
mov dword [0x482300], eax
jne 0x42290a
push str.Unable_to_load_CM_Get_Device_ID_Size_from_ghConfigLib_n
jmp 0x42290f
push str.Successfully_loadedCM_Get_Device_ID_Size_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.CM_Get_Parent
push dword [0x48236c]
call edi
test eax, eax
mov dword [0x482314], eax
jne 0x422936
push str.Unable_to_load_CM_Get_Parent_from_ghConfigLib_n
jmp 0x42293b
push str.Successfully_loadedCM_Get_Parent_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.CM_Get_Child
push dword [0x48236c]
call edi
test eax, eax
mov dword [0x482308], eax
jne 0x422962
push str.Unable_to_load_CM_Get_Child_from_ghConfigLib_n
jmp 0x422967
push str.Successfully_loadedCM_Get_Child_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.CM_Get_Sibling
push dword [0x48236c]
call edi
test eax, eax
mov dword [0x482334], eax
jne 0x42298e
push str.Unable_to_load_CM_Get_Sibling_from_ghConfigLib_n
jmp 0x422993
push str.Successfully_loadedCM_Get_Sibling_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.CM_Get_DevNode_Status
push dword [0x48236c]
call edi
test eax, eax
mov dword [0x4822cc], eax
jne 0x4229ba
push str.Unable_to_load_CM_Get_DevNode_Status_from_ghConfigLib_n
jmp 0x4229bf
push str.Successfully_loadedCM_Get_DevNode_Status_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.CM_Locate_DevNodeA
push dword [0x48236c]
call edi
test eax, eax
mov dword [0x4822c8], eax
jne 0x4229e6
push str.Unable_to_load_CM_Locate_DevNode_from_ghConfigLib_n
jmp 0x4229eb
push str.Successfully_loaded_CM_Locate_DevNode_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.CM_Reenumerate_DevNode_Ex
push dword [0x48236c]
call edi
test eax, eax
mov dword [0x48232c], eax
jne 0x422a12
push str.Unable_to_load_CM_Reenumerate_DevNode_Ex_from_ghConfigLib_n
jmp 0x422a17
push str.Successfully_loadedCM_Reenumerate_DevNode_Ex_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.CM_Reenumerate_DevNode
push dword [0x48236c]
call edi
test eax, eax
mov dword [0x482350], eax
jne 0x422a3e
push str.Unable_to_load_CM_Reenumerate_DevNode_from_ghConfigLib_n
jmp 0x422a43
push str.Successfully_loadedCM_Reenumerate_DevNode_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.CM_Locate_DevNode_ExA
push dword [0x48236c]
call edi
test eax, eax
mov dword [0x4822c0], eax
jne 0x422a6a
push str.Unable_to_load_CM_Locate_DevNode_Ex_from_ghConfigLib_n
jmp 0x422a6f
push str.Successfully_loaded_CM_Locate_DevNode_Ex_n
push ebp
push esi
call fcn.00401200
add esp, 0xc
push str.OpenSetupAndConfigLib_returns_n
push esi
call fcn.00415c75
pop ecx
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
ret