Function at 0x140089650
Capabilities:
Log keystrokes via polling

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x3a8]
sub rsp, 0x480
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x14013bf80]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov r12, rcx
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, qword [rcx]
call fcn.140012de0
test eax, eax
jle 0x140089945
lea rsi, [0x140000000]
xor ebx, ebx
nop word [rax + rax]
mov rax, qword [rsp + 0x60]
mov qword [r12 + 0x18], rax
mov ecx, dword [rsp + 0x58]
sub ecx, 1
je 0x140089975
sub ecx, 1
je 0x140089925
cmp ecx, 1
je 0x1400896e6
lea rcx, str._S_UNHANDLED_n
call fcn.1400b1a60
jmp 0x140089981
mov rdx, qword [rsp + 0x70]
cmp qword [rdx + 0x18], 3
jbe 0x1400898ea
mov rax, qword [rdx + 0x10]
movzx r8d, byte [rax]
mov ecx, r8d
sub ecx, 2
je 0x14008989d
sub ecx, 1
je 0x140089852
sub ecx, 1
je 0x14008972f
sub ecx, 2
je 0x140089945
cmp ecx, 2
je 0x140089945
jmp 0x1400898ed
mov rcx, rdx
call fcn.1400cb260
mov rdi, rax
mov rcx, qword [rsp + 0x70]
call fcn.1400cb2b0
test rdi, rdi
je case.0x140089774.6
test rax, rax
je case.0x140089774.6
movzx ecx, byte [rdi]
cmp ecx, 0x1a
ja case.0x140089774.6
movzx ecx, byte [rsi + rcx + 0x89fb4]
mov edx, dword [rsi + rcx*4 + 0x89f98]
add rdx, rsi
jmp rdx
mov rdx, rdi
mov rcx, rax
call fcn.14009e6f0
test al, al
je case.0x140089774.6
mov rcx, qword [rsp + 0x70]
call fcn.140011880
jmp 0x140089945
cmp byte [0x14013f612], bl
je case.0x140089774.6
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x140089789
jmp case.0x140089774.6
mov cl, 1
movsxd rax, dword [rdi + 0x14]
cmp eax, 0x704
je 0x1400897d8
cmp eax, 0xf2
je 0x1400897d8
movzx ecx, cl
cmp eax, 0x1c14
cmovne ecx, ebx
cmp byte [0x14013f5e1], bl
je 0x1400897e8
test cl, cl
je 0x14008999c
mov rcx, qword [0x140141b28]
add rcx, 0x5de8
mov edx, eax
call fcn.1400834f0
test eax, eax
je 0x140089945
mov rcx, rdi
call fcn.1400ae2e0
test al, al
jne 0x140089789
jmp case.0x140089774.6
mov dword [rdi + 0x20], 0x447a0000
mov dword [rdi + 0x24], 0x437a0000
mov dword [rdi + 0x18], 0x42800000
mov dword [rdi + 0x1c], 0x42800000
mov byte [rdi + 2], bl
mov dword [rdi + 4], ebx
jmp case.0x140089774.6
cmp byte [0x1401407e3], bl
jne 0x140089945
jmp case.0x140089774.6
mov rcx, rdx
call fcn.1400cb300
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], bl
jne 0x140089873
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140017d50
lea rcx, [rsp + 0x30]
call fcn.140047830
test al, al
jne 0x140089789
jmp case.0x140089774.6
mov rcx, rdx
call fcn.1400cb300
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbx
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], bl
jne 0x1400898c0
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.140017d50
lea rcx, [rsp + 0x30]
call fcn.140047ab0
test al, al
jne 0x140089789
jmp case.0x140089774.6
mov r8d, ebx
mov edx, r8d
lea rcx, str._S_Got_unknown_packet_of_type__d._n
call fcn.1400b1a60
mov rcx, qword [r12 + 0x10]
test rcx, rcx
je 0x140089945
cmp qword [r12 + 8], rbx
je 0x140089945
mov r8, qword [rsp + 0x70]
xor edx, edx
call fcn.140012900
mov rcx, qword [r12 + 8]
call fcn.140012db0
jmp 0x140089981
cmp byte [0x1401407e3], bl
jne 0x140089945
cmp byte [0x1401407e0], bl
je 0x140089981
xor edx, edx
mov rcx, r12
call fcn.140042eb0
mov byte [0x1401407e0], bl
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.1400d3570
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov rcx, r12
call fcn.14003d270
test al, al
je 0x140089945
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, qword [r12]
call fcn.140012de0
test eax, eax
jg 0x1400896b0
jmp 0x140089945
mov rcx, qword [0x140141b28]
mov qword [rsp + 0x50], rcx
imul rdx, rax, 0x220
add rdx, qword [0x14013f7e8]
lea rcx, [rbp - 0x80]
call fcn.140027700
nop
lea rsi, [rbp - 0x50]
cmp qword [rbp - 0x38], 0xf
cmova rsi, qword [rbp - 0x50]
mov r15, qword [rbp - 0x40]
cmp r15, 9
jb 0x140089a47
lea r14, [r15 + rsi]
lea r8, [r14 - 8]
sub r8, rsi
mov edx, 0x41
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x140089a47
nop dword [rax + rax]
mov r8d, 9
lea rdx, str.Ancestral
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140089a3a
inc rbx
lea r8, [r14 - 8]
sub r8, rbx
mov edx, 0x41
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140089a00
jmp 0x140089a47
sub rbx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x140089b5e
lea rsi, [rbp - 0x50]
mov rax, qword [rbp - 0x38]
cmp rax, 0xf
cmova rsi, qword [rbp - 0x50]
cmp r15, 7
jb 0x140089acb
lea r14, [r15 + rsi]
lea r8, [r14 - 6]
sub r8, rsi
mov edx, 0x53
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x140089ac7
nop
mov r8d, 7
lea rdx, str.Samille
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140089aba
inc rbx
lea r8, [r14 - 6]
sub r8, rbx
mov edx, 0x53
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140089a80
jmp 0x140089ac7
sub rbx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x140089b5e
mov rax, qword [rbp - 0x38]
lea rsi, [rbp - 0x50]
cmp rax, 0xf
cmova rsi, qword [rbp - 0x50]
cmp r15, 7
jb 0x140089b38
lea r14, [r15 + rsi]
lea r8, [r14 - 6]
sub r8, rsi
mov edx, 0x43
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x140089b38
nop
mov r8d, 7
lea rdx, str.Chakram
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140089b55
inc rbx
lea r8, [r14 - 6]
sub r8, rbx
mov edx, 0x43
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140089b00
movsx rax, byte [rbp + 8]
cmp eax, 8
ja case.0x140089b53.0
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x89fd0]
add rcx, rdx
jmp rcx
sub rbx, rsi
cmp rbx, 0xffffffffffffffff
je 0x140089b38
mov eax, dword [rbp - 0x58]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x14013f608]
jp 0x140089b87
jne 0x140089b87
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14013f608], xmm0
jmp 0x140089d9b
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14013f608], xmm0
jmp 0x140089d9b
mov eax, dword [rbp - 0x58]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x14013f5e4]
jp 0x140089d87
jne 0x140089d87
xorps xmm0, xmm0
jmp 0x140089d8f
mov eax, dword [rbp - 0x58]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x14013f5e8]
jp 0x140089bee
jne 0x140089bee
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14013f5e8], xmm0
jmp 0x140089d9b
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14013f5e8], xmm0
jmp 0x140089d9b
mov eax, dword [rbp - 0x58]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x14013f5ec]
jp 0x140089c30
jne 0x140089c30
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14013f5ec], xmm0
jmp 0x140089d9b
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14013f5ec], xmm0
jmp 0x140089d9b
mov eax, dword [rbp - 0x58]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x14013f5f0]
jp 0x140089c72
jne 0x140089c72
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14013f5f0], xmm0
jmp 0x140089d9b
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14013f5f0], xmm0
jmp 0x140089d9b
mov eax, dword [rbp - 0x58]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x14013f5f4]
jp 0x140089cb4
jne 0x140089cb4
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14013f5f4], xmm0
jmp 0x140089d9b
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14013f5f4], xmm0
jmp 0x140089d9b
mov eax, dword [rbp - 0x58]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x14013f5f8]
jp 0x140089cf6
jne 0x140089cf6
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14013f5f8], xmm0
jmp 0x140089d9b
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14013f5f8], xmm0
jmp 0x140089d9b
mov eax, dword [rbp - 0x58]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x14013f5fc]
jp 0x140089d35
jne 0x140089d35
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14013f5fc], xmm0
jmp 0x140089d9b
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14013f5fc], xmm0
jmp 0x140089d9b
mov eax, dword [rbp - 0x58]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x14013f604]
jp 0x140089d71
jne 0x140089d71
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14013f604], xmm0
jmp 0x140089d9b
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14013f604], xmm0
jmp 0x140089d9b
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14013f5e4], xmm0
mov ecx, dword [rdi + 0x14]
call fcn.1400837d0
test eax, eax
je 0x140089dad
mov dword [0x1401390f8], eax
xorps xmm6, xmm6
movss xmm0, dword [0x14013f5fc]
ucomiss xmm0, xmm6
jp 0x140089dbf
je 0x140089dc6
mov byte [0x14013f638], 1
xor r8d, r8d
mov rbx, qword [rsp + 0x50]
mov edx, dword [rbx + 0x5f9c]
mov rcx, r12
call fcn.14009b840
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov r8d, reloc.WS2_32.dll_listen
lea rdx, str.OnSetClothing
lea rcx, [rsp + 0x30]
call fcn.140017d50
nop
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x1a0]
call fcn.140028230
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140089e57
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140089e52
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140089e52
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400d3458
mov dword [rbp + 0x1e0], 4
movss xmm0, dword [0x14013f5e4]
movss dword [rbp + 0x1f0], xmm0
movss xmm1, dword [0x14013f5e8]
movss dword [rbp + 0x1f4], xmm1
movss xmm0, dword [0x14013f5ec]
movss dword [rbp + 0x1f8], xmm0
mov dword [rbp + 0x220], 4
movss xmm1, dword [0x14013f5f0]
movss dword [rbp + 0x230], xmm1
movss xmm0, dword [0x14013f5f4]
movss dword [rbp + 0x234], xmm0
movss xmm1, dword [0x14013f5f8]
movss dword [rbp + 0x238], xmm1
mov dword [rbp + 0x260], 4
movss xmm0, dword [0x14013f5fc]
movss dword [rbp + 0x270], xmm0
movss xmm1, dword [0x14013f600]
movss dword [rbp + 0x274], xmm1
movss xmm0, dword [0x14013f604]
movss dword [rbp + 0x278], xmm0
mov dword [rbp + 0x2a0], 9
mov dword [rbp + 0x2b0], 0x647296ff
movss xmm1, dword [0x1401144a0]
mov dword [rbp + 0x2e0], 4
movss xmm0, dword [0x14013f608]
unpcklps xmm0, xmm1
movsd qword [rbp + 0x2f0], xmm0
movss dword [rbp + 0x2f8], xmm6
mov dword [rsp + 0x20], 0xffffffff
mov r9d, dword [rbx + 0x5f9c]
lea r8, [rbp + 0x1a0]
mov dl, 1
mov rcx, qword [0x140141b28]
call fcn.14009b530
nop
lea r9, [fcn.14002b060]
mov edx, 0x40
lea r8d, [rdx - 0x39]
lea rcx, [rbp + 0x1a0]
call fcn.1400d362c
nop
lea rcx, [rbp - 0x80]
call fcn.14002aa50
jmp 0x140089945