Function at 0x180019890
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 [0x1800e1040]
xor rax, rsp
mov qword [rbp + 0x17], rax
xor esi, esi
mov rdi, qword [0x180103648]
lea rcx, [0x180080b18]
call fcn.18000aed0
mov rcx, qword [0x180103648]
mov rax, qword [rcx + 0x1a50]
mov byte [rax + 0x80], 1
mov rax, qword [rcx + 0x1a50]
mov rcx, qword [rax + 0x1e8]
test rcx, rcx
je 0x180019914
cmp dword [rcx + 0x10], 1
jne 0x18001990f
cmp dword [rcx + 4], 1
je 0x180019914
call fcn.180055440
call fcn.18006c6d0
movss xmm6, dword [0x1800d4db4]
movaps xmm1, xmm6
movss xmm8, dword [0x1800d4c90]
movaps xmm0, xmm8
call fcn.180050740
mov dword [rbp - 9], 0x44038000
mov dword [rbp - 5], 0x43fd0000
mov rbx, qword [0x180103648]
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.1800344d0
cmp dword [rbx + 0x1a7c], eax
jne 0x18001998f
mov dword [rbx + 0x1a84], eax
cmp dword [rbx + 0x1a80], eax
jne 0x18001999e
mov byte [rbx + 0x1a90], 1
mov r9b, 1
lea r8, [rbp - 9]
mov edx, eax
lea rcx, str.Lua_Executor
call fcn.1800395f0
mov dword [rdi + 0x1594], 0x40800000
mov dword [rdi + 0x1598], 0x40000000
mov dword [rdi + 0x1554], 0x40800000
mov dword [rdi + 0x1558], 0x40800000
mov r8, qword [0x180103648]
mov rax, qword [r8 + 0x1a50]
mov byte [rax + 0x80], 1
mov rax, qword [r8 + 0x1a50]
cmp byte [rax + 0x83], sil
jne 0x180019a1d
mov dword [rbp - 9], esi
mov dword [rbp - 5], 0x41100000
xorps xmm1, xmm1
lea rcx, [rbp - 9]
call fcn.1800368c0
mov r8, qword [0x180103648]
movaps xmm1, xmm6
movss xmm0, dword [0x1800d4c5c]
call fcn.180050740
movaps xmm4, xmmword [0x1800d5050]
movups xmmword [r8 + 0x1688], xmm4
mov rax, qword [r8 + 0x1a50]
mov byte [rax + 0x80], 1
mov rax, qword [r8 + 0x1a50]
cmp byte [rax + 0x83], sil
jne 0x180019a6a
mov qword [rbp - 9], rsi
xorps xmm1, xmm1
lea rcx, [rbp - 9]
call fcn.1800368c0
call fcn.18006c6d0
call fcn.18006c6d0
movaps xmm1, xmm6
movaps xmm0, xmm8
call fcn.180050740
movss xmm7, dword [0x1800d4d18]
movaps xmm0, xmm7
call fcn.18004f970
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, [0x1800e34f0]
mov r8, rbx
xor edx, edx
lea rcx, str.Script_input
call fcn.180072000
mov r8, qword [0x180103648]
mov rax, qword [r8 + 0x1a50]
mov byte [rax + 0x80], 1
mov rdx, qword [r8 + 0x1a50]
sub dword [rdx + 0x1a0], 1
jne 0x180019b06
movss xmm0, dword [rdx + 0x254]
jmp 0x180019b1a
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 0x180019b50
mov qword [rbp - 9], rsi
xorps xmm1, xmm1
lea rcx, [rbp - 9]
call fcn.1800368c0
call fcn.18006c6d0
call fcn.18006c6d0
movaps xmm1, xmm6
movaps xmm0, xmm8
call fcn.180050740
movaps xmm0, xmm7
call fcn.18004f970
mov qword [rbp - 9], 0x431e0000
lea rdx, [rbp - 9]
lea rcx, str.Execute_script
call fcn.180069b20
movzx r9d, al
mov rdx, qword [0x180103648]
mov rcx, qword [rdx + 0x1a50]
mov byte [rcx + 0x80], 1
mov r8, qword [rdx + 0x1a50]
sub dword [r8 + 0x1a0], 1
jne 0x180019bbb
movss xmm0, dword [r8 + 0x254]
jmp 0x180019bcf
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 0x180019c4c
mov ecx, 0x10
call fcn.18007beb0
mov qword [rax], rbx
lea rcx, [0x180015170]
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, [0x180031d10]
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 0x180019cb8
cmp dword [rbp - 1], 0
je 0x180019cac
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 0x180019cac
xorps xmm0, xmm0
movdqa xmmword [rbp - 9], xmm0
movaps xmm1, xmm6
xorps xmm0, xmm0
call fcn.180050740
movaps xmm0, xmm7
call fcn.18004f970
mov qword [rbp - 9], 0x431e0000
lea rdx, [rbp - 9]
lea rcx, str.Load_from_file
call fcn.180069b20
movzx r9d, al
mov rdx, qword [0x180103648]
mov rcx, qword [rdx + 0x1a50]
mov byte [rcx + 0x80], 1
mov r8, qword [rdx + 0x1a50]
sub dword [r8 + 0x1a0], 1
jne 0x180019cc7
movss xmm0, dword [r8 + 0x254]
jmp 0x180019cdb
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 0x180019d5c
mov ecx, 8
call fcn.18007beb0
lea rcx, [0x180015260]
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, [0x180031d40]
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 0x180019ee7
cmp dword [rbp - 1], 0
je 0x180019edb
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 0x180019edb
xorps xmm0, xmm0
movdqa xmmword [rbp - 9], xmm0
movaps xmm1, xmm6
movss xmm0, dword [0x1800d4d44]
call fcn.180050740
movaps xmm0, xmm7
call fcn.18004f970
mov rcx, qword [0x180103648]
mov rax, qword [rcx + 0x1a50]
movss xmm0, dword [rax + 0xd4]
subss xmm0, dword [rax + 0x14]
addss xmm0, dword [rax + 0x60]
addss xmm0, dword [0x1800d4c50]
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 [0x1800e33b4]
cmp eax, 1
ja 0x180019dee
lea rdx, str.Client
mov rdx, qword [rdx + rax*8]
lea rcx, str.Lua_State
call fcn.18006cb90
test al, al
je 0x180019eac
mov qword [rbp - 9], 0
xor ecx, ecx
call fcn.180050120
cmp dword [0x1800e33b4], 0
sete bl
mov rcx, qword [str.Client]
lea r9, [rbp - 9]
movzx edx, bl
call fcn.180077ec0
test al, al
je 0x180019e38
mov dword [0x1800e33b4], esi
test bl, bl
je 0x180019e41
call fcn.18004fef0
mov rax, qword [0x180103648]
mov rcx, qword [rax + 0x1a50]
dec dword [rcx + 0x1f0]
mov ecx, 1
call fcn.180050120
cmp dword [0x1800e33b4], 1
sete bl
mov rcx, qword [str.Menu]
lea r9, [rbp - 9]
movzx edx, bl
call fcn.180077ec0
test al, al
je 0x180019e8a
mov dword [0x1800e33b4], 1
test bl, bl
je 0x180019e93
call fcn.18004fef0
mov rax, qword [0x180103648]
mov rcx, qword [rax + 0x1a50]
dec dword [rcx + 0x1f0]
call fcn.180051100
mov rcx, qword [0x180103648]
mov rax, qword [rcx + 0x1a50]
mov byte [rax + 0x80], 1
mov rdx, qword [rcx + 0x1a50]
sub dword [rdx + 0x1a0], 1
jne 0x180019ef6
movss xmm0, dword [rdx + 0x254]
jmp 0x180019f0a
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.180039960
movaps xmm1, xmm6
movaps xmm0, xmm8
call fcn.180050740
mov dword [rbp - 9], 0x44038000
mov dword [rbp - 5], 0x41300000
mov rbx, qword [0x180103648]
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.1800344d0
cmp dword [rbx + 0x1a7c], eax
jne 0x180019f7c
mov dword [rbx + 0x1a84], eax
cmp dword [rbx + 0x1a80], eax
jne 0x180019f8b
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.180039fa0
call fcn.18003a230
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.18007bd70
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