Function at 0x415840
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a29e
mov eax, dword fs:[0]
push eax
sub esp, 0x200
mov eax, dword [0x5b7018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1b8], edi
mov dword [ebp - 0x1bc], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x20c], edi
mov dword [ebp - 0x1d8], 0
call fcn.00408010
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1ac]
push eax
mov dword [ebp - 0x1d8], 1
mov dword [ebp - 0x1ac], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x1a8]
cmp eax, 0xa
jne 0x4158e7
cmp dword [ebp - 0x1a4], 0
jne 0x415948
xor edx, edx
cmp byte [ebp - 0x92], 1
setne dl
add edx, 5
jmp 0x41596e
cmp eax, 6
jne 0x415948
mov eax, dword [ebp - 0x1a4]
cmp eax, 3
jne 0x415908
xor edx, edx
cmp byte [ebp - 0x92], 1
setne dl
add edx, 7
jmp 0x41596e
cmp eax, 2
jne 0x41591e
xor edx, edx
cmp byte [ebp - 0x92], 1
setne dl
add edx, 9
jmp 0x41596e
cmp eax, 1
jne 0x415933
xor edx, edx
cmp byte [ebp - 0x92], al
setne dl
add edx, 0xb
jmp 0x41596e
test eax, eax
jne 0x415948
xor edx, edx
cmp byte [ebp - 0x92], 1
sete dl
add edx, 0xd
jmp 0x41596e
mov eax, dword [ebp - 0x19c]
test eax, eax
jne 0x415957
lea edx, [eax + 1]
jmp 0x41596e
cmp eax, 1
jne 0x415961
lea edx, [eax + 1]
jmp 0x41596e
xor edx, edx
mov ecx, 3
cmp eax, 2
cmove edx, ecx
lea ecx, [ebp - 0x208]
call fcn.00408010
mov dword [ebp - 4], 1
lea eax, [ebp - 0x90]
push edx
push 0x5a8440
push eax
mov dword [ebp - method.CWString.virtual_0], vtable.CWString.0
call fcn.00429e80
add esp, 0xc
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x208]
push eax
call fcn.0042a3c0
mov dword [ebp - 4], 2
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x44]
mov eax, dword [ebp - 0x204]
lea esi, [edi + 0x10]
mov dword [edi + 4], eax
mov ecx, esi
mov eax, dword [ebp - 0x200]
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x1fc]
mov dword [edi + 0xc], eax
mov eax, dword [esi]
mov dword [ebp - 0x1bc], esi
call dword [eax + 0x44]
lea eax, [ebp - 0x1f8]
mov ecx, esi
push eax
call fcn.00408630
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x208]
call fcn.00408ae0
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x415a27
cmp dword [edi + 0x24], eax
jne 0x415a1a
mov eax, 0x5a6674
jmp 0x415a27
cmp dword [esi + 0x14], 0
jne 0x415a24
xor eax, eax
jmp 0x415a27
mov eax, dword [esi + 0xc]
mov ecx, 0x5a6d80
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x415a56
test dx, dx
je 0x415a52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x415a56
add eax, 4
add ecx, 4
test dx, dx
jne 0x415a30
xor eax, eax
jmp 0x415a5b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x415a92
mov dword [edi + 0xc], eax
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x415a71
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push 0x5a6d84
mov ecx, esi
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
call fcn.004292a0
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x415ab2
cmp dword [edi + 0x24], eax
jne 0x415aa5
mov eax, 0x5a6674
jmp 0x415ab2
cmp dword [esi + 0x14], 0
jne 0x415aaf
xor eax, eax
jmp 0x415ab2
mov eax, dword [esi + 0xc]
mov ecx, 0x5a6d90
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x415add
test dx, dx
je 0x415ad9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x415add
add eax, 4
add ecx, 4
test dx, dx
jne 0x415ab7
xor eax, eax
jmp 0x415ae2
sbb eax, eax
or eax, 1
test eax, eax
jne 0x415b19
mov dword [edi + 0xc], eax
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x415af8
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.004292a0
mov eax, dword [edi + 0xc]
test eax, eax
je 0x415b24
mov ecx, eax
jmp 0x415b3e
cmp dword [edi + 0x24], 0
jne 0x415b31
mov ecx, 0x5a6674
jmp 0x415b3e
cmp dword [esi + 0x14], 0
jne 0x415b3b
xor ecx, ecx
jmp 0x415b3e
mov ecx, dword [esi + 0xc]
mov edx, 0x5a6da4
mov di, word [ecx]
cmp di, word [edx]
mov edi, dword [ebp - 0x1b8]
jne 0x415b7f
cmp word [ecx], 0
je 0x415b7b
mov si, word [ecx + 2]
cmp si, word [edx + 2]
mov word [ebp - 0x1ae], si
lea esi, [edi + 0x10]
jne 0x415b7f
add ecx, 4
add edx, 4
cmp word [ebp - 0x1ae], 0
jne 0x415b43
xor ecx, ecx
jmp 0x415b84
sbb ecx, ecx
or ecx, 1
test ecx, ecx
jne 0x415d2e
mov dword [ebp - method.CWString.virtual_0], 0x5a65d8
mov dword [ebp - method.CWString.virtual_0], vtable.CVolObject.0
mov dword [ebp - 0x1d0], ecx
mov dword [ebp - 0x1cc], 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 - 0x1c8], ecx
mov dword [ebp - 0x1c4], ecx
mov word [ebp - 0x1c0], ax
mov dword [ebp - 4], 4
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x415cc2
push str.NtQueryInformationProcess
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1b4], eax
test eax, eax
je 0x415cc2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x1b0], eax
test eax, eax
je 0x415cc2
lea ecx, [ebp - 0x1dc]
mov dword [ebp - 0x1dc], 0
push ecx
push 0x18
lea ecx, [ebp - 0x1f4]
xorps xmm0, xmm0
push ecx
push 0
push eax
movups xmmword [ebp - 0x1f4], xmm0
movq qword [ebp - 0x1e4], xmm0
call dword [ebp - 0x1b4]
mov eax, dword [ebp - 0x1f0]
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 - 0x1b4], eax
lea eax, [ebp - 0x1c8]
push eax
push ecx
push dword [ebp - 0x1b0]
call esi
push 0
push 4
lea eax, [ebp - 0x1c4]
push eax
push edi
mov edi, dword [ebp - 0x1b0]
push edi
call esi
push 0
push 2
lea eax, [ebp - 0x1c0]
push eax
push dword [ebp - 0x1b4]
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x1bc]
mov edi, dword [ebp - 0x1b8]
mov dword [edi + 0xc], 0
mov eax, 0x55f0
mov ecx, dword [esi + 0xc]
cmp word [ebp - 0x1c0], ax
jle 0x415ced
test ecx, ecx
je 0x415ce6
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push 0x5a6da8
jmp 0x415cfe
test ecx, ecx
je 0x415cf9
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.004292a0
mov dword [ebp - 4], 0
mov eax, dword [edi + 0xc]
mov dword [ebp - method.CWString.virtual_0], vtable.CVolObject.0
test eax, eax
jne 0x415d4b
cmp dword [edi + 0x24], eax
jne 0x415d3e
mov eax, 0x5a6674
jmp 0x415d4b
cmp dword [esi + 0x14], 0
jne 0x415d48
xor eax, eax
jmp 0x415d4b
mov eax, dword [esi + 0xc]
mov ecx, 0x5a6dc0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x415d76
test dx, dx
je 0x415d72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x415d76
add eax, 4
add ecx, 4
test dx, dx
jne 0x415d50
xor eax, eax
jmp 0x415d7b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x415db2
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x415d91
mov edx, dword [esi]
mov ecx, esi
push eax
call dword [edx + 0xc]
push 0x5a6d84
mov ecx, esi
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
call fcn.004292a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042e9e7
mov esp, ebp
pop ebp
ret