Function at 0x415160
Capabilities:
Check os version

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a0de
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x208
mov eax, dword [0x5b7018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c4], edi
mov dword [ebp - 0x1c8], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x1e4], 0
call fcn.00408010
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1b8]
push eax
mov dword [ebp - 0x1e4], 1
mov dword [ebp - 0x1b8], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x1b4]
cmp eax, 0xa
jne 0x41521b
cmp dword [ebp - 0x1b0], 0
jne 0x41527c
xor edx, edx
cmp byte [ebp - 0x9e], 1
setne dl
add edx, 5
jmp 0x4152a2
cmp eax, 6
jne 0x41527c
mov eax, dword [ebp - 0x1b0]
cmp eax, 3
jne 0x41523c
xor edx, edx
cmp byte [ebp - 0x9e], 1
setne dl
add edx, 7
jmp 0x4152a2
cmp eax, 2
jne 0x415252
xor edx, edx
cmp byte [ebp - 0x9e], 1
setne dl
add edx, 9
jmp 0x4152a2
cmp eax, 1
jne 0x415267
xor edx, edx
cmp byte [ebp - 0x9e], al
setne dl
add edx, 0xb
jmp 0x4152a2
test eax, eax
jne 0x41527c
xor edx, edx
cmp byte [ebp - 0x9e], 1
sete dl
add edx, 0xd
jmp 0x4152a2
mov eax, dword [ebp - 0x1a8]
test eax, eax
jne 0x41528b
lea edx, [eax + 1]
jmp 0x4152a2
cmp eax, 1
jne 0x415295
lea edx, [eax + 1]
jmp 0x4152a2
xor edx, edx
mov ecx, 3
cmp eax, 2
cmove edx, ecx
lea ecx, [ebp - 0x214]
call fcn.00408010
mov dword [ebp - 4], 1
lea eax, [ebp - 0x98]
push edx
push 0x5a8350
push eax
mov dword [ebp - method.CWString.virtual_0], vtable.CWString.0
call fcn.00427cf0
add esp, 0xc
lea eax, [ebp - 0x98]
lea ecx, [ebp - 0x214]
push eax
call fcn.00428200
mov dword [ebp - 4], 2
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x44]
mov eax, dword [ebp - 0x210]
lea esi, [edi + 0x10]
mov dword [edi + 4], eax
mov ecx, esi
mov eax, dword [ebp - 0x20c]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x208]
mov dword [edi + 0xc], eax
mov eax, dword [esi]
mov dword [ebp - 0x1c8], esi
call dword [eax + 0x44]
lea eax, [ebp - 0x204]
mov ecx, esi
push eax
call fcn.00408630
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x214]
call fcn.00408ae0
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x41535b
cmp dword [edi + 0x24], eax
jne 0x41534e
mov eax, 0x5a66a4
jmp 0x41535b
cmp dword [esi + 0x14], 0
jne 0x415358
xor eax, eax
jmp 0x41535b
mov eax, dword [esi + 0xc]
mov ecx, 0x5a6dc8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x415386
test dx, dx
je 0x415382
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x415386
add eax, 4
add ecx, 4
test dx, dx
jne 0x415360
xor eax, eax
jmp 0x41538b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4153c2
mov dword [edi + 0xc], eax
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4153a1
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push 0x5a6dcc
mov ecx, esi
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
call fcn.004270a0
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x4153e2
cmp dword [edi + 0x24], eax
jne 0x4153d5
mov eax, 0x5a66a4
jmp 0x4153e2
cmp dword [esi + 0x14], 0
jne 0x4153df
xor eax, eax
jmp 0x4153e2
mov eax, dword [esi + 0xc]
mov ecx, 0x5a6dd8
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41540d
test dx, dx
je 0x415409
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41540d
add eax, 4
add ecx, 4
test dx, dx
jne 0x4153e7
xor eax, eax
jmp 0x415412
sbb eax, eax
or eax, 1
test eax, eax
jne 0x415449
mov dword [edi + 0xc], eax
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x415428
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push str.Win7
mov ecx, esi
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
call fcn.004270a0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x415454
mov ecx, eax
jmp 0x41546e
cmp dword [edi + 0x24], 0
jne 0x415461
mov ecx, 0x5a66a4
jmp 0x41546e
cmp dword [esi + 0x14], 0
jne 0x41546b
xor ecx, ecx
jmp 0x41546e
mov ecx, dword [esi + 0xc]
mov edx, 0x5a6dec
mov di, word [ecx]
cmp di, word [edx]
mov edi, dword [ebp - 0x1c4]
jne 0x4154af
cmp word [ecx], 0
je 0x4154ab
mov si, word [ecx + 2]
cmp si, word [edx + 2]
mov word [ebp - 0x1ba], si
lea esi, [edi + 0x10]
jne 0x4154af
add ecx, 4
add edx, 4
cmp word [ebp - 0x1ba], 0
jne 0x415473
xor ecx, ecx
jmp 0x4154b4
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x41565e
mov dword [ebp - method.CWString.virtual_0], 0x5a6608
mov dword [ebp - method.CWString.virtual_0], vtable.CVolObject.0
mov dword [ebp - 0x1dc], ecx
mov dword [ebp - 0x1d8], ecx
mov dword [ebp - 4], 3
xor eax, eax
mov dword [ebp - method.CWString.virtual_0], vtable.rg_n13954::rg_n15528.0
mov dword [ebp - 0x1d4], ecx
mov dword [ebp - 0x1d0], ecx
mov word [ebp - 0x1cc], ax
mov dword [ebp - 4], 4
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4155f2
push str.NtQueryInformationProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c0], eax
test eax, eax
je 0x4155f2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x1bc], eax
test eax, eax
je 0x4155f2
lea ecx, [ebp - 0x1e8]
mov dword [ebp - 0x1e8], 0
push ecx
push 0x18
lea ecx, [ebp - 0x200]
xorps xmm0, xmm0
push ecx
push 0
push eax
movups xmmword [ebp - 0x200], xmm0
movq qword [ebp - 0x1f0], xmm0
call dword [ebp - 0x1c0]
mov eax, dword [ebp - 0x1fc]
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0
push 4
lea ecx, [eax + 0xa4]
lea edi, [eax + 0xa8]
add eax, 0xac
mov dword [ebp - 0x1c0], eax
lea eax, [ebp - 0x1d4]
push eax
push ecx
push dword [ebp - 0x1bc]
call esi
push 0
push 4
lea eax, [ebp - 0x1d0]
push eax
push edi
mov edi, dword [ebp - 0x1bc]
push edi
call esi
push 0
push 2
lea eax, [ebp - 0x1cc]
push eax
push dword [ebp - 0x1c0]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x1c8]
mov edi, dword [ebp - 0x1c4]
mov dword [edi + 0xc], 0
mov eax, 0x55f0
mov ecx, dword [esi + 0xc]
cmp word [ebp - 0x1cc], ax
jle 0x41561d
test ecx, ecx
je 0x415616
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push 0x5a6df0
jmp 0x41562e
test ecx, ecx
je 0x415629
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push str.Win10
mov dword [esi + 0xc], 0
mov ecx, esi
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
call fcn.004270a0
mov dword [ebp - 4], 0
mov eax, dword [edi + 0xc]
mov dword [ebp - method.CWString.virtual_0], vtable.CVolObject.0
test eax, eax
jne 0x41567b
cmp dword [edi + 0x24], eax
jne 0x41566e
mov eax, 0x5a66a4
jmp 0x41567b
cmp dword [esi + 0x14], 0
jne 0x415678
xor eax, eax
jmp 0x41567b
mov eax, dword [esi + 0xc]
mov ecx, 0x5a6e08
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4156a6
test dx, dx
je 0x4156a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4156a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x415680
xor eax, eax
jmp 0x4156ab
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4156e2
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4156c1
mov edx, dword [esi]
mov ecx, esi
push eax
call dword [edx + 0xc]
push 0x5a6dcc
mov ecx, esi
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
call fcn.004270a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0042c695
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret