Function at 0x4080a0
Capabilities:
Get graphical window text
Set registry value

Disassembly:
sub esp, 0xe8
push ebx
push esi
push edi
push 0x50
call fcn.00408b84
add esp, 4
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x70]
dec eax
je 0x408228
dec eax
jne 0x408345
lea ecx, [esp + 0xc]
push ecx
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [0x413d00]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
lea edx, [esp + 0x10]
push 0x50
push edx
push 0x41b
push eax
call esi
mov edi, dword [sym.imp.USER32.dll_GetWindowTextA]
push eax
call edi
mov edx, dword [esp + 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x10]
push 0x50
push ecx
push 1
push 0
push str.ProductName
push edx
call ebx
mov ecx, dword [0x413d00]
lea eax, [esp + 0x10]
push 0x50
push eax
push 0x420
push ecx
call esi
push eax
call edi
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 0x50
push edx
push 1
push 0
push str.RegisteredOrganization
push eax
call ebx
mov edx, dword [0x413d00]
lea ecx, [esp + 0x10]
push 0x50
push ecx
push 0x41c
push edx
call esi
push eax
call edi
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push 0x50
push eax
push 1
push 0
push str.SourcePath
push ecx
call ebx
mov eax, dword [0x413d00]
lea edx, [esp + 0x10]
push 0x50
push edx
push 0x41e
push eax
call esi
push eax
call edi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push 0x50
push ecx
push 1
push 0
push str.RegisteredOwner
push edx
call ebx
mov ecx, dword [0x413d00]
lea eax, [esp + 0x10]
push 0x50
push eax
push 0x419
push ecx
call esi
push eax
call edi
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 0x50
push edx
push 1
push 0
push str.CurrentBuildNumber
push eax
call ebx
mov edx, dword [0x413d00]
lea ecx, [esp + 0x10]
push 0x50
push ecx
push 0x41a
push edx
call esi
push eax
call edi
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push 0x50
push eax
push 1
push 0
push str.CurrentVersion
push ecx
call ebx
pop edi
pop esi
pop ebx
add esp, 0xe8
ret
lea edx, [esp + 0xc]
push edx
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [0x413d00]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
lea eax, [esp + 0x10]
push 0x50
push eax
push 0x419
push ecx
call esi
mov edi, dword [sym.imp.USER32.dll_GetWindowTextA]
push eax
call edi
mov eax, dword [esp + 0xc]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0x10]
push 0x50
push edx
push 1
push 0
push str.Version
push eax
call ebx
mov edx, dword [0x413d00]
lea ecx, [esp + 0x10]
push 0x50
push ecx
push 0x41b
push edx
call esi
push eax
call edi
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push 0x50
push eax
push 1
push 0
push str.productname
push ecx
call ebx
mov eax, dword [0x413d00]
lea edx, [esp + 0x10]
push 0x50
push edx
push 0x420
push eax
call esi
push eax
call edi
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push 0x50
push ecx
push 1
push 0
push str.RegisteredOrganization
push edx
call ebx
mov ecx, dword [0x413d00]
lea eax, [esp + 0x10]
push 0x50
push eax
push 0x41a
push ecx
call esi
push eax
call edi
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 0x50
push edx
push 1
push 0
push str.VersionNumber
push eax
call ebx
mov edx, dword [0x413d00]
lea ecx, [esp + 0x10]
push 0x50
push ecx
push 0x41e
push edx
call esi
push eax
call edi
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push 0x50
push eax
push 1
push 0
push str.RegisteredOwner
push ecx
call ebx
call fcn.00408350
pop edi
pop esi
pop ebx
add esp, 0xe8
ret