Function at 0x5b4710
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 + 4], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [0x7a9040]
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.006547d0
add esp, 0xc
mov dword [edi - 4], 0x11c
mov byte [edi + 0x116], 1
sub esp, 0x10
movdqa xmm0, xmmword [0x798880]
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 0x5b4d63
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.005e5420
push edi
push ebx
call fcn.0070f110
add esp, 8
mov ecx, ebx
mov ebx, eax
call fcn.005e5500
test bl, bl
je 0x5b4c96
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
je 0x5b484e
lea ecx, [esp + 0xa0]
push 6
push str.Debug_
call fcn.005cd4f0
test bl, 4
je 0x5b4866
lea ecx, [esp + 0xa0]
push 8
push str.Patched_
call fcn.005cd4f0
test bl, 2
je 0x5b487e
lea ecx, [esp + 0xa0]
push 0xb
push str.Prerelease_
call fcn.005cd4f0
test bl, 8
je 0x5b4896
lea ecx, [esp + 0xa0]
push 8
push str.Private_
call fcn.005cd4f0
test bl, 0x20
je 0x5b48ae
lea ecx, [esp + 0xa0]
push 8
push str.Special_
call fcn.005cd4f0
movsx edx, byte [esp + 0xab]
mov eax, edx
test edx, edx
jns 0x5b48c3
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x5b49ae
lea ebx, [eax - 1]
lea ecx, [esp + 0xa0]
test dl, dl
jns 0x5b48e0
mov ecx, dword [esp + 0xa0]
cmp ebx, 0x7ffffff8
jae 0x5b4f0a
cmp eax, 0xb
ja 0x5b49ec
lea eax, [esp + 0x48]
mov byte [eax + 0xb], bl
lea esi, [eax + ebx]
mov dword [esp + 8], esi
cmp eax, ecx
ja 0x5b4911
cmp dword [esp + 8], ecx
ja 0x5b4f08
test ebx, ebx
je 0x5b4924
push ebx
push ecx
push eax
mov ebx, edx
call fcn.00654250
mov edx, ebx
add esp, 0xc
mov eax, dword [esp + 8]
mov byte [eax], 0
test dl, dl
jns 0x5b493e
push dword [esp + 0xa0]
call fcn.006507ee
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 0x5b4a22
lea eax, [esp + 0xa7]
mov byte [eax + 4], 7
mov ecx, str.Unknown
lea edx, [esp + 0xa0]
cmp edx, ecx
seta dl
cmp eax, ecx
setbe cl
or cl, dl
je 0x5b4f08
mov ecx, dword [0x7396ff]
mov dword [esp + 0xa3], ecx
mov ecx, dword [str.Unknown]
mov dword [esp + 0xa0], ecx
jmp 0x5b4a6b
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
mov dl, byte [esp + 0xab]
jmp 0x5b492b
mov esi, ebx
or esi, 7
inc esi
push esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], ecx
call fcn.006507be
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
add esp, 4
mov dword [esp + 0x48], eax
or esi, 0x80000000
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
jmp 0x5b48fc
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 0x5b4f08
movzx ecx, word [0x7530f8]
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
jne 0x5b4aa0
mov eax, dword [esp + 0x68]
mov ecx, eax
shr ecx, 0x10
mov edx, dword [esp + 4]
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
jmp 0x5b4aa4
mov eax, dword [esp + 0x5c]
lea ecx, [esp + 0x3c]
push eax
push 0x73d8ad
push ecx
call fcn.005d9290
add esp, 0xc
mov eax, dword [esp + 4]
lea ebx, [eax + 0x10]
cmp byte [eax + 0x1b], 0
jns 0x5b4ace
push dword [ebx]
call fcn.006507ee
add esp, 4
mov eax, dword [esp + 0x44]
mov dword [ebx + 8], eax
movq xmm0, qword [esp + 0x3c]
movq qword [ebx], xmm0
movsx eax, byte [esp + 0x53]
mov ecx, eax
test eax, eax
jns 0x5b4aee
mov ecx, dword [esp + 0x4c]
test ecx, ecx
mov dword [esp + 0xc], ecx
je 0x5b4bcc
lea esi, [esp + 0x16]
mov byte [esi + 9], 2
mov edx, 0x73997c
lea edi, [esp + 0x14]
cmp edi, edx
seta cl
cmp esi, edx
setbe dl
or dl, cl
je 0x5b4f08
mov word [esp + 0x14], 0x2820
mov byte [esp + 0x16], 0
test al, al
js 0x5b4b33
lea eax, [esp + 0x48]
jmp 0x5b4b37
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x14]
push dword [esp + 0xc]
push eax
call fcn.005cd4f0
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 0x737af8
call fcn.005cd4f0
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
js 0x5b4b98
lea eax, [esp + 0x30]
jmp 0x5b4b9c
mov eax, dword [esp + 0x30]
mov dword [esp + 8], eax
mov eax, dword [esp + 4]
cmp byte [eax + 0x1b], 0
jns 0x5b4bac
mov ebx, dword [ebx]
mov eax, dword [esp + 4]
mov edx, dword [eax + 0x28]
mov ecx, dword [eax + 0x20]
mov edi, dword [eax + 0x24]
cmp byte [esp + 0xab], 0
js 0x5b4bd6
lea eax, [esp + 0xa0]
jmp 0x5b4bdd
mov dword [esp + 8], 0x736aef
jmp 0x5b4ba0
mov eax, dword [esp + 0xa0]
push dword [esp + 8]
push ebx
push edx
push edi
push ecx
push eax
push str._s__u._u._u._s_s
lea eax, [esp + 0x58]
push eax
call fcn.005d9290
add esp, 0x20
mov eax, dword [esp + 4]
lea ebx, [eax + 4]
cmp byte [eax + 0xf], 0
jns 0x5b4c0f
push dword [ebx]
call fcn.006507ee
add esp, 4
mov eax, dword [esp + 0x44]
mov dword [ebx + 8], eax
xor eax, eax
movq xmm0, qword [esp + 0x3c]
movq qword [ebx], xmm0
mov byte [esp + 0x47], al
mov byte [esp + 0x3c], al
cmp dword [esp + 0xc], 0
je 0x5b4c6a
cmp byte [esp + 0x3b], 0
jns 0x5b4c44
push dword [esp + 0x30]
call fcn.006507ee
add esp, 4
cmp byte [esp + 0x2b], 0
jns 0x5b4c57
push dword [esp + 0x20]
call fcn.006507ee
add esp, 4
cmp byte [esp + 0x1f], 0
jns 0x5b4c6a
push dword [esp + 0x14]
call fcn.006507ee
add esp, 4
cmp byte [esp + 0xab], 0
jns 0x5b4c83
push dword [esp + 0xa0]
call fcn.006507ee
add esp, 4
cmp byte [esp + 0x53], 0
jns 0x5b4c96
push dword [esp + 0x48]
call fcn.006507ee
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 0x5b4d4b
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 4]
cmp byte [ecx + 0x34], 0
jne 0x5b4cf4
mov ecx, dword [esp + 4]
mov byte [ecx + 0x34], 1
mov ecx, dword [esp + 4]
mov dword [ecx + 0x30], eax
mov eax, dword [esp + 0xb0]
cmp byte [ecx + 0x3c], 0
jne 0x5b4d10
mov ecx, dword [esp + 4]
mov byte [ecx + 0x3c], 1
mov ecx, dword [esp + 4]
mov dword [ecx + 0x38], eax
mov eax, dword [esp + 0xb8]
cmp byte [ecx + 0x44], 0
jne 0x5b4d2c
mov ecx, dword [esp + 4]
mov byte [ecx + 0x44], 1
mov ecx, dword [esp + 4]
mov dword [ecx + 0x40], eax
mov eax, dword [esp + 0xc0]
mov dword [ecx + 0x48], eax
cmp byte [ecx + 0x4c], 0
jne 0x5b4d4b
mov eax, dword [esp + 4]
mov byte [eax + 0x4c], 1
mov ecx, dword [esp + 0x1c8]
xor ecx, ebp
call fcn.00650d60
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov edi, dword [esp + 0x58]
mov eax, dword [esp + 4]
add eax, 0x20
mov ecx, edi
mov edx, str.CurrentMajorVersionNumber
push eax
call fcn.0070f440
add esp, 4
test al, al
jne 0x5b4d9e
mov dword [esp + 0xc], 0
test edi, edi
je 0x5b47c5
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5b47c5
mov eax, dword [esp + 4]
add eax, 0x24
mov ecx, dword [esp + 0x58]
mov edx, str.CurrentMinorVersionNumber
push eax
call fcn.0070f440
add esp, 4
test al, al
je 0x5b4d82
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 0x5b4d82
cmp dword [esp + 0x48], 1
jne 0x5b4d82
mov eax, dword [esp + 0x3c]
mov byte [esp + eax + 0x60], 0
mov dword [esp + 0x30], 0xffffffff
lea eax, [esp + 0x60]
push eax
call fcn.0066e590
add esp, 4
cmp eax, 0x7ffffff8
jae 0x5b4f13
mov ebx, eax
cmp eax, 0xa
mov dword [esp + 8], edi
jbe 0x5b4ecb
mov edi, ebx
or edi, 7
inc edi
push edi
call fcn.006507be
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 0x5b4f08
test ebx, ebx
je 0x5b4e88
push ebx
lea ecx, [esp + 0x64]
push ecx
push eax
call fcn.00654250
add esp, 0xc
mov byte [edi], 0
lea eax, [esp + 0x30]
lea edi, [esp + 0xa0]
push eax
push edi
call fcn.005a1560
add esp, 8
mov ebx, eax
cmp byte [edi + 0xb], 0
jns 0x5b4eb7
push dword [esp + 0xa0]
call fcn.006507ee
add esp, 4
test bl, bl
mov edi, dword [esp + 8]
jne 0x5b4ed7
lea ebx, [esp + 0xa0]
jmp 0x5b4d82
lea eax, [esp + 0xa0]
mov byte [eax + 0xb], bl
jmp 0x5b4e5c
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 4]
mov dword [ecx + 0x28], eax
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x5c]
mov edx, 0x752e80
push eax
call fcn.0070f440
add esp, 4
mov dword [esp + 0xc], eax
lea ebx, [esp + 0xa0]
jmp 0x5b4d8a
ud2
lea ecx, [esp + 0x48]
call fcn.006837c0
lea ecx, [esp + 0xa0]
call fcn.006837c0
int3