Function at 0x1400b6830
Capabilities:
Identify system language via api

Disassembly:
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 + 0x70], ebx
call fcn.140042c80
or edi, 0xffffffff
cmp eax, 0x80
jl 0x1400b6c23
cmp qword [0x14194e310], rbx
jne 0x1400b6959
lea edx, [rbx + 8]
lea rcx, [0x1401b20b8]
call fcn.140031440
mov qword [rsp + 0x40], rax
lea rax, [0x140168648]
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x60]
call fcn.14002e750
mov qword [rsp + 0x58], rbx
mov byte [rsp + 0x68], bl
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x1400b68d5
cmp eax, edi
je 0x1400b68e3
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400b68e3
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
lea rcx, [rsp + 0x60]
call fcn.1400360e0
mov rcx, rax
mov dl, 1
call fcn.140097490
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x68], 1
test rax, rax
je 0x1400b691d
lea rdx, [0x1401d08f0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14194e310], rax
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x1400b693d
cmp eax, 0xffffffff
je 0x1400b694b
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400b694b
mov rcx, qword [rsp + 0x60]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
cmp qword [0x14194e310], 0
je 0x1400b6c23
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 [0x14194e310]
test eax, eax
jne 0x1400b6ab7
mov dword [rbp + 0x58], ebx
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400b6ab7
lea r9, [rbp + 0x58]
xor r8d, r8d
lea rdx, [rbp + 0x50]
lea ecx, [rax - 0x72]
call qword [0x14194e310]
test eax, eax
je 0x1400b6ab7
mov edx, dword [rbp + 0x58]
mov dword [rsp + 0x38], edx
lea rax, [rbp - 0x80]
lea rcx, [rsp + 0x38]
cmp edx, dword [rbp - 0x80]
cmovge rax, rcx
mov r8d, dword [rax]
lea rcx, [rbp - 0x80]
call fcn.140087750
lea r9, [rbp + 0x58]
mov r8, qword [rbp - 0x78]
lea rdx, [rbp + 0x50]
mov ecx, 8
call qword [0x14194e310]
test eax, eax
jne 0x1400b6ab7
lea rcx, [0x14013adf0]
mov qword [rsp + 0x48], rcx
lea rdx, [rsp + 0x48]
mov rcx, r15
call fcn.14006f140
nop
mov rsi, qword [rsp + 0x48]
mov eax, dword [rsi]
test eax, eax
je 0x1400b6a42
cmp eax, 0xffffffff
je 0x1400b6a9c
mov eax, edi
lock xadd dword [rsi], eax
cmp eax, 1
jne 0x1400b6a9c
mov rsi, qword [rsp + 0x48]
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 0x1400b6a93
nop
sub rbx, 8
mov rcx, qword [rbx]
mov eax, dword [rcx]
test eax, eax
je 0x1400b6a7d
cmp eax, 0xffffffff
je 0x1400b6a8e
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400b6a8e
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbx]
call fcn.1400397e0
cmp rbx, r14
jne 0x1400b6a60
mov rcx, rsi
call fcn.140103560
nop
lea rax, [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
cmp rcx, rax
je 0x1400b6d18
call fcn.140108da8
jmp 0x1400b6d18
lea rcx, [0x14013adf0]
mov qword [rsp + 0x20], rcx
mov eax, dword [rbp + 0x50]
cmp dword [0x14013adf4], eax
jge 0x1400b6aed
mov edx, eax
lea rcx, [rsp + 0x20]
cmp dword [0x14013adf0], 1
jbe 0x1400b6ae5
call fcn.14003be60
jmp 0x1400b6aea
call fcn.14002c9a0
mov eax, dword [rbp + 0x50]
mov rsi, qword [rbp - 0x78]
test eax, eax
je 0x1400b6b97
nop dword [rax]
mov r8d, edi
mov rdx, rsi
lea rcx, [rsp + 0x28]
call fcn.140004300
nop
mov rbx, qword [rsp + 0x28]
cmp dword [rbx + 4], 0
je 0x1400b6b6b
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.1400091b0
mov eax, dword [rbx + 4]
inc eax
movsxd rcx, eax
lea rsi, [rsi + rcx*2]
mov eax, dword [rbx]
test eax, eax
je 0x1400b6b52
cmp eax, 0xffffffff
je 0x1400b6b63
mov eax, edi
lock xadd dword [rbx], eax
cmp eax, 1
jne 0x1400b6b63
mov rbx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, rbx
call fcn.1400397e0
add dword [rbp + 0x50], 0xffffffff
jne 0x1400b6b00
jmp 0x1400b6b97
mov eax, dword [rbx]
test eax, eax
je 0x1400b6b86
cmp eax, 0xffffffff
je 0x1400b6b97
mov eax, edi
lock xadd dword [rbx], eax
cmp eax, 1
jne 0x1400b6b97
mov rbx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, rbx
call fcn.1400397e0
lea rdx, [rsp + 0x20]
mov rcx, r15
call fcn.14006f140
nop
mov rsi, qword [rsp + 0x20]
mov eax, dword [rsi]
test eax, eax
je 0x1400b6bc5
cmp eax, 0xffffffff
je 0x1400b6c1e
mov eax, edi
lock xadd dword [rsi], eax
cmp eax, 1
jne 0x1400b6c1e
mov rsi, qword [rsp + 0x20]
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 0x1400b6c15
sub rbx, 8
mov rcx, qword [rbx]
mov eax, dword [rcx]
test eax, eax
je 0x1400b6bff
cmp eax, 0xffffffff
je 0x1400b6c10
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400b6c10
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbx]
call fcn.1400397e0
cmp rbx, r14
jne 0x1400b6be2
mov rcx, rsi
call fcn.140103560
nop
jmp 0x1400b6a9c
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
call fcn.1400b7110
mov rdx, rax
mov r8d, edi
lea rcx, [rsp + 0x50]
call fcn.1400261d0
nop
lea rcx, [0x14013adf0]
mov qword [rsp + 0x30], rcx
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400091b0
nop
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.14006f140
nop
mov rsi, qword [rsp + 0x30]
mov eax, dword [rsi]
test eax, eax
je 0x1400b6c8a
cmp eax, 0xffffffff
je 0x1400b6cec
mov eax, edi
lock xadd dword [rsi], eax
cmp eax, 1
jne 0x1400b6cec
mov rsi, qword [rsp + 0x30]
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 0x1400b6ce3
nop word [rax + rax]
sub rbx, 8
mov rcx, qword [rbx]
mov eax, dword [rcx]
test eax, eax
je 0x1400b6ccd
cmp eax, 0xffffffff
je 0x1400b6cde
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400b6cde
mov edx, 2
lea r8d, [rdx + 6]
mov rcx, qword [rbx]
call fcn.1400397e0
cmp rbx, r14
jne 0x1400b6cb0
mov rcx, rsi
call fcn.140103560
nop
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
test eax, eax
je 0x1400b6d0a
cmp eax, 0xffffffff
je 0x1400b6d18
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x1400b6d18
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.1400397e0
mov rax, r15
mov rbx, qword [rsp + 0x140]
add rsp, 0x110
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret