Function at 0x180031670
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
lea rbp, [rsp - 0xe0]
sub rsp, 0x1e0
mov rax, qword [0x18004c040]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [rax + 0xdb1f350]
mov qword [0x180050918], rcx
call fcn.180038990
cmp qword [0x180050918], 0
jne 0x1800316c5
lea rcx, str.World_is_null.
call fcn.1800311b0
jmp 0x180031c11
cmp qword [0x180050890], 0
mov qword [rsp + 0x1f0], rbx
jne 0x1800316eb
lea rcx, [rsp + 0x30]
call fcn.180030f10
mov rcx, qword [rax]
mov qword [0x180050890], rcx
mov qword [rsp + 0x1f8], rsi
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x200], rdi
mov qword [rsp + 0x1d8], r14
mov qword [rsp + 0x1d0], r15
call fcn.180030f10
mov rax, qword [rsp + 0x30]
xorps xmm1, xmm1
movss xmm0, dword [0x180042d20]
mov rcx, rax
sub rcx, qword [0x180050890]
xor ebx, ebx
cvtsi2ss xmm1, rcx
comiss xmm0, xmm1
ja 0x18003180f
mov qword [0x180050890], rax
mov rax, qword [0x1800509b8]
cmp rax, qword [0x1800509c0]
je 0x18003175d
mov qword [0x1800509c0], rax
mov rax, qword [0x180050918]
mov esi, ebx
mov r15, qword [rax + 0x38]
mov eax, dword [r15 + 0xb0]
test eax, eax
jle 0x18003180f
mov r14, rbx
nop dword [rax]
mov rdi, qword [r15 + 0xa8]
test rdi, rdi
je 0x180031799
test r14, r14
js 0x180031799
cmp esi, eax
jge 0x180031799
mov al, 1
jmp 0x18003179b
xor al, al
test al, al
je 0x180031c40
mov rdi, qword [rdi + r14*8]
mov qword [rsp + 0x30], rdi
test rdi, rdi
je 0x1800317fb
call fcn.180030bc0
test rax, rax
je 0x1800317fb
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1800317fb
cmp rcx, rax
je 0x1800317d4
mov rcx, qword [rcx + 0x48]
test rcx, rcx
jne 0x1800317c4
jmp 0x1800317fb
mov rdx, qword [0x1800509c0]
cmp rdx, qword [0x1800509c8]
je 0x1800317f1
mov qword [rdx], rdi
add qword [0x1800509c0], 8
jmp 0x1800317fb
lea r8, [rsp + 0x30]
call fcn.180035f70
mov eax, dword [r15 + 0xb0]
inc esi
inc r14
cmp esi, eax
jl 0x180031780
mov r15, qword [0x1800509c0]
mov rsi, qword [0x1800509b8]
mov rax, r15
sub rax, rsi
test rax, 0xfffffffffffffff8
jne 0x18003183c
lea rcx, str.No_players_in_PlayerSet
call fcn.1800311b0
jmp 0x180031be9
mov rax, qword [0x180050918]
mov rcx, qword [rax + 0x270]
mov rdx, qword [rcx + 0x40]
test rdx, rdx
je 0x18003185c
cmp dword [rcx + 0x48], ebx
jle 0x18003185c
mov al, 1
jmp 0x18003185e
xor al, al
test al, al
je 0x180031c26
mov rax, qword [rdx]
mov rcx, qword [rax + 0x38]
mov qword [0x180050910], rcx
test rcx, rcx
jne 0x18003188a
lea rcx, str.MyController_is_null.
call fcn.1800311b0
jmp 0x180031be9
mov qword [rsp + 0x208], r12
xor eax, eax
movaps xmmword [rsp + 0x1a0], xmm8
mov r12, rbx
movss xmm8, dword [0x180042d24]
movaps xmmword [rsp + 0x180], xmm10
xorps xmm10, xmm10
mov qword [rbp + 0x60], rax
cmp rsi, r15
je 0x180031b3e
movaps xmmword [rsp + 0x190], xmm9
movsd xmm9, qword [rbp + 0x60]
movaps xmmword [rsp + 0x1c0], xmm6
movaps xmmword [rsp + 0x1b0], xmm7
mov r14, qword [rsi]
test r14, r14
je 0x180031a7d
cmp qword [r14 + 0x2b8], rbx
je 0x180031a7d
mov rcx, r14
call fcn.180039b60
xorps xmm0, xmm0
mov qword [rbp - 0x70], rbx
mov r8d, 4
mov qword [rbp - 0x68], rbx
lea rdx, str.Head
mov rdi, rax
lea rcx, [rbp - 0x80]
movups xmmword [rbp - 0x80], xmm0
call fcn.180035580
lea rdx, [rbp - 0x80]
lea rcx, [rbp + 0x40]
call fcn.180030c70
lea r8, [rbp - 0x20]
mov rcx, rdi
lea rdx, [rbp + 0x50]
movsd xmm0, qword [rax]
mov eax, dword [rax + 8]
movsd qword [rbp - 0x20], xmm0
mov dword [rbp - 0x18], eax
call fcn.180036bc0
xorps xmm0, xmm0
mov qword [rbp - 0x70], rbx
mov r8d, 3
mov qword [rbp - 0x68], rbx
lea rdx, [0x180042900]
lea rcx, [rbp - 0x80]
movups xmmword [rbp - 0x80], xmm0
call fcn.180035580
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x40]
call fcn.180030c70
lea r8, [rbp - 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x40]
movsd xmm0, qword [rax]
mov eax, dword [rax + 8]
movsd qword [rbp - 0x10], xmm0
mov dword [rbp - 8], eax
call fcn.180036bc0
movups xmm0, xmmword [rsp + 0x40]
mov rcx, qword [0x180050910]
lea r8, [rsp + 0x40]
xorps xmm1, xmm1
lea rdx, [rsp + 0x60]
movups xmmword [rsp + 0x60], xmm0
mov r9b, 1
movsd xmm0, qword [rbp + 0x60]
movsd qword [rsp + 0x70], xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm1
call fcn.1800394e0
test al, al
je 0x180031a7d
mov rcx, qword [0x180050910]
lea r8, [rsp + 0x30]
mov r9b, 1
lea rdx, [rbp + 0x50]
call fcn.1800394e0
test al, al
je 0x180031a7d
cmp byte [0x18005081c], bl
je 0x180031a7d
mov rcx, qword [0x180050910]
lea rdx, [rsp + 0x60]
mov rcx, qword [rcx + 0x540]
call fcn.180039820
lea r8, [rbp + 0x50]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.180037590
movaps xmm0, xmmword [0x180042e20]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
movups xmm6, xmmword [rax]
movsd xmm7, qword [rax + 0x10]
movups xmmword [rsp + 0x40], xmm0
call fcn.180037250
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
comiss xmm8, xmm1
jbe 0x180031a7d
movaps xmm8, xmm1
mov r12, r14
movups xmm10, xmm6
movaps xmm9, xmm7
add rsi, 8
cmp rsi, r15
jne 0x1800318e2
movaps xmm7, xmmword [rsp + 0x1b0]
movaps xmm6, xmmword [rsp + 0x1c0]
test r12, r12
je 0x180031b35
cmp byte [0x18005081c], bl
je 0x180031b35
mov ecx, 2
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x180031b35
lea rcx, str.Right_mouse_button_is_pressed
call fcn.1800311b0
lea rdx, [rsp + 0x40]
call fcn.180038000
movss xmm3, dword [0x180042c30]
lea r8, [rbp + 0x50]
lea rdx, [rsp + 0x60]
movaps xmmword [rbp + 0x50], xmm10
lea rcx, [rbp - 0x40]
movsd qword [rbp + 0x60], xmm9
movups xmm0, xmmword [rax]
movsd xmm1, qword [rax + 0x10]
movaps xmmword [rsp + 0x60], xmm0
movss xmm0, dword [0x180042ce0]
movss dword [rsp + 0x20], xmm0
movsd qword [rsp + 0x70], xmm1
call fcn.180037910
lea rdx, [rbp + 0x50]
movups xmm0, xmmword [rax]
movsd xmm1, qword [rax + 0x10]
movups xmmword [rbp + 0x50], xmm0
movsd qword [rbp + 0x60], xmm1
call fcn.180037cd0
movaps xmm9, xmmword [rsp + 0x190]
mov rdi, qword [0x180050910]
movaps xmm10, xmmword [rsp + 0x180]
movaps xmm8, xmmword [rsp + 0x1a0]
mov r12, qword [rsp + 0x208]
test rdi, rdi
je 0x180031b6d
mov rdi, qword [rdi + 0x4d8]
jmp 0x180031b70
mov rdi, rbx
cmp byte [0x18005081b], bl
je 0x180031bbe
test rdi, rdi
je 0x180031bbe
movss xmm0, dword [0x180042cf4]
lea r8, [rbp - 0x80]
mov r9, rbx
movss dword [rsp + 0x20], xmm0
lea rdx, [rbp]
mov qword [rbp], rbx
mov rcx, rdi
mov qword [rbp + 8], rbx
mov qword [rbp + 0x20], rbx
mov qword [rbp + 0x28], rbx
mov qword [rbp - 0x80], rbx
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x60], rbx
mov qword [rbp - 0x58], rbx
call fcn.18003a1c0
cmp byte [0x18005081a], bl
je 0x180031be9
test rdi, rdi
je 0x180031be9
or byte [rbp - 0x34], 1
lea rdx, [rbp - 0x40]
mov rcx, rdi
mov dword [rbp - 0x3c], 0x3f800000
mov dword [rbp - 0x38], 0x3f800000
call fcn.18003a540
mov r14, qword [rsp + 0x1d8]
mov rdi, qword [rsp + 0x200]
mov rsi, qword [rsp + 0x1f8]
mov r15, qword [rsp + 0x1d0]
mov rbx, qword [rsp + 0x1f0]
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.18003a860
add rsp, 0x1e0
pop rbp
ret
lea rcx, [rbp + 0x50]
call fcn.180030390
lea rdx, [0x180048f88]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rbp + 0x50]
call fcn.180030390
lea rdx, [0x180048f88]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
int3