Function at 0x1400a3f30
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 ebx, ebx
mov dword [rsp + 0x20], ebx
call fcn.14000ed30
or edi, 0xffffffff
cmp eax, 0x80
jl 0x1400a4314
cmp qword [0x1416997b8], rbx
jne 0x1400a4051
lea edx, [rbx + 8]
lea rcx, [0x141595520]
call fcn.140015850
mov qword [rsp + 0x40], rax
lea rax, [0x141524b70]
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140012b30
mov qword [rsp + 0x60], rbx
mov byte [rsp + 0x70], bl
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x1400a3fd3
cmp eax, edi
je 0x1400a3fe1
lock dec dword [rcx]
jne 0x1400a3fe1
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
lea rcx, [rsp + 0x68]
call fcn.14001b320
mov rcx, rax
mov dl, 1
call fcn.140042210
mov qword [rsp + 0x60], rax
mov byte [rsp + 0x70], 1
test rax, rax
je 0x1400a401b
lea rdx, [0x1415f54f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1416997b8], rax
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x1400a4035
cmp eax, 0xffffffff
je 0x1400a4043
lock dec dword [rcx]
jne 0x1400a4043
mov rcx, qword [rsp + 0x68]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
cmp qword [0x1416997b8], 0
je 0x1400a4314
mov dword [rbp + 0x50], ebx
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 [0x1416997b8]
test eax, eax
jne 0x1400a41b1
mov dword [rbp + 0x58], ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400a41b1
lea r9, [rbp + 0x58]
xor r8d, r8d
lea rdx, [rbp + 0x50]
lea ecx, [rax - 0x72]
call qword [0x1416997b8]
test eax, eax
je 0x1400a41b1
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.140067120
lea r9, [rbp + 0x58]
mov r8, qword [rbp - 0x78]
lea rdx, [rbp + 0x50]
mov ecx, 8
call qword [0x1416997b8]
test eax, eax
jne 0x1400a41b1
lea rcx, [0x14154e0f0]
mov qword [rsp + 0x50], rcx
lea rdx, [rsp + 0x50]
mov rcx, r15
call fcn.14009dfd0
mov dword [rsp + 0x20], 1
mov rsi, qword [rsp + 0x50]
mov eax, dword [rsi]
test eax, eax
je 0x1400a413b
cmp eax, 0xffffffff
je 0x1400a4196
lock dec dword [rsi]
jne 0x1400a4196
mov rsi, qword [rsp + 0x50]
movsxd rbx, dword [rsi + 0xc]
add rbx, 2
lea rbx, [rsi + rbx*8]
movsxd r14, dword [rsi + 8]
add r14, 2
lea r14, [rsi + r14*8]
cmp r14, rbx
je 0x1400a418d
nop dword [rax + rax]
sub rbx, 8
mov rcx, qword [rbx]
mov eax, dword [rcx]
test eax, eax
je 0x1400a4177
cmp eax, 0xffffffff
je 0x1400a4188
lock dec dword [rcx]
jne 0x1400a4188
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbx]
call fcn.140011e00
cmp rbx, r14
jne 0x1400a4160
mov rcx, rsi
call fcn.14001c480
nop
lea rax, [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
cmp rcx, rax
je 0x1400a43fe
call fcn.1400f95d4
jmp 0x1400a43fe
lea rcx, [0x14154e0f0]
mov qword [rsp + 0x28], rcx
mov eax, dword [rbp + 0x50]
cmp dword [0x14154e0f4], eax
jge 0x1400a41e7
mov edx, eax
lea rcx, [rsp + 0x28]
cmp dword [0x14154e0f0], 1
jbe 0x1400a41df
call fcn.140022290
jmp 0x1400a41e4
call fcn.14001c740
mov eax, dword [rbp + 0x50]
mov rsi, qword [rbp - 0x78]
test eax, eax
je 0x1400a428a
nop dword [rax]
nop word [rax + rax]
mov r8d, edi
mov rdx, rsi
lea rcx, [rsp + 0x30]
call fcn.14000e3e0
nop
mov rbx, qword [rsp + 0x30]
cmp dword [rbx + 4], 0
je 0x1400a4264
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x28]
call fcn.140008590
mov eax, dword [rbx + 4]
inc eax
movsxd rcx, eax
lea rsi, [rsi + rcx*2]
mov eax, dword [rbx]
test eax, eax
je 0x1400a424c
cmp eax, 0xffffffff
je 0x1400a425d
lock dec dword [rbx]
jne 0x1400a425d
mov rbx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, rbx
call fcn.140011e00
dec dword [rbp + 0x50]
jne 0x1400a4200
jmp 0x1400a428a
mov eax, dword [rbx]
test eax, eax
je 0x1400a4279
cmp eax, 0xffffffff
je 0x1400a428a
lock dec dword [rbx]
jne 0x1400a428a
mov rbx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, rbx
call fcn.140011e00
lea rdx, [rsp + 0x28]
mov rcx, r15
call fcn.14009dfd0
mov dword [rsp + 0x20], 1
mov rsi, qword [rsp + 0x28]
mov eax, dword [rsi]
test eax, eax
je 0x1400a42c1
cmp eax, 0xffffffff
je 0x1400a4196
lock dec dword [rsi]
jne 0x1400a4196
mov rsi, qword [rsp + 0x28]
movsxd rbx, dword [rsi + 0xc]
add rbx, 2
lea rbx, [rsi + rbx*8]
movsxd r14, dword [rsi + 8]
add r14, 2
lea r14, [rsi + r14*8]
cmp r14, rbx
je 0x1400a418d
sub rbx, 8
mov rcx, qword [rbx]
mov eax, dword [rcx]
test eax, eax
je 0x1400a42f9
cmp eax, 0xffffffff
je 0x1400a430a
lock dec dword [rcx]
jne 0x1400a430a
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbx]
call fcn.140011e00
cmp rbx, r14
jne 0x1400a42e2
jmp 0x1400a418d
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
call fcn.1400a47b0
mov rdx, rax
mov r8d, edi
lea rcx, [rsp + 0x58]
call fcn.14000a7a0
nop
lea rcx, [0x14154e0f0]
mov qword [rsp + 0x38], rcx
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140008590
nop
lea rdx, [rsp + 0x38]
mov rcx, r15
call fcn.14009dfd0
mov dword [rsp + 0x20], 1
mov rsi, qword [rsp + 0x38]
mov eax, dword [rsi]
test eax, eax
je 0x1400a437c
cmp eax, 0xffffffff
je 0x1400a43d6
lock dec dword [rsi]
jne 0x1400a43d6
mov rsi, qword [rsp + 0x38]
movsxd rbx, dword [rsi + 0xc]
add rbx, 2
lea rbx, [rsi + rbx*8]
movsxd r14, dword [rsi + 8]
add r14, 2
lea r14, [rsi + r14*8]
cmp r14, rbx
je 0x1400a43cd
nop dword [rax]
sub rbx, 8
mov rcx, qword [rbx]
mov eax, dword [rcx]
test eax, eax
je 0x1400a43b7
cmp eax, 0xffffffff
je 0x1400a43c8
lock dec dword [rcx]
jne 0x1400a43c8
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbx]
call fcn.140011e00
cmp rbx, r14
jne 0x1400a43a0
mov rcx, rsi
call fcn.14001c480
nop
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x1400a43f0
cmp eax, 0xffffffff
je 0x1400a43fe
lock dec dword [rcx]
jne 0x1400a43fe
mov rcx, qword [rsp + 0x58]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140011e00
mov rax, r15
mov rbx, qword [rsp + 0x140]
add rsp, 0x110
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret