Function at 0x18000ad70
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x120
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
movaps xmmword [rax - 0x78], xmm10
mov rax, qword [0x1800f26a8]
xor rax, rsp
mov qword [rbp - 0x40], rax
mov r14, rcx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x18000b2b3
xor esi, esi
mov dword [rbp - 0x78], esi
lea rdx, [rbp - 0x78]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ecx, dword [r14 + 0x50]
cmp dword [rbp - 0x78], ecx
jne 0x18000b2b3
cmp byte [r14 + 0x44], sil
je 0x18000ae08
lea ecx, [rsi + 1]
call qword [sym.imp.USER32.dll_GetKeyState]
bt ax, 0xf
jae 0x18000b2b3
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov rdx, qword [r14 + 0x10]
lea rcx, [rbp - 0x70]
call fcn.180008220
mov rdi, qword [rbp - 0x70]
test rdi, rdi
je 0x18000b2b3
mov r12, qword [rbp - 0x68]
test r12, r12
je 0x18000b2b3
mov r15, qword [0x1800f37d0]
test r15, r15
jne 0x18000ae7f
lea rdx, str.theWorld
lea rcx, [rbp - 0x70]
call fcn.180001390
mov rbx, rax
mov qword [rsp + 0x28], rax
mov rcx, qword [0x1800f38c8]
add rcx, 0x20
mov rdx, rax
call fcn.18006c3a0
mov r15, qword [rax]
mov rcx, rbx
call fcn.180005040
mov qword [0x1800f37d0], r15
mov rax, qword [rdi]
mov r9, qword [rax + 0x2f8]
mov r8, r15
mov rdx, r12
mov rcx, rdi
call r9
mov qword [rsp + 0x28], rax
test rax, rax
jne 0x18000aeab
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x28], rsi
jmp 0x18000aeb0
mov qword [rsp + 0x38], rdi
xorps xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov r15, qword [0x1800f37c8]
test r15, r15
jne 0x18000af00
lea rdx, str.thePlayer
lea rcx, [rbp - 0x70]
call fcn.180001390
mov rbx, rax
mov qword [rsp + 0x30], rax
mov rcx, qword [0x1800f38c8]
add rcx, 0x20
mov rdx, rax
call fcn.18006c3a0
mov r15, qword [rax]
mov rcx, rbx
call fcn.180005040
mov qword [0x1800f37c8], r15
mov rax, qword [rdi]
mov r9, qword [rax + 0x2f8]
mov r8, r15
mov rdx, r12
mov rcx, rdi
call r9
mov r15, rax
test rax, rax
jne 0x18000af3a
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
xorps xmm0, xmm0
psrldq xmm0, 8
movq r15, xmm0
movq r13, xmm1
jmp 0x18000af45
mov qword [rbp - 0x48], rax
mov r13, rdi
mov qword [rbp - 0x50], rdi
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov rax, qword [0x1800f37b0]
test rax, rax
jne 0x18000afa2
lea rdx, str.objectMouseOver
lea rcx, [rsp + 0x48]
call fcn.180001390
mov rbx, rax
mov qword [rsp + 0x30], rax
mov rcx, qword [0x1800f38c8]
add rcx, 0x20
mov rdx, rax
call fcn.18006c3a0
mov rax, qword [rax]
mov qword [rsp + 0x30], rax
mov rcx, rbx
call fcn.180005040
mov r8, qword [rsp + 0x30]
mov qword [0x1800f37b0], r8
jmp 0x18000afa5
mov r8, rax
mov rax, qword [rdi]
mov r9, qword [rax + 0x2f8]
mov rdx, r12
mov rcx, rdi
call r9
test rax, rax
jne 0x18000afd9
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x70], xmm1
xorps xmm0, xmm0
psrldq xmm0, 8
movq rax, xmm0
movq rcx, xmm1
jmp 0x18000afe4
mov qword [rbp - 0x68], rax
mov rcx, rdi
mov qword [rbp - 0x70], rcx
cmp qword [rsp + 0x38], 0
je 0x18000b2b3
cmp qword [rsp + 0x28], 0
je 0x18000b2b3
test r13, r13
je 0x18000b2b3
test r15, r15
je 0x18000b2b3
test rcx, rcx
je 0x18000b2b3
test rax, rax
je 0x18000b2b3
mov r15, qword [0x1800f37d8]
test r15, r15
jne 0x18000b06a
lea rdx, str.inGameHasFocus
lea rcx, [rsp + 0x48]
call fcn.180001390
mov rbx, rax
mov qword [rsp + 0x28], rax
mov rcx, qword [0x1800f38c8]
add rcx, 0x20
mov rdx, rax
call fcn.18006c3a0
mov r15, qword [rax]
mov rcx, rbx
call fcn.180005040
mov qword [0x1800f37d8], r15
mov rax, qword [rdi]
mov r9, qword [rax + 0x300]
mov r8, r15
mov rdx, r12
mov rcx, rdi
call r9
test al, al
je 0x18000b0b4
cmp byte [r14 + 0x47], 0
je 0x18000b098
lea rcx, [rbp - 0x50]
call fcn.180007d30
test al, al
je 0x18000b0b4
cmp byte [r14 + 0x49], 0
je 0x18000b0ad
lea rcx, [rbp - 0x70]
call fcn.180008020
cmp eax, 1
je 0x18000b0b4
mov byte [rsp + 0x20], 1
jmp 0x18000b0b9
mov byte [rsp + 0x20], 0
mov r15, qword [0x1800f37e0]
test r15, r15
jne 0x18000b102
lea rdx, str.currentScreen
lea rcx, [rbp - 0x70]
call fcn.180001390
mov rbx, rax
mov qword [rsp + 0x28], rax
mov rcx, qword [0x1800f38c8]
add rcx, 0x20
mov rdx, rax
call fcn.18006c3a0
mov r15, qword [rax]
mov rcx, rbx
call fcn.180005040
mov qword [0x1800f37e0], r15
mov rax, qword [rdi]
mov r9, qword [rax + 0x2f8]
mov r8, r15
mov rdx, r12
mov rcx, rdi
call r9
mov r15, rax
test rax, rax
jne 0x18000b125
mov r15, rsi
jmp 0x18000b128
mov rsi, rdi
mov r13, qword [0x1800f37d8]
test r13, r13
jne 0x18000b172
lea rdx, str.inGameHasFocus
lea rcx, [rsp + 0x48]
call fcn.180001390
mov rbx, rax
mov qword [rsp + 0x28], rax
mov rcx, qword [0x1800f38c8]
add rcx, 0x20
mov rdx, rax
call fcn.18006c3a0
mov r13, qword [rax]
mov rcx, rbx
call fcn.180005040
mov qword [0x1800f37d8], r13
mov rax, qword [rdi]
mov r9, qword [rax + 0x300]
mov r8, r13
mov rdx, r12
mov rcx, rdi
call r9
test al, al
jne 0x18000b28d
cmp byte [r14 + 0x45], al
je 0x18000b28d
mov rdi, qword [0x1800f3798]
test rdi, rdi
jne 0x18000b1e3
lea rdx, str.GuiInventory
lea rcx, [rbp - 0x70]
call fcn.180001390
mov rbx, rax
mov qword [rsp + 0x28], rax
mov rcx, qword [0x1800f38c8]
add rcx, 0x10
mov rdx, rax
call fcn.18006c3a0
mov rdi, qword [rax]
mov rcx, rbx
call fcn.180005040
mov qword [0x1800f3798], rdi
test rsi, rsi
je 0x18000b207
test r15, r15
je 0x18000b207
mov rax, qword [rsi]
mov r9, qword [rax + 0x100]
mov r8, rdi
mov rdx, r15
mov rcx, rsi
call r9
test al, al
jne 0x18000b275
mov rdi, qword [0x1800f3790]
test rdi, rdi
jne 0x18000b251
lea rdx, str.GuiChest
lea rcx, [rsp + 0x68]
call fcn.180001390
mov rbx, rax
mov qword [rsp + 0x28], rax
mov rcx, qword [0x1800f38c8]
add rcx, 0x10
mov rdx, rax
call fcn.18006c3a0
mov rdi, qword [rax]
mov rcx, rbx
call fcn.180005040
mov qword [0x1800f3790], rdi
test rsi, rsi
je 0x18000b28d
test r15, r15
je 0x18000b28d
mov rax, qword [rsi]
mov r9, qword [rax + 0x100]
mov r8, rdi
mov rdx, r15
mov rcx, rsi
call r9
test al, al
je 0x18000b28d
cmp byte [r14 + 0x46], 0
je 0x18000b289
lea rcx, [rbp - 0x50]
call fcn.18000ab90
test al, al
jne 0x18000b28d
mov bl, 1
jmp 0x18000b28f
xor bl, bl
test rsi, rsi
je 0x18000b2a8
test r15, r15
je 0x18000b2a8
mov rax, qword [rsi]
mov rdx, r15
mov rcx, rsi
call qword [rax + 0xb8]
cmp byte [rsp + 0x20], 0
jne 0x18000b2fb
test bl, bl
jne 0x18000b2ff
xor al, al
mov rcx, qword [rbp - 0x40]
xor rcx, rsp
call fcn.1800c6730
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
test bl, bl
je 0x18000b309
movss xmm0, dword [0x1800e1afc]
jmp 0x18000b30f
movss xmm0, dword [r14 + 0x40]
movss xmm10, dword [0x1800e1b44]
divss xmm10, xmm0
cmp byte [r14 + 0x4a], 0
je 0x18000b32f
movss xmm9, dword [0x1800e1a44]
jmp 0x18000b33c
movaps xmm9, xmm10
mulss xmm9, dword [0x1800e19f8]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
xorps xmm1, xmm1
cvtsi2sd xmm1, eax
mulsd xmm1, qword [0x1800e1a10]
movsd xmm7, qword [0x1800e1a60]
movaps xmm8, xmm7
subsd xmm8, xmm1
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
xorps xmm1, xmm1
cvtsi2sd xmm1, eax
mulsd xmm1, qword [0x1800e1a10]
subsd xmm7, xmm1
mulsd xmm7, qword [0x1800e1a90]
movaps xmm0, xmm7
call sub.api_ms_win_crt_math_l1_1_0.dll_sin
movaps xmm6, xmm0
movaps xmm0, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_log
mulsd xmm0, qword [0x1800e1b70]
xorps xmm1, xmm1
ucomisd xmm1, xmm0
ja 0x18000b3ae
sqrtsd xmm0, xmm0
jmp 0x18000b3b3
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrt
mulsd xmm6, xmm0
cvtps2pd xmm0, xmm9
mulsd xmm6, xmm0
cvtps2pd xmm1, xmm10
addsd xmm6, xmm1
cvttsd2si edi, xmm6
cmp byte [r14 + 0x48], 0
je 0x18000b476
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x288df0cb
imul r8d
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x65
sub r8d, ecx
movss xmm6, dword [0x1800e1b54]
cmp r8d, 0x5f
jl 0x18000b42a
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, xmm6
mulss xmm1, dword [0x1800e1b10]
addss xmm1, dword [0x1800e1b10]
cvttss2si edi, xmm1
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x288df0cb
imul r8d
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x65
sub r8d, ecx
cmp r8d, 0x63
jl 0x18000b476
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, xmm6
mulss xmm1, dword [0x1800e1b1c]
addss xmm1, dword [0x1800e1b1c]
cvttss2si edi, xmm1
xor r9d, r9d
xor r8d, r8d
mov edx, 0x201
mov rsi, qword [rsp + 0x40]
mov rcx, rsi
call qword [sym.imp.USER32.dll_PostMessageA]
cmp byte [r14 + 0x4b], 0
je 0x18000b4b7
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ebx, eax
mov eax, 0x66666667
imul ebx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea ecx, [rdx + rdx*4]
sub ebx, ecx
inc ebx
jmp 0x18000b4d7
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ebx, eax
mov eax, 0x2e8ba2e9
imul ebx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xb
sub ebx, eax
add ebx, 0xa
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_Sleep]
sub edi, ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x202
mov rcx, rsi
call qword [sym.imp.USER32.dll_PostMessageA]
test edi, edi
jle 0x18000b501
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
jmp 0x18000b2b5