Function at 0x14005a9d4
Capabilities:
Identify system language via api

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x398]
sub rsp, 0x470
mov rax, qword [0x1400c5228]
xor rax, rsp
mov qword [rbp + 0x360], rax
xor ebx, ebx
mov r13, rcx
mov qword [rsp + 0x30], rbx
test rcx, rcx
je 0x14005ae1c
call fcn.14005a448
mov dword [0x1400c7878], eax
xor edx, edx
and eax, 0x20
mov rcx, r13
or eax, 2
mov esi, ebx
mov r8d, eax
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov rdi, rax
test rax, rax
je 0x14005ae1c
test byte [0x1400c7878], 0x20
jne 0x14005ae1e
lea rax, [rsp + 0x30]
mov r9d, 0x104
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, [rbp + 0x150]
mov rdx, r13
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_SearchPathW]
test eax, eax
je 0x14005ae13
mov rax, qword [rsp + 0x30]
test rax, rax
jne 0x14005aaa5
lea rax, [rbp + 0x150]
mov r14d, ebx
mov qword [rsp + 0x30], rax
jmp 0x14005aab0
lea r14, [rbp + 0x150]
mov word [rax - 2], bx
xor r9d, r9d
lea rdx, [0x140097af0]
mov rcx, rdi
lea r8d, [r9 + 1]
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
test rax, rax
je 0x14005ac9e
mov eax, dword [0x1400c7878]
test al, 4
je 0x14005acfb
call qword [sym.imp.api_ms_win_core_localization_obsolete_l1_2_0.dll_GetUserDefaultUILanguage]
mov r12d, 0x404
movzx r15d, ax
cmp ax, r12w
jne 0x14005aafd
call fcn.14005a2b8
movzx r15d, ax
lea r9, [rbp - 0x10]
movzx ecx, r15w
lea r8, [rbp + 0xa0]
lea rdx, [rsp + 0x40]
call fcn.14005a5e0
test eax, eax
je 0x14005addc
mov r9, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call fcn.14005a56c
mov rsi, rax
test rax, rax
jne 0x14005ade5
mov r9, qword [rsp + 0x30]
lea r8, [rbp + 0xa0]
mov rdx, r14
mov rcx, rdi
call fcn.14005a56c
mov rsi, rax
test rax, rax
jne 0x14005ade5
cmp word [rbp - 0x10], bx
je 0x14005ab88
mov r9, qword [rsp + 0x30]
lea r8, [rbp - 0x10]
mov rdx, r14
mov rcx, rdi
call fcn.14005a56c
mov rsi, rax
test rax, rax
jne 0x14005ade5
mov eax, 0xc04
cmp r15w, ax
jne 0x14005ab9b
mov r15d, r12d
jmp 0x14005aafd
call qword [sym.imp.api_ms_win_core_localization_obsolete_l1_2_0.dll_GetSystemDefaultUILanguage]
movzx r12d, ax
cmp ax, r15w
je 0x14005ac39
lea r9, [rbp - 0x10]
movzx ecx, ax
lea r8, [rbp + 0xa0]
lea rdx, [rsp + 0x40]
call fcn.14005a5e0
test eax, eax
je 0x14005ac9e
mov r9, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call fcn.14005a56c
mov rsi, rax
test rax, rax
jne 0x14005ade5
mov r9, qword [rsp + 0x30]
lea r8, [rbp + 0xa0]
mov rdx, r14
mov rcx, rdi
call fcn.14005a56c
mov rsi, rax
test rax, rax
jne 0x14005ade5
cmp word [rbp - 0x10], bx
je 0x14005ac39
mov r9, qword [rsp + 0x30]
lea r8, [rbp - 0x10]
mov rdx, r14
mov rcx, rdi
call fcn.14005a56c
mov rsi, rax
test rax, rax
jne 0x14005ade5
mov ecx, 0x409
cmp cx, r15w
je 0x14005ac7f
cmp cx, r12w
je 0x14005ac7f
xor r9d, r9d
lea r8, [rbp + 0xa0]
lea rdx, [rsp + 0x40]
call fcn.14005a5e0
mov r9, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call fcn.14005a56c
mov rsi, rax
test rax, rax
jne 0x14005ade5
mov r9, qword [rsp + 0x30]
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
call fcn.14005a56c
mov rsi, rax
test rax, rax
jne 0x14005addc
test dil, 1
je 0x14005ae0e
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
call fcn.14005a448
test al, 0x38
je 0x14005adf3
mov rax, qword [rsp + 0x30]
lea r8, str._s_s
mov r9, r14
mov qword [rsp + 0x20], rax
mov edx, 0x104
lea rcx, [rbp + 0x150]
call fcn.14001ee04
xor r8d, r8d
lea rcx, [rbp + 0x150]
lea edx, [r8 + 1]
call fcn.14005a768
jmp 0x14005ae0b
test al, 3
je 0x14005ac9e
call fcn.14005a338
lea r9, [rbp - 0x10]
movzx ecx, ax
lea r8, [rbp + 0xa0]
movzx r15d, ax
lea rdx, [rsp + 0x40]
call fcn.14005a5e0
test eax, eax
je 0x14005ac9e
mov r9, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call fcn.14005a56c
mov rsi, rax
test rax, rax
jne 0x14005ade5
mov r9, qword [rsp + 0x30]
lea r8, [rbp + 0xa0]
mov rdx, r14
mov rcx, rdi
call fcn.14005a56c
mov rsi, rax
test rax, rax
jne 0x14005ade5
cmp word [rbp - 0x10], bx
je 0x14005ad8a
mov r9, qword [rsp + 0x30]
lea r8, [rbp - 0x10]
mov rdx, r14
mov rcx, rdi
call fcn.14005a56c
mov rsi, rax
test rax, rax
jne 0x14005ade5
mov ecx, 0x409
cmp cx, r15w
je 0x14005adc6
xor r9d, r9d
lea r8, [rbp + 0xa0]
lea rdx, [rsp + 0x40]
call fcn.14005a5e0
mov r9, qword [rsp + 0x30]
lea r8, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call fcn.14005a56c
mov rsi, rax
test rax, rax
jne 0x14005ade5
mov r9, qword [rsp + 0x30]
xor r8d, r8d
mov rdx, r14
mov rcx, rdi
call fcn.14005a56c
mov rsi, rax
test rsi, rsi
je 0x14005ac9e
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
mov rax, rsi
jmp 0x14005ae1e
call fcn.14005a448
test al, 0x26
mov rcx, r13
setne bl
xor edx, edx
mov r8d, ebx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov rdi, rax
mov rax, rdi
jmp 0x14005ae1e
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
xor eax, eax
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.14002c960
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret