Function at 0x180019500
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
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 r14d, r14d
mov rbx, qword [0x180103740]
mov dword [rbp - 9], 0x43520000
mov dword [rbp - 5], 0x41900000
lea rdx, [rbp - 9]
lea rcx, [0x180080ad8]
call fcn.18003a2d0
call fcn.180039da0
mov rcx, qword [0x180103740]
mov rax, qword [rcx + 0x1a50]
mov byte [rax + 0x80], 1
mov rax, qword [rcx + 0x1a50]
mov rcx, qword [rax + 0x1e8]
test rcx, rcx
je 0x1800195a0
cmp dword [rcx + 0x10], 1
jne 0x18001959b
cmp dword [rcx + 4], 1
je 0x1800195a0
call fcn.180054f90
call fcn.18006c010
movss xmm6, dword [0x1800d4a8c]
movaps xmm1, xmm6
movss xmm8, dword [0x1800d4990]
movaps xmm0, xmm8
call fcn.1800502b0
mov dword [rbp - 9], 0x44038000
mov dword [rbp - 5], 0x43fd0000
mov r8b, 1
lea rdx, [rbp - 9]
lea rcx, str.Lua_Executor
call fcn.1800393a0
mov dword [rbx + 0x1594], 0x40800000
mov dword [rbx + 0x1598], 0x40000000
mov dword [rbx + 0x1554], 0x40800000
mov dword [rbx + 0x1558], 0x40800000
mov r8, qword [0x180103740]
mov rax, qword [r8 + 0x1a50]
mov byte [rax + 0x80], 1
mov rax, qword [r8 + 0x1a50]
cmp byte [rax + 0x83], r14b
jne 0x18001964e
mov dword [rbp - 9], r14d
mov dword [rbp - 5], 0x41100000
xorps xmm1, xmm1
lea rcx, [rbp - 9]
call fcn.180036450
mov r8, qword [0x180103740]
movaps xmm1, xmm6
movss xmm0, dword [0x1800d495c]
call fcn.1800502b0
movdqa xmm4, xmmword [0x1800d4e00]
movups xmmword [r8 + 0x1688], xmm4
mov rax, qword [r8 + 0x1a50]
mov byte [rax + 0x80], 1
mov rax, qword [r8 + 0x1a50]
cmp byte [rax + 0x83], r14b
jne 0x18001969c
mov qword [rbp - 9], r14
xorps xmm1, xmm1
lea rcx, [rbp - 9]
call fcn.180036450
call fcn.18006c010
call fcn.18006c010
movaps xmm1, xmm6
movaps xmm0, xmm8
call fcn.1800502b0
movss xmm7, dword [0x1800d4a0c]
movaps xmm0, xmm7
call fcn.18004f740
mov dword [rbp - 9], 0x43f38000
mov dword [rbp - 5], 0x43cf8000
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x100400
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r9d, 0x1fffe
lea rbx, [0x1800e35f0]
mov r8, rbx
xor edx, edx
lea rcx, str.Script_input
call fcn.180071970
mov r8, qword [0x180103740]
mov rax, qword [r8 + 0x1a50]
mov byte [rax + 0x80], 1
mov rdx, qword [r8 + 0x1a50]
movsxd rcx, dword [rdx + 0x1a0]
lea eax, [rcx - 1]
mov dword [rdx + 0x1a0], eax
test eax, eax
jne 0x180019743
movss xmm0, dword [rdx + 0x254]
jmp 0x180019750
mov rax, qword [rdx + 0x1a8]
movss xmm0, dword [rax + rcx*4 - 8]
movss dword [rdx + 0x184], xmm0
mov rax, qword [r8 + 0x1a50]
mov byte [rax + 0x80], 1
mov rax, qword [r8 + 0x1a50]
cmp byte [rax + 0x83], r14b
jne 0x180019786
mov qword [rbp - 9], r14
xorps xmm1, xmm1
lea rcx, [rbp - 9]
call fcn.180036450
call fcn.18006c010
call fcn.18006c010
movaps xmm1, xmm6
movaps xmm0, xmm8
call fcn.1800502b0
movaps xmm0, xmm7
call fcn.18004f740
mov qword [rbp - 9], 0x431e0000
lea rdx, [rbp - 9]
lea rcx, str.Execute_script
call fcn.1800693f0
movzx r9d, al
mov rdx, qword [0x180103740]
mov rcx, qword [rdx + 0x1a50]
mov byte [rcx + 0x80], 1
mov r8, qword [rdx + 0x1a50]
movsxd rdx, dword [r8 + 0x1a0]
lea ecx, [rdx - 1]
mov dword [r8 + 0x1a0], ecx
test ecx, ecx
jne 0x1800197fc
movss xmm0, dword [r8 + 0x254]
jmp 0x180019809
mov rax, qword [r8 + 0x1a8]
movss xmm0, dword [rax + rdx*4 - 8]
movss dword [r8 + 0x184], xmm0
test r9b, r9b
je 0x18001988b
mov ecx, 0x10
call fcn.18007b920
mov qword [rax], rbx
lea rcx, [0x180014ba0]
mov qword [rax + 8], rcx
mov qword [rbp + 7], rax
lea rcx, [rbp - 1]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x1800313a0]
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 0x180019902
cmp dword [rbp - 1], 0
je 0x1800198f6
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 0x1800198f6
xorps xmm0, xmm0
movdqa xmmword [rbp - 9], xmm0
movaps xmm1, xmm6
xorps xmm0, xmm0
call fcn.1800502b0
movaps xmm0, xmm7
call fcn.18004f740
mov qword [rbp - 9], 0x431e0000
lea rdx, [rbp - 9]
lea rcx, str.Load_from_file
call fcn.1800693f0
movzx r9d, al
mov rdx, qword [0x180103740]
mov rcx, qword [rdx + 0x1a50]
mov byte [rcx + 0x80], 1
mov r8, qword [rdx + 0x1a50]
movsxd rdx, dword [r8 + 0x1a0]
lea ecx, [rdx - 1]
mov dword [r8 + 0x1a0], ecx
test ecx, ecx
jne 0x180019912
movss xmm0, dword [r8 + 0x254]
jmp 0x18001991f
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 1], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rax, qword [r8 + 0x1a8]
movss xmm0, dword [rax + rdx*4 - 8]
movss dword [r8 + 0x184], xmm0
mov ebx, 8
test r9b, r9b
je 0x1800199a3
mov ecx, ebx
call fcn.18007b920
lea rcx, [0x180014c90]
mov qword [rax], rcx
mov qword [rbp + 7], rax
lea rcx, [rbp - 1]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], r14d
mov r9, rax
lea r8, [0x1800313d0]
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 0x180019a92
cmp dword [rbp - 1], 0
je 0x180019a86
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 0x180019a86
xorps xmm0, xmm0
movdqa xmmword [rbp - 9], xmm0
movaps xmm1, xmm6
movss xmm0, dword [0x1800d4a28]
call fcn.1800502b0
movaps xmm0, xmm7
call fcn.18004f740
mov rcx, qword [0x180103740]
mov rax, qword [rcx + 0x1a50]
movss xmm0, dword [rax + 0xd4]
subss xmm0, dword [rax + 0x14]
addss xmm0, dword [rax + 0x60]
mov byte [rax + 0x80], 1
mov rax, qword [rcx + 0x1a50]
movss xmm1, dword [rax + 0x14]
subss xmm1, dword [rax + 0x60]
addss xmm0, dword [0x1800d4950]
addss xmm1, xmm0
movss dword [rax + 0xd4], xmm1
movss xmm0, dword [rax + 0xec]
maxss xmm0, xmm1
movss dword [rax + 0xec], xmm0
mov rdx, r14
movsxd rax, dword [0x1800e34b4]
cmp eax, 1
ja 0x180019a35
lea rdx, str.Client
mov rdx, qword [rdx + rax*8]
lea rcx, str.Lua_State
call fcn.18006c4d0
test al, al
je 0x180019baf
mov rax, qword [0x180103740]
mov rcx, qword [rax + 0x1a50]
lea rdi, [rcx + 0x1f0]
xor edx, edx
call fcn.180035fe0
mov esi, eax
mov ecx, dword [rdi]
mov r8d, dword [rdi + 4]
cmp ecx, r8d
jne 0x180019ab3
inc ecx
test r8d, r8d
je 0x180019aa2
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
add eax, r8d
jmp 0x180019aa4
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rbp - 1], r14d
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov eax, ebx
cmp eax, ecx
cmovg ecx, eax
mov edx, ecx
mov rcx, rdi
call fcn.180057280
movsxd rcx, dword [rdi]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*4], esi
inc dword [rdi]
cmp dword [0x1800e34b4], 0
sete dil
mov rcx, qword [str.Client]
mov qword [rbp - 9], 0
lea r9, [rbp - 9]
movzx edx, dil
call fcn.1800778d0
test al, al
je 0x180019af1
mov dword [0x1800e34b4], r14d
test dil, dil
je 0x180019afb
call fcn.18004fcc0
mov rcx, qword [0x180103740]
mov rax, qword [rcx + 0x1a50]
dec dword [rax + 0x1f0]
mov rcx, qword [rcx + 0x1a50]
lea rdi, [rcx + 0x1f0]
mov edx, 1
call fcn.180035fe0
mov esi, eax
mov ecx, dword [rdi]
mov r8d, dword [rdi + 4]
cmp ecx, r8d
jne 0x180019b56
inc ecx
test r8d, r8d
je 0x180019b47
mov eax, r8d
cdq
sub eax, edx
sar eax, 1
lea ebx, [r8 + rax]
cmp ebx, ecx
cmovg ecx, ebx
mov edx, ecx
mov rcx, rdi
call fcn.180057280
movsxd rcx, dword [rdi]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*4], esi
inc dword [rdi]
cmp dword [0x1800e34b4], 1
sete bl
mov rcx, qword [str.Menu]
lea r9, [rbp - 9]
movzx edx, bl
call fcn.1800778d0
test al, al
je 0x180019b8d
mov dword [0x1800e34b4], 1
test bl, bl
je 0x180019b96
call fcn.18004fcc0
mov rax, qword [0x180103740]
mov rcx, qword [rax + 0x1a50]
dec dword [rcx + 0x1f0]
call fcn.180050c80
mov rcx, qword [0x180103740]
mov rax, qword [rcx + 0x1a50]
mov byte [rax + 0x80], 1
mov rdx, qword [rcx + 0x1a50]
movsxd rcx, dword [rdx + 0x1a0]
lea eax, [rcx - 1]
mov dword [rdx + 0x1a0], eax
test eax, eax
jne 0x180019be9
movss xmm0, dword [rdx + 0x254]
jmp 0x180019bf6
mov rax, qword [rdx + 0x1a8]
movss xmm0, dword [rax + rcx*4 - 8]
movss dword [rdx + 0x184], xmm0
call fcn.180039440
movaps xmm1, xmm6
movaps xmm0, xmm8
call fcn.1800502b0
mov dword [rbp - 9], 0x44038000
mov dword [rbp - 5], 0x41300000
lea r8, [rbp - 9]
lea rdx, str.Lua_Executor
lea rcx, str.Lua_Executor_Cover
call fcn.180039d00
call fcn.180039da0
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.18007b7e0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop rbp
ret