Function at 0x140013bc4
Capabilities:
Identify system language via api

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0x808]
sub rsp, 0x8e0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
mov r14, rcx
and qword [rsp + 0x40], 0
xor edi, edi
mov qword [rsp + 0x38], rdi
mov eax, 0xffff
mov dword [rbp - 0x80], eax
mov dword [rbp - 0x7c], eax
mov dword [rbp - 0x78], eax
mov dword [rbp - 0x74], eax
mov dword [rbp - 0x70], eax
mov dword [rbp - 0x6c], eax
and dword [rbp - 0x68], edi
and dword [rbp - 0x60], edi
xor edx, edx
mov r8d, 0x824
lea rcx, [rbp - 0x5c]
call sub.msvcrt.dll_memset
xor ebx, ebx
mov qword [rsp + 0x30], rbx
xor ecx, ecx
call fcn.14002c200
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140013cde
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
test eax, eax
jne 0x140013c74
mov r15d, 0x80004005
jmp 0x140013c85
movzx r15d, ax
or r15d, 0x80070000
test eax, eax
cmovle r15d, eax
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
xor ecx, ecx
test r15d, r15d
jns 0x140013cd4
test rax, rax
je 0x140013cd4
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 0x75b
lea r9, str.CSetupHost::LogBuildInfo
lea r8, str._s__d_:_Result__0x_X
mov edx, 4
mov rcx, rax
call fcn.14002374c
test eax, eax
mov ecx, eax
jns 0x140013cd4
call fcn.140025d30
call fcn.140025d50
jmp 0x140014047
mov rcx, rsi
call fcn.14002cf08
mov rdi, rax
mov qword [rsp + 0x38], rax
mov rax, qword [r14]
mov rax, qword [rax + 0x18]
mov rcx, r14
test rdi, rdi
jne 0x140013d1f
mov r15d, 0x8007000e
call qword [str.PN_t_]
xor ecx, ecx
test rax, rax
je 0x140013cd4
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 0x760
jmp 0x140013cae
call qword [str.PN_t_]
mov r13d, 2
test rax, rax
je 0x140013d55
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
mov rcx, rax
mov r9, rdi
lea r8, str.SetupHost:_Setup_build_version_is:__s
mov edx, r13d
call fcn.14002374c
lea rcx, [rbp - 0x80]
call fcn.14007c2bc
mov r15d, eax
test eax, eax
jns 0x140013d92
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
mov rcx, r14
call qword [str.PN_t_]
xor ecx, ecx
test rax, rax
je 0x140013cd4
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 0x766
jmp 0x140013cae
xor ebx, ebx
lea rcx, [rsp + 0x50]
call fcn.14007bb18
cmp eax, 0xc004f055
je 0x140013dc7
mov ebx, eax
test eax, eax
jns 0x140013db9
mov ecx, eax
call fcn.140025d30
mov r15d, dword [rsp + 0x30]
jmp 0x140013dca
xor r15d, r15d
cmp dword [rsp + 0x60], 1
sete r15b
jmp 0x140013dca
xor r15d, r15d
mov ecx, ebx
call fcn.140025d50
mov rax, qword [r14]
mov rax, qword [rax + 0x18]
mov rcx, r14
call qword [str.PN_t_]
test ebx, ebx
js 0x140013e26
test rax, rax
je 0x140013e4d
lea rax, str.Genuine
lea rbx, str.Not_Genuine
test r15d, r15d
cmovne rbx, rax
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
mov rcx, rax
mov r9, rbx
lea r8, str.____Host_OS_License_State______s__
mov edx, r13d
call fcn.14002374c
jmp 0x140013e4d
test rax, rax
je 0x140013e4d
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
mov rcx, rax
lea r8, str.____Host_OS_License_State_____UNAVAILABLE__
mov edx, r13d
call fcn.14002374c
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
test rax, rax
je 0x140013ec9
mov eax, dword [rbp - 0x60]
lea rcx, str.arm64
lea rbx, str.Unknown
cmp eax, 4
cmove rbx, rcx
lea rcx, [0x1400a1a08]
cmp eax, 3
cmove rbx, rcx
lea rcx, [0x1400a1a00]
cmp eax, 1
cmove rbx, rcx
lea rcx, [0x1400a19f8]
cmp eax, r13d
cmove rbx, rcx
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
mov rcx, rax
mov r9, rbx
lea r8, str.____Host_OS_Architecture_______s__
mov edx, r13d
call fcn.14002374c
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
test rax, rax
je 0x140013f12
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
nop dword [rax + rax]
movzx ebx, ax
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
mov rcx, rax
mov r9d, ebx
lea r8, str.____Host_OS_Language_Id________d__
mov edx, r13d
call fcn.14002374c
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
test rax, rax
je 0x140013f5b
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
nop dword [rax + rax]
movzx ebx, ax
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
mov rcx, rax
mov r9d, ebx
lea r8, str.____User_UI_Language_Id________d__
mov edx, r13d
call fcn.14002374c
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
test rax, rax
je 0x140013f96
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
mov rcx, rax
lea r9, [rbp - 0x58]
lea r8, str.____Host_OS_Edition____________s__
mov edx, r13d
call fcn.14002374c
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
test rax, rax
je 0x140013fdf
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
mov rcx, rax
mov eax, dword [rbp - 0x70]
mov dword [rsp + 0x28], eax
mov eax, dword [rbp - 0x7c]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbp - 0x80]
lea r8, str.____Host_OS_Version____________d._d._d__
mov edx, r13d
call fcn.14002374c
lea r9, [rsp + 0x30]
call fcn.14002404c
mov r15d, eax
mov rax, qword [r14]
mov rax, qword [rax + 0x18]
mov rcx, r14
call qword [str.PN_t_]
test r15d, r15d
jns 0x140014108
xor ecx, ecx
test rax, rax
je 0x14001403d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], 0x784
lea r9, str.CSetupHost::LogBuildInfo
lea r8, str._s__d_:_Result__0x_X
lea edx, [rcx + 4]
mov rcx, rax
call fcn.14002374c
mov ecx, eax
test eax, eax
jns 0x14001403d
call fcn.140025d30
call fcn.140025d50
mov rbx, qword [rsp + 0x30]
mov ecx, r15d
call fcn.140025d50
nop
test rbx, rbx
je 0x140014083
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
lea r8, [rbx - 4]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor ecx, ecx
call fcn.140025d50
and qword [rsp + 0x30], 0
test rdi, rdi
je 0x1400140ae
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
and qword [rsp + 0x38], 0
test rsi, rsi
je 0x1400140d9
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
and qword [rsp + 0x40], 0
mov eax, r15d
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.140094220
lea r11, [rsp + 0x8e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
test rax, rax
je 0x140014042
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x18]
call qword [str.PN_t_]
mov rcx, rax
mov rbx, qword [rsp + 0x30]
mov r9, rbx
lea r8, str.____Host_OS_Build_String_______s__
mov edx, r13d
call fcn.14002374c
jmp 0x140014047