Function at 0x10002f02c
Capabilities:
Identify system language via api

Disassembly:
mov rax, rsp
push r12
push r13
push r14
sub rsp, 0x930
mov qword [rsp + 0xd8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x10007d1c0]
xor rax, rsp
mov qword [rsp + 0x920], rax
xor r14d, r14d
mov r12d, r14d
lea rcx, [rsp + 0x70]
call fcn.1000356fc
mov rbx, rax
mov qword [rsp + 0x78], rax
mov rsi, r14
mov qword [rsp + 0x80], r14
lea rcx, [rsp + 0x50]
call fcn.10002264c
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x48], r14
call qword [sym.imp.ntdll.dll_NtIsUILanguageComitted]
cmp eax, r14d
jge 0x10002f0c2
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r12d, [r14 + 1]
jmp 0x10002f368
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx r13d, ax
lea r8, [rsp + 0x50]
mov edx, 0x98
lea rcx, [0x10002efec]
call qword [sym.imp.KERNEL32.dll_EnumUILanguagesW]
lea rdx, [0x100006b90]
lea rcx, [0x100006c00]
call fcn.1000250f8
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rcx
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x100006b90]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, r14d
je 0x10002f134
mov qword [rsp + 0x48], r14
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10002f368
mov ebp, r14d
mov dword [rsp + 0x40], 0x400
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x120]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, r14d
jne 0x10002f2cc
mov qword [rsp + 0xa8], 7
mov qword [rsp + 0xa0], r14
mov word [rsp + 0x90], r14w
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x120]
repne scasw ax, word [rdi]
not rcx
lea r8, [rcx - 1]
lea rdx, [rsp + 0x120]
lea rcx, [rsp + 0x88]
call fcn.100017078
nop
lea r9, [rsp + 0x88]
mov r8, qword [rbx + 8]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.1000357a8
mov rdx, rax
movabs rax, 0x666666666666666
sub rax, rsi
cmp rax, 1
jb 0x10002f26b
inc rsi
mov qword [rsp + 0x80], rsi
mov qword [rbx + 8], rdx
mov rax, qword [rdx + 8]
mov qword [rax], rdx
cmp qword [rsp + 0xa8], 8
jb 0x10002f223
mov rcx, qword [rsp + 0x90]
call sub.msvcrt.dll_free
inc ebp
mov dword [rsp + 0x40], 0x400
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x120]
mov edx, ebp
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, r14d
je 0x10002f17b
jmp 0x10002f2cc
mov qword [rsp + 0xd0], 0xf
mov qword [rsp + 0xc8], r14
mov byte [rsp + 0xb8], r14b
mov r8d, 0x10
lea rdx, [0x100003548]
lea rcx, [rsp + 0xb0]
call fcn.100015edc
nop
lea rdx, [rsp + 0xb0]
lea rcx, [rsp + 0xe0]
call fcn.1000147bc
lea rdx, [0x100079a60]
lea rcx, [rsp + 0xe0]
call sub.msvcrt.dll__CxxThrowException
nop
cmp eax, 0x103
je 0x10002f2e0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10002f368
mov rdi, qword [rbx]
cmp rdi, rbx
je 0x10002f362
cmp qword [rdi + 0x30], 8
jb 0x10002f2f5
mov rcx, qword [rdi + 0x18]
jmp 0x10002f2f9
lea rcx, [rdi + 0x18]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
mov r11d, eax
cmp ax, r13w
je 0x10002f34e
cmp eax, r14d
je 0x10002f32d
mov rcx, qword [rsp + 0x58]
mov rax, qword [rcx]
cmp rax, rcx
je 0x10002f32d
cmp word [rax + 0x10], r11w
je 0x10002f34e
mov rax, qword [rax]
cmp rax, qword [rsp + 0x58]
jne 0x10002f31c
cmp qword [rdi + 0x30], 8
jb 0x10002f33a
mov rdx, qword [rdi + 0x18]
jmp 0x10002f33e
lea rdx, [rdi + 0x18]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, r14d
jne 0x10002f358
mov rdi, qword [rdi]
cmp rdi, rbx
je 0x10002f362
jmp 0x10002f2e8
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10002f368
mov r12d, 1
mov rcx, qword [rsp + 0x48]
cmp rcx, r14
je 0x10002f378
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x48], r14
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rcx]
mov qword [rcx], rcx
mov rax, qword [rsp + 0x58]
mov qword [rax + 8], rax
mov qword [rsp + 0x60], r14
mov rcx, qword [rsp + 0x58]
cmp rdx, rcx
je 0x10002f3b8
mov rdi, qword [rdx]
mov rcx, rdx
call sub.msvcrt.dll_free
mov rdx, rdi
mov rcx, qword [rsp + 0x58]
cmp rdi, rcx
jne 0x10002f3a0
call sub.msvcrt.dll_free
mov qword [rsp + 0x58], r14
mov rdi, qword [rbx]
mov qword [rbx], rbx
mov qword [rbx + 8], rbx
cmp rdi, rbx
je 0x10002f405
mov rsi, qword [rdi]
cmp qword [rdi + 0x30], 8
jb 0x10002f3e4
mov rcx, qword [rdi + 0x18]
call sub.msvcrt.dll_free
mov qword [rdi + 0x30], 7
mov qword [rdi + 0x28], r14
mov word [rdi + 0x18], r14w
mov rcx, rdi
call sub.msvcrt.dll_free
mov rdi, rsi
cmp rsi, rbx
jne 0x10002f3d1
mov rcx, rbx
call sub.msvcrt.dll_free
mov eax, r12d
mov rcx, qword [rsp + 0x920]
xor rcx, rsp
call fcn.100068440
lea r11, [rsp + 0x930]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret