Function at 0x14009a770
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.14000ee30
or ebx, 0xffffffff
cmp eax, 0x80
jl 0x14009ab53
cmp qword [0x1415b4798], rdi
jne 0x14009a892
lea edx, [rdi + 8]
lea rcx, [0x1414b1490]
call fcn.140015480
mov qword [rsp + 0x40], rax
lea rax, [0x14143f7c8]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.1400126a0
mov qword [rsp + 0x60], rdi
mov byte [rsp + 0x70], dil
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x14009a814
cmp eax, ebx
je 0x14009a822
lock dec dword [rcx]
jne 0x14009a822
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
lea rcx, [rsp + 0x68]
call fcn.14001afc0
mov rcx, rax
mov dl, 1
call fcn.1400a5d50
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x70], 1
test rax, rax
je 0x14009a85c
lea rdx, [0x14150ea00]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1415b4798], rax
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x14009a876
cmp eax, 0xffffffff
je 0x14009a884
lock dec dword [rcx]
jne 0x14009a884
mov rcx, qword [rsp + 0x68]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
cmp qword [0x1415b4798], 0
je 0x14009ab53
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 [0x1415b4798]
test eax, eax
jne 0x14009a9f1
mov dword [rbp + 0x58], edi
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14009a9f1
lea r9, [rbp + 0x58]
xor r8d, r8d
lea rdx, [rbp + 0x50]
lea ecx, [rax - 0x72]
call qword [0x1415b4798]
test eax, eax
je 0x14009a9f1
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.14005ea60
lea r9, [rbp + 0x58]
mov r8, qword [rbp - 0x78]
lea rdx, [rbp + 0x50]
mov ecx, 8
call qword [0x1415b4798]
test eax, eax
jne 0x14009a9f1
lea rcx, [0x141468e50]
mov qword [rsp + 0x50], rcx
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.140094880
mov dword [rsp + 0x20], 1
mov rsi, qword [rsp + 0x50]
mov eax, dword [rsi]
test eax, eax
je 0x14009a97c
cmp eax, 0xffffffff
je 0x14009a9d6
lock dec dword [rsi]
jne 0x14009a9d6
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 0x14009a9cd
nop dword [rax]
sub rdi, 8
mov rcx, qword [rdi]
mov eax, dword [rcx]
test eax, eax
je 0x14009a9b7
cmp eax, 0xffffffff
je 0x14009a9c8
lock dec dword [rcx]
jne 0x14009a9c8
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rdi]
call fcn.140011b40
cmp rdi, r14
jne 0x14009a9a0
mov rcx, rsi
call fcn.1400869f0
nop
lea rax, [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
cmp rcx, rax
je 0x14009ac3e
call fcn.1400fa5e4
jmp 0x14009ac3e
lea rcx, [0x141468e50]
mov qword [rsp + 0x28], rcx
mov eax, dword [rbp + 0x50]
cmp dword [0x141468e54], eax
jge 0x14009aa27
mov edx, eax
lea rcx, [rsp + 0x28]
cmp dword [0x141468e50], 1
jbe 0x14009aa1f
call fcn.140021e00
jmp 0x14009aa24
call fcn.14001c3d0
mov eax, dword [rbp + 0x50]
mov rdi, qword [rbp - 0x78]
test eax, eax
je 0x14009aac9
nop dword [rax]
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.14000e320
nop
mov rcx, qword [rsp + 0x30]
cmp dword [rcx + 4], 0
je 0x14009aaa6
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.140008670
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 0x14009aa91
cmp eax, 0xffffffff
je 0x14009aa9f
lock dec dword [rcx]
jne 0x14009aa9f
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
dec dword [rbp + 0x50]
jne 0x14009aa40
jmp 0x14009aac9
mov eax, dword [rcx]
test eax, eax
je 0x14009aabb
cmp eax, 0xffffffff
je 0x14009aac9
lock dec dword [rcx]
jne 0x14009aac9
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
lea rdx, [rsp + 0x28]
mov rcx, r15
call fcn.140094880
mov dword [rsp + 0x20], 1
mov rsi, qword [rsp + 0x28]
mov eax, dword [rsi]
test eax, eax
je 0x14009ab00
cmp eax, 0xffffffff
je 0x14009a9d6
lock dec dword [rsi]
jne 0x14009a9d6
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 0x14009a9cd
sub rdi, 8
mov rcx, qword [rdi]
mov eax, dword [rcx]
test eax, eax
je 0x14009ab38
cmp eax, 0xffffffff
je 0x14009ab49
lock dec dword [rcx]
jne 0x14009ab49
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rdi]
call fcn.140011b40
cmp rdi, r14
jne 0x14009ab21
jmp 0x14009a9cd
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
call fcn.14009b010
mov rdx, rax
mov r8d, ebx
lea rcx, [rsp + 0x58]
call fcn.14000aac0
nop
lea rcx, [0x141468e50]
mov qword [rsp + 0x38], rcx
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140008670
nop
lea rdx, [rsp + 0x38]
mov rcx, r15
call fcn.140094880
mov dword [rsp + 0x20], 1
mov rsi, qword [rsp + 0x38]
mov eax, dword [rsi]
test eax, eax
je 0x14009abbb
cmp eax, 0xffffffff
je 0x14009ac16
lock dec dword [rsi]
jne 0x14009ac16
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 0x14009ac0d
nop dword [rax + rax]
sub rdi, 8
mov rcx, qword [rdi]
mov eax, dword [rcx]
test eax, eax
je 0x14009abf7
cmp eax, 0xffffffff
je 0x14009ac08
lock dec dword [rcx]
jne 0x14009ac08
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rdi]
call fcn.140011b40
cmp rdi, r14
jne 0x14009abe0
mov rcx, rsi
call fcn.1400869f0
nop
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x14009ac30
cmp eax, 0xffffffff
je 0x14009ac3e
lock dec dword [rcx]
jne 0x14009ac3e
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011b40
mov rax, r15
mov rbx, qword [rsp + 0x140]
add rsp, 0x110
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret