Function at 0x140024f10
Capabilities:
Get system information on windows
Identify system language via api
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x80
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rbp, rcx
xor r12d, r12d
mov dword [rsp + 0x50], r12d
xor edx, edx
lea r8d, [r12 + 0x2c]
lea rcx, [rsp + 0x54]
call fcn.140086940
call fcn.1400578b4
mov rcx, rax
mov edx, r12d
test rax, rax
setne dl
test edx, edx
jne 0x140024f63
mov ecx, 0x80004005
call fcn.1400120d0
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdx, [0x1400b70b8]
or rbx, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x140024fa7
movzx edi, dx
mov ecx, edi
call fcn.1400578a0
test rax, rax
je 0x140024fc4
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140011800
jmp 0x140024fc4
xor eax, eax
mov rcx, rbx
mov rdi, rdx
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rcx, [rsp + 0x30]
call fcn.140011e30
nop
mov qword [rsp + 0x48], r12
mov dword [rsp + 0xb8], r12d
mov word [rbp + 0xe], 0x409
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edx, ax
test ax, ax
je 0x14002509c
mov r8w, 0x409
mov eax, r12d
movzx r9d, dx
and r9w, 0x3ff
lea r10, [0x1400e48d8]
mov rdi, r10
nop
nop
nop
movzx ecx, word [rdi]
and cx, 0x3ff
cmp r9w, cx
je 0x14002502c
add eax, 1
add rdi, 0x10
cmp eax, 0x21
jb 0x140025010
jmp 0x140025037
cdqe
shl rax, 4
mov r8w, word [rax + r10]
mov ax, dx
and eax, 0x3ff
cmp eax, 4
je 0x14002507d
cmp eax, 0x16
je 0x140025061
cmp eax, 0x1a
jne 0x140025097
and dx, 0xfc00
cmp dx, 0x800
jne 0x140025097
mov r8w, 0x81a
jmp 0x140025097
and dx, 0xfc00
mov eax, 0x416
mov r8d, 0x816
cmp dx, 0x400
cmove r8w, ax
jmp 0x140025097
and dx, 0xfc00
mov ecx, 0x804
mov r8d, 0x404
cmp dx, 0x800
cmove r8w, cx
mov word [rbp + 0xe], r8w
movzx eax, word [rbp + 0xe]
mov word [rbp + 0xc], ax
mov dword [rbp + 8], 1
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [rsp + 0x50], 9
jne 0x1400250e7
xor eax, eax
mov rcx, rbx
lea rdi, str.SOFTWARERealtekRAVCpl64General
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.SOFTWARERealtekRAVCpl64General
lea rcx, [rsp + 0x30]
call fcn.140011e30
jmp 0x14002510e
xor eax, eax
mov rcx, rbx
lea rdi, str.SOFTWARERealtekRtHDVCplGeneral
repne scasw ax, word [rdi]
not rcx
lea r8d, [rcx - 1]
lea rdx, str.SOFTWARERealtekRtHDVCplGeneral
lea rcx, [rsp + 0x30]
call fcn.140011e30
mov qword [rsp + 0x38], r12
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdi, qword [rsp + 0x30]
mov rdx, rdi
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14002515f
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x140025158
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x14002522a
mov dword [rsp + 0xc0], 4
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xc8]
xor r8d, r8d
lea rdx, str.Language
mov rsi, qword [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140025200
cmp dword [rsp + 0xc8], 4
jne 0x140025200
mov eax, dword [rsp + 0xb8]
test ax, ax
je 0x1400251d1
movzx edx, ax
mov rcx, rbp
call fcn.1400252a0
mov word [rbp + 0xc], ax
mov dword [rbp + 8], r12d
test rsi, rsi
je 0x1400251e0
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x1400251f9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x14002522a
test rsi, rsi
je 0x14002520f
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x140025228
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
add rsp, 0x80
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret