Function at 0x14001ffe0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xc0
mov rax, qword [0x140033010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov esi, edx
mov rdi, rcx
xor r15d, r15d
mov qword [rbp - 9], r15
mov qword [rbp - 1], 7
mov word [rbp - 0x19], r15w
lea rcx, [0x1400340f0]
call fcn.140007670
mov rax, qword [rdi + 0x70]
cmp byte [rax + 0x80], r15b
je 0x14002003f
mov byte [rax + 0x82], 1
mov rax, qword [rdi + 0x78]
cmp byte [rax + 0x80], 0
je 0x140020053
mov byte [rax + 0x82], 1
mov rax, qword [rdi + 0x80]
cmp byte [rax + 0x80], 0
je 0x14002006a
mov byte [rax + 0x82], 1
mov edx, esi
mov rcx, qword [rdi + 0xa0]
call fcn.1400129c0
mov edx, esi
mov rcx, qword [rdi + 0xb0]
call fcn.1400129c0
mov edx, esi
mov rcx, qword [rdi + 0xa8]
call fcn.1400129c0
mov r14d, dword [rdi + 0x350]
mov qword [rbp + 0x17], r15
mov qword [rbp + 0x1f], 7
mov word [rbp + 7], r15w
mov ecx, 0x800
call fcn.1400230ac
mov rbx, rax
mov qword [rbp - 0x49], rax
lea rax, [0x140034430]
cmp qword [0x140034448], 8
cmovae rax, qword [0x140034430]
lea r9, [rdi + 0x358]
cmp qword [r9 + 0x18], 8
jb 0x1400200e5
mov r9, qword [r9]
lea r8, [0x140034250]
cmp qword [0x140034268], 8
cmovae r8, qword [0x140034250]
mov qword [rsp + 0x28], rax
mov eax, dword [rdi + 0x138]
mov dword [rsp + 0x20], eax
mov edx, 0x400
mov rcx, rbx
call fcn.14001ab70
mov rcx, qword [rdi + 0xb8]
add rcx, 0x48
mov r8, 0xffffffffffffffff
nop word [rax + rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x140020130
mov rdx, rbx
call fcn.1400022e0
lea rax, [0x140034130]
lea r8, [0x140034110]
cmp r14d, 1
cmove r8, rax
mov rcx, qword [rdi + 0xc0]
add rcx, 0x48
cmp rcx, r8
je 0x14002017f
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x140020176
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
call fcn.1400022e0
lea rax, [0x1400343d0]
lea r8, [0x1400343f0]
cmp byte [0x1400340e0], 0
cmovne r8, rax
mov rcx, qword [rdi + 0xc8]
add rcx, 0x48
cmp rcx, r8
je 0x1400201be
mov rdx, r8
cmp qword [r8 + 0x18], 8
jb 0x1400201b5
mov rdx, qword [r8]
mov r8, qword [r8 + 0x10]
call fcn.1400022e0
mov rcx, qword [rdi + 0xd0]
lea rax, [rcx + 0x48]
lea rdx, [0x140034450]
cmp rax, rdx
je 0x1400201fb
cmp qword [0x140034468], 8
cmovae rdx, qword [0x140034450]
mov r8, qword [0x140034460]
mov rcx, rax
call fcn.1400022e0
mov rcx, qword [rdi + 0xd0]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x40]
mov rcx, qword [rdi + 0x98]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x40]
test esi, esi
jne 0x140020239
mov rax, qword [rdi + 0x70]
cmp byte [rax + 0x80], sil
je 0x14002022a
mov byte [rax + 0x82], sil
mov r8d, 0x12
lea rdx, str.Chinese_Simplified
jmp 0x14002028a
cmp esi, 1
jne 0x140020261
mov rax, qword [rdi + 0x78]
cmp byte [rax + 0x80], 0
je 0x140020252
mov byte [rax + 0x82], 0
mov r8d, 0x13
lea rdx, str.Chinese_Traditional
jmp 0x14002028a
cmp esi, 2
jne 0x140020293
mov rax, qword [rdi + 0x80]
cmp byte [rax + 0x80], 0
je 0x14002027d
mov byte [rax + 0x82], 0
mov r8d, 7
lea rdx, str.English
lea rcx, [rbp - 0x19]
call fcn.1400022e0
mov qword [rbp - 0x29], r15
mov qword [rbp - 0x21], 7
mov word [rbp - 0x39], r15w
mov r8d, 8
lea rdx, str.Language
lea rcx, [rbp - 0x39]
call fcn.1400022e0
mov rcx, qword [rdi + 0xe0]
mov r9, qword [rcx]
cmp qword [r9 + 0x18], 8
jb 0x1400202ce
mov r9, qword [r9]
lea r8, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae r8, qword [rbp - 0x19]
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rdx, qword [rbp - 0x39]
add rcx, 8
cmp qword [rcx + 0x18], 8
jb 0x1400202f8
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov rdx, qword [rbp - 0x21]
cmp rdx, 8
jb 0x140020341
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x39]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002033c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002033c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140022b54
movzx edx, byte [rdi + 0x58]
mov rcx, rdi
call fcn.140017130
mov ecx, 0x10
call fcn.140022b88
mov qword [rax], rdi
lea rcx, [0x140020c60]
mov qword [rax + 8], rcx
mov qword [rbp - 0x39], rax
lea rcx, [rbp - 0x51]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r15d
mov r9, rax
lea r8, [0x14001a8c0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 0x59], rax
test rax, rax
je 0x140020446
cmp dword [rbp - 0x51], 0
jne 0x1400203aa
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
movaps xmm0, xmmword [rbp - 0x59]
movdqa xmmword [rbp - 0x39], xmm0
lea rcx, [rbp - 0x39]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
je 0x1400203ca
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x59], xmm0
test rbx, rbx
je 0x1400203e0
mov rcx, rbx
call fcn.140022b54
nop
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x140020423
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002041e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002041e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140022b54
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140022b30
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov dword [rbp - 0x51], r15d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3