Function at 0x10456e1
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xac4
mov eax, dword [0x1063194]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x100f750
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x100f740
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [ebp + 8]
mov esi, 0x100f730
lea edi, [ebp - 0x38]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x100f71c
lea edi, [ebp - 0x4c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xaac], eax
mov eax, dword [ebp + 0x14]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xac4], eax
mov eax, dword [0x100f714]
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [0x100f718]
movsw word es:[edi], word [esi]
mov edi, 0x11c
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 0xa84]
push ebx
push eax
mov byte [ebp - 0xa85], 0
mov dword [ebp - 0xabc], ebx
mov dword [ebp - 0xaa4], ebx
mov dword [ebp - 0xab8], ebx
mov dword [ebp - 0xab0], ebx
mov dword [ebp - 0xab4], ebx
call fcn.01021bf0
add esp, 0xc
lea eax, [ebp - 0xa84]
push eax
mov dword [ebp - 0xa84], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1045cd9
push 2
pop ecx
cmp dword [ebp - 0xa74], ecx
jne 0x1045cd9
mov eax, dword [ebp + 0xc]
cmp eax, ebx
mov dword [ebp - 0x968], ebx
je 0x10457cd
mov edx, dword [eax + 4]
mov dword [ebp - 0xac0], edx
jmp 0x10457d3
mov dword [ebp - 0xac0], ecx
cmp eax, ebx
je 0x10457f7
movzx eax, word [eax + 0x10]
cmp eax, ebx
je 0x10457f7
cmp eax, 6
je 0x10457f2
cmp eax, 9
jne 0x1045cd9
lea eax, [ebp - 0x4a]
jmp 0x10457fa
lea eax, [ebp - 0x36]
jmp 0x10457fa
lea eax, [ebp - 0x1a]
push ebx
mov dword [ebp - 0xa94], eax
mov esi, 0xff
push esi
lea eax, [ebp - 0x44c]
push eax
push ecx
push dword [ebp - 0xaac]
mov dword [ebp - 0xaa8], ecx
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x1045b44
mov ebx, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea eax, [ebp - 0x44c]
push eax
push esi
lea eax, [ebp - 0x24c]
push eax
call fcn.0101506d
test eax, eax
jl 0x1045b0c
xor eax, eax
mov dword [ebp - 0xaa0], eax
mov dword [ebp - 0xa9c], eax
mov dword [ebp - 0xa8c], eax
lea eax, [ebp - 0x24c]
push 0x2e
push eax
call fcn.01054234
mov edi, eax
test edi, edi
pop ecx
pop ecx
mov dword [ebp - 0xa98], edi
je 0x104587f
and word [edi], 0
cmp dword [ebp - 0xac0], 2
jne 0x10458bb
push dword [ebp - 0xa94]
lea eax, [ebp - 0x24c]
push eax
call fcn.010226c6
test eax, eax
pop ecx
pop ecx
jne 0x10458ac
mov dword [ebp - 0xa8c], 4
jmp 0x10458d5
cmp dword [ebp + 0x10], 0
jne 0x1045b0c
lea eax, [ebp - 0xa]
jmp 0x10458be
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.010226c6
test eax, eax
pop ecx
pop ecx
jne 0x1045b0c
test edi, edi
je 0x1045bac
inc edi
inc edi
push 0x2e
push edi
mov dword [ebp - 0xa98], edi
call fcn.01054234
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10458f9
and word [esi], 0
lea eax, [ebp - 0xa90]
push eax
mov ecx, edi
call fcn.01045151
test eax, eax
je 0x1045b07
mov eax, dword [ebp - 0xa90]
test eax, eax
jl 0x1045b07
test esi, esi
mov dword [ebp - 0xa9c], eax
je 0x1045ad0
lea edi, [esi + 2]
push 0x2e
push edi
mov dword [ebp - 0xa98], edi
call fcn.01054234
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1045948
and word [esi], 0
lea eax, [ebp - 0xa90]
push eax
mov ecx, edi
call fcn.01045151
test eax, eax
je 0x1045b07
mov eax, dword [ebp - 0xa90]
test eax, eax
jl 0x1045b07
mov dword [ebp - 0xaa0], eax
je 0x1045981
cmp dword [ebp - 0xa9c], 0
je 0x1045b07
test esi, esi
je 0x1045ad7
cmp dword [ebp + 0xc], 0
jne 0x1045ae1
add esi, 2
push 0x2e
push esi
mov dword [ebp - 0xa98], esi
call fcn.01054234
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x10459b0
and word [edi], 0
lea eax, [ebp - 0xa90]
push eax
mov ecx, esi
call fcn.01045151
test eax, eax
je 0x1045b07
mov eax, dword [ebp - 0xa90]
cmp eax, 0xff
ja 0x1045b07
test al, al
mov byte [ebp - 0xa85], al
je 0x10459e8
or dword [ebp - 0xa8c], 2
test edi, edi
je 0x1045a4b
lea esi, [edi + 2]
push 0x2e
push esi
mov dword [ebp - 0xa98], esi
call fcn.01054234
test eax, eax
pop ecx
pop ecx
jne 0x1045b07
lea eax, [ebp - 0xa90]
push eax
mov ecx, esi
call fcn.01045151
test eax, eax
je 0x1045b07
cmp dword [ebp - 0xa90], 0xffff
ja 0x1045b07
cmp word [ebp - 0xa90], 0
movzx eax, word [ebp - 0xa90]
mov dword [ebp - 0xabc], eax
je 0x1045a4b
or dword [ebp - 0xa8c], 1
cmp dword [ebp - 0x968], 0
jne 0x1045a71
mov esi, 0x11c
push esi
lea eax, [ebp - 0x968]
push 0
push eax
call fcn.01021bf0
add esp, 0xc
mov dword [ebp - 0x968], esi
mov ecx, dword [ebp - 0xa9c]
mov edi, dword [ebp - 0xaa0]
xor esi, esi
xor eax, eax
xor edx, edx
test ecx, ecx
mov dword [ebp - 0x964], ecx
mov dword [ebp - 0x960], edi
je 0x1045aa4
push 3
pop esi
push esi
push 2
push edx
push edx
call ebx
push esi
push 1
push edx
push eax
call ebx
test byte [ebp - 0xa8c], 2
je 0x1045b4a
mov cl, byte [ebp - 0xa85]
push 1
mov byte [ebp - 0x84e], cl
mov ecx, 0x80
push ecx
push edx
push eax
or esi, ecx
call ebx
jmp 0x1045b51
and dword [ebp - 0xaa0], 0
cmp dword [ebp + 0xc], 0
je 0x1045a4b
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0xa9c]
jb 0x1045b07
jne 0x1045b99
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xaa0]
cmp dword [eax + 0xc], ecx
jae 0x1045b99
mov esi, 0xff
inc dword [ebp - 0xaa8]
push 0
push esi
lea eax, [ebp - 0x44c]
push eax
push dword [ebp - 0xaa8]
push dword [ebp - 0xaac]
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
jne 0x104582f
cmp dword [ebp - 0xab4], eax
jne 0x1045c34
xor ebx, ebx
push ebx
jmp 0x1045cdb
mov byte [ebp - 0x84e], 0
test byte [ebp - 0xa8c], 1
je 0x1045b75
mov cx, word [ebp - 0xabc]
push 6
push 0x40
push edx
push eax
mov word [ebp - 0x850], cx
or esi, 0x40
call ebx
jmp 0x1045b7d
and word [ebp - 0x850], 0
test esi, esi
je 0x1045b99
push edx
push eax
push esi
lea eax, [ebp - 0x968]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x1045b07
mov eax, dword [ebp - 0xa9c]
cmp eax, dword [ebp - 0xaa4]
mov esi, 0xff
ja 0x1045be6
mov edi, dword [ebp - 0xa9c]
cmp edi, dword [ebp - 0xaa4]
jne 0x1045b0c
mov eax, dword [ebp - 0xab8]
cmp dword [ebp - 0xaa0], eax
ja 0x1045be8
jne 0x1045b0c
mov eax, dword [ebp - 0xa8c]
cmp eax, dword [ebp - 0xab0]
jb 0x1045b0c
jmp 0x1045be8
mov edi, eax
lea eax, [ebp - 0x44c]
push eax
push esi
lea eax, [ebp - 0x64c]
push eax
call fcn.0101506d
test eax, eax
jl 0x1045c2d
mov eax, dword [ebp - 0xaa0]
mov dword [ebp - 0xab8], eax
mov eax, dword [ebp - 0xa8c]
mov dword [ebp - 0xaa4], edi
mov dword [ebp - 0xab0], eax
mov dword [ebp - 0xab4], 1
jmp 0x1045b0c
push 0xd
jmp 0x1045cdb
xor edi, edi
push edi
push esi
lea eax, [ebp - 0x84c]
push eax
push 1
push dword [ebp - 0xaac]
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x1045ce1
push edi
lea eax, [ebp - 0xa94]
push eax
lea eax, [ebp - 0xa98]
push eax
lea eax, [ebp - 0x84c]
push eax
push esi
push dword [ebp - 0xac4]
call fcn.010454c7
cmp eax, edi
jl 0x1045c2d
push edi
lea eax, [ebp - 0xa94]
push eax
lea eax, [ebp - 0xa98]
push eax
push 0x1005f78
push dword [ebp - 0xa94]
push dword [ebp - 0xa98]
call fcn.010454c7
cmp eax, edi
jl 0x1045c2d
push edi
lea eax, [ebp - 0xa94]
push eax
push edi
lea eax, [ebp - 0x64c]
push eax
push dword [ebp - 0xa94]
push dword [ebp - 0xa98]
call fcn.010454c7
cmp eax, edi
jl 0x1045c2d
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
jmp 0x1045ce3
push 0xa
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0102177f
leave
ret 0x10