Function at 0x180019aa0
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
movaps xmmword [rax - 0x38], xmm8
mov rax, qword [0x1800e1010]
xor rax, rsp
mov qword [rbp + 0x17], rax
xor esi, esi
mov rdi, qword [0x1801035d0]
lea rcx, [0x180080b18]
call fcn.18000ae50
mov rcx, qword [0x1801035d0]
mov rax, qword [rcx + 0x1a50]
mov byte [rax + 0x80], 1
mov rax, qword [rcx + 0x1a50]
mov rcx, qword [rax + 0x1e8]
test rcx, rcx
je 0x180019b24
cmp dword [rcx + 0x10], 1
jne 0x180019b1f
cmp dword [rcx + 4], 1
je 0x180019b24
call fcn.180055400
call fcn.18006c6e0
movss xmm6, dword [0x1800d4acc]
movaps xmm1, xmm6
movss xmm8, dword [0x1800d49b0]
movaps xmm0, xmm8
call fcn.1800506d0
mov dword [rbp - 9], 0x44038000
mov dword [rbp - 5], 0x43fd0000
mov rbx, qword [0x1801035d0]
mov rax, qword [rbx + 0x1a50]
mov byte [rax + 0x80], 1
mov rax, qword [rbx + 0x1a50]
movsxd r8, dword [rax + 0x1f0]
mov rax, qword [rax + 0x1f8]
mov r8d, dword [rax + r8*4 - 4]
xor edx, edx
lea rcx, str.Lua_Executor
call fcn.180034090
cmp dword [rbx + 0x1a7c], eax
jne 0x180019b9f
mov dword [rbx + 0x1a84], eax
cmp dword [rbx + 0x1a80], eax
jne 0x180019bae
mov byte [rbx + 0x1a90], 1
mov r9b, 1
lea r8, [rbp - 9]
mov edx, eax
lea rcx, str.Lua_Executor
call fcn.1800391a0
mov dword [rdi + 0x1594], 0x40800000
mov dword [rdi + 0x1598], 0x40000000
mov dword [rdi + 0x1554], 0x40800000
mov dword [rdi + 0x1558], 0x40800000
mov r8, qword [0x1801035d0]
mov rax, qword [r8 + 0x1a50]
mov byte [rax + 0x80], 1
mov rax, qword [r8 + 0x1a50]
cmp byte [rax + 0x83], sil
jne 0x180019c2d
mov dword [rbp - 9], esi
mov dword [rbp - 5], 0x41100000
xorps xmm1, xmm1
lea rcx, [rbp - 9]
call fcn.1800364b0
mov r8, qword [0x1801035d0]
movaps xmm1, xmm6
movss xmm0, dword [0x1800d497c]
call fcn.1800506d0
movaps xmm0, xmmword [0x1800d4d60]
movups xmmword [r8 + 0x1688], xmm0
mov rax, qword [r8 + 0x1a50]
mov byte [rax + 0x80], 1
mov rax, qword [r8 + 0x1a50]
cmp byte [rax + 0x83], sil
jne 0x180019c7a
mov qword [rbp - 9], rsi
xorps xmm1, xmm1
lea rcx, [rbp - 9]
call fcn.1800364b0
call fcn.18006c6e0
call fcn.18006c6e0
movaps xmm1, xmm6
movaps xmm0, xmm8
call fcn.1800506d0
movss xmm7, dword [0x1800d4a30]
movaps xmm0, xmm7
call fcn.18004f8f0
mov dword [rbp - 9], 0x43f38000
mov dword [rbp - 5], 0x43cf8000
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x100400
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r9d, 0x1fffe
lea rbx, [0x1800e3480]
mov r8, rbx
xor edx, edx
lea rcx, str.Script_input
call fcn.180071f00
mov r8, qword [0x1801035d0]
mov rax, qword [r8 + 0x1a50]
mov byte [rax + 0x80], 1
mov rdx, qword [r8 + 0x1a50]
sub dword [rdx + 0x1a0], 1
jne 0x180019d16
movss xmm0, dword [rdx + 0x254]
jmp 0x180019d2a
movsxd rcx, dword [rdx + 0x1a0]
mov rax, qword [rdx + 0x1a8]
movss xmm0, dword [rax + rcx*4 - 4]
movss dword [rdx + 0x184], xmm0
mov rax, qword [r8 + 0x1a50]
mov byte [rax + 0x80], 1
mov rax, qword [r8 + 0x1a50]
cmp byte [rax + 0x83], sil
jne 0x180019d60
mov qword [rbp - 9], rsi
xorps xmm1, xmm1
lea rcx, [rbp - 9]
call fcn.1800364b0
call fcn.18006c6e0
call fcn.18006c6e0
movaps xmm1, xmm6
movaps xmm0, xmm8
call fcn.1800506d0
movaps xmm0, xmm7
call fcn.18004f8f0
mov qword [rbp - 9], 0x431e0000
lea rdx, [rbp - 9]
lea rcx, str.Execute_script
call fcn.180069ac0
movzx r9d, al
mov rdx, qword [0x1801035d0]
mov rcx, qword [rdx + 0x1a50]
mov byte [rcx + 0x80], 1
mov r8, qword [rdx + 0x1a50]
sub dword [r8 + 0x1a0], 1
jne 0x180019dcb
movss xmm0, dword [r8 + 0x254]
jmp 0x180019ddf
movsxd rcx, dword [r8 + 0x1a0]
mov rax, qword [r8 + 0x1a8]
movss xmm0, dword [rax + rcx*4 - 4]
movss dword [r8 + 0x184], xmm0
test r9b, r9b
je 0x180019e5c
mov ecx, 0x10
call fcn.18007bcb0
mov qword [rax], rbx
lea rcx, [0x180015330]
mov qword [rax + 8], rcx
mov qword [rbp + 7], rax
lea rcx, [rbp - 1]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x1800318f0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 9], rax
test rax, rax
je 0x180019ec8
cmp dword [rbp - 1], 0
je 0x180019ebc
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp + 7], xmm0
lea rcx, [rbp + 7]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x180019ebc
xorps xmm0, xmm0
movdqa xmmword [rbp - 9], xmm0
movaps xmm1, xmm6
xorps xmm0, xmm0
call fcn.1800506d0
movaps xmm0, xmm7
call fcn.18004f8f0
mov qword [rbp - 9], 0x431e0000
lea rdx, [rbp - 9]
lea rcx, str.Load_from_file
call fcn.180069ac0
movzx r9d, al
mov rdx, qword [0x1801035d0]
mov rcx, qword [rdx + 0x1a50]
mov byte [rcx + 0x80], 1
mov r8, qword [rdx + 0x1a50]
sub dword [r8 + 0x1a0], 1
jne 0x180019ed7
movss xmm0, dword [r8 + 0x254]
jmp 0x180019eeb
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 1], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
movsxd rcx, dword [r8 + 0x1a0]
mov rax, qword [r8 + 0x1a8]
movss xmm0, dword [rax + rcx*4 - 4]
movss dword [r8 + 0x184], xmm0
test r9b, r9b
je 0x180019f6c
mov ecx, 8
call fcn.18007bcb0
lea rcx, [0x180015420]
mov qword [rax], rcx
mov qword [rbp + 7], rax
lea rcx, [rbp - 1]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x180031920]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rbp - 9], rax
test rax, rax
je 0x18001a0f7
cmp dword [rbp - 1], 0
je 0x18001a0eb
movaps xmm0, xmmword [rbp - 9]
movdqa xmmword [rbp + 7], xmm0
lea rcx, [rbp + 7]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x18001a0eb
xorps xmm0, xmm0
movdqa xmmword [rbp - 9], xmm0
movaps xmm1, xmm6
movss xmm0, dword [0x1800d4a5c]
call fcn.1800506d0
movaps xmm0, xmm7
call fcn.18004f8f0
mov rcx, qword [0x1801035d0]
mov rax, qword [rcx + 0x1a50]
movss xmm0, dword [rax + 0xd4]
subss xmm0, dword [rax + 0x14]
addss xmm0, dword [rax + 0x60]
addss xmm0, dword [0x1800d4970]
mov byte [rax + 0x80], 1
mov rax, qword [rcx + 0x1a50]
movss xmm1, dword [rax + 0x14]
subss xmm1, dword [rax + 0x60]
addss xmm1, xmm0
movss dword [rax + 0xd4], xmm1
movss xmm0, dword [rax + 0xec]
maxss xmm0, xmm1
movss dword [rax + 0xec], xmm0
mov rdx, rsi
movsxd rax, dword [0x1800e3344]
cmp eax, 1
ja 0x180019ffe
lea rdx, str.Client
mov rdx, qword [rdx + rax*8]
lea rcx, str.Lua_State
call fcn.18006cba0
test al, al
je 0x18001a0bc
mov qword [rbp - 9], 0
xor ecx, ecx
call fcn.1800500b0
cmp dword [0x1800e3344], 0
sete bl
mov rcx, qword [str.Client]
lea r9, [rbp - 9]
movzx edx, bl
call fcn.180077c00
test al, al
je 0x18001a048
mov dword [0x1800e3344], esi
test bl, bl
je 0x18001a051
call fcn.18004fe80
mov rax, qword [0x1801035d0]
mov rcx, qword [rax + 0x1a50]
dec dword [rcx + 0x1f0]
mov ecx, 1
call fcn.1800500b0
cmp dword [0x1800e3344], 1
sete bl
mov rcx, qword [str.Menu]
lea r9, [rbp - 9]
movzx edx, bl
call fcn.180077c00
test al, al
je 0x18001a09a
mov dword [0x1800e3344], 1
test bl, bl
je 0x18001a0a3
call fcn.18004fe80
mov rax, qword [0x1801035d0]
mov rcx, qword [rax + 0x1a50]
dec dword [rcx + 0x1f0]
call fcn.180051090
mov rcx, qword [0x1801035d0]
mov rax, qword [rcx + 0x1a50]
mov byte [rax + 0x80], 1
mov rdx, qword [rcx + 0x1a50]
sub dword [rdx + 0x1a0], 1
jne 0x18001a106
movss xmm0, dword [rdx + 0x254]
jmp 0x18001a11a
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 1], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
movsxd rcx, dword [rdx + 0x1a0]
mov rax, qword [rdx + 0x1a8]
movss xmm0, dword [rax + rcx*4 - 4]
movss dword [rdx + 0x184], xmm0
call fcn.180039510
movaps xmm1, xmm6
movaps xmm0, xmm8
call fcn.1800506d0
mov dword [rbp - 9], 0x44038000
mov dword [rbp - 5], 0x41300000
mov rbx, qword [0x1801035d0]
mov rax, qword [rbx + 0x1a50]
mov byte [rax + 0x80], 1
mov r8, qword [rbx + 0x1a50]
movsxd rax, dword [r8 + 0x1f0]
mov r8, qword [r8 + 0x1f8]
mov r8d, dword [r8 + rax*4 - 4]
xor edx, edx
lea rcx, str.Lua_Executor_Cover
call fcn.180034090
cmp dword [rbx + 0x1a7c], eax
jne 0x18001a18c
mov dword [rbx + 0x1a84], eax
cmp dword [rbx + 0x1a80], eax
jne 0x18001a19b
mov byte [rbx + 0x1a90], 1
lea r9, [rbp - 9]
mov r8d, eax
lea rdx, str.Lua_Executor
lea rcx, str.Lua_Executor_Cover
call fcn.180039b50
call fcn.180039de0
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.18007bb70
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop rbp
ret