Function at 0x1800977b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x13f0]
mov eax, 0x14f0
call fcn.1800c1020
sub rsp, rax
mov rax, qword [0x1801300c0]
xor rax, rsp
mov qword [rbp + 0x13e8], rax
mov r15, rdx
mov qword [rsp + 0x58], rcx
xor r12d, r12d
cmp byte [rcx + 0xc], r12b
je 0x18009847e
cmp byte [0x18022bd54], r12b
jne 0x18009847e
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x1338], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1348], xmm1
movdqu xmmword [rbp + 0x1358], xmm0
lea rdx, [rbp + 0x1338]
mov rcx, r15
call fcn.1800af350
test al, al
je 0x180098472
mov r8, r15
lea rdx, [rbp + 0x13b0]
mov rcx, qword [rbp + 0x1338]
call fcn.1800b0c20
nop
mov r8, r15
lea rdx, [rbp + 0x13a0]
mov rcx, qword [rbp + 0x1338]
call fcn.1800b1070
nop
mov r8, r15
lea rdx, [rbp + 0x13c0]
mov rcx, qword [rbp + 0x13a0]
call fcn.1800a1420
nop
mov esi, dword [0x18022aa3c]
mov r14d, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax + rsi*8]
lea rbx, vtable.std::_Ref_count_obj2_class_CTimer_.0
mov eax, dword [r14 + rax]
cmp dword [0x180231c50], eax
jle 0x18009792d
lea rcx, [0x180231c50]
call fcn.1800c0130
cmp dword [0x180231c50], 0xffffffff
jne 0x18009792d
xorps xmm0, xmm0
movups xmmword [0x180231c60], xmm0
mov ecx, 0x18
call fcn.1800c01a8
mov rdi, rax
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
mov qword [rax], rbx
lea rbx, [rax + 0x10]
mov qword [rbx], r12
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rbx], rax
mov qword [0x180231c60], rbx
mov qword [0x180231c68], rdi
lea rcx, [0x1800f9bf0]
call fcn.1800c053c
nop
lea rcx, [0x180231c50]
call fcn.1800c00c4
mov rax, qword gs:[0x58]
mov rax, qword [rax + rsi*8]
mov eax, dword [r14 + rax]
cmp dword [0x180231c1c], eax
jle 0x180097982
lea rcx, [0x180231c1c]
call fcn.1800c0130
cmp dword [0x180231c1c], 0xffffffff
jne 0x180097982
mov edx, 0xffffffe2
mov r8d, 0x1e
call fcn.1800776a0
add eax, 0x96
mov dword [0x180231c20], eax
lea rcx, [0x180231c1c]
call fcn.1800c00c4
movsxd rdi, dword [0x180231c20]
mov rax, qword [0x180231c60]
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
sub rax, rbx
mov esi, 0xffffffff
cmp rax, rdi
jb 0x1800983b1
mov edx, 0xffffffe2
mov r8d, 0x1e
call fcn.1800776a0
add eax, 0x96
mov dword [0x180231c20], eax
mov r8, r15
lea rdx, [rbp + 0x1390]
mov rcx, qword [rbp + 0x1348]
call fcn.1800ac010
nop
mov rbx, qword [rbp + 0x1390]
mov qword [rsp + 0x50], rbx
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x180098370
mov rax, qword [r15]
mov r9, qword [rax + 0xc0]
xor r8d, r8d
mov rcx, r15
call r9
test al, al
jne 0x180098370
mov rax, qword [0x180228130]
mov r8, qword [rax + 0x70]
mov rax, qword [r15]
mov r9, qword [rax + 0x100]
mov rdx, qword [rbx + 8]
mov rcx, r15
call r9
test al, al
je 0x180098370
mov r8, r15
lea rdx, [rbp + 0x1368]
mov rcx, rbx
call fcn.1800a07e0
nop
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x1320], xmm1
mov qword [rbp + 0x1330], r12
mov dword [rbp + 0x1300], r12d
mov r14, qword [rbp + 0x1368]
mov ebx, r12d
mov edi, r12d
mov rax, qword [r15]
mov r9, qword [rax + 0xc0]
xor r8d, r8d
mov rdx, qword [r14 + 8]
mov rcx, r15
call r9
test al, al
je 0x180097a90
mov eax, r12d
jmp 0x180097aac
lea r9, str.getSizeInventory
mov r8, qword [r14 + 8]
mov rdx, r15
mov rcx, qword [0x180228060]
call fcn.1800b49e0
mov ebx, edi
cmp ebx, eax
jge 0x180097b7f
xorps xmm0, xmm0
movups xmmword [rbp + 0x12f0], xmm0
mov r9d, dword [rbp + 0x1300]
mov r8, r15
lea rdx, [rbp + 0x12f0]
mov rcx, qword [rbp + 0x1368]
call fcn.1800a2a70
nop
mov rcx, qword [rbp + 0x12f0]
test rcx, rcx
je 0x180097b2a
mov rdx, r15
call fcn.1800a3be0
test al, al
je 0x180097b2a
mov rdx, qword [rbp + 0x1328]
cmp rdx, qword [rbp + 0x1330]
je 0x180097b16
mov eax, dword [rbp + 0x1300]
mov dword [rdx], eax
add qword [rbp + 0x1328], 4
jmp 0x180097b2a
lea r8, [rbp + 0x1300]
lea rcx, [rbp + 0x1320]
call fcn.1800641b0
nop
mov rcx, qword [rbp + 0x12f8]
test rcx, rcx
je 0x180097b6a
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180097b6a
mov rbx, qword [rbp + 0x12f8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x180097b6a
mov rcx, qword [rbp + 0x12f8]
mov rax, qword [rcx]
call qword [rax + 8]
mov ebx, dword [rbp + 0x1300]
inc ebx
mov dword [rbp + 0x1300], ebx
mov edi, ebx
jmp 0x180097a70
call fcn.1800bfa8c
mov dword [rbp + 0x12e4], 0xffffffff
mov dword [rsp + 0x64], eax
mov edx, 1
nop word [rax + rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rsp + rdx*4 + 0x64], eax
inc rdx
cmp rdx, 0x270
jb 0x180097ba0
mov dword [rsp + 0x60], 0x270
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x1320]
lea rdx, [rbp + 0x1300]
call fcn.180098720
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x13d0], xmm0
mov qword [rbp + 0x13e0], rax
mov qword [rbp + 0x13d0], r15
mov r14, qword [rbp + 0x1350]
test r14, r14
je 0x180097c11
lock inc dword [r14 + 8]
mov r14, qword [rbp + 0x1350]
mov rax, qword [rbp + 0x1348]
mov qword [rbp + 0x13d8], rax
mov qword [rbp + 0x13e0], r14
xor eax, eax
movups xmmword [rbp + 0x1378], xmm0
mov qword [rbp + 0x1388], rax
mov qword [rbp + 0x1378], r15
test r14, r14
je 0x180097c4e
lock inc dword [r14 + 8]
mov r14, qword [rbp + 0x1350]
mov rax, qword [rbp + 0x1348]
mov qword [rbp + 0x1380], rax
mov qword [rbp + 0x1388], r14
mov r12, qword [rbp + 0x1320]
mov r13, qword [rbp + 0x1328]
cmp r12, r13
je 0x180098127
nop word [rax + rax]
mov r14d, dword [r12]
mov r9d, r14d
mov r8, r15
lea rdx, [rbp + 0x12f0]
mov rcx, qword [rbp + 0x1368]
call fcn.1800a2a70
nop
mov rax, qword [rbp + 0x12f0]
cmp qword [rax + 8], 0
je 0x1800980d3
mov rax, qword gs:[0x58]
mov ecx, dword [0x18022aa3c]
mov rcx, qword [rax + rcx*8]
mov eax, 4
mov eax, dword [rax + rcx]
cmp dword [0x180231c54], eax
jle 0x180097d63
lea rcx, [0x180231c54]
call fcn.1800c0130
cmp dword [0x180231c54], 0xffffffff
jne 0x180097d63
xorps xmm0, xmm0
movups xmmword [0x180231c28], xmm0
mov ecx, 0x18
call fcn.1800c01a8
mov rdi, rax
mov qword [rbp + 0x1300], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_CTimer_.0
mov qword [rdi], rax
lea rbx, [rdi + 0x10]
mov qword [rbx], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rbx], rax
mov qword [0x180231c28], rbx
mov qword [0x180231c30], rdi
lea rcx, [0x1800f9ba0]
call fcn.1800c053c
nop
lea rcx, [0x180231c54]
call fcn.1800c00c4
mov rax, qword gs:[0x58]
mov ecx, dword [0x18022aa3c]
mov rcx, qword [rax + rcx*8]
mov eax, 4
mov eax, dword [rax + rcx]
cmp dword [0x180231c3c], eax
jle 0x180097dc2
lea rcx, [0x180231c3c]
call fcn.1800c0130
cmp dword [0x180231c3c], 0xffffffff
jne 0x180097dc2
mov edx, 0xffffffe2
mov r8d, 0x1e
call fcn.1800776a0
add eax, 0x96
mov dword [0x180231c18], eax
lea rcx, [0x180231c3c]
call fcn.1800c00c4
movsxd rdi, dword [0x180231c18]
mov rax, qword [0x180231c28]
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
sub rax, rbx
cmp rax, rdi
jb 0x1800980d3
mov edx, 0xffffffe2
mov r8d, 0x1e
call fcn.1800776a0
add eax, 0x96
mov dword [0x180231c18], eax
mov r8, r15
lea rdx, [rbp + 0x1310]
mov rcx, qword [rbp + 0x1348]
call fcn.1800abd70
nop
xor edi, edi
nop dword [rax]
xorps xmm0, xmm0
movups xmmword [rbp + 0x1300], xmm0
mov r9d, edi
mov r8, r15
lea rdx, [rbp + 0x1300]
mov rcx, qword [rbp + 0x1310]
call fcn.1800a2db0
nop
mov rcx, qword [rbp + 0x1300]
test rcx, rcx
je 0x180097f9d
mov rdx, r15
call fcn.1800a3be0
nop
mov rcx, qword [rbp + 0x1308]
test al, al
je 0x180097fa4
test rcx, rcx
je 0x180097ea5
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180097ea5
mov rbx, qword [rbp + 0x1308]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x180097ea5
mov rcx, qword [rbp + 0x1308]
mov rax, qword [rcx]
call qword [rax + 8]
inc edi
cmp edi, 0x24
jl 0x180097e20
mov rcx, qword [rbp + 0x1318]
test rcx, rcx
je 0x180097ef0
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180097ef0
mov rbx, qword [rbp + 0x1318]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x180097ef0
mov rcx, qword [rbp + 0x1318]
mov rax, qword [rcx]
call qword [rax + 8]
mov edx, 0xffffffe2
mov r8d, 0x1e
call fcn.1800776a0
lea ecx, [rax + 0x96]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rbx, qword [rbp + 0x1348]
mov rax, qword [r15]
mov r9, qword [rax + 0xc0]
xor r8d, r8d
mov rdx, qword [rbx + 8]
mov rcx, r15
call r9
test al, al
jne 0x180097f48
lea r9, str.closeScreen
mov r8, qword [rbx + 8]
mov rdx, r15
mov rcx, qword [0x180228000]
call fcn.1800b46f0
mov rax, qword [rsp + 0x58]
mov byte [rax + 0xc], 0
mov rcx, qword [rbp + 0x12f8]
test rcx, rcx
je 0x180097f91
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180097f91
mov rbx, qword [rbp + 0x12f8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x180097f91
mov rcx, qword [rbp + 0x12f8]
mov rax, qword [rcx]
call qword [rax + 8]
mov r14, qword [rbp + 0x1350]
jmp 0x18009824b
mov rcx, qword [rbp + 0x1308]
test rcx, rcx
je 0x180097fde
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180097fde
mov rbx, qword [rbp + 0x1308]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x180097fde
mov rcx, qword [rbp + 0x1308]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp + 0x1318]
test rcx, rcx
je 0x18009801e
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18009801e
mov rbx, qword [rbp + 0x1318]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18009801e
mov rcx, qword [rbp + 0x1318]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [r15]
mov r9, qword [rax + 0xc0]
xor r8d, r8d
mov rbx, qword [rsp + 0x50]
mov rdx, qword [rbx + 8]
mov rcx, r15
call r9
test al, al
je 0x180098042
xor ebx, ebx
jmp 0x18009805e
lea r9, str.windowId
mov r8, qword [rbx + 8]
mov rdx, r15
mov rcx, qword [0x180228240]
call fcn.1800b5820
mov ebx, eax
mov rdi, qword [rbp + 0x13b0]
mov rcx, qword [r15]
mov r9, qword [rcx + 0xc0]
xor r8d, r8d
mov rdx, qword [rdi + 8]
mov rcx, r15
call r9
test al, al
jne 0x1800980c3
mov rax, qword [rbp + 0x1348]
mov rcx, qword [rax + 8]
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], ebx
lea r9, str.windowClick
mov r8, qword [rdi + 8]
mov rdx, r15
mov rcx, qword [0x180228260]
call fcn.1800b4140
mov rbx, qword [0x180231c28]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rbx], rax
mov rcx, qword [rbp + 0x12f8]
test rcx, rcx
je 0x180098113
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180098113
mov rbx, qword [rbp + 0x12f8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x180098113
mov rcx, qword [rbp + 0x12f8]
mov rax, qword [rcx]
call qword [rax + 8]
add r12, 4
cmp r12, r13
jne 0x180097c80
mov r14, qword [rbp + 0x1350]
lea rcx, [rbp + 0x1378]
call fcn.1800984b0
mov rax, qword gs:[0x58]
mov r15d, dword [0x18022aa3c]
mov rdx, qword [rax + r15*8]
mov r12d, 4
mov eax, dword [r12 + rdx]
cmp dword [0x180231c58], eax
jle 0x1800981e7
lea rcx, [0x180231c58]
call fcn.1800c0130
cmp dword [0x180231c58], 0xffffffff
jne 0x1800981e7
xorps xmm0, xmm0
movups xmmword [0x180231c40], xmm0
mov ecx, 0x18
call fcn.1800c01a8
mov rdi, rax
mov qword [rsp + 0x50], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_obj2_class_CTimer_.0
mov qword [rdi], rax
lea rbx, [rdi + 0x10]
mov qword [rbx], 0
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rbx], rax
mov qword [0x180231c40], rbx
mov qword [0x180231c48], rdi
lea rcx, [0x1800f9b50]
call fcn.1800c053c
nop
lea rcx, [0x180231c58]
call fcn.1800c00c4
mov rax, qword gs:[0x58]
mov rcx, qword [rax + r15*8]
mov eax, dword [r12 + rcx]
cmp dword [0x180231c38], eax
jle 0x180098232
lea rcx, [0x180231c38]
call fcn.1800c0130
cmp dword [0x180231c38], 0xffffffff
jne 0x180098232
mov edx, 0xffffffe2
mov r8d, 0x1e
call fcn.1800776a0
nop
lea rcx, [0x180231c38]
call fcn.1800c00c4
mov rax, qword [rsp + 0x58]
mov byte [rax + 0xc], 0
mov rbx, qword [0x180231c60]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rbx], rax
mov rcx, qword [rbp + 0x1388]
test rcx, rcx
je 0x180098292
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x18009828b
mov rbx, qword [rbp + 0x1388]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18009828b
mov rcx, qword [rbp + 0x1388]
mov rax, qword [rcx]
call qword [rax + 8]
mov r14, qword [rbp + 0x1350]
test r14, r14
je 0x1800982cd
mov eax, esi
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x1800982cd
mov rbx, qword [rbp + 0x1350]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1800982cd
mov rcx, qword [rbp + 0x1350]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp + 0x1320]
test rcx, rcx
je 0x18009832f
mov rax, qword [rbp + 0x1330]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180098314
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800984a8
call fcn.1800c0080
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x1320], xmm0
mov qword [rbp + 0x1330], 0
mov rcx, qword [rbp + 0x1370]
test rcx, rcx
je 0x180098370
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180098370
mov rbx, qword [rbp + 0x1370]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x180098370
mov rcx, qword [rbp + 0x1370]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp + 0x1398]
test rcx, rcx
je 0x1800983b1
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1800983b1
mov rbx, qword [rbp + 0x1398]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1800983b1
mov rcx, qword [rbp + 0x1398]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp + 0x13c8]
test rcx, rcx
je 0x1800983f2
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1800983f2
mov rbx, qword [rbp + 0x13c8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x1800983f2
mov rcx, qword [rbp + 0x13c8]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp + 0x13a8]
test rcx, rcx
je 0x180098433
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180098433
mov rbx, qword [rbp + 0x13a8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, esi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x180098433
mov rcx, qword [rbp + 0x13a8]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rcx, qword [rbp + 0x13b8]
test rcx, rcx
je 0x180098472
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180098472
mov rbx, qword [rbp + 0x13b8]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], esi
cmp esi, 1
jne 0x180098472
mov rcx, qword [rbp + 0x13b8]
mov rax, qword [rcx]
call qword [rax + 8]
nop
lea rcx, [rbp + 0x1338]
call fcn.180062440
mov rcx, qword [rbp + 0x13e8]
xor rcx, rsp
call fcn.1800c0060
mov rbx, qword [rsp + 0x1540]
add rsp, 0x14f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1800ca864
nop
int3