Function at 0x140048754
Capabilities:
Identify system language via api

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x60
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x18], rbx
mov rax, qword [0x140099938]
xor rax, rsp
mov qword [rsp + 0x58], rax
movzx edi, r9w
movzx esi, r8w
mov rbx, rdx
mov rbp, rcx
mov r12, qword [rsp + 0xb8]
mov qword [r11 - 0x48], r12
lea r8, [0x140081000]
lea rdx, str.CLanguageSelector::InitLangSelector
mov ecx, 5
call fcn.140009480
mov rcx, rbx
call fcn.14005b1c0
mov r8, rax
mov rdx, rbx
lea rcx, [rbp + 8]
call fcn.140002280
mov word [rbp + 0x30], si
mov word [rbp + 0x32], di
mov rax, qword [rsp + 0xb0]
mov qword [rbp + 0x38], rax
lea rcx, [rbp + 0x40]
or r9, 0xffffffffffffffff
xor r8d, r8d
mov rdx, r12
call fcn.140002130
mov rax, qword [rsp + 0xc0]
mov qword [rbp + 0x68], rax
mov word [rbp + 0x458], si
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
movzx r8d, ax
lea rcx, [rbp + 0x442]
lea rdx, str._04x
call fcn.1400441ac
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov r8w, ax
and r8d, 0x3ff
lea rcx, [rbp + 0x44c]
lea rdx, str._04x
call fcn.1400441ac
cmp qword [rbp + 0x28], 8
jb 0x14004884f
mov r9, qword [rbp + 0x10]
jmp 0x140048853
lea r9, [rbp + 0x10]
xor edi, edi
mov dword [rsp + 0x28], edi
mov rax, qword [rbp + 0x38]
mov qword [rsp + 0x20], rax
lea r8d, [rdi + 4]
lea rdx, str.LanguageFunction
lea rcx, str.SETUP
call fcn.140059084
lea esi, [rdi + 1]
cmp eax, edi
je 0x1400488df
sub eax, esi
je 0x1400488d0
sub eax, esi
je 0x1400488c1
sub eax, esi
je 0x1400488b2
cmp eax, esi
je 0x1400488a1
mov rcx, rbp
call fcn.1400444d0
mov word [rbp + 0x456], ax
jmp 0x1400488ec
mov rcx, rbp
call fcn.1400444d0
mov word [rbp + 0x456], ax
jmp 0x1400488ec
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov word [rbp + 0x456], ax
jmp 0x1400488ec
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov word [rbp + 0x456], ax
jmp 0x1400488ec
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [rbp + 0x456], ax
jmp 0x1400488ec
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
mov word [rbp + 0x456], ax
cmp qword [rbp + 0x28], 8
jb 0x1400488f9
mov rdx, qword [rbp + 0x10]
jmp 0x1400488fd
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x38]
call fcn.140053ac0
mov r8, qword [rbp + 0x20]
cmp qword [rbp + 0x28], 8
jb 0x140048917
mov rdx, qword [rbp + 0x10]
jmp 0x14004891b
lea rdx, [rbp + 0x10]
inc r8
mov qword [rsp + 0x28], 0xa
lea r13, str.LANGUAGES
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea rcx, [rbp + 0x70]
call sym.DELDRV64.exe_public:_int___cdecl_CDeviceInfSection::InitWFN_wchar_t_const____ptr64__unsigned_long_long_unsigned___int64___class_CInfStringTable____ptr64__wchar_t_const____ptr64__unsigned_long_long_unsigned___int64_____ptr64
cmp eax, edi
je 0x14004894c
lea rcx, [rbp + 0x70]
call sym.DELDRV64.exe_public:_int___cdecl_CDeviceInfSection::GetList_void____ptr64
lea rcx, [rbp + 0x70]
call sym.DELDRV64.exe_public:_unsigned_long_int___cdecl_CDeviceInfSection::Count_void____ptr64
cmp eax, edi
jne 0x14004897e
mov word [rsp + 0x48], di
xor eax, eax
mov qword [rsp + 0x4a], rax
mov rcx, qword [rbp + 0x68]
mov rax, qword [rcx]
lea r9, [rsp + 0x48]
mov r8, r13
mov edx, 0xbb9
call qword [rax + 0x18]
jmp 0x14004898e
mov rdx, qword [rbp + 0x68]
mov rcx, rbp
call fcn.140047adc
cmp eax, edi
jne 0x1400489d4
lea r8, [0x140081040]
lea rdx, str.CLanguageSelector::InitLangSelector
mov ecx, 5
call fcn.140009480
nop
cmp qword [r12 + 0x20], 8
jb 0x1400489b9
mov rcx, qword [r12 + 8]
call fcn.14005ab0c
mov qword [r12 + 0x20], 7
mov qword [r12 + 0x18], rdi
mov word [r12 + 8], di
xor eax, eax
jmp 0x140048a9f
lea rdx, str.___NAME_PRINTERDRIVER___
mov rcx, qword [rbp + 0x38]
call fcn.14005429c
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000b470
nop
mov rax, qword [rsp + 0x30]
cmp dword [rax - 0x10], edi
je 0x140048a43
lea rdx, str.___NAME_PRINTERDRIVER___
mov rcx, rax
call fcn.14005c868
cmp eax, edi
je 0x140048a3e
mov edx, 0x20
lea r8d, [rdx + 0x3f]
lea rcx, [rsp + 0x30]
call fcn.14000a3f8
mov r8, qword [rsp + 0x30]
lea rdx, str.__NAME_PRINTERDRIVER_PARAM__
mov rcx, qword [rbp + 0x38]
call fcn.140052ae0
mov rax, qword [rsp + 0x30]
jmp 0x140048a43
mov rax, qword [rsp + 0x30]
lea rdx, [rax - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
dec eax
cmp eax, edi
jg 0x140048a5e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
lea r8, [0x140081020]
lea rdx, str.CLanguageSelector::InitLangSelector
mov ecx, 5
call fcn.140009480
nop
cmp qword [r12 + 0x20], 8
jb 0x140048a89
mov rcx, qword [r12 + 8]
call fcn.14005ab0c
mov qword [r12 + 0x20], 7
mov qword [r12 + 0x18], rdi
mov word [r12 + 8], di
mov eax, esi
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14005bad0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x60
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret