Function at 0x491660
Capabilities:
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 esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [0x591014]
xor ecx, ebp
mov dword [esp + 0x1c8], ecx
mov dword [esi + 0x1c], eax
lea edi, [esp + 0xa4]
xor ebx, ebx
push 0x118
push ebx
push edi
call fcn.004c9370
add esp, 0xc
mov dword [edi - 4], 0x11c
mov byte [edi + 0x116], 1
sub esp, 0x10
movdqa xmm0, xmmword [0x588b40]
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 [esi + 0x2c]
mov dword [esp + 0x5c], ebx
lea eax, [esp + 0x58]
mov dword [eax], 0xffffffff
push eax
push 1
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x491803
mov dword [esp + 8], ebx
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x60]
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
mov dword [ebx + 0x30], 0xffffffff
mov ecx, edi
push 0xc
push str.kernel32.dll
call fcn.004a1cc0
push ebx
push edi
call fcn.005435b0
add esp, 8
mov ebx, eax
mov ecx, edi
call fcn.004a1da0
test bl, bl
jne 0x49183b
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
push edi
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x4917eb
cmp byte [esi + 0x30], 0
mov eax, dword [esp + 0xa8]
jne 0x4917a0
mov byte [esi + 0x30], 1
mov dword [esi + 0x34], eax
cmp byte [esi + 0x3c], 0
mov eax, dword [esp + 0xb0]
jne 0x4917b4
mov byte [esi + 0x3c], 1
mov dword [esi + 0x40], eax
cmp byte [esi + 0x48], 0
mov eax, dword [esp + 0xb8]
jne 0x4917c8
mov byte [esi + 0x48], 1
mov dword [esi + 0x4c], eax
cmp byte [esi + 0x54], 0
je 0x4917dd
mov eax, dword [esp + 0xc0]
mov dword [esi + 0x58], eax
jmp 0x4917eb
mov eax, dword [esp + 0xc0]
mov dword [esi + 0x58], eax
mov byte [esi + 0x54], 1
mov ecx, dword [esp + 0x1c8]
xor ecx, ebp
call fcn.004c66e3
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, dword [esp + 0x58]
lea eax, [esi + 0x20]
mov edi, ecx
mov edx, str.CurrentMajorVersionNumber
push eax
call fcn.005438c0
add esp, 4
test al, al
jne 0x491b0a
xor ebx, ebx
test edi, edi
je 0x49182f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [esp + 0xa0]
jmp 0x491707
xor eax, eax
dec eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov ebx, dword [esp + 0x7c]
xor eax, eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa8], eax
test bl, 1
je 0x49187b
lea ecx, [esp + 0xa0]
push str.Debug_
call fcn.004a0390
test bl, 4
je 0x491891
lea ecx, [esp + 0xa0]
push str.Patched_
call fcn.004a0390
test bl, 2
je 0x4918a7
lea ecx, [esp + 0xa0]
push str.Prerelease_
call fcn.004a0390
test bl, 8
je 0x4918bd
lea ecx, [esp + 0xa0]
push str.Private_
call fcn.004a0390
test bl, 0x20
je 0x4918d3
lea ecx, [esp + 0xa0]
push str.Special_
call fcn.004a0390
movzx eax, byte [esp + 0xab]
test al, al
mov ebx, dword [esp + 8]
jns 0x4918ec
mov eax, dword [esp + 0xa4]
jmp 0x4918ef
and eax, 0x7f
lea edi, [esp + 0xa0]
test eax, eax
jne 0x49192d
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x50], eax
movq xmm0, qword [esp + 0xa0]
movq qword [esp + 0x48], xmm0
xor eax, eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa8], eax
jmp 0x491943
dec eax
lea edx, [esp + 0xac]
lea ecx, [esp + 0x48]
push edx
push eax
push 0
push edi
call fcn.00444620
cmp byte [esp + 0xab], 0
jns 0x49195c
push dword [esp + 0xa0]
call fcn.004c5c98
add esp, 4
lea edi, [esp + 0xa0]
xor eax, eax
dec eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
xor eax, dword [esp + 0x80]
test eax, 0x40004
mov eax, str.Windows_NT
mov edx, str.Unknown
cmove edx, eax
mov ecx, edi
push edx
call fcn.004f70d0
test bl, bl
je 0x491999
mov eax, dword [esp + 0x5c]
jmp 0x4919bd
mov eax, dword [esp + 0x68]
mov ecx, eax
shr ecx, 0x10
mov dword [esi + 0x20], ecx
mov ecx, 0xffff
and eax, ecx
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x6c]
mov edx, eax
shr edx, 0x10
mov dword [esi + 0x28], edx
and eax, ecx
lea ecx, [esp + 0x3c]
push eax
push 0x579825
push ecx
call fcn.004a86f0
add esp, 0xc
lea ebx, [esi + 0x10]
cmp byte [esi + 0x1b], 0
jns 0x4919e3
push dword [ebx]
call fcn.004c5c98
add esp, 4
mov eax, dword [esp + 0x44]
mov dword [ebx + 8], eax
movsd xmm0, qword [esp + 0x3c]
movsd qword [ebx], xmm0
movzx eax, byte [esp + 0x53]
test al, al
mov dword [esp + 0xc], edi
jns 0x491a07
mov eax, dword [esp + 0x4c]
jmp 0x491a0a
and eax, 0x7f
mov edi, 0x577ff1
test eax, eax
mov dword [esp + 8], eax
jne 0x491bea
cmp byte [esi + 0x1b], 0
jns 0x491a23
mov ebx, dword [ebx]
mov edx, dword [esi + 0x28]
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x24]
cmp byte [esp + 0xab], 0
jns 0x491a49
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0xa0]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x10]
push edi
push ebx
push edx
push eax
push ecx
push dword [esp + 0x20]
push str._s__u._u._u._s_s
lea eax, [esp + 0x58]
push eax
call fcn.004a86f0
add esp, 0x20
lea ebx, [esi + 4]
cmp byte [esi + 0xf], 0
jns 0x491a77
push dword [ebx]
call fcn.004c5c98
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 + 8], 0
je 0x491ad2
cmp byte [esp + 0x3b], 0
jns 0x491aac
push dword [esp + 0x30]
call fcn.004c5c98
add esp, 4
cmp byte [esp + 0x2b], 0
jns 0x491abf
push dword [esp + 0x20]
call fcn.004c5c98
add esp, 4
cmp byte [esp + 0x1f], 0
jns 0x491ad2
push dword [esp + 0x14]
call fcn.004c5c98
add esp, 4
cmp byte [esp + 0xab], 0
jns 0x491aeb
push dword [esp + 0xa0]
call fcn.004c5c98
add esp, 4
cmp byte [esp + 0x53], 0
jns 0x491afe
push dword [esp + 0x48]
call fcn.004c5c98
add esp, 4
lea edi, [esp + 0xa0]
jmp 0x491751
lea eax, [esi + 0x24]
mov ecx, dword [esp + 0x58]
mov edx, str.CurrentMinorVersionNumber
push eax
call fcn.005438c0
add esp, 4
test al, al
je 0x491822
mov eax, dword [esp + 0x58]
xor ecx, ecx
dec ecx
lea ebx, [esp + 0x60]
mov dword [ebx + 7], ecx
mov dword [ebx + 4], ecx
mov dword [ebx], ecx
lea edx, [esp + 0x48]
mov dword [edx], ecx
lea ecx, [esp + 0x3c]
mov dword [ecx], 0xa
push ecx
push ebx
push edx
push 0
push str.CurrentBuildNumber
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x491822
cmp dword [esp + 0x48], 1
jne 0x491822
mov eax, dword [esp + 0x3c]
mov byte [esp + eax + 0x60], 0
lea eax, [esp + 0x30]
mov dword [eax], 0xffffffff
lea ecx, [esp + 0xa0]
push ebx
call fcn.004f70d0
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0xa4]
push eax
call fcn.00487b10
add esp, 8
mov ebx, eax
cmp byte [esp + 0xab], 0
jns 0x491bbe
push dword [esp + 0xa0]
call fcn.004c5c98
add esp, 4
test bl, bl
je 0x491822
mov eax, dword [esp + 0x30]
mov dword [esi + 0x28], eax
mov ecx, dword [esp + 0x58]
lea eax, [esp + 0x5c]
mov edx, 0x58086a
push eax
call fcn.005438c0
add esp, 4
mov ebx, eax
jmp 0x491824
lea edi, [esp + 0x14]
mov ecx, edi
push 0x578000
call fcn.004f70d0
lea eax, [esp + 0x48]
movzx ecx, byte [eax + 0xb]
mov edx, ecx
and edx, 0x7f
test cl, cl
cmovs edx, dword [eax + 4]
cmovs eax, dword [eax]
mov ecx, edi
push edx
push eax
call fcn.00444470
mov edx, dword [eax + 8]
lea ecx, [esp + 0x20]
mov dword [ecx + 8], edx
movsd xmm0, qword [eax]
movsd qword [ecx], xmm0
xor edi, edi
mov dword [eax], edi
mov dword [eax + 8], edi
mov dword [eax + 4], edi
push 0x577dc8
call fcn.004a0390
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x30], xmm0
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax], edi
cmp byte [esp + 0x3b], 0
jns 0x491c68
mov edi, dword [esp + 0x30]
jmp 0x491a1b
lea edi, [esp + 0x30]
jmp 0x491a1b