Function at 0x180006680
Capabilities:
Generate random numbers using a mersenne twister
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x1380]
mov eax, 0x1480
call fcn.18005aec0
sub rsp, rax
mov rax, qword [0x180070010]
xor rax, rsp
mov qword [rbp + 0x1370], rax
xor r14d, r14d
mov dword [rbp - 0x30], r14d
cmp byte [0x180071180], r14b
je 0x180006bf8
cmp byte [0x1800710b0], r14b
jne 0x180006bf8
call fcn.180057bf0
test al, al
jne 0x180006bf8
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r14
lea r8d, [r14 + 0x1c]
lea rdx, str.net.minecraft.item.ItemBlock
lea rcx, [rsp + 0x20]
call fcn.180005b90
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x20]
call fcn.180058570
mov rax, qword [0x180071178]
lea rdx, [rsp + 0x60]
mov rcx, qword [rax + 0x38]
call fcn.18000f850
nop
mov rbx, qword [0x180071020]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx]
mov r8, rbx
mov rdx, rax
mov rcx, qword [0x180070fa0]
call fcn.1800049b0
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.180006460
nop
lea rsi, vtable.CItemStack.0
mov qword [rsp + 0x20], rsi
cmp byte [0x180071008], r14b
jne 0x18000677d
call fcn.180005d00
mov rcx, qword [0x180071030]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x48], rbx
mov edi, 4
lea rcx, [rsp + 0x20]
call qword [vtable.CItemStack.0]
mov rbx, rax
mov r8, qword [rsp + 0x38]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.1800065c0
lea edx, [rdi + 0x44]
mov rcx, qword [rsp + 0x38]
call fcn.180059f00
mov r8, qword [rsp + 0x28]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.1800065c0
lea edx, [rdi + 0x44]
mov rcx, qword [rsp + 0x28]
call fcn.180059f00
nop
mov r8, qword [rsp + 0x78]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x78]
call fcn.1800065c0
lea edx, [rdi + 0x44]
mov rcx, qword [rsp + 0x78]
call fcn.180059f00
mov r8, qword [rsp + 0x68]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x68]
call fcn.1800065c0
lea edx, [rdi + 0x44]
mov rcx, qword [rsp + 0x68]
call fcn.180059f00
test rbx, rbx
je 0x180006bf8
cmp byte [0x180070034], 0
je 0x180006915
mov rax, qword [0x180071178]
lea rdx, [rbp - 0x68]
mov rcx, qword [rax + 0x38]
call fcn.18000f850
nop
mov dword [rbp - 0x30], 5
mov rbx, qword [0x180071020]
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx]
mov r8, rbx
mov rdx, rax
mov rcx, qword [0x180070fa0]
call fcn.1800049b0
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.180006460
nop
mov qword [rsp + 0x20], rsi
cmp byte [0x180071008], 0
jne 0x1800068af
call fcn.180005d00
mov rcx, qword [0x180071030]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x48], rbx
mov edi, 0xf
mov dword [rbp - 0x30], edi
mov rbx, qword [0x180071028]
lea rcx, [rsp + 0x20]
call qword [vtable.CItemStack.0]
mov r8, rbx
mov rdx, rax
mov rcx, qword [0x180070fa0]
call fcn.1800049b0
mov rcx, qword [0x180070fa0]
mov rdx, qword [rcx]
mov r9, qword [rdx + 0x100]
mov r8, qword [rsp + 0x58]
mov rdx, rax
call r9
test al, al
jne 0x180006915
mov bl, 1
jmp 0x180006917
xor bl, bl
test dil, 2
je 0x18000696f
and edi, 0xfffffffd
mov r8, qword [rsp + 0x38]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x38]
call fcn.1800065c0
mov edx, 0x48
mov rcx, qword [rsp + 0x38]
call fcn.180059f00
mov r8, qword [rsp + 0x28]
mov r8, qword [r8 + 8]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x28]
call fcn.1800065c0
mov edx, 0x48
mov rcx, qword [rsp + 0x28]
call fcn.180059f00
nop
test dil, 1
je 0x1800069bb
mov r8, qword [rbp - 0x50]
mov r8, qword [r8 + 8]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x50]
call fcn.1800065c0
mov edx, 0x48
mov rcx, qword [rbp - 0x50]
call fcn.180059f00
mov r8, qword [rbp - 0x60]
mov r8, qword [r8 + 8]
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x60]
call fcn.1800065c0
mov edx, 0x48
mov rcx, qword [rbp - 0x60]
call fcn.180059f00
test bl, bl
jne 0x180006bf8
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
mov rcx, rax
movabs rax, 0x346dc5d63886594b
imul rcx
mov rbx, rdx
sar rbx, 0xb
mov rax, rbx
shr rax, 0x3f
add rbx, rax
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180006bf1
mov ecx, dword [0x1800710bc]
test ecx, ecx
jne 0x180006a10
mov ecx, ebx
mov dword [0x1800710bc], ebx
mov eax, ebx
sub eax, ecx
movd xmm0, eax
cvtdq2ps xmm0, xmm0
comiss xmm0, dword [0x180070038]
jb 0x180006bf8
mov eax, dword [0x1800710b8]
test eax, eax
cmove eax, ebx
mov dword [0x1800710b8], eax
mov ecx, ebx
sub ecx, eax
mov eax, 0x3e8
cdq
idiv dword [0x180070050]
cmp ecx, eax
jl 0x180006bf8
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_GetCursorPos]
movzx r9d, word [rbp - 0x2c]
shl r9d, 0x10
movzx eax, word [rbp - 0x30]
or r9, rax
mov edx, 0x204
mov r8d, 2
mov rcx, qword [0x180071188]
call qword [sym.imp.USER32.dll_SendMessageA]
movzx r9d, word [rbp - 0x2c]
shl r9d, 0x10
movzx eax, word [rbp - 0x30]
or r9, rax
xor r8d, r8d
mov edx, 0x205
mov rcx, qword [0x180071188]
call qword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x1800710b8], ebx
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rbp + 0x1364], 0xffffffff
mov dword [rbp - 0x1c], eax
mov edx, 1
mov r9d, 0x270
nop dword [rax]
mov ecx, eax
shr ecx, 0x1e
xor ecx, eax
imul eax, ecx, 0x6c078965
add eax, edx
mov dword [rbp + rdx*4 - 0x1c], eax
inc rdx
cmp rdx, r9
jb 0x180006ad0
mov dword [rbp - 0x20], r9d
cvttss2si ecx, dword [0x180070040]
cvttss2si edx, dword [0x18007003c]
lea eax, [rcx - 0x80000000]
mov r15d, 0x80000000
lea esi, [rcx + r15]
cmp ecx, r15d
cmovae esi, eax
lea eax, [rdx - 0x80000000]
lea ebx, [rdx + r15]
cmp edx, r15d
cmovae ebx, eax
sub ebx, esi
cmp ebx, 0xffffffff
jne 0x180006ba0
lea r8, [rbp - 0x18]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, dword [r8 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x630]
shr edx, 1
xor ecx, edx
mov dword [r8 + 0x9bc], ecx
lea r8, [r8 + 4]
sub r9, 1
jne 0x180006b30
mov r9d, dword [rbp - 0x20]
mov ecx, dword [rbp + r9*4 - 0x1c]
mov eax, ecx
shr eax, 0xb
and eax, dword [rbp + 0x1364]
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov edx, ecx
shr edx, 0x12
xor edx, ecx
jmp 0x180006bd7
lea edi, [rbx + 1]
mov r8d, r14d
mov eax, r14d
test ebx, ebx
je 0x180006bbe
lea rcx, [rbp - 0x20]
call fcn.180006f70
mov r8d, eax
mov eax, 0xffffffff
xor edx, edx
div edi
mov r9d, edx
mov ecx, eax
xor edx, edx
mov eax, r8d
div edi
cmp eax, ecx
jb 0x180006bd7
cmp r9d, ebx
jne 0x180006ba3
add edx, esi
lea eax, [rdx + r15]
lea ecx, [rdx - 0x80000000]
cmp edx, r15d
cmovae ecx, eax
mov dword [0x180070050], ecx
jmp 0x180006bf8
mov dword [0x1800710bc], r14d
mov rcx, qword [rbp + 0x1370]
xor rcx, rsp
call fcn.180059d20
lea r11, [rsp + 0x1480]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
sub rsp, 0x28
mov rax, qword [0x180071178]
mov rcx, qword [rax + 0x38]
mov rax, qword [rcx]
call qword [rax]
test rax, rax
je 0x180010650
mov rax, qword [0x180071178]
mov rcx, qword [rax + 0x40]
mov rax, qword [rcx]
call qword [rax]
test rax, rax
je 0x180010650
call fcn.18000f960
call fcn.18000b5d0
call fcn.180008c50
call fcn.1800079f0
call fcn.180007100
add rsp, 0x28
jmp 0x180006680
mov byte [0x180071191], 0
add rsp, 0x28
ret