Function at 0x14009a010
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x140], rbx
mov r15, rdx
xor edi, edi
mov dword [rsp + 0x20], edi
call fcn.14000e4e0
or ebx, 0xffffffff
cmp eax, 0x80
jl 0x14009a3f3
cmp qword [0x1414d1778], rdi
jne 0x14009a132
lea edx, [rdi + 8]
lea rcx, [0x1413ce640]
call fcn.140014c00
mov qword [rsp + 0x40], rax
lea rax, [0x14135c948]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140011e20
mov qword [rsp + 0x60], rdi
mov byte [rsp + 0x70], dil
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x14009a0b4
cmp eax, ebx
je 0x14009a0c2
lock dec dword [rcx]
jne 0x14009a0c2
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
lea rcx, [rsp + 0x68]
call fcn.14001a740
mov rcx, rax
mov dl, 1
call fcn.1400a55f0
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x70], 1
test rax, rax
je 0x14009a0fc
lea rdx, [0x14142bca0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1414d1778], rax
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x14009a116
cmp eax, 0xffffffff
je 0x14009a124
lock dec dword [rcx]
jne 0x14009a124
mov rcx, qword [rsp + 0x68]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
cmp qword [0x1414d1778], 0
je 0x14009a3f3
mov dword [rbp + 0x50], edi
mov dword [rbp - 0x7c], 0x40
lea rax, [rbp - 0x70]
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x80], 0x40
mov dword [rbp + 0x58], 0x40
lea r9, [rbp + 0x58]
lea r8, [rbp - 0x70]
lea rdx, [rbp + 0x50]
mov ecx, 8
call qword [0x1414d1778]
test eax, eax
jne 0x14009a291
mov dword [rbp + 0x58], edi
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14009a291
lea r9, [rbp + 0x58]
xor r8d, r8d
lea rdx, [rbp + 0x50]
lea ecx, [rax - 0x72]
call qword [0x1414d1778]
test eax, eax
je 0x14009a291
mov edx, dword [rbp + 0x58]
mov dword [rsp + 0x48], edx
lea rax, [rbp - 0x80]
lea rcx, [rsp + 0x48]
cmp edx, dword [rbp - 0x80]
cmovge rax, rcx
mov r8d, dword [rax]
lea rcx, [rbp - 0x80]
call fcn.14005dfc0
lea r9, [rbp + 0x58]
mov r8, qword [rbp - 0x78]
lea rdx, [rbp + 0x50]
mov ecx, 8
call qword [0x1414d1778]
test eax, eax
jne 0x14009a291
lea rcx, [0x141385fd0]
mov qword [rsp + 0x50], rcx
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.140094110
mov dword [rsp + 0x20], 1
mov rsi, qword [rsp + 0x50]
mov eax, dword [rsi]
test eax, eax
je 0x14009a21c
cmp eax, 0xffffffff
je 0x14009a276
lock dec dword [rsi]
jne 0x14009a276
mov rsi, qword [rsp + 0x50]
movsxd rdi, dword [rsi + 0xc]
add rdi, 2
lea rdi, [rsi + rdi*8]
movsxd r14, dword [rsi + 8]
add r14, 2
lea r14, [rsi + r14*8]
cmp r14, rdi
je 0x14009a26d
nop dword [rax]
sub rdi, 8
mov rcx, qword [rdi]
mov eax, dword [rcx]
test eax, eax
je 0x14009a257
cmp eax, 0xffffffff
je 0x14009a268
lock dec dword [rcx]
jne 0x14009a268
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rdi]
call fcn.1400112a0
cmp rdi, r14
jne 0x14009a240
mov rcx, rsi
call fcn.1400f8d00
nop
lea rax, [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
cmp rcx, rax
je 0x14009a4de
call fcn.1400f9c94
jmp 0x14009a4de
lea rcx, [0x141385fd0]
mov qword [rsp + 0x28], rcx
mov eax, dword [rbp + 0x50]
cmp dword [0x141385fd4], eax
jge 0x14009a2c7
mov edx, eax
lea rcx, [rsp + 0x28]
cmp dword [0x141385fd0], 1
jbe 0x14009a2bf
call fcn.140021580
jmp 0x14009a2c4
call fcn.14001bb50
mov eax, dword [rbp + 0x50]
mov rdi, qword [rbp - 0x78]
test eax, eax
je 0x14009a369
nop dword [rax]
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14000da20
nop
mov rcx, qword [rsp + 0x30]
cmp dword [rcx + 4], 0
je 0x14009a346
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.1400082a0
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + 4]
inc eax
movsxd rdx, eax
lea rdi, [rdi + rdx*2]
mov eax, dword [rcx]
test eax, eax
je 0x14009a331
cmp eax, 0xffffffff
je 0x14009a33f
lock dec dword [rcx]
jne 0x14009a33f
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
dec dword [rbp + 0x50]
jne 0x14009a2e0
jmp 0x14009a369
mov eax, dword [rcx]
test eax, eax
je 0x14009a35b
cmp eax, 0xffffffff
je 0x14009a369
lock dec dword [rcx]
jne 0x14009a369
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
lea rdx, [rsp + 0x28]
mov rcx, r15
call fcn.140094110
mov dword [rsp + 0x20], 1
mov rsi, qword [rsp + 0x28]
mov eax, dword [rsi]
test eax, eax
je 0x14009a3a0
cmp eax, 0xffffffff
je 0x14009a276
lock dec dword [rsi]
jne 0x14009a276
mov rsi, qword [rsp + 0x28]
movsxd rdi, dword [rsi + 0xc]
add rdi, 2
lea rdi, [rsi + rdi*8]
movsxd r14, dword [rsi + 8]
add r14, 2
lea r14, [rsi + r14*8]
cmp r14, rdi
je 0x14009a26d
sub rdi, 8
mov rcx, qword [rdi]
mov eax, dword [rcx]
test eax, eax
je 0x14009a3d8
cmp eax, 0xffffffff
je 0x14009a3e9
lock dec dword [rcx]
jne 0x14009a3e9
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rdi]
call fcn.1400112a0
cmp rdi, r14
jne 0x14009a3c1
jmp 0x14009a26d
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
call fcn.14009a8b0
mov rdx, rax
mov r8d, ebx
lea rcx, [rsp + 0x58]
call fcn.14000a050
nop
lea rcx, [0x141385fd0]
mov qword [rsp + 0x38], rcx
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.1400082a0
nop
lea rdx, [rsp + 0x38]
mov rcx, r15
call fcn.140094110
mov dword [rsp + 0x20], 1
mov rsi, qword [rsp + 0x38]
mov eax, dword [rsi]
test eax, eax
je 0x14009a45b
cmp eax, 0xffffffff
je 0x14009a4b6
lock dec dword [rsi]
jne 0x14009a4b6
mov rsi, qword [rsp + 0x38]
movsxd rdi, dword [rsi + 0xc]
add rdi, 2
lea rdi, [rsi + rdi*8]
movsxd r14, dword [rsi + 8]
add r14, 2
lea r14, [rsi + r14*8]
cmp r14, rdi
je 0x14009a4ad
nop dword [rax + rax]
sub rdi, 8
mov rcx, qword [rdi]
mov eax, dword [rcx]
test eax, eax
je 0x14009a497
cmp eax, 0xffffffff
je 0x14009a4a8
lock dec dword [rcx]
jne 0x14009a4a8
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rdi]
call fcn.1400112a0
cmp rdi, r14
jne 0x14009a480
mov rcx, rsi
call fcn.1400f8d00
nop
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x14009a4d0
cmp eax, 0xffffffff
je 0x14009a4de
lock dec dword [rcx]
jne 0x14009a4de
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400112a0
mov rax, r15
mov rbx, qword [rsp + 0x140]
add rsp, 0x110
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret