Function at 0x1401226d0
Capabilities:
Identify system language via api

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x1f8]
sub rsp, 0x2d0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1402bb010]
xor rax, rsp
mov qword [rbp + 0x1c0], rax
xor r15d, r15d
mov dword [rsp + 0x30], r15d
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ebx, ax
mov esi, ebx
xor edx, edx
mov r8d, 0xaa
lea rcx, [rbp + 0x110]
call fcn.1401706d2
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x30]
call fcn.1401706d2
lea r13, [0x140227eb8]
mov qword [rbp - 0x30], r13
lea r14, [0x140227c80]
mov qword [rbp - 0x20], r14
lea rcx, [rbp + 0x68]
call qword [0x1401a9250]
nop
mov dword [rsp + 0x30], 1
xor r8d, r8d
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x30]
call qword [0x1401a91b0]
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x30], r12
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x34], edx
lea edx, [r15 + 3]
lea rcx, [rbp - 0x18]
call fcn.140057c70
nop
lea rdx, str.language_id
lea rcx, [rbp - 0x20]
call fcn.140058ba0
mov rcx, rax
movzx edx, bx
call qword [0x1401a9298]
mov rcx, rax
lea rdx, [0x1401b5868]
call fcn.140058ba0
mov rcx, rax
lea rdx, str.UserDefaultUILanguage
call fcn.140058ba0
mov rcx, rax
lea rdx, [0x1401b5844]
call fcn.140058ba0
mov rcx, rax
mov edx, 0x13f
call qword [0x1401a9130]
mov rcx, rax
lea rdx, [0x1401b5840]
call fcn.140058ba0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x18]
call fcn.140057bc0
lea edi, [r15 + 3]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], 0xf
mov byte [rsp + 0x38], r15b
lea r8d, [r15 + 0xb]
lea rdx, str.HWAccountUI
lea rcx, [rsp + 0x38]
call fcn.140047980
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call qword [0x1401a9e98]
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x30], r12
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x18]
call fcn.140055cb0
lea rcx, [rbp - 0x10]
call qword [0x1401a9120]
lea rcx, [rbp + 0x68]
call qword [0x1401a9198]
cmp ebx, 0x404
jne 0x140122a26
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ebx, ax
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x30]
call fcn.1401706d2
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x20], r14
lea rcx, [rbp + 0x68]
call qword [0x1401a9250]
nop
mov dword [rsp + 0x30], 7
xor r8d, r8d
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x30]
call qword [0x1401a91b0]
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x30], r12
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x34], edx
mov edx, edi
lea rcx, [rbp - 0x18]
call fcn.140057c70
nop
lea rdx, str.language_id
lea rcx, [rbp - 0x20]
call fcn.140058ba0
mov rcx, rax
movzx edx, bx
call qword [0x1401a9298]
mov rcx, rax
lea rdx, [0x1401b5868]
call fcn.140058ba0
mov rcx, rax
lea rdx, str.UserDefaultUILanguage
call fcn.140058ba0
mov rcx, rax
lea rdx, [0x1401b5844]
call fcn.140058ba0
mov rcx, rax
mov edx, 0x142
call qword [0x1401a9130]
mov rcx, rax
lea rdx, [0x1401b5840]
call fcn.140058ba0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x18]
call fcn.140057bc0
lea edi, [r15 + 0xf]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], 0xf
mov byte [rsp + 0x38], r15b
lea r8d, [r15 + 0xb]
lea rdx, str.HWAccountUI
lea rcx, [rsp + 0x38]
call fcn.140047980
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call qword [0x1401a9e98]
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x30], r12
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x18]
call fcn.140055cb0
lea rcx, [rbp - 0x10]
call qword [0x1401a9120]
lea rcx, [rbp + 0x68]
call qword [0x1401a9198]
mov esi, ebx
mov r14d, edi
xor r9d, r9d
lea r8d, [r9 + 0x55]
lea rdx, [rbp + 0x110]
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
test eax, eax
jne 0x140122bbe
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x30]
call fcn.1401706d2
mov qword [rbp - 0x30], r13
lea rax, [0x140227c80]
mov qword [rbp - 0x20], rax
lea rcx, [rbp + 0x68]
call qword [0x1401a9250]
nop
or edi, 0x10
mov dword [rsp + 0x30], edi
xor r8d, r8d
lea rdx, [rbp - 0x18]
lea rcx, [rbp - 0x30]
call qword [0x1401a91b0]
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x30], r12
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0x98]
mov dword [rbp + rcx - 0x34], r8d
mov edx, 3
lea rcx, [rbp - 0x18]
call fcn.140057c70
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.get_Local_Name_Failed:
lea rcx, [rbp - 0x20]
call fcn.140058ba0
mov rcx, rax
mov edx, ebx
call qword [0x1401a9128]
mov rcx, rax
lea rdx, [0x1401b5868]
call fcn.140058ba0
mov rcx, rax
lea rdx, str.UserDefaultUILanguage
call fcn.140058ba0
mov rcx, rax
lea rdx, [0x1401b5844]
call fcn.140058ba0
mov rcx, rax
mov edx, 0x146
call qword [0x1401a9130]
mov rcx, rax
lea rdx, [0x1401b5840]
call fcn.140058ba0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x18]
call fcn.140057bc0
mov edi, r14d
or edi, 0x30
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], 0xf
mov byte [rsp + 0x38], 0
mov r8d, SHCreateMemStream
lea rdx, str.HWAccountUI
lea rcx, [rsp + 0x38]
call fcn.140047980
nop
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x38]
call qword [0x1401a9e90]
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
mov qword [rbp + rcx - 0x30], r12
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x18]
call fcn.140055cb0
lea rcx, [rbp - 0x10]
call qword [0x1401a9120]
lea rcx, [rbp + 0x68]
call qword [0x1401a9198]
mov qword [rbp - 0x48], r15
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], r15w
lea rdx, [rbp + 0x110]
lea rcx, [rbp - 0x58]
call fcn.140053ee0
nop
cmp qword [rbp - 0x48], 0
jne 0x140122bf7
lea rdx, str.en_US
lea rcx, [rbp - 0x58]
call fcn.140053ee0
xor edx, edx
mov r8d, 0xf8
lea rcx, [rbp - 0x30]
call fcn.1401706d2
lea rcx, [rbp - 0x30]
call fcn.14006ed80
nop
lea rbx, [rbp - 0x58]
cmp qword [rbp - 0x40], 8
cmovae rbx, qword [rbp - 0x58]
lea rdx, str.UIlanguage
lea rcx, [rbp - 0x20]
call fcn.14006f790
mov rcx, rax
mov rdx, rbx
call fcn.14006f5a0
mov rcx, rax
lea rdx, [0x140228ddc]
call fcn.14006f5a0
mov rcx, rax
lea rdx, str.UserDefaultUILanguage
call fcn.14006f790
mov rcx, rax
lea rdx, [0x140228db8]
call fcn.14006f5a0
mov rcx, rax
mov edx, 0x14c
call qword [0x1401a93c0]
mov rcx, rax
lea rdx, [0x140228db4]
call fcn.14006f5a0
nop
movdqa xmm0, xmmword [0x14024d4b0]
movdqu xmmword [rsp + 0x48], xmm0
mov word [rsp + 0x38], r15w
bts edi, 7
mov dword [rsp + 0x30], edi
mov rcx, qword [rbp + 0x58]
test cl, 2
jne 0x140122ccc
mov rax, qword [rbp + 0x28]
mov r8, qword [rax]
test r8, r8
je 0x140122ccc
mov rax, qword [rbp + 8]
mov rdx, qword [rax]
cmp r8, qword [rbp + 0x50]
cmovb r8, qword [rbp + 0x50]
sub r8, rdx
jmp 0x140122cf4
test cl, 4
jne 0x140122d02
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test rcx, rcx
je 0x140122d02
mov rax, qword [rbp]
mov rdx, qword [rax]
mov rax, qword [rbp + 0x38]
movsxd r8, dword [rax]
add r8, r8
sub r8, rdx
add r8, rcx
sar r8, 1
lea rcx, [rsp + 0x38]
call fcn.140053f60
nop
lea rdx, [rsp + 0x38]
lea rcx, [rbp + 0xf0]
call qword [0x1401a9800]
nop
lea rcx, [rsp + 0x38]
call fcn.1400524a0
lea rax, [rbp - 0x78]
mov qword [rsp + 0x78], rax
lea rdx, [rbp + 0xf0]
lea rcx, [rbp - 0x78]
call fcn.140054ae0
mov rbx, rax
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], 0
mov r8d, SHCreateMemStream
lea rdx, str.HWAccountUI
lea rcx, [rsp + 0x58]
call fcn.140047980
nop
mov rdx, rbx
lea rcx, [rsp + 0x58]
call qword [0x1401a9e98]
nop
lea rcx, [rbp + 0xf0]
call fcn.140047920
nop
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x34], edx
lea rcx, [rbp - 0x18]
call fcn.14006f390
lea rcx, [rbp - 0x10]
call qword [0x1401a93c8]
lea rcx, [rbp + 0x68]
call qword [0x1401a9368]
lea rcx, [rbp + 0xd0]
call qword [0x1401a9870]
nop
mov r8d, 0x1c
lea rdx, str.Control_PanelInternational
lea rcx, [rbp + 0xd0]
call fcn.140054130
movdqa xmm0, xmmword [0x14024d4b0]
movdqu xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x58], r15w
lea rdx, str.CurrentuserLang
lea rcx, [rsp + 0x58]
call fcn.140053ee0
nop
mov dword [rsp + 0x20], 0xf003f
lea r9, [rbp - 0x58]
lea r8, [rsp + 0x58]
lea rdx, [rbp + 0xd0]
mov rcx, 0xffffffff80000003
call qword [0x1401a9898]
nop
lea rcx, [rsp + 0x58]
call fcn.1400524a0
nop
lea rcx, [rbp + 0xd0]
call fcn.1400524a0
nop
lea rcx, [rbp - 0x58]
call fcn.1400524a0
mov rcx, qword [rbp + 0x1c0]
xor rcx, rsp
call fcn.14016ee40
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret