Function at 0x4523b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e8f8f
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x672014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x34], edi
lea ecx, [ebp - 0x2c]
call fcn.00407dfc
mov dword [ebp - 4], 0
mov byte [ebp - 0x30], 0
push 0x19
push str.srl::SetupLib::Initialize
lea ecx, [ebp - 0x2c]
call fcn.004075f5
mov dword [ebp - 4], 1
mov eax, dword [0x67e3a8]
test eax, eax
jne 0x45243f
push 0x68
call fcn.0046f39a
add esp, 4
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x452434
push ecx
mov ecx, eax
call fcn.0041d120
jmp 0x452436
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x67e3a8], eax
cmp dword [eax + 4], 4
jl 0x45244e
push ecx
lea ecx, [ebp - 0x30]
call fcn.004127e0
mov byte [ebp - 4], 3
cmp byte [edi + 0x1c], 0
jne 0x45266e
push str.setupapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x20], eax
test eax, eax
je 0x4525b0
push str.SetupDiGetClassDevsW
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [edi + 0x24], eax
push str.SetupDiEnumDeviceInfo
push dword [edi + 0x20]
call esi
mov dword [edi + 0x28], eax
push str.SetupDiGetDeviceRegistryPropertyW
push dword [edi + 0x20]
call esi
mov dword [edi + 0x2c], eax
push str.SetupDiGetDeviceInstanceIdW
push dword [edi + 0x20]
call esi
mov dword [edi + 0x30], eax
push str.SetupFindFirstLineW
push dword [edi + 0x20]
call esi
mov dword [edi + 0x34], eax
push str.SetupFindNextLine
push dword [edi + 0x20]
call esi
mov dword [edi + 0x38], eax
push str.SetupGetLineTextW
push dword [edi + 0x20]
call esi
mov dword [edi + 0x3c], eax
push str.SetupOpenInfFileW
push dword [edi + 0x20]
call esi
mov dword [edi + 0x40], eax
push str.SetupCloseInfFile
push dword [edi + 0x20]
call esi
mov dword [edi + 0x44], eax
push str.SetupDiOpenDevRegKey
push dword [edi + 0x20]
call esi
mov dword [edi + 0x48], eax
push str.SetupDiDestroyDeviceInfoList
push dword [edi + 0x20]
call esi
mov dword [edi + 0x4c], eax
cmp dword [edi + 0x24], 0
je 0x45254e
cmp dword [edi + 0x28], 0
je 0x45254e
cmp dword [edi + 0x2c], 0
je 0x45254e
cmp dword [edi + 0x30], 0
je 0x45254e
cmp dword [edi + 0x34], 0
je 0x45254e
cmp dword [edi + 0x38], 0
je 0x45254e
cmp dword [edi + 0x3c], 0
je 0x45254e
cmp dword [edi + 0x40], 0
je 0x45254e
cmp dword [edi + 0x44], 0
je 0x45254e
cmp dword [edi + 0x48], 0
je 0x45254e
test eax, eax
je 0x45254e
mov byte [edi + 0x1c], 1
jmp 0x45266e
call fcn.0041d300
cmp dword [eax + 4], 1
jl 0x45266e
push 1
push ecx
call fcn.0041d300
add esp, 4
mov ecx, eax
call fcn.0041d580
mov esi, eax
call fcn.0041d300
mov ecx, dword [esi + 0x10]
mov byte [ebp - 4], 4
cmp dword [esi + 0x14], 8
jb 0x452585
mov esi, dword [esi]
mov byte [ebp - 4], 3
push ecx
mov edx, esi
mov ecx, eax
call fcn.004130d0
add esp, 4
mov edx, str.Error_getting_proc_addresses_from_Setup_library.
mov ecx, eax
call fcn.00412d50
push eax
call fcn.00414150
add esp, 4
jmp 0x45266e
call fcn.0041d300
cmp dword [eax + 4], 1
jl 0x45266e
push 1
push ecx
call fcn.0041d300
add esp, 4
mov ecx, eax
call fcn.0041d580
mov esi, eax
call fcn.0041d300
mov ecx, dword [esi + 0x10]
mov byte [ebp - 4], 5
cmp dword [esi + 0x14], 8
jb 0x4525e7
mov esi, dword [esi]
mov byte [ebp - 4], 3
push ecx
mov edx, esi
mov ecx, eax
call fcn.004130d0
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
mov edx, str.Failure_to_load_setupapi.dll:
mov ecx, esi
call fcn.00412d50
add esp, 4
mov ecx, eax
call fcn.00415650
push eax
call fcn.00414150
add esp, 4
jmp 0x45266e
mov dword [ebp - 4], 1
mov bl, byte [edi + 0x1c]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004141f0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005b5208
mov esp, ebp
pop ebp
ret