Function at 0x140023640
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.1400832b0
call fcn.140054628
mov rcx, rax
mov edx, r12d
test rax, rax
setne dl
test edx, edx
jne 0x140023693
mov ecx, 0x80004005
call fcn.140012060
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdx, [0x1400b40d8]
or rbx, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x1400236d7
movzx edi, dx
mov ecx, edi
call fcn.140054614
test rax, rax
je 0x1400236f4
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140011760
jmp 0x1400236f4
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.140011dc0
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 0x1400237cc
mov r8w, 0x409
mov eax, r12d
movzx r9d, dx
and r9w, 0x3ff
lea r10, [0x1400e08f8]
mov rdi, r10
nop
nop
nop
movzx ecx, word [rdi]
and cx, 0x3ff
cmp r9w, cx
je 0x14002375c
add eax, 1
add rdi, 0x10
cmp eax, 0x21
jb 0x140023740
jmp 0x140023767
cdqe
shl rax, 4
mov r8w, word [rax + r10]
mov ax, dx
and eax, 0x3ff
cmp eax, 4
je 0x1400237ad
cmp eax, 0x16
je 0x140023791
cmp eax, 0x1a
jne 0x1400237c7
and dx, 0xfc00
cmp dx, 0x800
jne 0x1400237c7
mov r8w, 0x81a
jmp 0x1400237c7
and dx, 0xfc00
mov eax, 0x416
mov r8d, 0x816
cmp dx, 0x400
cmove r8w, ax
jmp 0x1400237c7
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 0x140023817
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.140011dc0
jmp 0x14002383e
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.140011dc0
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 0x14002388f
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x140023888
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x14002395a
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 0x140023930
cmp dword [rsp + 0xc8], 4
jne 0x140023930
mov eax, dword [rsp + 0xb8]
test ax, ax
je 0x140023901
movzx edx, ax
mov rcx, rbp
call fcn.1400239d0
mov word [rbp + 0xc], ax
mov dword [rbp + 8], r12d
test rsi, rsi
je 0x140023910
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 0x140023929
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x14002395a
test rsi, rsi
je 0x14002393f
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 0x140023958
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