Function at 0x402960
Capabilities:
Get system firmware table
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x14]
push ebx
sub esp, 0x38
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0xf003f
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.BIOS
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCreateKeyExW]
sub esp, 0x24
test eax, eax
je 0x4029c0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0
mov edi, dword [sym.imp.kernelbase.dll_GetSystemFirmwareTable]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0x52534d42
call edi
sub esp, 0x10
mov esi, eax
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_malloc]
mov ebx, eax
test eax, eax
je 0x402cef
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x52534d42
call edi
mov edx, ebx
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov ecx, eax
sub esp, 0x10
mov eax, 2
call sym._find_smbios_entry
mov esi, eax
test eax, eax
je 0x402aa2
mov edx, eax
movzx eax, byte [eax + 1]
movzx ecx, byte [esi + 4]
mov dword [esp], ebx
sub edx, ebx
add edx, eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, edi
mov dword [ebp - 0x1c], edx
mov edx, str.BaseBoardManufacturer
call sym._set_value_from_smbios_string
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [esi + 5]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp + 4], edx
mov edx, str.BaseBoardProduct
call sym._set_value_from_smbios_string
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [esi + 6]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp + 4], edx
mov edx, str.BaseBoardVersion
call sym._set_value_from_smbios_string
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov dword [ebp - 0x1c], eax
xor eax, eax
call sym._find_smbios_entry
mov esi, eax
test eax, eax
je 0x402c1e
mov edi, eax
mov edx, dword [ebp - 0x18]
movzx ecx, byte [esi + 4]
sub edi, ebx
mov eax, edi
movzx edi, byte [esi + 1]
mov dword [esp + 8], edx
mov edx, str.BIOSVendor
mov dword [esp], ebx
add edi, eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], edi
call sym._set_value_from_smbios_string
mov edx, dword [ebp - 0x18]
movzx ecx, byte [esi + 5]
mov dword [esp + 4], edi
mov dword [esp], ebx
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], edx
mov edx, str.BIOSVersion
call sym._set_value_from_smbios_string
mov edx, dword [ebp - 0x18]
movzx ecx, byte [esi + 8]
mov dword [esp + 4], edi
mov dword [esp], ebx
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], edx
mov edx, str.BIOSReleaseDate
call sym._set_value_from_smbios_string
cmp byte [esi + 1], 0x17
jbe 0x402d47
movzx eax, byte [esi + 0x14]
mov ecx, dword [sym.imp.advapi32.dll_RegSetValueExW]
lea edi, [ebp - 0x10]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.BiosMajorRelease
mov dword [esp], eax
call ecx
movzx eax, byte [esi + 0x15]
mov ecx, dword [ebp - 0x20]
sub esp, 0x18
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.BiosMinorRelease
mov dword [esp], eax
call ecx
movzx eax, byte [esi + 0x16]
mov ecx, dword [ebp - 0x20]
sub esp, 0x18
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.ECFirmwareMajorVersion
mov dword [esp], eax
call ecx
movzx eax, byte [esi + 0x17]
mov ecx, dword [ebp - 0x20]
sub esp, 0x18
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.ECFirmwareMinorVersion
mov dword [esp], eax
call ecx
sub esp, 0x18
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov eax, 1
mov edi, dword [ebp - 0x14]
call sym._find_smbios_entry
mov esi, eax
test eax, eax
je 0x402cef
mov edx, eax
movzx eax, byte [eax + 1]
movzx ecx, byte [esi + 4]
mov dword [esp], ebx
sub edx, ebx
add edx, eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov eax, edi
mov dword [ebp - 0x1c], edx
mov edx, str.SystemManufacturer
call sym._set_value_from_smbios_string
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [esi + 5]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp + 4], edx
mov edx, str.SystemProductName
call sym._set_value_from_smbios_string
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [esi + 6]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp + 4], edx
mov edx, str.SystemVersion
call sym._set_value_from_smbios_string
cmp byte [esi + 1], 0x1a
jbe 0x402d0a
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [esi + 0x19]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp + 4], edx
mov edx, str.SystemSKU
call sym._set_value_from_smbios_string
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
movzx ecx, byte [esi + 0x1a]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, edi
mov dword [esp + 4], edx
mov edx, str.SystemFamily
call sym._set_value_from_smbios_string
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_free]
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
push eax
jmp 0x4029b8
mov esi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [esp], ebx
xor ecx, ecx
mov edx, str.SystemSKU
mov dword [esp + 4], eax
mov eax, edi
mov dword [esp + 8], esi
call sym._set_value_from_smbios_string
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], esi
xor ecx, ecx
mov dword [esp], ebx
mov edx, str.SystemFamily
mov dword [esp + 4], eax
mov eax, edi
call sym._set_value_from_smbios_string
jmp 0x402cef
mov eax, dword [ebp - 0x1c]
lea edi, [ebp - 0x10]
mov esi, dword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [ebp - 0x10], 0xff
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.BiosMajorRelease
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0xff
sub esp, 0x18
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.BiosMinorRelease
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0xff
sub esp, 0x18
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.ECFirmwareMajorVersion
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], 0xff
sub esp, 0x18
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], str.ECFirmwareMinorVersion
mov dword [esp], eax
call esi
sub esp, 0x18
jmp 0x402c1e