Function at 0x40b060
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x43ee0d
push eax
mov eax, 0x62bc
mov dword fs:[0], esp
call fcn.00433d80
push ebx
push ebp
push esi
push edi
mov edi, str.UPDDPNP
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x22cc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xor ebp, ebp
mov eax, ecx
mov esi, edi
mov edi, edx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x20], 1
rep movsb byte es:[edi], byte [esi]
mov cl, byte [0x4540b0]
lea edi, [esp + 0x12d1]
mov byte [esp + 0x12d0], cl
mov ecx, 0x3ff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x4540c0
stosb byte es:[edi], al
call fcn.004011a0
lea edx, [esp + 0x12cc]
push 0x1000
push edx
push str.Bundles
push 0x4427c4
push 0x80000002
call fcn.0040bc10
mov dword [esp + 0x40], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebp
add esp, 0xc
mov dword [esp + 0x62dc], ebp
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x44a918
call fcn.00416cb2
sub esp, 8
lea eax, [esp + 0x12dc]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x62e8], 1
call fcn.00416cb2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x62e4], 0
push ecx
call fcn.004185a6
add esp, 0x14
lea edx, [esp + 0x1c8]
push 0x104
push edx
push str.UPDD_Folder
push ebp
call fcn.00413c6a
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], ebp
cmp eax, ebp
jle 0x40b63e
mov edi, 0x4427c4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x6cc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x6cc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x44a3cc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x2c]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
lea ecx, [eax + ecx*8]
call fcn.00416d31
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x6cc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00413b1f
test al, al
mov byte [esp + 0x14], al
mov dword [esp + 0x10], ebp
je 0x40b3bf
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc8]
push pe_nt_image_headers32
push eax
push str.PNP_ID
push esi
call fcn.00413c6a
lea edi, [esp + 0xc8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40b2a3
call fcn.00408230
test eax, eax
je 0x40b2a3
mov bl, byte [esp + 0x62dc]
lea eax, [esp + 0x1c8]
test bl, bl
jne 0x40b284
mov eax, 0x454760
lea ecx, [esp + 0xc8]
push 1
push ecx
push str.msmouse.INF
push str.REMOVE
push eax
call fcn.00415d10
add esp, 0x14
jmp 0x40b2aa
mov bl, byte [esp + 0x62dc]
lea edx, [esp + 0xecc]
push 0x400
push edx
push str.CompatibleIDs
push esi
call fcn.00413c6a
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebp
sub esp, 8
mov byte [esp + 0x62dc], 2
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x44b4bc
call fcn.00416cb2
sub esp, 8
lea eax, [esp + 0xedc]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x62e8], 3
call fcn.00416cb2
lea ecx, [esp + 0x4c]
mov byte [esp + 0x62e4], 2
push ecx
call fcn.004185a6
mov eax, dword [esp + 0x54]
add esp, 0x14
xor esi, esi
cmp eax, ebp
jle 0x40b36e
call fcn.00408230
test eax, eax
je 0x40b365
test bl, bl
lea edi, [esp + 0x1c8]
jne 0x40b343
mov edi, 0x454760
mov edx, dword [esp + 0x3c]
push 1
lea ecx, [edx + esi*8]
call fcn.00416d31
push eax
push str.msmouse.INF
push str.REMOVE
push edi
call fcn.00415d10
add esp, 0x14
mov eax, dword [esp + 0x40]
inc esi
cmp esi, eax
jl 0x40b32a
mov eax, dword [esp + 0x10]
inc eax
push eax
mov dword [esp + 0x14], eax
call fcn.00413b1f
mov esi, dword [esp + 0x3c]
mov bl, al
cmp esi, ebp
mov byte [esp + 0x14], bl
mov byte [esp + 0x62d4], 0
je 0x40b3b7
mov eax, dword [esp + 0x40]
cmp eax, ebp
je 0x40b3ae
lea edi, [eax]
mov ecx, esi
call fcn.00416d10
add esi, 8
dec edi
jne 0x40b39d
mov esi, dword [esp + 0x3c]
push esi
call fcn.00433020
add esp, 4
test bl, bl
jne 0x40b235
lea eax, [esp + 0x24]
lea ecx, [esp + 0x6cc]
push eax
push str.Number_Of_Controllers
push ecx
push 0x80000002
call fcn.0040bba0
mov eax, dword [esp + 0x34]
add esp, 0x10
xor edx, edx
cmp eax, ebp
jbe 0x40b629
lea edi, [esp + 0x6cc]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x2cc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
lea ebx, [esp + 0x2cc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x44b494
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebx, [edx + 1]
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x7c]
push str._3.3d
push ecx
mov dword [esp + 0x2c], ebx
call fcn.004330da
lea edi, [esp + 0x84]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2d8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x98]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2e0]
push str.PNP_Id
push ecx
push 0x80000002
call fcn.0040bc10
lea edi, [esp + 0xa8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x20
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40b502
mov eax, dword [esp + 0x1c]
lea edi, [esp + 0x88]
mov edx, eax
or ecx, 0xffffffff
shl edx, 8
inc eax
mov dword [esp + 0x1c], eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + edx + 0x22cc]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xacc]
push 0x400
push ecx
lea edx, [esp + 0x2d4]
push str.CompatibleIDs
push edx
push 0x80000002
call fcn.0040bc10
xor ebp, ebp
mov dword [esp + 0x60], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x64], ebp
add esp, 0xc
mov byte [esp + 0x62dc], 4
mov ecx, esp
mov dword [esp + 0x30], esp
push 0x44b4bc
call fcn.00416cb2
sub esp, 8
lea eax, [esp + 0xadc]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x62e8], 5
call fcn.00416cb2
lea ecx, [esp + 0x5c]
mov byte [esp + 0x62e4], 4
push ecx
call fcn.004185a6
mov eax, dword [esp + 0x64]
add esp, 0x14
cmp eax, ebp
jle 0x40b5e9
mov edx, dword [esp + 0x1c]
shl edx, 8
lea ebx, [esp + edx + 0x22cc]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], ebx
inc eax
add ebx, 0x100
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x4c]
lea ecx, [eax + ebp*8]
call fcn.00416d31
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x50]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
cmp ebp, eax
rep movsb byte es:[edi], byte [esi]
jl 0x40b59c
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x4c]
mov byte [esp + 0x62d4], 0
test esi, esi
je 0x40b619
test eax, eax
je 0x40b610
lea edi, [eax]
mov ecx, esi
call fcn.00416d10
add esi, 8
dec edi
jne 0x40b5ff
mov esi, dword [esp + 0x4c]
push esi
call fcn.00433020
add esp, 4
mov eax, dword [esp + 0x24]
mov edx, ebx
cmp edx, eax
jb 0x40b3ec
xor ebp, ebp
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x40b187
call fcn.00408230
test eax, eax
je 0x40b6af
mov al, byte [esp + 0x62dc]
test al, al
lea eax, [esp + 0x1c8]
jne 0x40b65e
mov eax, 0x454760
push 1
push str.UPDDPNP
push str.msmouse.INF
push str.REMOVE
push eax
call fcn.00415d10
mov esi, dword [esp + 0x40]
add esp, 0x14
cmp esi, ebp
mov dword [esp + 0x62d4], 0xffffffff
je 0x40bb7e
mov eax, dword [esp + 0x30]
cmp eax, ebp
je 0x40bb75
lea edi, [eax]
mov ecx, esi
call fcn.00416d10
add esi, 8
dec edi
jne 0x40b69d
jmp 0x40bb71
push 6
push ebp
push ebp
push ebp
call fcn.00418e36
push 1
mov ecx, 0x4540c0
mov dword [0x4540b8], eax
mov dword [esp + 0x18], 2
call fcn.004011a0
mov eax, dword [0x4540b8]
cmp eax, 0xffffffff
jne 0x40b70f
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x62d4], eax
cmp esi, ebp
je 0x40bb7e
mov eax, dword [esp + 0x30]
cmp eax, ebp
je 0x40bb75
lea edi, [eax]
mov ecx, esi
call fcn.00416d10
add esi, 8
dec edi
jne 0x40b6fd
jmp 0x40bb71
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], 0x1c
push ecx
push ebp
push eax
mov dword [esp + 0x24], ebp
call fcn.00418e03
test eax, eax
je 0x40bafa
mov eax, dword [0x454888]
mov ebx, dword [esp + 0x18]
cmp ebx, eax
jl 0x40b77c
lea edx, [eax*4 + 0x40]
push edx
call fcn.004340d2
mov ecx, dword [0x454888]
mov esi, dword [0x454884]
mov ebp, eax
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x454884]
push eax
call fcn.00433020
mov eax, dword [0x454888]
add esp, 8
add eax, 0x10
mov dword [0x454884], ebp
mov dword [0x454888], eax
mov ecx, dword [0x454884]
lea eax, [ebx + 1]
lea edx, [esp + 0x10]
xor ebp, ebp
mov dword [esp + 0x28], eax
mov dword [0x45488c], eax
push edx
push ebp
lea eax, [esp + 0x28]
mov dword [ecx + ebx*4], ebp
mov edx, dword [0x4540b8]
push ebp
push eax
lea ecx, [esp + 0x6c]
push ebp
push ecx
push edx
mov dword [esp + 0x2c], ebp
call fcn.00418dc3
test eax, eax
jne 0x40b811
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
jne 0x40b811
test ebp, ebp
je 0x40b7d9
push ebp
call edi
mov eax, dword [esp + 0x10]
lea ecx, [eax + eax]
push ecx
push 0x40
call esi
mov ebp, eax
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x10]
lea ecx, [eax + eax]
push edx
push ecx
mov ecx, dword [0x4540b8]
lea edx, [esp + 0x28]
push ebp
push edx
lea eax, [esp + 0x6c]
push 0
push eax
push ecx
call fcn.00418dc3
test eax, eax
je 0x40b7cb
mov ecx, dword [0x4540b8]
push 0
lea edx, [esp + 0xad0]
push 0x400
push edx
push 0
lea eax, [esp + 0x6c]
push 1
push eax
push ecx
call fcn.00418dc3
lea edx, [esp + 0xacc]
lea ecx, [esp + 0x3c]
push edx
call fcn.00416cb2
lea ecx, [esp + 0x3c]
mov byte [esp + 0x62d4], 6
call fcn.00417214
mov ebx, dword [esp + 0x1c]
xor edi, edi
test ebx, ebx
jle 0x40babb
lea esi, [esp + 0x22cc]
push esi
lea ecx, [esp + 0x40]
call fcn.00416d31
push eax
call fcn.00433c20
add esp, 8
test eax, eax
jne 0x40b8de
cmp byte [esi], 0x2a
jne 0x40b8a2
lea eax, [esi + 1]
lea ecx, [esp + 0x3c]
push eax
call fcn.00416d31
push eax
call fcn.00433c20
add esp, 8
test eax, eax
jne 0x40b8de
push esi
push str.SERENUM
call fcn.00433c20
add esp, 8
test eax, eax
je 0x40b8ce
lea ecx, [esi + 8]
push ecx
lea ecx, [esp + 0x40]
call fcn.00416d31
push eax
call fcn.00433c20
add esp, 8
test eax, eax
jne 0x40b8de
inc edi
add esi, 0x100
cmp edi, ebx
jl 0x40b86c
jmp 0x40babb
mov ecx, dword [0x4540b8]
push 0
lea edx, [esp + 0x2d0]
push 0x400
push edx
push 0
lea eax, [esp + 0x6c]
push 4
push eax
push ecx
call fcn.00418dc3
lea edx, [esp + 0x2cc]
push edx
call fcn.00434de8
lea eax, [esp + 0x2d0]
push str.tbupdd
push eax
call fcn.00433c20
add esp, 0xc
test eax, eax
mov al, byte [esp + 0x62dc]
jne 0x40ba39
test al, al
jne 0x40ba3d
mov eax, dword [0x4540b8]
push 0
lea ecx, [esp + 0xed0]
push 0x400
push ecx
push 0
lea edx, [esp + 0x6c]
push 0xc
push edx
push eax
call fcn.00418dc3
test eax, eax
jne 0x40b982
push eax
lea ecx, [esp + 0xed0]
push 0x400
push ecx
push eax
push eax
mov eax, dword [0x4540b8]
lea edx, [esp + 0x70]
push edx
push eax
call fcn.00418dc3
push 0
call fcn.00413b1f
xor esi, esi
mov byte [esp + 0x24], al
test al, al
je 0x40babb
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xc8]
push pe_nt_image_headers32
push ecx
push str.PNP_ID
push edx
call fcn.00413c6a
lea ecx, [esp + 0x3c]
call fcn.00416d31
push eax
call fcn.0040fb90
add esp, 4
test al, al
je 0x40b9dd
lea eax, [esp + 0xc8]
push eax
call fcn.0040fb90
add esp, 4
test al, al
jne 0x40b9f1
inc esi
push esi
call fcn.00413b1f
test al, al
mov byte [esp + 0x24], al
jne 0x40b997
jmp 0x40babb
mov ecx, dword [0x454884]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x5c]
push 5
mov dword [ecx + edx*4], 2
mov ecx, dword [0x4540b8]
push eax
push ecx
call fcn.0040c230
mov esi, dword [esp + 0x20]
add esp, 0xc
mov eax, esi
inc esi
push eax
mov ecx, 0x4540c0
mov dword [esp + 0x18], esi
call fcn.004011a0
cmp esi, 5
jle 0x40babb
jmp 0x40bab3
test al, al
je 0x40ba4f
mov eax, dword [0x4540b8]
lea edx, [esp + 0x5c]
push edx
push eax
call fcn.00418d94
jmp 0x40babb
mov ecx, dword [0x454884]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x5c]
push 5
mov dword [ecx + edx*4], 1
mov ecx, dword [0x4540b8]
push eax
push ecx
call fcn.0040c230
add esp, 0xc
lea ecx, [esp + 0x3c]
push str.UPDDPNP
call fcn.00416d31
push eax
call fcn.00434f20
add esp, 8
test eax, eax
jne 0x40ba98
mov byte [0x454870], 1
mov esi, dword [esp + 0x14]
mov ecx, 0x4540c0
mov eax, esi
inc esi
push eax
mov dword [esp + 0x18], esi
call fcn.004011a0
cmp esi, 5
jle 0x40babb
mov dword [esp + 0x14], 5
test ebp, ebp
je 0x40bac6
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x62d4], 0
call fcn.00416d10
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [0x4540b8]
push eax
call fcn.00418e03
test eax, eax
jne 0x40b72f
xor ebp, ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x40bb3b
call esi
cmp eax, 0x103
je 0x40bb3b
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x62d4], 0xffffffff
cmp esi, ebp
je 0x40bb7e
mov eax, dword [esp + 0x30]
cmp eax, ebp
je 0x40bb75
lea edi, [eax]
mov ecx, esi
call fcn.00416d10
add esi, 8
dec edi
jne 0x40bb2c
jmp 0x40bb71
push 5
mov ecx, 0x4540c0
call fcn.004011a0
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x62d4], 0xffffffff
cmp esi, ebp
je 0x40bb7e
mov eax, dword [esp + 0x30]
cmp eax, ebp
je 0x40bb75
lea edi, [eax]
mov ecx, esi
call fcn.00416d10
add esi, 8
dec edi
jne 0x40bb64
mov esi, dword [esp + 0x2c]
push esi
call fcn.00433020
add esp, 4
mov ecx, dword [esp + 0x62cc]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x62c8
ret