Function at 0x409540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x675f64]
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.00407ba0
add esp, 4
lea edi, [esi + 1]
test al, al
je 0x4095fc
push ecx
xor edx, edx
lea ecx, [esi + 5]
call fcn.00407ba0
add esp, 4
test al, al
je 0x4095fc
push ecx
mov edx, esi
lea ecx, [esi + 5]
call fcn.00407ba0
add esp, 4
test al, al
je 0x4095fc
push ecx
mov edx, edi
mov byte [0x683048], 1
lea ecx, [esi + 5]
call fcn.00407ba0
add esp, 4
test al, al
je 0x4095fc
push ecx
lea edx, [esi + 2]
mov byte [0x68304c], 1
lea ecx, [esi + 5]
call fcn.00407ba0
add esp, 4
test al, al
je 0x4095fc
push ecx
xor edx, edx
mov byte [0x68304b], 1
lea ecx, [esi + 9]
call fcn.00407ba0
movzx ecx, byte [0x683049]
add esp, 4
test al, al
cmovne ecx, esi
mov byte [0x683049], cl
mov eax, dword [0x643944]
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 [0x643924]
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 [0x643934]
push eax
push 0x80000002
movups xmmword [ebp - 0x40], xmm0
call edi
test eax, eax
jne 0x409744
cmp dword [ebp - 0xc4], 0xa
jb 0x409744
mov eax, dword [0x643968]
movups xmm0, xmmword [str.CurrentBuildNumber]
mov dword [ebp - 0xc], eax
mov ax, word [0x64396c]
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 [0x643958]
push eax
push 0x80000002
movups xmmword [ebp - 0x1c], xmm0
call edi
test eax, eax
jne 0x409744
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.00455202
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 0x409739
push esi
call dword [0x67d060]
cmp eax, 0x55f0
setge byte [0x68304a]
push 2
push esi
call fcn.0058acab
add esp, 8
cmp byte [0x68304a], 0
je 0x409756
push 0xa
push str.Windows_11
jmp 0x4097b6
cmp byte [0x683049], 0
je 0x409768
push 0xa
push str.Windows_10
jmp 0x4097b6
cmp byte [0x68304b], 0
jne 0x4097af
cmp byte [0x68304c], 0
jne 0x4097af
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 [0x683048], al
je 0x4097a6
push 9
push str.Windows_8
jmp 0x4097d1
push 5
push str.Other
jmp 0x4097d1
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.004059e0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0058ac9d
mov esp, ebp
pop ebp
ret