Function at 0x408af0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b587
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4394c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push str.advapi32.dll
lea ecx, [esi + 0x48]
call fcn.00409130
push str.setupapi.dll
lea ecx, [esi + 0x4c]
mov dword [ebp - 4], 0
call fcn.00409130
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 1
push str.newdev.dll
call fcn.00409130
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 2
push str.cfgmgr32.dll
call fcn.00409130
lea ecx, [esi + 0x58]
mov byte [ebp - 4], 3
push str.printui.dll
call fcn.00409130
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
push 0x10
push str.OpenProcessToken
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004020d0
mov ecx, dword [esi + 0x48]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test ecx, ecx
je 0x408bb5
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x408baf
lea eax, [ebp - 0x28]
push eax
push ecx
call edi
jmp 0x408bb7
xor eax, eax
cmp dword [ebp - 0x14], 0x10
mov dword [esi + 4], eax
jb 0x408bcb
push dword [ebp - 0x28]
call fcn.00417533
add esp, 4
push 0x13
push str.GetTokenInformation
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004020d0
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x408c05
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x408bff
lea eax, [ebp - 0x28]
push eax
push ecx
call edi
jmp 0x408c07
xor eax, eax
cmp dword [ebp - 0x14], 0x10
mov dword [esi], eax
jb 0x408c1a
push dword [ebp - 0x28]
call fcn.00417533
add esp, 4
push 0x34
push str.ConvertStringSecurityDescriptorToSecurityDescriptorW
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004020d0
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x408c54
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x408c4e
lea eax, [ebp - 0x28]
push eax
push ecx
call edi
jmp 0x408c56
xor eax, eax
cmp dword [ebp - 0x14], 0x10
mov dword [esi + 8], eax
jb 0x408c6a
push dword [ebp - 0x28]
call fcn.00417533
add esp, 4
push 0x13
push str.SetupDiGetINFClassW
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004020d0
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x408ca4
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x408c9e
lea eax, [ebp - 0x28]
push eax
push ecx
call edi
jmp 0x408ca6
xor eax, eax
cmp dword [ebp - 0x14], 0x10
mov dword [esi + 0xc], eax
jb 0x408cba
push dword [ebp - 0x28]
call fcn.00417533
add esp, 4
push 0x1b
push str.SetupDiCreateDeviceInfoList
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004020d0
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x408cf4
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x408cee
lea eax, [ebp - 0x28]
push eax
push ecx
call edi
jmp 0x408cf6
xor eax, eax
cmp dword [ebp - 0x14], 0x10
mov dword [esi + 0x10], eax
jb 0x408d0a
push dword [ebp - 0x28]
call fcn.00417533
add esp, 4
push 0x18
push str.SetupDiCreateDeviceInfoW
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004020d0
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x408d44
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x408d3e
lea eax, [ebp - 0x28]
push eax
push ecx
call edi
jmp 0x408d46
xor eax, eax
cmp dword [ebp - 0x14], 0x10
mov dword [esi + 0x14], eax
jb 0x408d5a
push dword [ebp - 0x28]
call fcn.00417533
add esp, 4
push 0x21
push str.SetupDiSetDeviceRegistryPropertyW
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004020d0
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x408d94
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x408d8e
lea eax, [ebp - 0x28]
push eax
push ecx
call edi
jmp 0x408d96
xor eax, eax
cmp dword [ebp - 0x14], 0x10
mov dword [esi + 0x18], eax
jb 0x408daa
push dword [ebp - 0x28]
call fcn.00417533
add esp, 4
push 0x19
push 0x434e58
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004020d0
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x408de4
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x408dde
lea eax, [ebp - 0x28]
push eax
push ecx
call edi
jmp 0x408de6
xor eax, eax
cmp dword [ebp - 0x14], 0x10
mov dword [esi + 0x1c], eax
jb 0x408dfa
push dword [ebp - 0x28]
call fcn.00417533
add esp, 4
push 0x16
push 0x434e74
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004020d0
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x408e34
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x408e2e
lea eax, [ebp - 0x28]
push eax
push ecx
call edi
jmp 0x408e36
xor eax, eax
cmp dword [ebp - 0x14], 0x10
mov dword [esi + 0x20], eax
jb 0x408e4a
push dword [ebp - 0x28]
call fcn.00417533
add esp, 4
push 0x15
push 0x434e8c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004020d0
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x408e84
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x408e7e
lea eax, [ebp - 0x28]
push eax
push ecx
call edi
jmp 0x408e86
xor eax, eax
cmp dword [ebp - 0x14], 0x10
mov dword [esi + 0x24], eax
jb 0x408e9a
push dword [ebp - 0x28]
call fcn.00417533
add esp, 4
push 0x1f
push 0x434ea4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004020d0
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x408ed4
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x408ece
lea eax, [ebp - 0x28]
push eax
push ecx
call edi
jmp 0x408ed6
xor eax, eax
cmp dword [ebp - 0x14], 0x10
mov dword [esi + 0x28], eax
jb 0x408eea
push dword [ebp - 0x28]
call fcn.00417533
add esp, 4
push 0x21
push 0x434ec4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004020d0
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x408f24
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x408f1e
lea eax, [ebp - 0x28]
push eax
push ecx
call edi
jmp 0x408f26
xor eax, eax
cmp dword [ebp - 0x14], 0x10
mov dword [esi + 0x2c], eax
jb 0x408f3a
push dword [ebp - 0x28]
call fcn.00417533
add esp, 4
push 0x1d
push 0x434ee8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004020d0
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x408f74
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x408f6e
lea eax, [ebp - 0x28]
push eax
push ecx
call edi
jmp 0x408f76
xor eax, eax
cmp dword [ebp - 0x14], 0x10
mov dword [esi + 0x30], eax
jb 0x408f8a
push dword [ebp - 0x28]
call fcn.00417533
add esp, 4
push 0x22
push str.UpdateDriverForPlugAndPlayDevicesW
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004020d0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x408fc4
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x408fbe
lea eax, [ebp - 0x28]
push eax
push ecx
call edi
jmp 0x408fc6
xor eax, eax
cmp dword [ebp - 0x14], 0x10
mov dword [esi + 0x34], eax
jb 0x408fda
push dword [ebp - 0x28]
call fcn.00417533
add esp, 4
push 0x14
push 0x434f2c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004020d0
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x409014
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x40900e
lea eax, [ebp - 0x28]
push eax
push ecx
call edi
jmp 0x409016
xor eax, eax
cmp dword [ebp - 0x14], 0x10
mov dword [esi + 0x38], eax
jb 0x40902a
push dword [ebp - 0x28]
call fcn.00417533
add esp, 4
push 0x15
push str.CM_Locate_DevNode_ExW
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004020d0
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x409064
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x40905e
lea eax, [ebp - 0x28]
push eax
push ecx
call edi
jmp 0x409066
xor eax, eax
cmp dword [ebp - 0x14], 0x10
mov dword [esi + 0x3c], eax
jb 0x40907a
push dword [ebp - 0x28]
call fcn.00417533
add esp, 4
push 0x19
push str.CM_Reenumerate_DevNode_Ex
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004020d0
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x4090b4
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x4090ae
lea eax, [ebp - 0x28]
push eax
push ecx
call edi
jmp 0x4090b6
xor eax, eax
cmp dword [ebp - 0x14], 0x10
mov dword [esi + 0x40], eax
jb 0x4090ca
push dword [ebp - 0x28]
call fcn.00417533
add esp, 4
push 0xd
push str.PrintUIEntryW
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.004020d0
mov ecx, dword [esi + 0x58]
test ecx, ecx
je 0x409104
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x4090fe
lea eax, [ebp - 0x28]
push eax
push ecx
call edi
jmp 0x409106
xor eax, eax
cmp dword [ebp - 0x14], 0x10
mov dword [esi + 0x44], eax
jb 0x40911a
push dword [ebp - 0x28]
call fcn.00417533
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret