Function at 0x140023760
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.140083610
call fcn.1400544b4
mov rcx, rax
mov edx, r12d
test rax, rax
setne dl
test edx, edx
jne 0x1400237b3
mov ecx, 0x80004005
call fcn.140012170
int3
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdx, [0x1400b40e8]
or rbx, 0xffffffffffffffff
test rdx, 0xffffffffffff0000
jne 0x1400237f7
movzx edi, dx
mov ecx, edi
call fcn.1400544a0
test rax, rax
je 0x140023814
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400118a0
jmp 0x140023814
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.140011ed0
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 0x1400238ec
mov r8w, 0x409
mov eax, r12d
movzx r9d, dx
and r9w, 0x3ff
lea r10, [0x1400e08d8]
mov rdi, r10
nop
nop
nop
movzx ecx, word [rdi]
and cx, 0x3ff
cmp r9w, cx
je 0x14002387c
add eax, 1
add rdi, 0x10
cmp eax, 0x21
jb 0x140023860
jmp 0x140023887
cdqe
shl rax, 4
mov r8w, word [rax + r10]
mov ax, dx
and eax, 0x3ff
cmp eax, 4
je 0x1400238cd
cmp eax, 0x16
je 0x1400238b1
cmp eax, 0x1a
jne 0x1400238e7
and dx, 0xfc00
cmp dx, 0x800
jne 0x1400238e7
mov r8w, 0x81a
jmp 0x1400238e7
and dx, 0xfc00
mov eax, 0x416
mov r8d, 0x816
cmp dx, 0x400
cmove r8w, ax
jmp 0x1400238e7
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 0x140023937
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.140011ed0
jmp 0x14002395e
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.140011ed0
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 0x1400239af
lea rdx, [rdi - 0x18]
lock xadd dword [rdx + 0x10], ebx
add ebx, 0xffffffff
test ebx, ebx
jg 0x1400239a8
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
jmp 0x140023a7a
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 0x140023a50
cmp dword [rsp + 0xc8], 4
jne 0x140023a50
mov eax, dword [rsp + 0xb8]
test ax, ax
je 0x140023a21
movzx edx, ax
mov rcx, rbp
call fcn.140023af0
mov word [rbp + 0xc], ax
mov dword [rbp + 8], r12d
test rsi, rsi
je 0x140023a30
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 0x140023a49
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, 1
jmp 0x140023a7a
test rsi, rsi
je 0x140023a5f
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 0x140023a78
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