Function at 0x42cff0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x160
mov eax, dword [0x5599f4]
mov esi, ecx
xor ebx, ebx
xor eax, ebp
mov dword [esp + 0x158], eax
mov dword [esi], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0x3c], 0xf
mov dword [esi + 0x38], 0
mov byte [esi + 0x28], 0
mov dword [esi + 0x40], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
push 0x50ff6e
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x510c0e
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov ecx, 0
je 0x42d087
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], 0
push ecx
push edi
call eax
xor edx, edx
cmp dword [esp + 0x3c], 0
mov ecx, 2
setne dl
test eax, eax
cmovne ecx, edx
mov eax, 0xf
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], eax
mov byte [esi + 0x50], 0
lea eax, [esp + 0x40]
push 0x118
push 0
push eax
call fcn.004d7460
add esp, 0xc
lea eax, [esp + 0x3c]
mov dword [esp + 0x3c], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x40]
mov edi, esp
mov ecx, edi
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x44]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0x14], eax
call fcn.00457460
mov ecx, edi
push 1
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call fcn.00414410
test eax, eax
jne 0x42d116
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
mov ecx, esp
push eax
push 0x510c78
call fcn.004144e0
mov ebx, dword [esp + 0x24]
mov ecx, esp
call fcn.00414490
mov dword [esi + 0x18], ebx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0xc]
test eax, eax
jle 0x42d143
cmp edx, 5
jne 0x42d143
xor ecx, ecx
cmp eax, 1
mov eax, 2
sete cl
sub eax, ecx
jmp 0x42d198
cmp edx, 0xa
je 0x42d15d
cmp edx, 6
jne 0x42d18b
cmp eax, 3
lea ecx, [eax + 3]
mov eax, 6
cmovb eax, ecx
jmp 0x42d198
mov eax, 7
cmp ecx, 0x295a
jl 0x42d198
mov eax, 8
cmp ecx, 0x3839
jl 0x42d198
xor edx, edx
cmp ecx, 0x3ad7
mov eax, 0xa
setl dl
sub eax, edx
jmp 0x42d198
xor ecx, ecx
cmp edx, 6
mov eax, 0xb
cmovle eax, ecx
mov dword [esi], eax
lea edi, [esi + 0x28]
movzx eax, word [esp + 0x150]
mov dword [esi + 0x20], eax
movzx eax, word [esp + 0x152]
mov dword [esi + 0x24], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], 0
mov word [esp + 0x24], 0
push eax
call fcn.004dc2cd
add esp, 4
mov ebx, eax
cmp ebx, 7
jbe 0x42d1ff
sub esp, 0xc
mov al, byte [esp + 0xc]
lea ecx, [esp + 0x30]
mov byte [esp + 4], al
lea eax, [esp + 0x5c]
mov dword [esp], ebx
mov dword [esp + 8], eax
call fcn.00401822
jmp 0x42d221
mov eax, ebx
mov dword [esp + 0x34], ebx
lea ecx, [esp + 0x24]
add eax, eax
push eax
lea eax, [esp + 0x54]
push eax
push ecx
call fcn.004d7b40
add esp, 0xc
mov word [esp + ebx*2 + 0x24], 0
lea eax, [esp + 0x24]
push eax
lea ebx, [esp + 4]
push ebx
call fcn.0041a550
add esp, 8
cmp ebx, edi
je 0x42d2ab
mov ecx, dword [esi + 0x3c]
cmp ecx, 0x10
jb 0x42d276
mov eax, dword [edi]
inc ecx
cmp ecx, 0x1000
jb 0x42d26d
test al, 0x1f
jne 0x42d46a
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x42d46a
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
mov eax, ecx
jae 0x42d46a
push eax
call fcn.004d4c09
add esp, 4
movsd xmm0, qword [esp + 0x10]
movsd qword [edi + 0x10], xmm0
movsd xmm0, qword [esp]
movsd xmm1, qword [esp + 8]
movsd qword [edi + 8], xmm1
movsd qword [edi], xmm0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xf
mov byte [esp], 0
jmp 0x42d2ec
mov ecx, dword [esp + 0x14]
cmp ecx, 0x10
jb 0x42d2ec
mov eax, dword [esp]
inc ecx
cmp ecx, 0x1000
jb 0x42d2e3
test al, 0x1f
jne 0x42d46a
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x42d46a
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
mov eax, ecx
jae 0x42d46a
push eax
call fcn.004d4c09
add esp, 4
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0xf
mov byte [esp], 0
cmp ecx, 8
jb 0x42d34a
inc ecx
js 0x42d46a
mov eax, dword [esp + 0x24]
add ecx, ecx
cmp ecx, 0x1000
jb 0x42d341
test al, 0x1f
jne 0x42d46a
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x42d46a
add eax, 0xfffffffc
sub eax, ecx
cmp eax, 0x20
mov eax, ecx
jae 0x42d46a
push eax
call fcn.004d4c09
add esp, 4
xorps xmm0, xmm0
mov eax, esp
mov dword [esp + 0x20], 0
movaps xmmword [esp + 0x10], xmm0
movaps xmmword [esp], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [esp]
test ax, ax
je 0x42d38b
movzx ecx, ax
cmp ecx, 6
je 0x42d384
cmp ecx, 9
jne 0x42d390
mov ecx, 1
jmp 0x42d38d
mov ecx, 2
jmp 0x42d38d
xor ecx, ecx
mov dword [esi + 0x40], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x44], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x48], ecx
mov ecx, dword [esp + 0x40]
cmp ecx, 5
je 0x42d3fb
cmp ecx, 0xa
je 0x42d3b5
cmp ecx, 6
jne case.0x42d3eb.2
push 0x50ff6e
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetProductInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push dword [esp + 0x50]
push dword [esp + 0x50]
call eax
mov eax, dword [esp + 0x24]
dec eax
cmp eax, 0x81
ja case.0x42d3eb.2
jmp dword [eax*4 + 0x510c80]
mov dword [esi + 0x1c], 3
jmp 0x42d449
mov ecx, dword [esp + 0x44]
cmp ecx, 1
je 0x42d42f
cmp ecx, 2
jne case.0x42d3eb.2
movzx eax, ax
cmp eax, 9
jne 0x42d41b
cmp byte [esp + 0x156], 1
je case.0x42d3eb.1
cmp word [esp + 0x154], 0
js case.0x42d3eb.2
mov dword [esi + 0x1c], 2
jmp 0x42d449
test byte [esp + 0x155], 2
jne case.0x42d3eb.2
mov dword [esi + 0x1c], 1
jmp 0x42d449
mov dword [esi + 0x1c], 0
mov ecx, dword [esp + 0x158]
xor ecx, ebp
call fcn.004d4bc8
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi + 0x1c], 4
jmp 0x42d449
call fcn.004dc775
int3