Function at 0x497a00
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 dword [esp + 8], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [0x5c1040]
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.004f5920
add esp, 0xc
mov dword [edi - 4], 0x11c
mov byte [edi + 0x116], 1
sub esp, 0x10
movdqa xmm0, xmmword [0x5b3da0]
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 ebx, edi
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x497ffc
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.004bca00
push edi
push ebx
call fcn.005746a0
add esp, 8
mov ecx, ebx
mov ebx, eax
call fcn.004bcaf0
test bl, bl
je 0x497e8d
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 0x497c3d
test bl, 4
jne 0x497c55
test bl, 2
jne 0x497c25
test bl, 8
jne 0x497c6d
test bl, 0x20
jne 0x497c85
movsx eax, byte [esp + 0xab]
test eax, eax
lea ebx, [esp + 0xa0]
jns 0x497b6d
mov eax, dword [esp + 0xa4]
test eax, eax
jne 0x497c9d
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 0x497bc0
push dword [esp + 0xa0]
call fcn.004f193e
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 0x497cb5
lea eax, [esp + 0xa7]
mov byte [eax + 4], 7
cmp ebx, str.Unknown
ja 0x497c06
cmp eax, str.Unknown
ja 0x4981a0
mov ecx, dword [0x59e98c]
mov dword [esp + 0xa3], ecx
mov ecx, dword [str.Unknown]
mov dword [esp + 0xa0], ecx
jmp 0x497cfa
lea ecx, [esp + 0xa0]
push 0xb
push str.Prerelease_
call fcn.004a8870
jmp 0x497b41
lea ecx, [esp + 0xa0]
push 6
push str.Debug_
call fcn.004a8870
jmp 0x497b2f
lea ecx, [esp + 0xa0]
push 8
push str.Patched_
call fcn.004a8870
jmp 0x497b38
lea ecx, [esp + 0xa0]
push 8
push str.Private_
call fcn.004a8870
jmp 0x497b4a
lea ecx, [esp + 0xa0]
push 8
push str.Special_
call fcn.004a8870
jmp 0x497b53
dec eax
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x48]
push edx
push eax
push 0
push ebx
call fcn.004a8ae0
jmp 0x497ba7
lea eax, [esp + 0xaa]
mov byte [eax + 1], 0xa
lea ecx, [esp + 0xa0]
cmp ecx, str.Windows_NT
ja 0x497cda
cmp eax, str.Windows_NT
ja 0x4981a0
movzx ecx, word [0x5ac5e7]
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 0x497d1b
mov eax, dword [esp + 0x5c]
jmp 0x497d44
mov edi, ebx
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
mov dword [esp + 0xc], eax
jmp 0x497db3
mov eax, dword [esp + 0x68]
mov ecx, eax
shr ecx, 0x10
mov edx, dword [esp + 8]
mov dword [edx + 0x20], ecx
and eax, 0xffff
mov dword [edx + 0x24], eax
mov eax, dword [esp + 0x6c]
mov ecx, eax
shr ecx, 0x10
mov dword [edx + 0x28], ecx
and eax, 0xffff
lea ebx, [esp + 0x3c]
push eax
push 0x59e920
push ebx
call fcn.004b3780
add esp, 0xc
mov eax, dword [esp + 8]
lea edi, [eax + 0x10]
cmp byte [eax + 0x1b], 0
jns 0x497d6e
push dword [edi]
call fcn.004f193e
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 edi, ecx
test ecx, ecx
jns 0x497d92
mov edi, dword [esp + 0x4c]
mov esi, 0x59cad4
test edi, edi
jne 0x497f5a
mov dword [esp + 0x10], edi
mov eax, dword [esp + 8]
cmp byte [eax + 0x1b], 0
js 0x497d0a
mov edi, ebx
mov eax, dword [esp + 8]
mov edx, dword [eax + 0x28]
mov ecx, dword [eax + 0x20]
mov ebx, dword [eax + 0x24]
cmp byte [esp + 0xab], 0
lea eax, [esp + 0xa0]
jns 0x497dd8
mov eax, dword [esp + 0xa0]
push esi
push dword [esp + 0x10]
push edx
push ebx
push ecx
push eax
push str._s__u._u._u._s_s
push edi
call fcn.004b3780
add esp, 0x20
mov eax, dword [esp + 8]
lea edi, [eax + 4]
cmp byte [eax + 0xf], 0
jns 0x497e06
push dword [edi]
call fcn.004f193e
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 0x497e61
cmp byte [esp + 0x3b], 0
jns 0x497e3b
push dword [esp + 0x30]
call fcn.004f193e
add esp, 4
cmp byte [esp + 0x2b], 0
jns 0x497e4e
push dword [esp + 0x20]
call fcn.004f193e
add esp, 4
cmp byte [esp + 0x1f], 0
jns 0x497e61
push dword [esp + 0x14]
call fcn.004f193e
add esp, 4
cmp byte [esp + 0xab], 0
jns 0x497e7a
push dword [esp + 0xa0]
call fcn.004f193e
add esp, 4
cmp byte [esp + 0x53], 0
jns 0x497e8d
push dword [esp + 0x48]
call fcn.004f193e
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 0x497f42
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 8]
cmp byte [ecx + 0x34], 0
jne 0x497eeb
mov ecx, dword [esp + 8]
mov byte [ecx + 0x34], 1
mov ecx, dword [esp + 8]
mov dword [ecx + 0x30], eax
mov eax, dword [esp + 0xb0]
cmp byte [ecx + 0x3c], 0
jne 0x497f07
mov ecx, dword [esp + 8]
mov byte [ecx + 0x3c], 1
mov ecx, dword [esp + 8]
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0xb8]
cmp byte [ecx + 0x44], 0
jne 0x497f23
mov ecx, dword [esp + 8]
mov byte [ecx + 0x44], 1
mov ecx, dword [esp + 8]
mov dword [ecx + 0x40], eax
mov eax, dword [esp + 0xc0]
mov dword [ecx + 0x48], eax
cmp byte [ecx + 0x4c], 0
jne 0x497f42
mov eax, dword [esp + 8]
mov byte [eax + 0x4c], 1
mov ecx, dword [esp + 0x1c8]
xor ecx, ebp
call fcn.004f1eb0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
lea eax, [esp + 0x14]
mov byte [eax + 0xb], 2
cmp eax, 0x59d009
ja 0x497f78
lea eax, [esp + 0x16]
cmp eax, 0x59d009
ja 0x4981a0
mov word [esp + 0x14], 0x2820
mov byte [esp + 0x16], 0
test cl, cl
js 0x497f8e
lea eax, [esp + 0x48]
jmp 0x497f92
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x14]
push edi
push eax
call fcn.004a8870
movsd xmm0, qword [eax]
lea ecx, [esp + 0x20]
movsd qword [ecx], xmm0
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
xor esi, esi
mov dword [eax + 8], esi
xorps xmm0, xmm0
movsd qword [eax], xmm0
push 1
push 0x59bb1b
call fcn.004a8870
movq xmm0, qword [eax]
movq qword [esp + 0x30], xmm0
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
mov dword [eax + 8], esi
pxor xmm0, xmm0
movq qword [eax], xmm0
cmp byte [esp + 0x3b], 0
js 0x497ff3
lea esi, [esp + 0x30]
jmp 0x497d9f
mov esi, dword [esp + 0x30]
jmp 0x497d9f
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 8]
add eax, 0x20
mov ecx, edi
mov edx, str.CurrentMajorVersionNumber
push eax
call fcn.005749e0
add esp, 4
test al, al
jne 0x498037
mov dword [esp + 0xc], 0
test edi, edi
je 0x497ab5
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x497ab5
mov eax, dword [esp + 8]
add eax, 0x24
mov ecx, dword [esp + 0x58]
mov edx, str.CurrentMinorVersionNumber
push eax
call fcn.005749e0
add esp, 4
test al, al
je 0x49801b
mov edx, dword [esp + 0x58]
xor ecx, ecx
dec ecx
lea eax, [esp + 0x60]
mov dword [eax + 7], ecx
mov dword [eax + 4], ecx
mov dword [eax], ecx
lea esi, [esp + 0x48]
mov dword [esi], ecx
lea ecx, [esp + 0x3c]
mov dword [ecx], 0xa
push ecx
push eax
push esi
push 0
push str.CurrentBuildNumber
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x49801b
cmp dword [esp + 0x48], 1
jne 0x49801b
mov eax, dword [esp + 0x3c]
mov byte [esp + eax + 0x60], 0
mov dword [esp + 0x30], 0xffffffff
lea eax, [esp + 0x60]
push eax
call fcn.0050d550
add esp, 4
cmp eax, 0x7ffffff8
jae 0x4981af
mov ebx, eax
mov dword [esp + 0x10], edi
cmp eax, 0xa
jbe 0x498163
mov edi, ebx
or edi, 7
inc edi
push edi
call fcn.004f190e
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 edi, edx
seta cl
cmp eax, edx
ja 0x49810d
test cl, cl
jne 0x4981a0
test ebx, ebx
je 0x498120
push ebx
lea ecx, [esp + 0x64]
push ecx
push eax
call fcn.004f53a0
add esp, 0xc
mov byte [edi], 0
lea eax, [esp + 0x30]
lea edi, [esp + 0xa0]
push eax
push edi
call fcn.0048db40
add esp, 8
mov ebx, eax
cmp byte [edi + 0xb], 0
jns 0x49814f
push dword [esp + 0xa0]
call fcn.004f193e
add esp, 4
test bl, bl
mov edi, dword [esp + 0x10]
jne 0x49816f
lea ebx, [esp + 0xa0]
jmp 0x49801b
lea eax, [esp + 0xa0]
mov byte [eax + 0xb], bl
jmp 0x4980f5
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 8]
mov dword [ecx + 0x28], eax
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x5c]
mov edx, 0x5a8af0
push eax
call fcn.005749e0
add esp, 4
mov dword [esp + 0xc], eax
lea ebx, [esp + 0xa0]
jmp 0x498023
push str....._third_partylibc_srcinclude__stringchar_traits.h:146:_assertion__std::__is_pointer_in_range___s1____s1____n____s2__failed:_char_traits::copy:_source_and_destination_ranges_overlap_n
push 0x59a9a3
call fcn.00523170
lea ecx, [esp + 0xa0]
call fcn.005221b0
int3