Function at 0x40a280
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4239dd
push eax
mov eax, 0x62bc
mov dword fs:[0], esp
call fcn.0041a8f0
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 [0x432408]
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, 0x432418
stosb byte es:[edi], al
call fcn.00401160
lea edx, [esp + 0x12cc]
push 0x1000
push edx
push str.Bundles
push 0x4257d4
push 0x80000002
call fcn.0040ae30
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 0x42a8f0
call fcn.00413e2e
sub esp, 8
lea eax, [esp + 0x12dc]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x62e8], 1
call fcn.00413e2e
lea ecx, [esp + 0x3c]
mov byte [esp + 0x62e4], 0
push ecx
call fcn.00415816
add esp, 0x14
lea edx, [esp + 0x1c8]
push 0x104
push edx
push str.UPDD_Folder
push ebp
call fcn.00410fa4
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], ebp
cmp eax, ebp
jle 0x40a85e
mov edi, 0x4257d4
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, 0x42a310
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.00413ead
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.00410e77
test al, al
mov byte [esp + 0x14], al
mov dword [esp + 0x10], ebp
je 0x40a5df
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc8]
push 0x100
push eax
push str.PNP_ID
push esi
call fcn.00410fa4
lea edi, [esp + 0xc8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40a4c3
call fcn.00407c50
test eax, eax
je 0x40a4c3
mov bl, byte [esp + 0x62dc]
lea eax, [esp + 0x1c8]
test bl, bl
jne 0x40a4a4
mov eax, 0x432ab8
lea ecx, [esp + 0xc8]
push 1
push ecx
push str.msmouse.INF
push str.REMOVE
push eax
call fcn.00412db6
add esp, 0x14
jmp 0x40a4ca
mov bl, byte [esp + 0x62dc]
lea edx, [esp + 0xecc]
push 0x400
push edx
push str.CompatibleIDs
push esi
call fcn.00410fa4
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 0x42b454
call fcn.00413e2e
sub esp, 8
lea eax, [esp + 0xedc]
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov byte [esp + 0x62e8], 3
call fcn.00413e2e
lea ecx, [esp + 0x4c]
mov byte [esp + 0x62e4], 2
push ecx
call fcn.00415816
mov eax, dword [esp + 0x54]
add esp, 0x14
xor esi, esi
cmp eax, ebp
jle 0x40a58e
call fcn.00407c50
test eax, eax
je 0x40a585
test bl, bl
lea edi, [esp + 0x1c8]
jne 0x40a563
mov edi, 0x432ab8
mov edx, dword [esp + 0x3c]
push 1
lea ecx, [edx + esi*8]
call fcn.00413ead
push eax
push str.msmouse.INF
push str.REMOVE
push edi
call fcn.00412db6
add esp, 0x14
mov eax, dword [esp + 0x40]
inc esi
cmp esi, eax
jl 0x40a54a
mov eax, dword [esp + 0x10]
inc eax
push eax
mov dword [esp + 0x14], eax
call fcn.00410e77
mov esi, dword [esp + 0x3c]
mov bl, al
cmp esi, ebp
mov byte [esp + 0x14], bl
mov byte [esp + 0x62d4], 0
je 0x40a5d7
mov eax, dword [esp + 0x40]
cmp eax, ebp
je 0x40a5ce
lea edi, [eax]
mov ecx, esi
call fcn.00413e8c
add esi, 8
dec edi
jne 0x40a5bd
mov esi, dword [esp + 0x3c]
push esi
call fcn.00419f48
add esp, 4
test bl, bl
jne 0x40a455
lea eax, [esp + 0x24]
lea ecx, [esp + 0x6cc]
push eax
push str.Number_Of_Controllers
push ecx
push 0x80000002
call fcn.0040adc0
mov eax, dword [esp + 0x34]
add esp, 0x10
xor edx, edx
cmp eax, ebp
jbe 0x40a849
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, 0x42b42c
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.00419bfc
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.0040ae30
lea edi, [esp + 0xa8]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x20
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40a722
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.0040ae30
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 0x42b454
call fcn.00413e2e
sub esp, 8
lea eax, [esp + 0xadc]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
mov byte [esp + 0x62e8], 5
call fcn.00413e2e
lea ecx, [esp + 0x5c]
mov byte [esp + 0x62e4], 4
push ecx
call fcn.00415816
mov eax, dword [esp + 0x64]
add esp, 0x14
cmp eax, ebp
jle 0x40a809
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.00413ead
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 0x40a7bc
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x4c]
mov byte [esp + 0x62d4], 0
test esi, esi
je 0x40a839
test eax, eax
je 0x40a830
lea edi, [eax]
mov ecx, esi
call fcn.00413e8c
add esi, 8
dec edi
jne 0x40a81f
mov esi, dword [esp + 0x4c]
push esi
call fcn.00419f48
add esp, 4
mov eax, dword [esp + 0x24]
mov edx, ebx
cmp edx, eax
jb 0x40a60c
xor ebp, ebp
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x40a3a7
call fcn.00407c50
test eax, eax
je 0x40a8cf
mov al, byte [esp + 0x62dc]
test al, al
lea eax, [esp + 0x1c8]
jne 0x40a87e
mov eax, 0x432ab8
push 1
push str.UPDDPNP
push str.msmouse.INF
push str.REMOVE
push eax
call fcn.00412db6
mov esi, dword [esp + 0x40]
add esp, 0x14
cmp esi, ebp
mov dword [esp + 0x62d4], 0xffffffff
je 0x40ad9e
mov eax, dword [esp + 0x30]
cmp eax, ebp
je 0x40ad95
lea edi, [eax]
mov ecx, esi
call fcn.00413e8c
add esi, 8
dec edi
jne 0x40a8bd
jmp 0x40ad91
push 6
push ebp
push ebp
push ebp
call fcn.004167a8
push 1
mov ecx, 0x432418
mov dword [0x432410], eax
mov dword [esp + 0x18], 2
call fcn.00401160
mov eax, dword [0x432410]
cmp eax, 0xffffffff
jne 0x40a92f
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x62d4], eax
cmp esi, ebp
je 0x40ad9e
mov eax, dword [esp + 0x30]
cmp eax, ebp
je 0x40ad95
lea edi, [eax]
mov ecx, esi
call fcn.00413e8c
add esi, 8
dec edi
jne 0x40a91d
jmp 0x40ad91
lea ecx, [esp + 0x5c]
mov dword [esp + 0x5c], 0x1c
push ecx
push ebp
push eax
mov dword [esp + 0x24], ebp
call fcn.00416775
test eax, eax
je 0x40ad1a
mov eax, dword [0x432bdc]
mov ebx, dword [esp + 0x18]
cmp ebx, eax
jl 0x40a99c
lea edx, [eax*4 + 0x40]
push edx
call fcn.0041ac37
mov ecx, dword [0x432bdc]
mov esi, dword [0x432bd8]
mov ebp, eax
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x432bd8]
push eax
call fcn.00419f48
mov eax, dword [0x432bdc]
add esp, 8
add eax, 0x10
mov dword [0x432bd8], ebp
mov dword [0x432bdc], eax
mov ecx, dword [0x432bd8]
lea eax, [ebx + 1]
lea edx, [esp + 0x10]
xor ebp, ebp
mov dword [esp + 0x28], eax
mov dword [0x432be0], eax
push edx
push ebp
lea eax, [esp + 0x28]
mov dword [ecx + ebx*4], ebp
mov edx, dword [0x432410]
push ebp
push eax
lea ecx, [esp + 0x6c]
push ebp
push ecx
push edx
mov dword [esp + 0x2c], ebp
call fcn.00416735
test eax, eax
jne 0x40aa31
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 0x40aa31
test ebp, ebp
je 0x40a9f9
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 [0x432410]
lea edx, [esp + 0x28]
push ebp
push edx
lea eax, [esp + 0x6c]
push 0
push eax
push ecx
call fcn.00416735
test eax, eax
je 0x40a9eb
mov ecx, dword [0x432410]
push 0
lea edx, [esp + 0xad0]
push 0x400
push edx
push 0
lea eax, [esp + 0x6c]
push 1
push eax
push ecx
call fcn.00416735
lea edx, [esp + 0xacc]
lea ecx, [esp + 0x3c]
push edx
call fcn.00413e2e
lea ecx, [esp + 0x3c]
mov byte [esp + 0x62d4], 6
call fcn.00414390
mov ebx, dword [esp + 0x1c]
xor edi, edi
test ebx, ebx
jle 0x40acdb
lea esi, [esp + 0x22cc]
push esi
lea ecx, [esp + 0x40]
call fcn.00413ead
push eax
call fcn.0041a750
add esp, 8
test eax, eax
jne 0x40aafe
cmp byte [esi], 0x2a
jne 0x40aac2
lea eax, [esi + 1]
lea ecx, [esp + 0x3c]
push eax
call fcn.00413ead
push eax
call fcn.0041a750
add esp, 8
test eax, eax
jne 0x40aafe
push esi
push str.SERENUM
call fcn.0041a750
add esp, 8
test eax, eax
je 0x40aaee
lea ecx, [esi + 8]
push ecx
lea ecx, [esp + 0x40]
call fcn.00413ead
push eax
call fcn.0041a750
add esp, 8
test eax, eax
jne 0x40aafe
inc edi
add esi, 0x100
cmp edi, ebx
jl 0x40aa8c
jmp 0x40acdb
mov ecx, dword [0x432410]
push 0
lea edx, [esp + 0x2d0]
push 0x400
push edx
push 0
lea eax, [esp + 0x6c]
push 4
push eax
push ecx
call fcn.00416735
lea edx, [esp + 0x2cc]
push edx
call fcn.0041b794
lea eax, [esp + 0x2d0]
push str.tbupdd
push eax
call fcn.0041a750
add esp, 0xc
test eax, eax
mov al, byte [esp + 0x62dc]
jne 0x40ac59
test al, al
jne 0x40ac5d
mov eax, dword [0x432410]
push 0
lea ecx, [esp + 0xed0]
push 0x400
push ecx
push 0
lea edx, [esp + 0x6c]
push 0xc
push edx
push eax
call fcn.00416735
test eax, eax
jne 0x40aba2
push eax
lea ecx, [esp + 0xed0]
push 0x400
push ecx
push eax
push eax
mov eax, dword [0x432410]
lea edx, [esp + 0x70]
push edx
push eax
call fcn.00416735
push 0
call fcn.00410e77
xor esi, esi
mov byte [esp + 0x24], al
test al, al
je 0x40acdb
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0xc8]
push 0x100
push ecx
push str.PNP_ID
push edx
call fcn.00410fa4
lea ecx, [esp + 0x3c]
call fcn.00413ead
push eax
call fcn.0040eba0
add esp, 4
test al, al
je 0x40abfd
lea eax, [esp + 0xc8]
push eax
call fcn.0040eba0
add esp, 4
test al, al
jne 0x40ac11
inc esi
push esi
call fcn.00410e77
test al, al
mov byte [esp + 0x24], al
jne 0x40abb7
jmp 0x40acdb
mov ecx, dword [0x432bd8]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x5c]
push 5
mov dword [ecx + edx*4], 2
mov ecx, dword [0x432410]
push eax
push ecx
call fcn.0040b450
mov esi, dword [esp + 0x20]
add esp, 0xc
mov eax, esi
inc esi
push eax
mov ecx, 0x432418
mov dword [esp + 0x18], esi
call fcn.00401160
cmp esi, 5
jle 0x40acdb
jmp 0x40acd3
test al, al
je 0x40ac6f
mov eax, dword [0x432410]
lea edx, [esp + 0x5c]
push edx
push eax
call fcn.00416706
jmp 0x40acdb
mov ecx, dword [0x432bd8]
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x5c]
push 5
mov dword [ecx + edx*4], 1
mov ecx, dword [0x432410]
push eax
push ecx
call fcn.0040b450
add esp, 0xc
lea ecx, [esp + 0x3c]
push str.UPDDPNP
call fcn.00413ead
push eax
call fcn.0041b590
add esp, 8
test eax, eax
jne 0x40acb8
mov byte [0x432bc8], 1
mov esi, dword [esp + 0x14]
mov ecx, 0x432418
mov eax, esi
inc esi
push eax
mov dword [esp + 0x18], esi
call fcn.00401160
cmp esi, 5
jle 0x40acdb
mov dword [esp + 0x14], 5
test ebp, ebp
je 0x40ace6
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x3c]
mov byte [esp + 0x62d4], 0
call fcn.00413e8c
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [0x432410]
push eax
call fcn.00416775
test eax, eax
jne 0x40a94f
xor ebp, ebp
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x40ad5b
call esi
cmp eax, 0x103
je 0x40ad5b
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x62d4], 0xffffffff
cmp esi, ebp
je 0x40ad9e
mov eax, dword [esp + 0x30]
cmp eax, ebp
je 0x40ad95
lea edi, [eax]
mov ecx, esi
call fcn.00413e8c
add esi, 8
dec edi
jne 0x40ad4c
jmp 0x40ad91
push 5
mov ecx, 0x432418
call fcn.00401160
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x62d4], 0xffffffff
cmp esi, ebp
je 0x40ad9e
mov eax, dword [esp + 0x30]
cmp eax, ebp
je 0x40ad95
lea edi, [eax]
mov ecx, esi
call fcn.00413e8c
add esi, 8
dec edi
jne 0x40ad84
mov esi, dword [esp + 0x2c]
push esi
call fcn.00419f48
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