Function at 0x180066a10
Capabilities:
Identify system language via api

Disassembly:
push rbp
push rdi
mov rbp, rsp
sub rsp, 0x78
mov rax, qword [sym.imp.Qt5Core.dll_struct_QListData::Data_const_QListData::shared_null]
mov rdi, rcx
mov qword [rsp + 0x70], rbx
mov rbx, rdx
mov qword [rcx], rax
lea rcx, [rbp - 0x48]
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], r12
call qword [sym.imp.Qt5Gui.dll_public:_void___cdecl_QFontDatabase::constructor_void____ptr64]
mov r8, rbx
lea rdx, [rbp + 0x30]
lea rcx, [rbp - 0x48]
call qword [sym.imp.Qt5Gui.dll_public:_class_QList_enum_QFontDatabase::WritingSystem____cdecl_QFontDatabase::writingSystems_class_QString_const____ptr64____ptr64]
mov rdx, qword [rax]
movsxd r8, dword [rdx + 0xc]
movsxd rcx, dword [rdx + 8]
add r8, 2
add rcx, 2
lea r8, [rdx + r8*8]
lea rcx, [rdx + rcx*8]
cmp rcx, r8
je 0x180066a89
mov rax, qword [rcx]
cmp dword [rax], 0x1e
je 0x180066b41
add rcx, 8
cmp rcx, r8
jne 0x180066a74
mov r12b, 1
mov rax, qword [rbp + 0x30]
mov esi, 0xffffffff
mov qword [rsp + 0x58], r14
mov ecx, dword [rax]
test ecx, ecx
je 0x180066ab3
cmp ecx, esi
je 0x180066b05
mov rax, qword [rbp + 0x30]
mov ecx, esi
lock xadd dword [rax], ecx
cmp ecx, 1
jne 0x180066b05
mov qword [rsp + 0x50], r15
mov r15, qword [rbp + 0x30]
movsxd r14, dword [r15 + 8]
movsxd rbx, dword [r15 + 0xc]
add r14, 2
add rbx, 2
lea r14, [r15 + r14*8]
lea rbx, [r15 + rbx*8]
cmp rbx, r14
je 0x180066af7
nop dword [rax]
mov rcx, qword [rbx - 8]
sub rbx, 8
mov edx, 4
call fcn.1800ee414
cmp rbx, r14
jne 0x180066ae0
mov rcx, r15
call qword [sym.imp.Qt5Core.dll_public:_static_void___cdecl_QListData::dispose_struct_QListData::Data____ptr64_]
mov r15, qword [rsp + 0x50]
test r12b, r12b
mov r12, qword [rsp + 0x60]
je 0x180066cab
cmp qword [0x180155dc8], 0
jne 0x180066b84
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ecx, ax
movzx edx, cl
sub edx, 4
je 0x180066b5b
sub edx, 0xd
je 0x180066b52
cmp edx, 1
je 0x180066b49
lea rax, [0x180151340]
jmp 0x180066b7d
xor r12b, r12b
jmp 0x180066a8c
lea rax, str.Gulim
jmp 0x180066b7d
lea rax, str.MS_UI_Gothic
jmp 0x180066b7d
mov ecx, 0x804
sub ax, cx
mov ecx, 0xf7ff
test cx, ax
lea rax, [0x1801513e8]
lea rcx, str.SimSun
cmove rax, rcx
mov qword [0x180155dc8], rax
lea rcx, [rbp - 0x50]
call qword [sym.imp.Qt5Gui.dll_public:_void___cdecl_QFontDatabase::constructor_void____ptr64]
xor r8d, r8d
lea rdx, [rbp + 0x28]
lea rcx, [rbp - 0x50]
call qword [sym.imp.Qt5Gui.dll_public:_class_QStringList___cdecl_QFontDatabase::families_enum_QFontDatabase::WritingSystem____ptr64]
mov rbx, qword [0x180155dc8]
test rbx, rbx
je 0x180066c51
nop
mov rdx, qword [rbx]
test rdx, rdx
je 0x180066c51
mov r8d, esi
lea rcx, [rbp + 0x18]
call qword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromLatin1_char_const____ptr64__int_]
mov r8d, 1
lea rdx, [rbp + 0x18]
lea rcx, [rbp + 0x28]
call qword [sym.imp.Qt5Core.dll_bool___cdecl_QtPrivate::QStringList_contains_class_QStringList_const____ptr64__class_QString_const____ptr64__enum_Qt::CaseSensitivity_]
test al, al
jne 0x180066bf3
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x50]
call qword [sym.imp.Qt5Gui.dll_public:_bool___cdecl_QFontDatabase::hasFamily_class_QString_const____ptr64_const___ptr64]
test al, al
je 0x180066c3d
mov rax, qword [rdi]
mov ecx, dword [rax]
cmp ecx, 1
jbe 0x180066c1f
mov edx, 0x7fffffff
mov r8d, 1
mov rcx, rdi
call fcn.18000da10
lea rdx, [rbp + 0x18]
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QString_const____ptr64____ptr64]
jmp 0x180066c3d
lea rdx, [rbp + 0x18]
lea rcx, [rbp - 0x40]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QString_const____ptr64____ptr64]
mov rcx, rdi
call qword [sym.imp.Qt5Core.dll_public:_void____ptr64____ptr64___cdecl_QListData::append_void____ptr64]
mov rcx, qword [rbp - 0x40]
mov qword [rax], rcx
lea rcx, [rbp + 0x18]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
add rbx, 8
jne 0x180066bb0
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x180066c6c
cmp ecx, esi
je 0x180066cab
mov rax, qword [rbp + 0x28]
lock xadd dword [rax], esi
cmp esi, 1
jne 0x180066cab
mov r14, qword [rbp + 0x28]
movsxd rsi, dword [r14 + 8]
movsxd rbx, dword [r14 + 0xc]
add rsi, 2
add rbx, 2
lea rsi, [r14 + rsi*8]
lea rbx, [r14 + rbx*8]
cmp rbx, rsi
je 0x180066ca2
nop dword [rax]
sub rbx, 8
mov rcx, rbx
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
cmp rbx, rsi
jne 0x180066c90
mov rcx, r14
call qword [sym.imp.Qt5Core.dll_public:_static_void___cdecl_QListData::dispose_struct_QListData::Data____ptr64_]
mov r14, qword [rsp + 0x58]
lea rax, [0x1801514f0]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov qword [rbp - 0x58], rax
mov rax, qword [rdi]
mov ecx, dword [rax]
cmp ecx, 1
jbe 0x180066cf1
mov edx, 0x7fffffff
mov r8d, 1
mov rcx, rdi
call fcn.18000da10
lea rdx, [rbp - 0x58]
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QString_const____ptr64____ptr64]
jmp 0x180066d0f
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x38]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QString_const____ptr64____ptr64]
mov rcx, rdi
call qword [sym.imp.Qt5Core.dll_public:_void____ptr64____ptr64___cdecl_QListData::append_void____ptr64]
mov rcx, qword [rbp - 0x38]
mov qword [rax], rcx
lea rcx, [rbp - 0x58]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rax, [0x180151528]
mov qword [rbp - 0x58], rax
mov rax, qword [rdi]
mov ecx, dword [rax]
cmp ecx, 1
jbe 0x180066d50
mov edx, 0x7fffffff
mov r8d, 1
mov rcx, rdi
call fcn.18000da10
lea rdx, [rbp - 0x58]
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QString_const____ptr64____ptr64]
jmp 0x180066d6e
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x30]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QString_const____ptr64____ptr64]
mov rcx, rdi
call qword [sym.imp.Qt5Core.dll_public:_void____ptr64____ptr64___cdecl_QListData::append_void____ptr64]
mov rcx, qword [rbp - 0x30]
mov qword [rax], rcx
lea rcx, [rbp - 0x58]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
mov rax, rdi
add rsp, 0x78
pop rdi
pop rbp
ret