Function at 0x140082a90
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x20]
sub rsp, 0x120
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x150], rbx
mov r13, rdx
xor edi, edi
mov dword [rsp + 0x28], edi
call fcn.140015870
or ebx, 0xffffffff
cmp eax, 0x80
jl 0x140082de7
mov rax, qword [0x140ddca88]
test rax, rax
jne 0x140082b96
mov edx, ebx
lea rcx, [0x140d88218]
call fcn.140008270
mov qword [rsp + 0x40], rax
lea rax, [0x140dd80a8]
mov qword [rsp + 0x68], rax
lock inc dword [0x140dd80a8]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.14000b0d0
mov qword [rsp + 0x60], rdi
mov byte [rsp + 0x70], dil
mov rax, qword [rsp + 0x40]
lock dec dword [rax]
jne 0x140082b38
mov rcx, qword [rsp + 0x40]
call fcn.14000ade0
lea rcx, [rsp + 0x68]
call fcn.14000b320
mov rcx, rax
mov dl, 1
call fcn.140046b40
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x70], 1
test rax, rax
je 0x140082b72
lea rdx, [0x140d8b358]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140ddca88], rax
mov rax, qword [rsp + 0x68]
lock dec dword [rax]
jne 0x140082b86
mov rcx, qword [rsp + 0x68]
call fcn.14000ade0
mov rax, qword [0x140ddca88]
test rax, rax
je 0x140082de7
mov dword [rbp + 0x60], edi
mov dword [rbp - 0x7c], 0x40
lea rcx, [rbp - 0x70]
mov qword [rbp - 0x78], rcx
mov dword [rbp - 0x80], 0x40
mov dword [rbp + 0x68], 0x40
lea r9, [rbp + 0x68]
lea r8, [rbp - 0x70]
lea rdx, [rbp + 0x60]
mov ecx, 8
call rax
test eax, eax
jne 0x140082cce
mov dword [rbp + 0x68], edi
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140082cce
lea r9, [rbp + 0x68]
xor r8d, r8d
lea rdx, [rbp + 0x60]
lea ecx, [rax - 0x72]
call qword [0x140ddca88]
test eax, eax
je 0x140082cce
mov edx, dword [rbp + 0x68]
mov dword [rsp + 0x48], edx
lea rax, [rbp - 0x80]
lea r8, [rsp + 0x48]
cmp edx, dword [rbp - 0x80]
cmovge rax, r8
mov r8d, dword [rax]
lea rcx, [rbp - 0x80]
call fcn.140040dd0
lea r9, [rbp + 0x68]
mov r8, qword [rbp - 0x78]
lea rdx, [rbp + 0x60]
mov ecx, 8
call qword [0x140ddca88]
test eax, eax
jne 0x140082cce
lea rcx, [0x140dd81d8]
mov qword [rsp + 0x50], rcx
lock inc dword [0x140dd81d8]
lea rdx, [rsp + 0x50]
mov rcx, r13
call fcn.140055860
mov dword [rsp + 0x28], 1
mov rax, qword [rsp + 0x50]
lock dec dword [rax]
jne 0x140082cb3
mov r12, qword [rsp + 0x50]
movsxd rax, dword [r12 + 0xc]
lea rdi, [r12 + rax*8 + 0x18]
movsxd rax, dword [r12 + 8]
lea rsi, [r12 + rax*8 + 0x18]
cmp rsi, rdi
je 0x140082caa
sub rdi, 8
mov rdx, qword [rdi]
lock dec dword [rdx]
jne 0x140082ca5
mov rcx, qword [rdi]
call fcn.14000ade0
cmp rdi, rsi
jne 0x140082c91
mov rcx, r12
call fcn.140004d80
nop
lea rax, [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
cmp rcx, rax
je 0x140082e9a
call fcn.140004d80
jmp 0x140082e9a
lea rcx, [0x140dd81d8]
mov qword [rsp + 0x20], rcx
lock inc dword [0x140dd81d8]
mov rax, qword [rsp + 0x20]
mov ecx, dword [rbp + 0x60]
cmp dword [rax + 4], ecx
jge 0x140082d09
mov ecx, dword [rax]
mov edx, dword [rbp + 0x60]
cmp ecx, 1
lea rcx, [rsp + 0x20]
je 0x140082d04
call fcn.140010180
jmp 0x140082d09
call fcn.140014a50
mov rdi, qword [rbp - 0x78]
cmp dword [rbp + 0x60], 0
jbe 0x140082d83
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14000ed80
nop
mov rax, qword [rsp + 0x30]
cmp dword [rax + 8], 0
je 0x140082d74
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.140003d80
mov r11, qword [rsp + 0x30]
mov eax, dword [r11 + 8]
inc eax
movsxd rcx, eax
lea rdi, [rdi + rcx*2]
lock dec dword [r11]
jne 0x140082d6d
mov rcx, qword [rsp + 0x30]
call fcn.14000ade0
dec dword [rbp + 0x60]
jne 0x140082d20
jmp 0x140082d83
lock dec dword [rax]
jne 0x140082d83
mov rcx, qword [rsp + 0x30]
call fcn.14000ade0
lea rdx, [rsp + 0x20]
mov rcx, r13
call fcn.140055860
mov dword [rsp + 0x28], 1
mov rax, qword [rsp + 0x20]
lock dec dword [rax]
jne 0x140082de2
mov r12, qword [rsp + 0x20]
movsxd rax, dword [r12 + 0xc]
lea rdi, [r12 + rax*8 + 0x18]
movsxd rax, dword [r12 + 8]
lea rsi, [r12 + rax*8 + 0x18]
cmp rsi, rdi
je 0x140082dd9
sub rdi, 8
mov rdx, qword [rdi]
lock dec dword [rdx]
jne 0x140082dd4
mov rcx, qword [rdi]
call fcn.14000ade0
cmp rdi, rsi
jne 0x140082dc0
mov rcx, r12
call fcn.140004d80
nop
jmp 0x140082cb3
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
call fcn.140080a80
mov rdx, rax
mov r8d, ebx
lea rcx, [rsp + 0x58]
call fcn.14000c980
nop
lea rcx, [0x140dd81d8]
mov qword [rsp + 0x38], rcx
lock inc dword [0x140dd81d8]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140003d80
nop
lea rdx, [rsp + 0x38]
mov rcx, r13
call fcn.140055860
mov dword [rsp + 0x28], 1
mov rax, qword [rsp + 0x38]
lock dec dword [rax]
jne 0x140082e86
mov r12, qword [rsp + 0x38]
movsxd rax, dword [r12 + 0xc]
lea rdi, [r12 + rax*8 + 0x18]
movsxd rax, dword [r12 + 8]
lea rsi, [r12 + rax*8 + 0x18]
cmp rsi, rdi
je 0x140082e7d
sub rdi, 8
mov rdx, qword [rdi]
lock dec dword [rdx]
jne 0x140082e78
mov rcx, qword [rdi]
call fcn.14000ade0
cmp rdi, rsi
jne 0x140082e64
mov rcx, r12
call fcn.140004d80
nop
mov rax, qword [rsp + 0x58]
lock dec dword [rax]
jne 0x140082e9a
mov rcx, qword [rsp + 0x58]
call fcn.14000ade0
mov rax, r13
mov rbx, qword [rsp + 0x150]
add rsp, 0x120
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret