Function at 0x491b50
Capabilities:
Check os version
Get memory capacity
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1d0
mov ebx, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [0x5c7040]
xor ecx, ebp
mov dword [esp + 0x1c8], ecx
mov dword [ebx + 0x1c], eax
lea edi, [esp + 0xa4]
xor esi, esi
push 0x118
push esi
push edi
call fcn.004f9090
add esp, 0xc
mov dword [edi - 4], 0x11c
mov byte [edi + 0x116], 1
sub esp, 0x10
movdqa xmm0, xmmword [0x5b9680]
movdqu xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
lea edi, [esp + 0xa0]
push edx
push eax
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
sete byte [ebx + 0x2c]
mov dword [esp + 0x5c], esi
lea eax, [esp + 0x58]
mov dword [eax], 0xffffffff
push eax
push 1
mov dword [esp + 0x14], 0
push esi
mov esi, ebx
mov ebx, edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x49211e
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x60]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
mov dword [edi + 0x30], 0xffffffff
mov ecx, ebx
push 0xc
push str.kernel32.dll
call fcn.004ba420
push edi
push ebx
call fcn.00579710
add esp, 8
mov ecx, ebx
mov ebx, eax
call fcn.004ba510
test bl, bl
je 0x491fc6
xor edi, edi
dec edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x50], edi
mov ebx, dword [esp + 0x7c]
pxor xmm0, xmm0
movq qword [esp + 0xa0], xmm0
mov dword [esp + 0xa8], 0
test bl, 1
jne 0x491dbf
test bl, 4
jne 0x491dd7
test bl, 2
jne 0x491d8f
test bl, 8
jne 0x491d77
test bl, 0x20
jne 0x491da7
movsx eax, byte [esp + 0xab]
test eax, eax
lea ebx, [esp + 0xa0]
jns 0x491cbb
mov eax, dword [esp + 0xa4]
test eax, eax
jne 0x491def
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x50], eax
movq xmm0, qword [esp + 0xa0]
movq qword [esp + 0x48], xmm0
pxor xmm0, xmm0
movq qword [esp + 0xa0], xmm0
mov dword [esp + 0xa8], 0
cmp byte [esp + 0xab], 0
jns 0x491d0e
push dword [esp + 0xa0]
call fcn.004f50ae
add esp, 4
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa8], edi
xor edi, dword [esp + 0x80]
test edi, 0x40004
je 0x491e07
lea eax, [esp + 0xa7]
mov byte [eax + 4], 7
mov ecx, str.Unknown
cmp ebx, ecx
seta dl
cmp eax, ecx
setbe cl
or cl, dl
je 0x4922be
mov ecx, dword [0x5a3aec]
mov dword [esp + 0xa3], ecx
mov ecx, dword [str.Unknown]
mov dword [esp + 0xa0], ecx
jmp 0x491e50
lea ecx, [esp + 0xa0]
push 8
push str.Private_
call fcn.004a4720
jmp 0x491c98
lea ecx, [esp + 0xa0]
push 0xb
push str.Prerelease_
call fcn.004a4720
jmp 0x491c8f
lea ecx, [esp + 0xa0]
push 8
push str.Special_
call fcn.004a4720
jmp 0x491ca1
lea ecx, [esp + 0xa0]
push 6
push str.Debug_
call fcn.004a4720
jmp 0x491c7d
lea ecx, [esp + 0xa0]
push 8
push str.Patched_
call fcn.004a4720
jmp 0x491c86
dec eax
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x48]
push edx
push eax
push 0
push ebx
call fcn.004a49a0
jmp 0x491cf5
lea eax, [esp + 0xaa]
mov byte [eax + 1], 0xa
mov ecx, str.Windows_NT
lea edx, [esp + 0xa0]
cmp edx, ecx
seta dl
cmp eax, ecx
setbe cl
or cl, dl
je 0x4922be
movzx ecx, word [0x5adec8]
mov word [esp + 0xa8], cx
movq xmm0, qword [str.Windows_NT]
movq qword [esp + 0xa0], xmm0
mov byte [eax], 0
cmp byte [esp + 0xc], 0
je 0x491e60
mov eax, dword [esp + 0x5c]
jmp 0x491e85
mov eax, dword [esp + 0x68]
mov ecx, eax
shr ecx, 0x10
mov dword [esi + 0x20], ecx
and eax, 0xffff
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x6c]
mov ecx, eax
shr ecx, 0x10
mov dword [esi + 0x28], ecx
and eax, 0xffff
lea ecx, [esp + 0x3c]
push eax
push 0x5a3a80
push ecx
call fcn.004afe40
add esp, 0xc
lea edi, [esi + 0x10]
cmp byte [esi + 0x1b], 0
jns 0x491eab
push dword [edi]
call fcn.004f50ae
add esp, 4
mov eax, dword [esp + 0x44]
mov dword [edi + 8], eax
movq xmm0, qword [esp + 0x3c]
mov dword [esp + 0xc], edi
movq qword [edi], xmm0
movsx ecx, byte [esp + 0x53]
mov ebx, ecx
test ecx, ecx
jns 0x491ecf
mov ebx, dword [esp + 0x4c]
mov edi, 0x5a19f4
test ebx, ebx
mov dword [esp + 0x10], ebx
jne 0x492073
cmp byte [esi + 0x1b], 0
jns 0x491ef0
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x20]
mov ebx, dword [esi + 0x24]
cmp byte [esp + 0xab], 0
lea eax, [esp + 0xa0]
jns 0x491f11
mov eax, dword [esp + 0xa0]
push edi
push dword [esp + 0x10]
push edx
push ebx
push ecx
push eax
push str._s__u._u._u._s_s
lea eax, [esp + 0x58]
push eax
call fcn.004afe40
add esp, 0x20
lea edi, [esi + 4]
cmp byte [esi + 0xf], 0
jns 0x491f3f
push dword [edi]
call fcn.004f50ae
add esp, 4
mov eax, dword [esp + 0x44]
mov dword [edi + 8], eax
xor eax, eax
movq xmm0, qword [esp + 0x3c]
movq qword [edi], xmm0
mov byte [esp + 0x47], al
mov byte [esp + 0x3c], al
cmp dword [esp + 0x10], 0
je 0x491f9a
cmp byte [esp + 0x3b], 0
jns 0x491f74
push dword [esp + 0x30]
call fcn.004f50ae
add esp, 4
cmp byte [esp + 0x2b], 0
jns 0x491f87
push dword [esp + 0x20]
call fcn.004f50ae
add esp, 4
cmp byte [esp + 0x1f], 0
jns 0x491f9a
push dword [esp + 0x14]
call fcn.004f50ae
add esp, 4
cmp byte [esp + 0xab], 0
jns 0x491fb3
push dword [esp + 0xa0]
call fcn.004f50ae
add esp, 4
cmp byte [esp + 0x53], 0
jns 0x491fc6
push dword [esp + 0x48]
call fcn.004f50ae
add esp, 4
pxor xmm0, xmm0
movdqa xmmword [esp + 0xa0], xmm0
movdqa xmmword [esp + 0xd0], xmm0
movdqa xmmword [esp + 0xc0], xmm0
movdqa xmmword [esp + 0xb0], xmm0
mov dword [esp + 0xa0], 0x40
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x49205b
mov eax, dword [esp + 0xa8]
cmp byte [esi + 0x34], 0
jne 0x49201c
mov byte [esi + 0x34], 1
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0xb0]
cmp byte [esi + 0x3c], 0
jne 0x492030
mov byte [esi + 0x3c], 1
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0xb8]
cmp byte [esi + 0x44], 0
jne 0x492044
mov byte [esi + 0x44], 1
mov dword [esi + 0x40], eax
mov eax, dword [esp + 0xc0]
mov dword [esi + 0x48], eax
cmp byte [esi + 0x4c], 0
jne 0x49205b
mov byte [esi + 0x4c], 1
mov ecx, dword [esp + 0x1c8]
xor ecx, ebp
call fcn.004f5620
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea eax, [esp + 0x16]
mov byte [eax + 9], 2
mov edx, 0x5a1ee1
lea ebx, [esp + 0x14]
cmp ebx, edx
seta bl
cmp eax, edx
setbe al
or al, bl
je 0x4922be
mov word [esp + 0x14], 0x2820
mov byte [esp + 0x16], 0
test cl, cl
js 0x4920ac
lea eax, [esp + 0x48]
jmp 0x4920b0
mov eax, dword [esp + 0x48]
mov ebx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ebx
push eax
call fcn.004a4720
movsd xmm0, qword [eax]
lea ecx, [esp + 0x20]
movsd qword [ecx], xmm0
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
xor edi, edi
mov dword [eax + 8], edi
xorps xmm0, xmm0
movsd qword [eax], xmm0
push 1
push 0x5a0a2b
call fcn.004a4720
movq xmm0, qword [eax]
movq qword [esp + 0x30], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
mov dword [eax + 8], edi
pxor xmm0, xmm0
movq qword [eax], xmm0
cmp byte [esp + 0x3b], 0
jns 0x492115
mov edi, dword [esp + 0x30]
jmp 0x491ee0
lea edi, [esp + 0x30]
jmp 0x491ee0
mov edi, dword [esp + 0x58]
lea eax, [esi + 0x20]
mov ecx, edi
mov edx, str.CurrentMajorVersionNumber
push eax
call fcn.00579a50
add esp, 4
test al, al
jne 0x492155
mov dword [esp + 0xc], 0
test edi, edi
je 0x491c03
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x491c03
lea eax, [esi + 0x24]
mov ecx, dword [esp + 0x58]
mov edx, str.CurrentMinorVersionNumber
push eax
call fcn.00579a50
add esp, 4
test al, al
je 0x492139
mov eax, dword [esp + 0x58]
mov dword [esp + 0xc], eax
xor ecx, ecx
dec ecx
lea eax, [esp + 0x60]
mov dword [eax + 7], ecx
mov dword [eax + 4], ecx
mov dword [eax], ecx
lea edx, [esp + 0x48]
mov dword [edx], ecx
lea ecx, [esp + 0x3c]
mov dword [ecx], 0xa
push ecx
push eax
push edx
push 0
push str.CurrentBuildNumber
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x492139
cmp dword [esp + 0x48], 1
jne 0x492139
mov eax, dword [esp + 0x3c]
mov byte [esp + eax + 0x60], 0
mov dword [esp + 0x30], 0xffffffff
lea eax, [esp + 0x60]
push eax
call fcn.00510cc0
add esp, 4
cmp eax, 0x7ffffff8
jae 0x4922cd
mov ebx, eax
cmp eax, 0xa
mov dword [esp + 0x10], edi
jbe 0x492285
mov edi, ebx
or edi, 7
inc edi
push edi
call fcn.004f507e
add esp, 4
mov dword [esp + 0xa0], eax
or edi, 0x80000000
mov dword [esp + 0xa8], edi
mov dword [esp + 0xa4], ebx
lea edi, [eax + ebx]
lea edx, [esp + 0x60]
cmp eax, edx
seta cl
cmp edi, edx
setbe dl
or dl, cl
je 0x4922be
test ebx, ebx
je 0x492242
push ebx
lea ecx, [esp + 0x64]
push ecx
push eax
call fcn.004f8b10
add esp, 0xc
mov byte [edi], 0
lea eax, [esp + 0x30]
lea edi, [esp + 0xa0]
push eax
push edi
call fcn.00488790
add esp, 8
mov ebx, eax
cmp byte [edi + 0xb], 0
jns 0x492271
push dword [esp + 0xa0]
call fcn.004f50ae
add esp, 4
test bl, bl
mov edi, dword [esp + 0x10]
jne 0x492291
lea ebx, [esp + 0xa0]
jmp 0x492139
lea eax, [esp + 0xa0]
mov byte [eax + 0xb], bl
jmp 0x492216
mov eax, dword [esp + 0x30]
mov dword [esi + 0x28], eax
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x5c]
mov edx, 0x5adcba
push eax
call fcn.00579a50
add esp, 4
mov dword [esp + 0xc], eax
lea ebx, [esp + 0xa0]
jmp 0x492141
push str....._third_partylibc_srcinclude__stringchar_traits.h:145:_assertion__std::__is_pointer_in_range___s1____s1____n____s2__failed:_char_traits::copy:_source_and_destination_ranges_overlap_n
push 0x59f83f
call fcn.00526860
lea ecx, [esp + 0xa0]
call fcn.00525850
int3