Function at 0x1045bce
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, 0x100f33c
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x100f32c
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, 0x100f31c
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, 0x100f308
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 [0x100f300]
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [0x100f304]
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.010219e0
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 0x10461cb
push 2
pop ecx
cmp dword [ebp - 0xa74], ecx
jne 0x10461cb
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x968], ebx
cmp eax, ebx
je 0x1045cba
mov edx, dword [eax + 4]
mov dword [ebp - 0xac0], edx
jmp 0x1045cc0
mov dword [ebp - 0xac0], ecx
cmp eax, ebx
je 0x1045ce4
movzx eax, word [eax + 0x10]
cmp eax, ebx
je 0x1045ce4
cmp eax, 6
je 0x1045cdf
cmp eax, 9
jne 0x10461cb
lea eax, [ebp - 0x4a]
jmp 0x1045ce7
lea eax, [ebp - 0x36]
jmp 0x1045ce7
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 0x1046035
mov ebx, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea eax, [ebp - 0x44c]
push eax
push esi
lea eax, [ebp - 0x24c]
push eax
call fcn.01014ba1
test eax, eax
jl 0x1045ffd
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.01054573
mov edi, eax
pop ecx
pop ecx
mov dword [ebp - 0xa98], edi
test edi, edi
je 0x1045d6d
xor eax, eax
mov word [edi], ax
cmp dword [ebp - 0xac0], 2
jne 0x1045da9
push dword [ebp - 0xa94]
lea eax, [ebp - 0x24c]
push eax
call fcn.010224ed
pop ecx
pop ecx
test eax, eax
jne 0x1045d9a
mov dword [ebp - 0xa8c], 4
jmp 0x1045dc3
cmp dword [ebp + 0x10], 0
jne 0x1045ffd
lea eax, [ebp - 0xa]
jmp 0x1045dac
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.010224ed
pop ecx
pop ecx
test eax, eax
jne 0x1045ffd
test edi, edi
je 0x104609e
inc edi
inc edi
push 0x2e
push edi
mov dword [ebp - 0xa98], edi
call fcn.01054573
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1045de8
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 0xa90]
push eax
mov ecx, edi
call fcn.01045636
test eax, eax
je 0x1045ff8
mov eax, dword [ebp - 0xa90]
test eax, eax
jl 0x1045ff8
mov dword [ebp - 0xa9c], eax
test esi, esi
je 0x1045fc1
add esi, 2
push 0x2e
push esi
mov dword [ebp - 0xa98], esi
call fcn.01054573
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1045e38
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0xa90]
push eax
mov ecx, esi
call fcn.01045636
test eax, eax
je 0x1045ff8
mov eax, dword [ebp - 0xa90]
test eax, eax
jl 0x1045ff8
mov dword [ebp - 0xaa0], eax
je 0x1045e71
cmp dword [ebp - 0xa9c], 0
je 0x1045ff8
test edi, edi
je 0x1045fc8
cmp dword [ebp + 0xc], 0
jne 0x1045fd2
lea esi, [edi + 2]
push 0x2e
push esi
mov dword [ebp - 0xa98], esi
call fcn.01054573
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1045ea1
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0xa90]
push eax
mov ecx, esi
call fcn.01045636
test eax, eax
je 0x1045ff8
mov eax, dword [ebp - 0xa90]
cmp eax, 0xff
ja 0x1045ff8
mov byte [ebp - 0xa85], al
test al, al
je 0x1045ed9
or dword [ebp - 0xa8c], 2
test edi, edi
je 0x1045f3c
lea esi, [edi + 2]
push 0x2e
push esi
mov dword [ebp - 0xa98], esi
call fcn.01054573
pop ecx
pop ecx
test eax, eax
jne 0x1045ff8
lea eax, [ebp - 0xa90]
push eax
mov ecx, esi
call fcn.01045636
test eax, eax
je 0x1045ff8
cmp dword [ebp - 0xa90], 0xffff
ja 0x1045ff8
cmp word [ebp - 0xa90], 0
movzx eax, word [ebp - 0xa90]
mov dword [ebp - 0xabc], eax
je 0x1045f3c
or dword [ebp - 0xa8c], 1
cmp dword [ebp - 0x968], 0
jne 0x1045f62
mov esi, 0x11c
push esi
lea eax, [ebp - 0x968]
push 0
push eax
call fcn.010219e0
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
mov dword [ebp - 0x964], ecx
mov dword [ebp - 0x960], edi
test ecx, ecx
je 0x1045f95
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 0x104603b
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 0x1046042
and dword [ebp - 0xaa0], 0
cmp dword [ebp + 0xc], 0
je 0x1045f3c
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
cmp eax, dword [ebp - 0xa9c]
jb 0x1045ff8
jne 0x104608b
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xaa0]
cmp dword [eax + 0xc], ecx
jae 0x104608b
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 0x1045d1c
cmp dword [ebp - 0xab4], eax
jne 0x1046126
xor ebx, ebx
push ebx
jmp 0x10461cd
mov byte [ebp - 0x84e], 0
test byte [ebp - 0xa8c], 1
je 0x1046066
mov cx, word [ebp - 0xabc]
push 6
push 0x40
push edx
push eax
mov word [ebp - 0x850], cx
or esi, 0x40
call ebx
jmp 0x104606f
xor ecx, ecx
mov word [ebp - 0x850], cx
test esi, esi
je 0x104608b
push edx
push eax
push esi
lea eax, [ebp - 0x968]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
je 0x1045ff8
mov eax, dword [ebp - 0xa9c]
mov esi, 0xff
cmp eax, dword [ebp - 0xaa4]
ja 0x10460d8
mov edi, dword [ebp - 0xa9c]
cmp edi, dword [ebp - 0xaa4]
jne 0x1045ffd
mov eax, dword [ebp - 0xab8]
cmp dword [ebp - 0xaa0], eax
ja 0x10460da
jne 0x1045ffd
mov eax, dword [ebp - 0xa8c]
cmp eax, dword [ebp - 0xab0]
jb 0x1045ffd
jmp 0x10460da
mov edi, eax
lea eax, [ebp - 0x44c]
push eax
push esi
lea eax, [ebp - 0x64c]
push eax
call fcn.01014ba1
test eax, eax
jl 0x104611f
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 0x1045ffd
push 0xd
jmp 0x10461cd
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 0x10461d3
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.010459b2
cmp eax, edi
jl 0x104611f
push edi
lea eax, [ebp - 0xa94]
push eax
lea eax, [ebp - 0xa98]
push eax
push 0x1005258
push dword [ebp - 0xa94]
push dword [ebp - 0xa98]
call fcn.010459b2
cmp eax, edi
jl 0x104611f
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.010459b2
cmp eax, edi
jl 0x104611f
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
inc eax
jmp 0x10461d5
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.01021557
leave
ret 0x10