Function at 0x409530
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x673f64]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 1
mov ebx, ecx
push edi
push ecx
mov dword [ebp - 0xc0], ebx
mov edx, esi
lea ecx, [esi + 4]
mov dword [ebp - 0xc0], ebx
call fcn.00407b90
add esp, 4
lea edi, [esi + 1]
test al, al
je 0x4095ec
push ecx
xor edx, edx
lea ecx, [esi + 5]
call fcn.00407b90
add esp, 4
test al, al
je 0x4095ec
push ecx
mov edx, esi
lea ecx, [esi + 5]
call fcn.00407b90
add esp, 4
test al, al
je 0x4095ec
push ecx
mov edx, edi
mov byte [0x681038], 1
lea ecx, [esi + 5]
call fcn.00407b90
add esp, 4
test al, al
je 0x4095ec
push ecx
lea edx, [esi + 2]
mov byte [0x68103c], 1
lea ecx, [esi + 5]
call fcn.00407b90
add esp, 4
test al, al
je 0x4095ec
push ecx
xor edx, edx
mov byte [0x68103b], 1
lea ecx, [esi + 9]
call fcn.00407b90
movzx ecx, byte [0x681039]
add esp, 4
test al, al
cmovne ecx, esi
mov byte [0x681039], cl
mov eax, dword [0x6425b4]
lea edi, [ebp - 0xbc]
movups xmm0, xmmword [str.CurrentMajorVersionNumber]
mov ecx, 0x16
mov dword [ebp - 0x30], eax
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersion
mov dword [ebp - 0xc4], 0
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc0], 4
push eax
lea eax, [ebp - 0xc4]
push eax
push 0
movups xmmword [ebp - 0x60], xmm0
push 0x10
movups xmm0, xmmword [0x642594]
lea eax, [ebp - 0x60]
movsw word es:[edi], word [esi]
mov edi, dword [sym.imp.ADVAPI32.dll_RegGetValueW]
push eax
movups xmmword [ebp - 0x50], xmm0
lea eax, [ebp - 0xbc]
movups xmm0, xmmword [0x6425a4]
push eax
push 0x80000002
movups xmmword [ebp - 0x40], xmm0
call edi
test eax, eax
jne 0x409734
cmp dword [ebp - 0xc4], 0xa
jb 0x409734
mov eax, dword [0x6425d8]
movups xmm0, xmmword [str.CurrentBuildNumber]
mov dword [ebp - 0xc], eax
mov ax, word [0x6425dc]
mov word [ebp - 8], ax
lea eax, [ebp - 0xc8]
push eax
push 0
push 0
push 2
lea eax, [ebp - 0x2c]
mov dword [ebp - 0xc8], 0
push eax
movups xmmword [ebp - 0x2c], xmm0
lea eax, [ebp - 0xbc]
movups xmm0, xmmword [0x6425c8]
push eax
push 0x80000002
movups xmmword [ebp - 0x1c], xmm0
call edi
test eax, eax
jne 0x409734
mov eax, dword [ebp - 0xc8]
xor ecx, ecx
shr eax, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00454d42
add esp, 4
mov esi, eax
lea eax, [ebp - 0xc8]
push eax
push esi
push 0
push 2
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xbc]
push eax
push 0x80000002
call edi
test eax, eax
jne 0x409729
push esi
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
cmp eax, 0x55f0
setge byte [0x68103a]
push 2
push esi
call fcn.0058a7f7
add esp, 8
cmp byte [0x68103a], 0
je 0x409746
push 0xa
push str.Windows_11
jmp 0x4097a6
cmp byte [0x681039], 0
je 0x409758
push 0xa
push str.Windows_10
jmp 0x4097a6
cmp byte [0x68103b], 0
jne 0x40979f
cmp byte [0x68103c], 0
jne 0x40979f
xor eax, eax
mov dword [ebx], 0
mov ecx, ebx
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
cmp byte [0x681038], al
je 0x409796
push 9
push str.Windows_8
jmp 0x4097c1
push 5
push str.Other
jmp 0x4097c1
push 9
push str.Windows_8
mov dword [ebx], 0
xor eax, eax
mov dword [ebx + 0x10], 0
mov ecx, ebx
mov dword [ebx + 0x14], 7
mov word [ebx], ax
call fcn.004059d0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058a7e9
mov esp, ebp
pop ebp
ret