Function at 0x42acd0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x48a47b
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x4bc7b8]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bc7b8]
xor eax, esp
push eax
lea eax, [esp + 0x47c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x48c]
mov esi, dword [esp + 0x494]
mov ebp, dword [esp + 0x490]
mov ebx, edx
push 0x1fe
lea edx, [esp + 0x27a]
push 0
push edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], esi
mov word [esp + 0x280], 0
call fcn.0046adc0
mov eax, dword [ebp + 0xc]
add esp, 0xc
push eax
push str.IsNewDeviceConnected_vidpidList_with__d_elements_
call fcn.00426a70
mov edi, eax
call fcn.00426f90
mov eax, dword [esp + 0x28]
mov word [ebx], 0
mov dword [eax], 0
add esp, 8
mov dword [esi], 0
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x28], 0
jle 0x42b058
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, ebp
call fcn.00451b7e
test eax, eax
je 0x42af43
mov edi, dword [eax + 8]
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub edi, 0x10
call eax
lea ecx, [edi + 0xc]
xor esi, esi
cmp dword [ecx], esi
jl 0x42add0
cmp eax, dword [edi]
jne 0x42add0
mov ebx, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x42ae0b
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 2
push ecx
mov ecx, eax
call edx
mov ebx, eax
cmp ebx, esi
je 0x42af48
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
lea ecx, [eax + eax + 2]
push ecx
add edi, 0x10
lea edx, [eax + eax + 2]
push edi
push edx
lea eax, [ebx + 0x10]
push eax
call fcn.00467474
add esp, 0x10
lea edi, [ebx + 0x10]
mov dword [esp + 0x30], edi
mov dword [esp + 0x484], esi
mov dword [esp + 0x2c], esi
cmp dword [edi - 4], 1
jle 0x42ae34
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [esp + 0x34]
call fcn.00402280
mov edi, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x274]
push edx
push edi
lea ebx, [esp + 0x34]
call fcn.0042b380
test eax, eax
je 0x42af03
mov eax, dword [esp + 0x20]
cmp dword [eax], 0
je 0x42af4d
lea ecx, [esp + 0x154]
push ecx
mov dword [esp + 0x158], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42ae9b
mov eax, dword [esp + 0x158]
cmp eax, 5
jbe 0x42ae1d
cmp eax, 6
jne 0x42ae9b
cmp dword [esp + 0x15c], 1
jbe 0x42ae1d
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x274]
push ecx
push 0x100
push esi
mov dword [esp + 0x30], 0
mov word [esi], 0
call fcn.00467e2b
add esp, 0xc
lea edx, [esp + 0x24]
push edx
mov ecx, esi
call fcn.0042c0f0
test eax, eax
je 0x42b035
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
lea eax, [edi - 0x10]
mov dword [esp + 0x484], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x42aff6
lea eax, [edi - 0x10]
mov dword [esp + 0x484], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42af2a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
add eax, 1
cmp eax, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
jl 0x42ad92
jmp 0x42b058
call fcn.0045220a
call fcn.00402300
cmp word [esp + 0x274], 0
je 0x42b009
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42af8c
mov eax, dword [esp + 0x38]
cmp eax, 5
jbe 0x42b009
cmp eax, 6
jne 0x42af8c
cmp dword [esp + 0x3c], 1
jbe 0x42b009
mov ebx, dword [esp + 0x1c]
lea edx, [esp + 0x274]
push edx
push 0x100
push ebx
mov dword [esp + 0x38], 0
mov word [ebx], 0
call fcn.00467e2b
add esp, 0xc
lea eax, [esp + 0x2c]
push eax
call fcn.0042c400
test eax, eax
je 0x42b035
call fcn.0042bb20
mov ecx, esi
mov edx, dword [ecx]
push edx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [esp + 0x24]
mov dword [eax], 1
lea eax, [edi - 0x10]
mov dword [esp + 0x484], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b002
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x42b05a
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x274]
push ecx
push 0x100
push eax
mov word [eax], 0
call fcn.00467e2b
mov edx, esi
mov eax, dword [edx]
add esp, 0xc
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
jmp 0x42afdb
lea eax, [edi - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [esp + 0x484], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b058
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x47c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x460]
xor ecx, esp
call fcn.004677d8
add esp, 0x474
ret 0xc