Function at 0x111137a0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x111e5568
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x11279148]
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.setupapi.dll
mov dword [ebp - 0x50], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor esi, esi
mov ebx, eax
xor edi, edi
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], edi
push 0x112240fc
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x38], esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x44], eax
test eax, eax
je 0x11113919
push 0x12
push edi
push edi
push str._az
call eax
mov dword [ebp - 0x30], eax
cmp eax, 0xffffffff
je 0x11113a2a
mov dword [ebp - 0x2c], 0x1c
mov dword [ebp - 0x34], 0
lea ecx, [ecx]
cmp dword [ebp - 0x3c], 0
jne 0x1111384d
push str.SetupDiEnumDeviceInterfaces
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x1111392d
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
push ecx
push str._az
push 0
push edx
call dword [ebp - 0x3c]
test eax, eax
je 0x11113935
test esi, esi
je 0x11113879
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
test edi, edi
jne 0x11113896
push str.SetupDiGetDeviceInterfaceDetailW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov dword [ebp - 0x40], edi
test edi, edi
je 0x11113957
mov edx, dword [ebp - 0x30]
push 0
lea eax, [ebp - 0x38]
push eax
push 0
push 0
lea ecx, [ebp - 0x2c]
push ecx
push edx
call edi
test eax, eax
jne 0x111138bd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x11113997
mov eax, dword [ebp - 0x38]
push eax
mov ebx, eax
call dword [sym.imp.MSVCR100.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
je 0x111139b8
mov dword [esi], 6
test edi, edi
jne 0x111138f8
mov eax, dword [ebp - 0x4c]
push str.SetupDiGetDeviceInterfaceDetailW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov dword [ebp - 0x40], edi
test edi, edi
je 0x11113964
mov eax, dword [ebp - 0x30]
push 0
lea ecx, [ebp - 0x38]
push ecx
push ebx
push esi
lea edx, [ebp - 0x2c]
push edx
push eax
call edi
test eax, eax
je 0x1111396c
inc dword [ebp - 0x34]
mov ebx, dword [ebp - 0x4c]
jmp 0x11113830
push 0x78
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 0x30], 0
jmp 0x1111381f
push 0x78
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x103
je 0x111139d6
push esi
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
xor esi, esi
jmp 0x11113830
push 0x78
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x111138ae
push 0x78
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp - 0x30]
push edx
lea ecx, [ebp - 0x4c]
call fcn.11113740
push esi
call dword [sym.imp.MSVCR100.dll_free]
mov eax, dword [ebp - 0x4c]
add esp, 4
test eax, eax
je 0x111139b1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x11113a4f
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x4c]
call fcn.11113740
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x111139b1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x11113a4f
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x4c]
call fcn.11113740
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x111139b1
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x11113a4f
push str.SetupDiDestroyDeviceInfoList
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x111139f1
mov ecx, dword [ebp - 0x30]
push ecx
call eax
jmp 0x111139f9
push 0x78
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x11113a2a
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea edx, [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp - 0x50]
mov dword [ecx], eax
push esi
cmp eax, 0xffffffff
jne 0x11113a39
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
test ebx, ebx
je 0x11113a35
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x11113a4f
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
test ebx, ebx
je 0x11113a4d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
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.111d9022
mov esp, ebp
pop ebp
ret