Function at 0x180139230
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.1801cc6b0
sub rsp, rax
mov rax, qword [0x18028ab00]
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 0x180139efe
cmp byte [0x1803937ef], r12b
jne 0x180139efe
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.18014f430
test al, al
je 0x180139ef2
mov r8, r15
lea rdx, [rbp + 0x13b0]
mov rcx, qword [rbp + 0x1338]
call fcn.180150ce0
nop
mov r8, r15
lea rdx, [rbp + 0x13a0]
mov rcx, qword [rbp + 0x1338]
call fcn.180151130
nop
mov r8, r15
lea rdx, [rbp + 0x13c0]
mov rcx, qword [rbp + 0x13a0]
call fcn.180142d40
nop
mov esi, dword [0x1803907bc]
mov r14d, 8
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 [0x18039a450], eax
jle 0x1801393ad
lea rcx, [0x18039a450]
call fcn.1801cba90
cmp dword [0x18039a450], 0xffffffff
jne 0x1801393ad
xorps xmm0, xmm0
movups xmmword [0x18039a460], xmm0
mov ecx, 0x18
call fcn.1801cbb08
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 [0x18039a460], rbx
mov qword [0x18039a468], rdi
lea rcx, [0x180212a40]
call fcn.1801cbe9c
nop
lea rcx, [0x18039a450]
call fcn.1801cba24
mov rax, qword gs:[0x58]
mov rax, qword [rax + rsi*8]
mov eax, dword [r14 + rax]
cmp dword [0x18039a41c], eax
jle 0x180139402
lea rcx, [0x18039a41c]
call fcn.1801cba90
cmp dword [0x18039a41c], 0xffffffff
jne 0x180139402
mov edx, 0xffffffe2
mov r8d, 0x1e
call fcn.18011b910
add eax, 0x96
mov dword [0x18039a420], eax
lea rcx, [0x18039a41c]
call fcn.1801cba24
movsxd rdi, dword [0x18039a420]
mov rax, qword [0x18039a460]
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
sub rax, rbx
mov esi, 0xffffffff
cmp rax, rdi
jb 0x180139e31
mov edx, 0xffffffe2
mov r8d, 0x1e
call fcn.18011b910
add eax, 0x96
mov dword [0x18039a420], eax
mov r8, r15
lea rdx, [rbp + 0x1390]
mov rcx, qword [rbp + 0x1348]
call fcn.18014c0f0
nop
mov rbx, qword [rbp + 0x1390]
mov qword [rsp + 0x50], rbx
mov rdx, qword [rbx + 8]
test rdx, rdx
je 0x180139df0
mov rax, qword [r15]
mov r9, qword [rax + 0xc0]
xor r8d, r8d
mov rcx, r15
call r9
test al, al
jne 0x180139df0
mov rax, qword [0x180387310]
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 0x180139df0
mov r8, r15
lea rdx, [rbp + 0x1368]
mov rcx, rbx
call fcn.180142100
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 0x180139510
mov eax, r12d
jmp 0x18013952c
lea r9, str.getSizeInventory
mov r8, qword [r14 + 8]
mov rdx, r15
mov rcx, qword [0x180387240]
call fcn.180154b60
mov ebx, edi
cmp ebx, eax
jge 0x1801395ff
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.180144390
nop
mov rcx, qword [rbp + 0x12f0]
test rcx, rcx
je 0x1801395aa
mov rdx, r15
call fcn.180145500
test al, al
je 0x1801395aa
mov rdx, qword [rbp + 0x1328]
cmp rdx, qword [rbp + 0x1330]
je 0x180139596
mov eax, dword [rbp + 0x1300]
mov dword [rdx], eax
add qword [rbp + 0x1328], 4
jmp 0x1801395aa
lea r8, [rbp + 0x1300]
lea rcx, [rbp + 0x1320]
call fcn.1800c04f0
nop
mov rcx, qword [rbp + 0x12f8]
test rcx, rcx
je 0x1801395ea
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1801395ea
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 0x1801395ea
mov rcx, qword [rbp + 0x12f8]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov ebx, dword [rbp + 0x1300]
inc ebx
mov dword [rbp + 0x1300], ebx
mov edi, ebx
jmp 0x1801394f0
call fcn.1801cafcc
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 0x180139620
mov dword [rsp + 0x60], 0x270
lea r9, [rsp + 0x60]
lea r8, [rbp + 0x1320]
lea rdx, [rbp + 0x1300]
call fcn.18013a1a0
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 0x180139691
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 0x1801396ce
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 0x180139ba7
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.180144390
nop
mov rax, qword [rbp + 0x12f0]
cmp qword [rax + 8], 0
je 0x180139b53
mov rax, qword gs:[0x58]
mov ecx, dword [0x1803907bc]
mov rcx, qword [rax + rcx*8]
mov eax, 8
mov eax, dword [rax + rcx]
cmp dword [0x18039a454], eax
jle 0x1801397e3
lea rcx, [0x18039a454]
call fcn.1801cba90
cmp dword [0x18039a454], 0xffffffff
jne 0x1801397e3
xorps xmm0, xmm0
movups xmmword [0x18039a428], xmm0
mov ecx, 0x18
call fcn.1801cbb08
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 [0x18039a428], rbx
mov qword [0x18039a430], rdi
lea rcx, [0x1802129f0]
call fcn.1801cbe9c
nop
lea rcx, [0x18039a454]
call fcn.1801cba24
mov rax, qword gs:[0x58]
mov ecx, dword [0x1803907bc]
mov rcx, qword [rax + rcx*8]
mov eax, 8
mov eax, dword [rax + rcx]
cmp dword [0x18039a43c], eax
jle 0x180139842
lea rcx, [0x18039a43c]
call fcn.1801cba90
cmp dword [0x18039a43c], 0xffffffff
jne 0x180139842
mov edx, 0xffffffe2
mov r8d, 0x1e
call fcn.18011b910
add eax, 0x96
mov dword [0x18039a418], eax
lea rcx, [0x18039a43c]
call fcn.1801cba24
movsxd rdi, dword [0x18039a418]
mov rax, qword [0x18039a428]
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
sub rax, rbx
cmp rax, rdi
jb 0x180139b53
mov edx, 0xffffffe2
mov r8d, 0x1e
call fcn.18011b910
add eax, 0x96
mov dword [0x18039a418], eax
mov r8, r15
lea rdx, [rbp + 0x1310]
mov rcx, qword [rbp + 0x1348]
call fcn.18014be50
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.1801446d0
nop
mov rcx, qword [rbp + 0x1300]
test rcx, rcx
je 0x180139a1d
mov rdx, r15
call fcn.180145500
nop
mov rcx, qword [rbp + 0x1308]
test al, al
je 0x180139a24
test rcx, rcx
je 0x180139925
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180139925
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 0x180139925
mov rcx, qword [rbp + 0x1308]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
inc edi
cmp edi, 0x24
jl 0x1801398a0
mov rcx, qword [rbp + 0x1318]
test rcx, rcx
je 0x180139970
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180139970
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 0x180139970
mov rcx, qword [rbp + 0x1318]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov edx, 0xffffffe2
mov r8d, 0x1e
call fcn.18011b910
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 0x1801399c8
lea r9, str.closeScreen
mov r8, qword [rbx + 8]
mov rdx, r15
mov rcx, qword [0x1803871e0]
call fcn.180154850
mov rax, qword [rsp + 0x58]
mov byte [rax + 0xc], 0
mov rcx, qword [rbp + 0x12f8]
test rcx, rcx
je 0x180139a11
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180139a11
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 0x180139a11
mov rcx, qword [rbp + 0x12f8]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r14, qword [rbp + 0x1350]
jmp 0x180139ccb
mov rcx, qword [rbp + 0x1308]
test rcx, rcx
je 0x180139a5e
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180139a5e
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 0x180139a5e
mov rcx, qword [rbp + 0x1308]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rbp + 0x1318]
test rcx, rcx
je 0x180139a9e
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180139a9e
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 0x180139a9e
mov rcx, qword [rbp + 0x1318]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
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 0x180139ac2
xor ebx, ebx
jmp 0x180139ade
lea r9, str.windowId
mov r8, qword [rbx + 8]
mov rdx, r15
mov rcx, qword [0x180387420]
call fcn.1801559d0
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 0x180139b43
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 [0x180387440]
call fcn.180154280
mov rbx, qword [0x18039a428]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rbx], rax
mov rcx, qword [rbp + 0x12f8]
test rcx, rcx
je 0x180139b93
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180139b93
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 0x180139b93
mov rcx, qword [rbp + 0x12f8]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
add r12, 4
cmp r12, r13
jne 0x180139700
mov r14, qword [rbp + 0x1350]
lea rcx, [rbp + 0x1378]
call fcn.180139f30
mov rax, qword gs:[0x58]
mov r15d, dword [0x1803907bc]
mov rdx, qword [rax + r15*8]
mov r12d, 8
mov eax, dword [r12 + rdx]
cmp dword [0x18039a458], eax
jle 0x180139c67
lea rcx, [0x18039a458]
call fcn.1801cba90
cmp dword [0x18039a458], 0xffffffff
jne 0x180139c67
xorps xmm0, xmm0
movups xmmword [0x18039a440], xmm0
mov ecx, 0x18
call fcn.1801cbb08
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 [0x18039a440], rbx
mov qword [0x18039a448], rdi
lea rcx, [0x1802129a0]
call fcn.1801cbe9c
nop
lea rcx, [0x18039a458]
call fcn.1801cba24
mov rax, qword gs:[0x58]
mov rcx, qword [rax + r15*8]
mov eax, dword [r12 + rcx]
cmp dword [0x18039a438], eax
jle 0x180139cb2
lea rcx, [0x18039a438]
call fcn.1801cba90
cmp dword [0x18039a438], 0xffffffff
jne 0x180139cb2
mov edx, 0xffffffe2
mov r8d, 0x1e
call fcn.18011b910
nop
lea rcx, [0x18039a438]
call fcn.1801cba24
mov rax, qword [rsp + 0x58]
mov byte [rax + 0xc], 0
mov rbx, qword [0x18039a460]
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
mov qword [rbx], rax
mov rcx, qword [rbp + 0x1388]
test rcx, rcx
je 0x180139d12
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180139d0b
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 0x180139d0b
mov rcx, qword [rbp + 0x1388]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
mov r14, qword [rbp + 0x1350]
test r14, r14
je 0x180139d4d
mov eax, esi
lock xadd dword [r14 + 8], eax
cmp eax, 1
jne 0x180139d4d
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 0x180139d4d
mov rcx, qword [rbp + 0x1350]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rbp + 0x1320]
test rcx, rcx
je 0x180139daf
mov rax, qword [rbp + 0x1330]
sub rax, rcx
sar rax, 2
lea rdx, [rax*4]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180139d94
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180139f28
call fcn.1801cb9e0
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x1320], xmm0
mov qword [rbp + 0x1330], 0
mov rcx, qword [rbp + 0x1370]
test rcx, rcx
je 0x180139df0
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180139df0
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 0x180139df0
mov rcx, qword [rbp + 0x1370]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rbp + 0x1398]
test rcx, rcx
je 0x180139e31
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180139e31
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 0x180139e31
mov rcx, qword [rbp + 0x1398]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rbp + 0x13c8]
test rcx, rcx
je 0x180139e72
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180139e72
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 0x180139e72
mov rcx, qword [rbp + 0x13c8]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rbp + 0x13a8]
test rcx, rcx
je 0x180139eb3
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180139eb3
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 0x180139eb3
mov rcx, qword [rbp + 0x13a8]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, qword [rbp + 0x13b8]
test rcx, rcx
je 0x180139ef2
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x180139ef2
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 0x180139ef2
mov rcx, qword [rbp + 0x13b8]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
lea rcx, [rbp + 0x1338]
call fcn.1800be780
mov rcx, qword [rbp + 0x13e8]
xor rcx, rsp
call fcn.1801cb9c0
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.1801d6374
nop
int3