Function at 0x416650
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x556c88
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5d7b20]
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
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x3c], 0
test edi, edi
je 0x4169b4
test esi, esi
je 0x4169b4
push str.FindDeviceByProperty_called._n
push 0x56dce8
call fcn.00415550
push edi
push str.___property___d_n
call fcn.00415550
push esi
push str.___lpszPropertyValue___s_n
call fcn.00415550
mov ebx, dword [ebp + 0x10]
push ebx
push str.___bPresent___d_n
call fcn.00415550
add esp, 0x20
push str.setupapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
jne 0x416701
push str.FindDeviceByProperty_LoadLibrary__setupapi.dll___failed._n
push 0x56dce8
call fcn.00415550
add esp, 8
push 0x3e8
jmp 0x4169b6
push str.FindDeviceByProperty_LoadLibrary__setupapi.dll___succeeded._n
push 0x56dce8
call fcn.00415550
add esp, 8
push str.SetupDiGetClassDevsW
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov edi, eax
test edi, edi
je 0x416799
mov eax, dword [ebp - 0x30]
push str.SetupDiEnumDeviceInfo
push eax
call esi
mov dword [ebp - 0x40], eax
test eax, eax
je 0x416799
mov ecx, dword [ebp - 0x30]
push str.SetupDiGetDeviceRegistryPropertyW
push ecx
call esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x416799
mov edx, dword [ebp - 0x30]
push str.SetupDiCallClassInstaller
push edx
call esi
test eax, eax
je 0x416799
mov eax, dword [ebp - 0x30]
push str.SetupDiDestroyDeviceInfoList
push eax
call esi
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x416799
mov ecx, dword [ebp - 0x30]
push str.SetupDiSetClassInstallParamsW
push ecx
call esi
test eax, eax
je 0x416799
mov edx, dword [ebp - 0x30]
push str.SetupDiOpenDevRegKey
push edx
call esi
test eax, eax
je 0x416799
mov eax, dword [ebp - 0x30]
push str.SetupDiRemoveDevice
push eax
call esi
test eax, eax
jne 0x4167bf
push str.FindDeviceByProperty_ErrorExit_GetProc._n
push 0x56dce8
call fcn.00415550
mov ecx, dword [ebp - 0x30]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x3e9
jmp 0x4169b6
push str.FindDeviceByProperty_GetProcAddress_succeeded._n
push 0x56dce8
call fcn.00415550
add esp, 8
xor eax, eax
test ebx, ebx
setne al
lea eax, [eax + eax + 4]
push eax
push 0
push 0
push 0
call edi
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41680d
push str.FindDeviceByProperty_pSetupDiGetClassDevsA_failed._n
push 0x56dce8
call fcn.00415550
mov edx, dword [ebp - 0x30]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4169bc
lea eax, [ebp - 0x2c]
push eax
push 0
push ebx
mov dword [ebp - 0x2c], 0x1c
mov dword [ebp - 0x38], 0
call dword [ebp - 0x40]
test eax, eax
je 0x41698f
xor esi, esi
mov dword [ebp - 0x34], esi
mov edx, dword [ebp - 0x34]
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp + 8]
push edx
push esi
lea eax, [ebp - 0x50]
push eax
push ecx
lea edx, [ebp - 0x2c]
push edx
push ebx
call dword [ebp - 0x44]
test eax, eax
je 0x416853
test esi, esi
jne 0x4168c6
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xd
je 0x4168cc
call edi
cmp eax, 0x7a
jne 0x416897
test esi, esi
je 0x416874
push esi
call fcn.0043e500
add esp, 4
mov eax, dword [ebp - 0x34]
add eax, 0xa
push 0x11eb
mov dword [ebp - 0x34], eax
add eax, 2
push str.DevConFunc.cpp
push eax
call fcn.0043e4e0
add esp, 0xc
mov esi, eax
jmp 0x416832
call edi
test eax, eax
jne 0x416982
test esi, esi
jne 0x416986
mov eax, dword [ebp - 0x34]
push 0x11f0
push str.DevConFunc.cpp
push eax
call fcn.0043e4e0
add esp, 0xc
mov esi, eax
jmp 0x416832
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0xd
je 0x416917
test esi, esi
je 0x416924
cmp word [esi], 0
mov edi, esi
je 0x41691b
nop
mov ecx, dword [ebp - 0x34]
shr ecx, 1
lea edx, [esi + ecx*2]
cmp edi, edx
jae 0x41691b
call fcn.0040ad20
mov eax, dword [ebp - 0x48]
push edi
push eax
call fcn.0053e2bf
add esp, 8
test eax, eax
je 0x41693e
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [edi + eax*2 + 2], 0
lea edi, [edi + eax*2 + 2]
jne 0x4168e0
jmp 0x41691b
test esi, esi
je 0x416924
push esi
call fcn.0043e500
add esp, 4
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x2c]
inc eax
push ecx
push eax
push ebx
mov dword [ebp - 0x38], eax
call dword [ebp - 0x40]
test eax, eax
jne 0x41682d
jmp 0x41698f
push 0xa
lea ecx, [ebp - 0x6c]
call fcn.0045900d
push edi
push str.FindDeviceByProperty____p____s__n____Hit_____
mov dword [ebp - 4], 0
call fcn.00415550
add esp, 8
mov dword [ebp - 0x3c], 1
test esi, esi
je 0x416971
push esi
call fcn.0043e500
add esp, 4
lea ecx, [ebp - 0x6c]
mov dword [ebp - 4], 0xffffffff
call fcn.0045913b
jmp 0x41698f
test esi, esi
je 0x41698f
push esi
call fcn.0043e500
add esp, 4
push str.FindDeviceByProperty_cleanup_DeviceInfo._n
push 0x56dce8
call fcn.00415550
add esp, 8
push ebx
call dword [ebp - 0x4c]
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x3c]
jmp 0x4169be
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
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.0053e1ad
mov esp, ebp
pop ebp
ret