Function at 0x1400020f0
Capabilities:
Create thread
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x140007008]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov r14, rdx
mov edi, ecx
xor esi, esi
lea ecx, [rsi + 0x50]
call fcn.140002b60
mov rbx, rax
lea edx, [rsi + 2]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
mov qword [0x1400077b8], rbx
lea edx, [rsi + 2]
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
lea edx, [rsi + 2]
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [rbp + 0x80]
call qword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
nop
cmp edi, 3
je 0x1400021e1
lea ecx, [rsi + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Usage:_TicTacToe_gameCount_playerCount_n_n
call fcn.140001010
lea ecx, [rsi + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.Arguments:_n
call fcn.140001010
lea ecx, [rsi + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str.____gameCount____________________Number_of_games._______________________________n
call fcn.140001010
lea ecx, [rsi + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.____playerCount__________________Number_of_players._____________________________n
jmp 0x1400027ec
mov rcx, qword [r14 + 8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
movsxd r12, eax
mov dword [rsp + 0x34], r12d
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
movsxd r15, eax
mov dword [rsp + 0x30], r15d
test r12d, r12d
js 0x1400027da
test eax, eax
js 0x1400027da
cmp r15d, 2
jge 0x140002233
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Error:_Requires_at_least_two_players._n
jmp 0x1400027ec
mov r9d, r12d
mov r8d, r15d
mov rdx, qword [r14]
lea rcx, str._s_starting__d_player_s__for__d_game_s__n
call fcn.140001740
mov rbx, r15
mov qword [rsp + 0x40], rbx
mov eax, 0x13c0
mul r15
mov rdi, 0xffffffffffffffff
cmovo rax, rdi
mov rcx, rax
call fcn.140002c6c
mov r13, rax
mov qword [rsp + 0x48], rax
mov r10, r15
lea r9, [rax + 0x13b0]
nop dword [rax]
dec r10
mov dword [r9], 0xffffffff
mov dword [r9 - 0x1380], 0x1571
mov edx, 0x1571
mov ecx, 1
lea r8, [r9 - 0x137c]
nop word [rax + rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, ecx
mov dword [r8], edx
inc rcx
lea r8, [r8 + 4]
cmp rcx, 0x270
jb 0x1400022b0
mov dword [r9 - 0x1384], 0x270
mov dword [r9 + 4], esi
mov dword [r9 + 8], 0x7fffffff
add r9, 0x13c0
test r10, r10
jne 0x140002280
mov eax, 0x130
mul r12
cmovo rax, rdi
add rax, 8
cmovb rax, rdi
mov rcx, rax
call fcn.140002c6c
mov qword [rsp + 0x50], rax
mov qword [rax], r12
lea rdi, [rax + 8]
mov qword [rsp + 0x38], rdi
lea rax, [0x1400028f0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400028b0]
mov r8, r12
mov edx, 0x130
mov rcx, rdi
call fcn.140002ca0
mov qword [rsp + 0x58], rdi
mov dword [rsp + 0x60], r12d
mov dword [rbp - 0x70], esi
mov byte [rbp - 0x6c], 0
mov eax, esi
test r12d, r12d
jle 0x1400023c1
lea r8, [rdi + 0x10]
mov r9, r12
nop dword [rax]
nop dword [rax + rax]
mov qword [r8], 0xffffffffffffffff
lea edx, [rax + 1]
mov dword [r8 - 0xc], edx
mov qword [r8 - 8], 1
mov dword [r8 - 0x10], esi
cdqe
imul rcx, rax, 0x130
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rcx + rdi + 0x108], xmm0
movups xmmword [rcx + rdi + 0x118], xmm0
mov dword [rcx + rdi + 0x128], eax
mov eax, edx
lea r8, [r8 + 0x130]
sub r9, 1
jne 0x140002370
mov r15d, ebx
mov r14d, esi
test rbx, rbx
jle 0x140002465
mov dword [rbp - 0x80], esi
mov dword [rbp - 0x7c], 0x7fffffff
lea rdi, [r13 + 0x34]
mov r15, rbx
mov rbx, qword [rbp - 0x80]
mov dword [rdi - 0x34], r14d
mov qword [rdi - 0x28], rsi
mov qword [rdi - 0x30], rsi
lea rax, [rsp + 0x58]
mov qword [rdi - 0x1c], rax
lea rax, [rbp - 0x70]
mov qword [rdi - 0x14], rax
mov dword [rdi - 0x20], esi
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rdi - 4], eax
mov edx, 1
mov r8, rdi
nop dword [rax]
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [r8], eax
inc rdx
lea r8, [r8 + 4]
cmp rdx, 0x270
jb 0x140002420
mov dword [rdi - 8], 0x270
mov qword [rdi + 0x1380], rbx
inc r14d
add rdi, 0x13c0
sub r15, 1
jne 0x1400023e2
mov r15d, dword [rsp + 0x30]
mov edi, esi
lea r14, [0x140001f40]
nop
movsxd rax, edi
imul rbx, rax, 0x13c0
add rbx, r13
mov ecx, 0x10
call fcn.140002b60
mov qword [rax], rbx
mov qword [rax + 8], r14
mov qword [rbp - 0x80], rax
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x140002af0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x70], rax
test rax, rax
je 0x1400027ca
cmp dword [rsp + 0x78], 0
je 0x1400027be
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x80], xmm0
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll__Thrd_detach]
test eax, eax
jne 0x1400027be
xorps xmm0, xmm0
movdqa xmmword [rsp + 0x70], xmm0
inc edi
cmp edi, r15d
jl 0x140002470
movups xmmword [rsp + 0x70], xmm0
lea rax, [rbp - 0x68]
mov qword [rsp + 0x70], rax
mov byte [rsp + 0x78], 0
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14000252a
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [rbp - 0x1c]
cmp eax, 0x7fffffff
jne 0x140002545
dec eax
mov dword [rbp - 0x1c], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
cmp dword [rbp - 0x70], r15d
je 0x140002564
nop dword [rax + rax]
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll__Cnd_wait]
cmp dword [rbp - 0x70], r15d
jne 0x140002550
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov byte [rsp + 0x78], 0
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x1400027b2
cmp dword [rbp + 0x7c], 0x7fffffff
jne 0x140002597
mov dword [rbp + 0x7c], 0x7ffffffe
jmp 0x1400025d3
mov byte [rbp - 0x6c], 1
lea rcx, [rbp + 0x80]
call qword [sym.imp.MSVCP140.dll__Cnd_broadcast]
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x1400027b2
mov eax, dword [rbp - 0x1c]
cmp eax, 0x7fffffff
jne 0x1400025df
dec eax
mov dword [rbp - 0x1c], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
cmp dword [rbp - 0x70], 0
jle 0x140002604
nop word [rax + rax]
lea rdx, [rbp - 0x68]
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll__Cnd_wait]
cmp dword [rbp - 0x70], 0
jg 0x1400025f0
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov byte [rsp + 0x78], 0
mov r13d, esi
mov edi, esi
mov r14d, esi
mov r15d, esi
mov r12d, esi
lea rcx, str._Player_Results__n
call fcn.140001740
cmp qword [rsp + 0x40], rdi
jle 0x14000267e
mov rbx, qword [rsp + 0x48]
add rbx, 8
mov rsi, qword [rsp + 0x40]
mov eax, dword [rbx + 8]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 4]
mov dword [rsp + 0x20], eax
mov r9d, dword [rbx]
mov r8d, dword [rbx - 4]
mov edx, dword [rbx - 8]
lea rcx, str.Player__d__Played__d_game_s___Won__d__Lost__d__Draw__d_n
call fcn.140001740
add r14d, dword [rbx]
add r15d, dword [rbx + 4]
add r12d, dword [rbx + 8]
lea rbx, [rbx + 0x13c0]
sub rsi, 1
jne 0x140002642
mov eax, r12d
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x20], eax
mov r9d, r15d
mov r8d, r14d
mov edx, dword [rsp + 0x30]
lea rcx, str.Total_Players__d__Wins__d__Losses__d__Draws__d_n_n_n
call fcn.140001740
lea rcx, str._Game_Results__n
call fcn.140001740
movsxd rax, dword [rsp + 0x34]
mov r12, rax
test eax, eax
jle 0x140002723
mov r14, qword [rsp + 0x38]
add r14, 0x10
lea r15, [0x140004714]
nop dword [rax + rax]
mov ebx, r13d
lea rax, str.Draw
cmp dword [r14 - 4], 1
cmove rax, r15
mov qword [rsp + 0x20], rax
mov r9d, dword [r14 + 4]
mov r8d, dword [r14]
mov edx, dword [r14 - 0xc]
lea rcx, str.Game__d___X_player__d__O_player__d__game_result__s_n
call fcn.140001740
lea eax, [rdi + 1]
cmp dword [r14 - 4], 1
cmovne edi, eax
lea r13d, [r13 + 1]
cmovne r13d, ebx
lea r14, [r14 + 0x130]
sub r12, 1
jne 0x1400026d0
mov eax, dword [rsp + 0x34]
mov r15, qword [rsp + 0x38]
mov r9d, edi
mov r8d, r13d
mov edx, eax
lea rcx, str.Total_Games___d___d_Games_Won___d_Games_were_a_Draw_n_n_n
call fcn.140001740
test r15, r15
je 0x140002771
lea r9, [0x1400028f0]
mov rbx, qword [rsp + 0x50]
mov r8, qword [rbx]
mov edx, 0x130
mov rcx, r15
call fcn.140002b9c
imul rdx, qword [rbx], 0x130
add rdx, 8
mov rcx, rbx
call fcn.140002b58
nop
mov rcx, qword [rsp + 0x48]
call fcn.140002b50
mov rbx, qword [0x1400077b8]
test rbx, rbx
je 0x14000279d
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_destroy_in_situ]
mov edx, 0x50
mov rcx, rbx
call fcn.140002b50
lea rcx, str.Press_Enter_to_continue_n
call fcn.140001060
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
nop
jmp 0x14000280b
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 1
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov dword [rsp + 0x78], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov ecx, 2
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
lea rdx, str.Error:_All_arguments_must_be_positive_integer_values._n
mov rcx, rax
call fcn.140001010
lea rcx, str.Press_Enter_to_continue_n
call fcn.140001060
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov esi, 1
lea rcx, [rbp + 0x80]
call qword [sym.imp.MSVCP140.dll__Cnd_destroy_in_situ]
lea rcx, [rbp + 0x30]
call qword [sym.imp.MSVCP140.dll__Mtx_destroy_in_situ]
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll__Cnd_destroy_in_situ]
lea rcx, [rbp - 0x68]
call qword [sym.imp.MSVCP140.dll__Mtx_destroy_in_situ]
mov eax, esi
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.140002b30
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret