Function at 0x180019b40
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 [0x180103640]
lea rcx, [0x180080b18]
call fcn.18000aeb0
mov rcx, qword [0x180103640]
mov rax, qword [rcx + 0x1a50]
mov byte [rax + 0x80], 1
mov rax, qword [rcx + 0x1a50]
mov rcx, qword [rax + 0x1e8]
test rcx, rcx
je 0x180019bc4
cmp dword [rcx + 0x10], 1
jne 0x180019bbf
cmp dword [rcx + 4], 1
je 0x180019bc4
call fcn.180055600
call fcn.18006c810
movss xmm6, dword [0x1800d4aec]
movaps xmm1, xmm6
movss xmm8, dword [0x1800d49d0]
movaps xmm0, xmm8
call fcn.180050900
mov dword [rbp - 9], 0x44038000
mov dword [rbp - 5], 0x43fd0000
mov rbx, qword [0x180103640]
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.180034690
cmp dword [rbx + 0x1a7c], eax
jne 0x180019c3f
mov dword [rbx + 0x1a84], eax
cmp dword [rbx + 0x1a80], eax
jne 0x180019c4e
mov byte [rbx + 0x1a90], 1
mov r9b, 1
lea r8, [rbp - 9]
mov edx, eax
lea rcx, str.Lua_Executor
call fcn.1800397e0
mov dword [rdi + 0x1594], 0x40800000
mov dword [rdi + 0x1598], 0x40000000
mov dword [rdi + 0x1554], 0x40800000
mov dword [rdi + 0x1558], 0x40800000
mov r8, qword [0x180103640]
mov rax, qword [r8 + 0x1a50]
mov byte [rax + 0x80], 1
mov rax, qword [r8 + 0x1a50]
cmp byte [rax + 0x83], sil
jne 0x180019ccd
mov dword [rbp - 9], esi
mov dword [rbp - 5], 0x41100000
xorps xmm1, xmm1
lea rcx, [rbp - 9]
call fcn.180036ab0
mov r8, qword [0x180103640]
movaps xmm1, xmm6
movss xmm0, dword [0x1800d499c]
call fcn.180050900
movaps xmm4, xmmword [0x1800d4d80]
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 0x180019d1a
mov qword [rbp - 9], rsi
xorps xmm1, xmm1
lea rcx, [rbp - 9]
call fcn.180036ab0
call fcn.18006c810
call fcn.18006c810
movaps xmm1, xmm6
movaps xmm0, xmm8
call fcn.180050900
movss xmm7, dword [0x1800d4a50]
movaps xmm0, xmm7
call fcn.18004fb50
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.180072120
mov r8, qword [0x180103640]
mov rax, qword [r8 + 0x1a50]
mov byte [rax + 0x80], 1
mov rdx, qword [r8 + 0x1a50]
sub dword [rdx + 0x1a0], 1
jne 0x180019db6
movss xmm0, dword [rdx + 0x254]
jmp 0x180019dca
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 0x180019e00
mov qword [rbp - 9], rsi
xorps xmm1, xmm1
lea rcx, [rbp - 9]
call fcn.180036ab0
call fcn.18006c810
call fcn.18006c810
movaps xmm1, xmm6
movaps xmm0, xmm8
call fcn.180050900
movaps xmm0, xmm7
call fcn.18004fb50
mov qword [rbp - 9], 0x431e0000
lea rdx, [rbp - 9]
lea rcx, str.Execute_script
call fcn.180069c60
movzx r9d, al
mov rdx, qword [0x180103640]
mov rcx, qword [rdx + 0x1a50]
mov byte [rcx + 0x80], 1
mov r8, qword [rdx + 0x1a50]
sub dword [r8 + 0x1a0], 1
jne 0x180019e6b
movss xmm0, dword [r8 + 0x254]
jmp 0x180019e7f
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 0x180019efc
mov ecx, 0x10
call fcn.18007bfd0
mov qword [rax], rbx
lea rcx, [0x180015420]
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, [0x180031a80]
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 0x180019f68
cmp dword [rbp - 1], 0
je 0x180019f5c
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 0x180019f5c
xorps xmm0, xmm0
movdqa xmmword [rbp - 9], xmm0
movaps xmm1, xmm6
xorps xmm0, xmm0
call fcn.180050900
movaps xmm0, xmm7
call fcn.18004fb50
mov qword [rbp - 9], 0x431e0000
lea rdx, [rbp - 9]
lea rcx, str.Load_from_file
call fcn.180069c60
movzx r9d, al
mov rdx, qword [0x180103640]
mov rcx, qword [rdx + 0x1a50]
mov byte [rcx + 0x80], 1
mov r8, qword [rdx + 0x1a50]
sub dword [r8 + 0x1a0], 1
jne 0x180019f77
movss xmm0, dword [r8 + 0x254]
jmp 0x180019f8b
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 0x18001a00c
mov ecx, 8
call fcn.18007bfd0
lea rcx, [0x180015510]
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, [0x180031ab0]
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 0x18001a197
cmp dword [rbp - 1], 0
je 0x18001a18b
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 0x18001a18b
xorps xmm0, xmm0
movdqa xmmword [rbp - 9], xmm0
movaps xmm1, xmm6
movss xmm0, dword [0x1800d4a7c]
call fcn.180050900
movaps xmm0, xmm7
call fcn.18004fb50
mov rcx, qword [0x180103640]
mov rax, qword [rcx + 0x1a50]
movss xmm0, dword [rax + 0xd4]
subss xmm0, dword [rax + 0x14]
addss xmm0, dword [rax + 0x60]
addss xmm0, dword [0x1800d4990]
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 0x18001a09e
lea rdx, str.Client
mov rdx, qword [rdx + rax*8]
lea rcx, str.Lua_State
call fcn.18006ccd0
test al, al
je 0x18001a15c
mov qword [rbp - 9], 0
xor ecx, ecx
call fcn.180050300
cmp dword [0x1800e33b4], 0
sete bl
mov rcx, qword [str.Client]
lea r9, [rbp - 9]
movzx edx, bl
call fcn.180077fe0
test al, al
je 0x18001a0e8
mov dword [0x1800e33b4], esi
test bl, bl
je 0x18001a0f1
call fcn.1800500d0
mov rax, qword [0x180103640]
mov rcx, qword [rax + 0x1a50]
dec dword [rcx + 0x1f0]
mov ecx, 1
call fcn.180050300
cmp dword [0x1800e33b4], 1
sete bl
mov rcx, qword [str.Menu]
lea r9, [rbp - 9]
movzx edx, bl
call fcn.180077fe0
test al, al
je 0x18001a13a
mov dword [0x1800e33b4], 1
test bl, bl
je 0x18001a143
call fcn.1800500d0
mov rax, qword [0x180103640]
mov rcx, qword [rax + 0x1a50]
dec dword [rcx + 0x1f0]
call fcn.1800512c0
mov rcx, qword [0x180103640]
mov rax, qword [rcx + 0x1a50]
mov byte [rax + 0x80], 1
mov rdx, qword [rcx + 0x1a50]
sub dword [rdx + 0x1a0], 1
jne 0x18001a1a6
movss xmm0, dword [rdx + 0x254]
jmp 0x18001a1ba
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.180039b40
movaps xmm1, xmm6
movaps xmm0, xmm8
call fcn.180050900
mov dword [rbp - 9], 0x44038000
mov dword [rbp - 5], 0x41300000
mov rbx, qword [0x180103640]
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.180034690
cmp dword [rbx + 0x1a7c], eax
jne 0x18001a22c
mov dword [rbx + 0x1a84], eax
cmp dword [rbx + 0x1a80], eax
jne 0x18001a23b
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.18003a180
call fcn.18003a410
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.18007be90
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