Function at 0x1400696b0
Capabilities:
Identify system language via api

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb8
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x140126108]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movzx r12d, r9b
mov r13, r8
mov rbx, rdx
mov r15, rcx
cmp qword [rcx], 0
jne 0x140069721
lea rbp, str.CProfileDocument::GetSysLang
mov qword [rsp + 0x20], rbp
lea r9, str._s___Failed_on_m_pstDocument_is_NULL
mov r8d, 0x408
lea rdx, str..libTmProfileDocument.cpp
mov ecx, 0x44
call fcn.1400580a0
jmp 0x140069ad1
cmp qword [rdx + 0x20], 8
jb 0x140069731
lea rsi, [rdx + 8]
mov rax, qword [rsi]
jmp 0x140069738
lea rsi, [rdx + 8]
mov rax, rsi
movzx r14d, r12b
mov dword [rsp + 0x40], r14d
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rax
lea rbp, str.CProfileDocument::GetSysLang
mov qword [rsp + 0x20], rbp
lea r9, str._s_______Lang:__s___AutoDetect:__d_
mov r8d, 0x40f
lea rdx, str..libTmProfileDocument.cpp
mov ecx, 0x44
call fcn.1400580a0
mov rdx, qword [r15]
mov rax, qword [rdx]
mov rdi, qword [rax + 0x4d8]
mov qword [rsp + 0x98], 7
xor eax, eax
mov qword [rsp + 0x90], rax
mov word [rsp + 0x80], ax
mov qword [rsp + 0x70], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x68], rax
mov byte [rsp + 0x58], al
test r12b, r12b
je 0x140069a1d
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx r12d, ax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edx, ax
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], rbp
lea r9, str._s___GetUserDefaultUILanguage:__d___GetUserDefaultLangID:__d_
mov r8d, 0x418
lea rdx, str..libTmProfileDocument.cpp
mov ecx, 0x44
call fcn.1400580a0
test rdi, rdi
je 0x1400699cf
mov ecx, dword [rdi]
cmp ecx, r12d
je 0x14006985e
lea rax, [rsp + 0x80]
cmp qword [rsp + 0x98], 8
cmovae rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rbp
lea r9, str._s___Support_LCID:__d___LANG:__s_
mov r8d, 0x424
lea rdx, str..libTmProfileDocument.cpp
mov ecx, 0x44
call fcn.1400580a0
mov rdi, qword [rdi + 0x68]
test rdi, rdi
jne 0x140069803
jmp 0x1400699cf
lea r14, [rdi + 4]
xor eax, eax
or rcx, 0xffffffffffffffff
mov rdi, r14
repne scasb al, byte [rdi]
not rcx
lea rdi, [rcx - 1]
lea rax, [rsp + 0x58]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
cmovae rax, r8
mov rcx, qword [rsp + 0x68]
cmp r14, rax
jb 0x1400698de
lea rax, [rsp + 0x58]
cmp rdx, 0x10
cmovae rax, r8
add rax, rcx
cmp rax, r14
jbe 0x1400698de
lea rax, [rsp + 0x58]
cmp rdx, 0x10
cmovae rax, r8
sub r14, rax
mov r9, rdi
mov r8, r14
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.140006720
mov rdx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x58]
jmp 0x140069980
cmp rdi, 0xfffffffffffffffe
jbe 0x1400698f8
call fcn.1400cbc00
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x58]
cmp rdx, rdi
jae 0x140069919
mov r8, rcx
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140007520
mov rdx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x58]
jmp 0x14006993f
test rdi, rdi
jne 0x14006993f
mov qword [rsp + 0x68], rdi
lea rax, [rsp + 0x58]
cmp rdx, 0x10
cmovae rax, r8
mov byte [rax], dil
mov rdx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x58]
jmp 0x140069980
test rdi, rdi
je 0x140069980
lea rcx, [rsp + 0x58]
cmp rdx, 0x10
cmovae rcx, r8
mov r9, rdi
mov r8, r14
call fcn.14009d1a0
mov qword [rsp + 0x68], rdi
lea rax, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae rax, qword [rsp + 0x58]
mov byte [rax + rdi], 0
mov rdx, qword [rsp + 0x70]
mov r8, qword [rsp + 0x58]
lea rcx, [rsp + 0x58]
cmp rdx, 0x10
cmovae rcx, r8
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x78]
call fcn.140057010
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x78]
mov rcx, rbx
call fcn.14000ef60
test r13, r13
je 0x1400699ca
mov dword [r13], r12d
mov r14d, dword [rsp + 0x40]
jmp 0x1400699cf
mov r14d, dword [rsp + 0x40]
mov rdx, rbx
mov rcx, r15
call fcn.140069360
test eax, eax
jne 0x140069a1d
cmp qword [rbx + 0x20], 8
jb 0x1400699ea
mov rax, qword [rsi]
jmp 0x1400699ed
mov rax, rsi
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
lea r9, str._s___Not_a_supported_language:__s_
mov r8d, 0x42a
lea rdx, str..libTmProfileDocument.cpp
mov ecx, 0x44
call fcn.1400580a0
mov rcx, rbx
call fcn.140038850
cmp qword [rbx + 0x18], 0
jne 0x140069a58
mov r8, r13
mov rdx, rbx
mov rcx, r15
call fcn.140060e60
test eax, eax
jne 0x140069a58
lea r8d, [rax + 5]
lea rdx, [0x1400e9488]
mov rcx, rbx
call fcn.14000f160
test r13, r13
je 0x140069a58
mov eax, dword [0x140123150]
mov dword [r13], eax
cmp qword [rbx + 0x20], 8
jb 0x140069a62
mov rsi, qword [rsi]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rbp
lea r9, [0x1400dacc0]
mov r8d, 0x438
lea rdx, str..libTmProfileDocument.cpp
mov ecx, 0x44
call fcn.1400580a0
nop
cmp qword [rsp + 0x70], 0x10
jb 0x140069aa2
mov rcx, qword [rsp + 0x58]
call fcn.14006b8a0
mov qword [rsp + 0x70], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x68], 0
mov byte [rsp + 0x58], 0
cmp qword [rsp + 0x98], 8
jb 0x140069ad1
mov rcx, qword [rsp + 0x80]
call fcn.14006b8a0
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.14009cca0
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret