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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x5875a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x28]
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0xf
mov byte [ebx], 0
mov dword [esi + 0x40], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push 0x5573b0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4f3281
lea ecx, [ebp - 0x154]
mov dword [ebp - 0x154], 0
push ecx
push edi
call eax
test eax, eax
jne 0x4f3276
mov eax, 2
jmp 0x4f3281
xor eax, eax
cmp dword [ebp - 0x154], eax
setne al
mov dword [esi + 0x4c], eax
lea eax, [ebp - 0x14c]
push 0x118
push 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0xf
push eax
mov byte [esi + 0x50], 0
mov dword [ebp - 0x150], 0x11c
call fcn.00520ff0
add esp, 0xc
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x14c]
lea ecx, [ebp - 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x148]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x144]
mov dword [esi + 0x14], eax
call fcn.004f8b30
push 1
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
call fcn.004f8b80
lea ecx, [ebp - 0x10]
test eax, eax
je 0x4f330a
call fcn.004f8b50
xor edi, edi
jmp 0x4f3333
lea eax, [ebp - 0x154]
mov dword [ebp - 0x154], 0
push eax
push 0x56ca0c
call fcn.004f8be0
mov edi, dword [ebp - 0x154]
lea ecx, [ebp - 0x10]
call fcn.004f8b50
push dword [esi + 0x14]
mov dword [esi + 0x18], edi
push dword [esi + 0x10]
push dword [esi + 0xc]
call fcn.004f3890
mov dword [esi], eax
lea ecx, [ebp - 0x13c]
movzx eax, word [ebp - 0x3c]
lea edx, [ecx + 2]
mov dword [esi + 0x20], eax
add esp, 0xc
movzx eax, word [ebp - 0x3a]
mov dword [esi + 0x24], eax
xor eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 7
mov word [ebp - 0x34], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4f3374
sub ecx, edx
lea eax, [ebp - 0x13c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.004968f0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004f6de0
mov edi, eax
add esp, 8
cmp ebx, edi
je 0x4f33d1
mov ecx, ebx
call fcn.00516240
movups xmm0, xmmword [edi]
movups xmmword [ebx], xmm0
movq xmm0, qword [edi + 0x10]
movq qword [ebx + 0x10], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x4f3417
mov ecx, dword [ebp - 0x1c]
inc eax
cmp eax, 0x1000
jb 0x4f340e
test cl, 0x1f
jne 0x4f35e9
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x4f35e9
sub ecx, eax
cmp ecx, 4
jb 0x4f35e9
cmp ecx, 0x23
ja 0x4f35e9
mov ecx, eax
push ecx
call fcn.004db150
add esp, 4
lea ecx, [ebp - 0x34]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
call fcn.00496890
xorps xmm0, xmm0
mov dword [ebp - 0x15c], 0
lea eax, [ebp - 0x17c]
push eax
movups xmmword [ebp - 0x17c], xmm0
movups xmmword [ebp - 0x16c], xmm0
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov cx, word [ebp - 0x17c]
movzx eax, cx
test eax, eax
je 0x4f3483
cmp eax, 6
je 0x4f347a
cmp eax, 9
jne 0x4f348a
mov dword [esi + 0x40], 1
jmp 0x4f348a
mov dword [esi + 0x40], 2
jmp 0x4f348a
mov dword [esi + 0x40], 0
mov eax, dword [ebp - 0x168]
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0x160]
mov dword [esi + 0x48], eax
mov eax, dword [ebp - 0x14c]
cmp eax, 6
je 0x4f351b
cmp eax, 0xa
je 0x4f351b
cmp eax, 5
jne case.0x4f3560.2
mov eax, dword [ebp - 0x148]
cmp eax, 2
jne 0x4f34f1
cmp byte [ebp - 0x36], 1
jne 0x4f34d0
cmp cx, 9
je case.0x4f3560.1
mov eax, dword [ebp - 0x38]
shr eax, 0xe
not eax
and eax, 2
mov dword [esi + 0x1c], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004db63a
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne case.0x4f3560.2
mov eax, dword [ebp - 0x38]
shr eax, 9
not eax
and eax, 1
mov dword [esi + 0x1c], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004db63a
mov esp, ebp
pop ebp
ret
push str.GetProductInfo
push 0x5573b0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x158]
push ecx
push 0
push 0
push dword [ebp - 0x148]
push dword [ebp - 0x14c]
call eax
mov eax, dword [ebp - 0x158]
dec eax
cmp eax, 0x81
ja case.0x4f3560.2
movzx eax, byte [eax + 0x4f3604]
jmp dword [eax*4 + 0x4f35f0]
pop edi
mov dword [esi + 0x1c], 2
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004db63a
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi + 0x1c], 1
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004db63a
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi + 0x1c], 3
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004db63a
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi + 0x1c], 4
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004db63a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
mov dword [esi + 0x1c], 0
xor ecx, ebp
pop esi
pop ebx
call fcn.004db63a
mov esp, ebp
pop ebp
ret
call fcn.00525588
nop
xor dword [0x359b004f], 0x3567004f
dec edi
add byte [ebp - 0x30ffb0cb], dh
xor eax, 0x400004f
add al, 1
add al, 1
add al, byte [edx]
add al, byte [edx]
add al, 2
add al, byte [edx]
add al, byte [ecx]
add al, byte [edx]
add al, 4
add al, 4
add al, 4
add al, byte [ecx + eax]
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add byte [esp + eax], al
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 1
add al, 1
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 1
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add eax, dword [ebx]
add al, 4
add dword [ecx], eax
add al, 4
add dword [ecx], eax
int3