Function at 0x40ac30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fb57
mov eax, dword fs:[0]
push eax
sub esp, 0x394
mov eax, dword [0x42a008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x39c], eax
call fcn.00401220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40ac83
push 0x80004005
call fcn.00401070
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x21c], edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x214]
push 0
mov dword [ebp - 0x214], 0
call fcn.004047a0
push 0x11c
lea eax, [ebp - 0x398]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.00411350
add esp, 0xc
mov dword [ebp - 0x398], 0x11c
lea eax, [ebp - 0x398]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor edx, edx
mov ecx, 0x80004005
test eax, eax
cmovne ecx, edx
test ecx, ecx
js 0x40adaa
cmp dword [ebp - 0x394], 6
jne 0x40ad27
cmp dword [ebp - 0x390], 2
jne 0x40ad27
push ecx
call fcn.00406860
mov ecx, dword [ebp - 0x390]
add esp, 4
test al, al
mov edx, 3
cmovne ecx, edx
mov dword [ebp - 0x390], ecx
lea ecx, [ebp - 0x278]
call fcn.00406930
mov edx, dword [ebp - 0x278]
test edx, edx
jne 0x40ad40
xor ecx, ecx
jmp 0x40ad54
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40ad45
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x21c]
call fcn.004023b0
push dword [ebp - 0x38c]
lea eax, [ebp - 0x214]
push dword [ebp - 0x390]
push dword [ebp - 0x394]
push str._d._d._d
push eax
call fcn.00402650
mov eax, dword [ebp - 0x278]
add esp, 0x14
test eax, eax
je 0x40ada4
push eax
call fcn.0041089a
add esp, 4
mov dword [ebp - 0x278], 0
mov edi, dword [ebp - 0x21c]
call fcn.00401220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40adc6
push 0x80004005
call fcn.00401070
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x224], ebx
lea ecx, [ebp - 0x270]
mov byte [ebp - 4], 2
call fcn.00405fe0
test eax, eax
js 0x40ae19
xor esi, esi
jmp 0x40adf0
movzx eax, byte [ebp + esi - 0x270]
push eax
lea eax, [ebp - 0x224]
push str._02X
push eax
call fcn.00404ee0
inc esi
add esp, 0xc
cmp esi, 0x44
jb 0x40adf0
mov ebx, dword [ebp - 0x224]
call fcn.00401220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40ae35
push 0x80004005
call fcn.00401070
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x218], eax
push ecx
push 0
push ecx
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
mov edx, str.channel
mov ecx, str.SoftwareMicrosoftDeviceHealth
call fcn.00408f30
add esp, 0x10
cmp eax, 3
je 0x40ae7d
push 0
push 0x425908
lea ecx, [ebp - 0x218]
call fcn.004023b0
call fcn.00401220
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40ae99
push 0x80004005
call fcn.00401070
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x220], eax
push ecx
push 0
push ecx
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 4
push eax
mov edx, str.productName
mov ecx, str.SoftwareMicrosoftDeviceHealth
call fcn.00408f30
add esp, 0x10
cmp eax, 3
je 0x40aee1
push 0
push 0x425908
lea ecx, [ebp - 0x220]
call fcn.004023b0
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00411350
add esp, 0xc
lea ecx, [ebp - 0x210]
call fcn.00405240
push str.kernel32
mov dword [ebp - 0x228], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40af45
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40af45
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
mov esi, dword [ebp - 0x220]
lea eax, [ebp - 0x210]
cmp dword [ebp - 0x228], 0
mov ecx, 0x426610
push esi
push 0x2000000
push dword [ebp + 0xc]
push dword [ebp - 0x218]
push 0x425908
push eax
push 0x425908
mov eax, 0x426608
cmove eax, ecx
push eax
push dword [ebp - 0x214]
push edi
push ebx
push 0x386
push str._8SE
push str._s__d_DI_sMI_sOS_sPT_sODH_sDH_sOCN_sCN_sTE_dJV_dPN_sTV
push dword [ebp - 0x39c]
call fcn.00402650
lea edx, [esi - 0x10]
mov byte [ebp - 4], 3
or esi, 0xffffffff
lea ecx, [edx + 0xc]
add esp, 0x3c
mov eax, esi
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x40afc5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 2
mov ecx, esi
mov edx, dword [ebp - 0x218]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40afe8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add ebx, 0xfffffff0
mov byte [ebp - 4], 1
mov ecx, esi
lea eax, [ebx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b005
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov ecx, esi
mov edx, dword [ebp - 0x214]
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40b028
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edi + 0xc]
lock xadd dword [eax], esi
dec esi
test esi, esi
jg 0x40b046
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f9cf
mov esp, ebp
pop ebp
ret