Function at 0x140054f30
Capabilities:
Identify system language via api

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rax - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rsi, rcx
xor r13d, r13d
mov edi, r13d
mov dword [rax - 0x68], r13d
call fcn.14004dec0
nop
lea rax, vtable.CLocaleCondition.0
mov qword [rsi], rax
mov qword [rsi + 0x30], r13
mov qword [rsi + 0x38], r13
mov qword [rsi + 0x40], r13
mov qword [rsi + 0x48], r13
mov qword [rsi + 0x50], r13
mov qword [rsi + 0x58], r13
mov qword [rsi + 0x60], r13
mov qword [rsi + 0x68], r13
mov qword [rsi + 0x70], r13
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [rsi + 0x78], eax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov dword [rsi + 0x7c], eax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsi + 0x80], ax
call qword [sym.imp.KERNEL32.dll_GetACP]
mov dword [rsi + 0x84], eax
lea r14, [rsi + 0x88]
mov qword [rsp + 0x98], r14
lea r12, [0x140102478]
mov qword [r14], r12
lea rbp, [0x1401025f8]
mov qword [r14 + 0x40], rbp
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r14 + 0x48], eax
mov qword [r14 + 0x20], 7
mov qword [r14 + 0x18], r13
mov word [r14 + 8], r13w
mov qword [r14 + 0x28], r13
mov qword [r14 + 0x30], r13
mov qword [r14 + 0x38], r13
mov rax, qword [r14 + 0x40]
movsxd rcx, dword [rax + 4]
mov ecx, dword [rcx + r14 + 0x40]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
lea r15, [rsi + 0xd8]
mov qword [rsp + 0x98], r15
mov qword [r15], r12
lea rbx, [r15 + 0x40]
mov qword [rbx], rbp
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [r15 + 0x48], eax
mov qword [r15 + 0x20], 7
mov qword [r15 + 0x18], r13
mov word [r15 + 8], r13w
mov qword [r15 + 0x28], r13
mov qword [r15 + 0x30], r13
mov qword [r15 + 0x38], r13
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
mov ecx, dword [rcx + rbx]
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop
cmp byte [0x14017bbb0], r13b
jne 0x1400550c1
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x1400550ba
lea rdx, str.GetUserDefaultLocaleName
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14017bba8], rax
lea rdx, str.GetSystemDefaultLocaleName
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14017bbb8], rax
mov byte [0x14017bbb0], 1
cmp qword [0x14017bba8], 0
je 0x14005510a
mov r8d, 0x55
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.140009620
nop
mov edi, 1
mov dword [rsp + 0x20], edi
mov byte [rax + 8], dil
mov rcx, qword [rax]
call fcn.140002ef0
lea edx, [rdi + 0x54]
mov rcx, qword [rax]
call qword [0x14017bba8]
test eax, eax
jne 0x14005510a
movzx ebx, dil
jmp 0x14005510c
xor bl, bl
test dil, 1
je 0x140055123
and edi, 0xfffffffe
mov dword [rsp + 0x20], edi
lea rcx, [rsp + 0x30]
call fcn.140009c60
test bl, bl
je 0x140055140
lea rax, [rsi + 0x90]
mov qword [rax + 0x10], r13
cmp qword [rax + 0x18], 8
jb 0x14005513c
mov rax, qword [rax]
mov word [rax], r13w
cmp qword [0x14017bbb8], 0
je 0x140055187
mov r8d, 0x55
lea rdx, [rsp + 0x30]
mov rcx, r15
call fcn.140009620
nop
or edi, 2
mov dword [rsp + 0x20], edi
mov byte [rax + 8], 1
mov rcx, qword [rax]
call fcn.140002ef0
mov edx, 0x55
mov rcx, qword [rax]
call qword [0x14017bbb8]
test eax, eax
jne 0x140055187
mov bl, 1
jmp 0x140055189
xor bl, bl
test dil, 2
je 0x1400551a0
and edi, 0xfffffffd
mov dword [rsp + 0x20], edi
lea rcx, [rsp + 0x30]
call fcn.140009c60
test bl, bl
je 0x1400551bd
lea rax, [rsi + 0xe0]
mov qword [rax + 0x10], r13
cmp qword [rax + 0x18], 8
jb 0x1400551b9
mov rax, qword [rax]
mov word [rax], r13w
mov rax, rsi
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret