Function at 0x14005b2b0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x380]
sub rsp, 0x480
mov rax, qword [0x140173b40]
xor rax, rsp
mov qword [rbp + 0x370], rax
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rcx]
call fcn.14000f910
test eax, eax
jle 0x14005bca3
lea rbx, [0x140000000]
xor esi, esi
nop dword [rax]
mov rax, qword [rsp + 0x68]
mov qword [rdi + 0x18], rax
mov ecx, dword [rsp + 0x60]
sub ecx, 1
je 0x14005b5cd
sub ecx, 1
je 0x14005b59d
cmp ecx, 1
je 0x14005b345
lea rcx, str._SERVER_:UNHANDLED_n
call fcn.14007d590
jmp 0x14005b658
mov rdx, qword [rsp + 0x78]
cmp qword [rdx + 0x18], 3
jbe 0x14005b55a
mov rax, qword [rdx + 0x10]
movzx r8d, byte [rax]
mov ecx, r8d
sub ecx, 2
je 0x14005b50a
sub ecx, 1
je 0x14005b4bb
sub ecx, 1
je 0x14005b38e
sub ecx, 2
je 0x14005bca3
cmp ecx, 2
je 0x14005bca3
jmp 0x14005b55d
mov rcx, rdx
call fcn.140099160
mov r14, rax
mov rcx, qword [rsp + 0x78]
call fcn.1400991b0
test r14, r14
je case.0x14005b3d4.6
test rax, rax
je case.0x14005b3d4.6
movzx ecx, byte [r14]
cmp ecx, 0x1a
ja case.0x14005b3d4.6
movzx ecx, byte [rbx + rcx + 0x5bcec]
mov edx, dword [rbx + rcx*4 + 0x5bcd0]
add rdx, rbx
jmp rdx
mov rdx, r14
mov rcx, rax
call fcn.14006e5c0
test al, al
je case.0x14005b3d4.6
mov rcx, qword [rsp + 0x78]
call fcn.14000e3b0
jmp 0x14005bca3
cmp byte [0x140176fa3], sil
je case.0x14005b3d4.6
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jne 0x14005b3e9
jmp case.0x14005b3d4.6
mov cl, 1
movsxd rax, dword [r14 + 0x14]
cmp eax, 0x704
je 0x14005b439
cmp eax, 0xf2
je 0x14005b439
movzx ecx, cl
cmp eax, 0x1c14
cmovne ecx, esi
cmp byte [0x140176fa0], sil
je 0x14005b44a
test cl, cl
je 0x14005b675
mov rcx, qword [0x140178ef0]
add rcx, 0x5de8
mov edx, eax
call fcn.1400566c0
test eax, eax
je 0x14005bca3
mov rcx, r14
call fcn.14007adc0
test al, al
jne 0x14005b3e9
jmp case.0x14005b3d4.6
mov dword [r14 + 0x20], 0x447a0000
mov dword [r14 + 0x24], 0x437a0000
mov dword [r14 + 0x18], 0x42800000
mov dword [r14 + 0x1c], 0x42800000
mov byte [r14 + 2], sil
mov dword [r14 + 4], esi
jmp case.0x14005b3d4.6
cmp byte [0x140177d21], sil
jne 0x14005bca3
jmp case.0x14005b3d4.6
mov rcx, rdx
call fcn.140099200
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], sil
jne 0x14005b4e0
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400089e0
lea rcx, [rsp + 0x30]
call fcn.140036cc0
test al, al
jne 0x14005b3e9
jmp case.0x14005b3d4.6
mov rcx, rdx
call fcn.140099200
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], sil
jne 0x14005b530
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.1400089e0
lea rcx, [rsp + 0x30]
call fcn.140037170
test al, al
jne 0x14005b3e9
jmp case.0x14005b3d4.6
mov r8d, esi
mov edx, r8d
lea rcx, str._SERVER_:Got_unknown_packet_of_type__d._n
call fcn.14007d590
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x14005bca3
cmp qword [rdi + 8], rsi
je 0x14005bca3
mov r8, qword [rsp + 0x78]
xor edx, edx
call fcn.14000f430
mov rcx, qword [rdi + 8]
call fcn.14000f8e0
jmp 0x14005b658
cmp byte [0x140177d21], sil
jne 0x14005bca3
cmp byte [0x140177d1a], sil
je 0x14005b658
xor edx, edx
mov rcx, rdi
call fcn.1400349b0
mov byte [0x140177d1a], sil
jmp 0x14005bca3
lea rcx, str._SERVER_:Connecting_to_server._n
call fcn.14007d590
lea rbx, [rdi + 0x5e40]
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x14005b5ed
mov rdx, qword [rbx]
lea rcx, [rbp - 0x80]
call fcn.140012400
movzx eax, word [rdi + 0x5e60]
mov word [rbp - 0x7c], ax
cmp qword [rbx + 0x18], 0xf
jbe 0x14005b60b
mov rbx, qword [rbx]
mov r8, rbx
mov edx, dword [rdi + 0x5e60]
lea rcx, str._SERVER_:port_is__d_and_server_is__s_n
call fcn.14007d590
mov rcx, rdi
call fcn.14006dc50
test al, al
je 0x14005bc97
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rbp - 0x80]
mov rcx, qword [rdi + 8]
call fcn.14000dc00
mov qword [rdi + 0x10], rax
test rax, rax
je 0x14005bc8e
lea rbx, [0x140000000]
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rdi]
call fcn.14000f910
test eax, eax
jg 0x14005b310
jmp 0x14005bca3
mov rcx, qword [0x140178ef0]
mov qword [rbp - 0x80], rcx
imul rdx, rax, 0x220
add rdx, qword [0x140176f90]
lea rcx, [rbp + 0x150]
call fcn.14001ea50
nop
lea rdi, [rbp + 0x180]
cmp qword [rbp + 0x198], 0xf
cmova rdi, qword [rbp + 0x180]
mov r15, qword [rbp + 0x190]
cmp r15, 9
jb 0x14005b727
lea rsi, [r15 + rdi]
lea r8, [rsi - 8]
sub r8, rdi
mov edx, 0x41
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x14005b727
nop
mov r8d, 9
lea rdx, str.Ancestral
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14005b71a
inc rbx
lea r8, [rsi - 8]
sub r8, rbx
mov edx, 0x41
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x14005b6e0
jmp 0x14005b727
sub rbx, rdi
cmp rbx, 0xffffffffffffffff
jne 0x14005b861
lea rdi, [rbp + 0x180]
cmp qword [rbp + 0x198], 0xf
cmova rdi, qword [rbp + 0x180]
cmp r15, 7
jb 0x14005b7b7
lea rsi, [r15 + rdi]
lea r8, [rsi - 6]
sub r8, rdi
mov edx, 0x53
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x14005b7b7
nop dword [rax]
nop dword [rax + rax]
mov r8d, 7
lea rdx, str.Samille
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14005b7aa
inc rbx
lea r8, [rsi - 6]
sub r8, rbx
mov edx, 0x53
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x14005b770
jmp 0x14005b7b7
sub rbx, rdi
cmp rbx, 0xffffffffffffffff
jne 0x14005b861
lea rdi, [rbp + 0x180]
cmp qword [rbp + 0x198], 0xf
cmova rdi, qword [rbp + 0x180]
cmp r15, 7
jb 0x14005b838
lea rsi, [r15 + rdi]
lea r8, [rsi - 6]
sub r8, rdi
mov edx, 0x43
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x14005b838
nop dword [rax]
nop dword [rax + rax]
mov r8d, 7
lea rdx, str.Chakram
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14005b858
inc rbx
lea r8, [rsi - 6]
sub r8, rbx
mov edx, 0x43
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x14005b800
movsx rax, byte [rbp + 0x1d8]
cmp eax, 8
ja case.0x14005b856.0
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0x5bd08]
add rcx, rdx
jmp rcx
sub rbx, rdi
cmp rbx, 0xffffffffffffffff
je 0x14005b838
mov eax, dword [rbp + 0x178]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x140176fc8]
jp 0x14005b88d
jne 0x14005b88d
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140176fc8], xmm0
jmp 0x14005bab9
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140176fc8], xmm0
jmp 0x14005bab9
mov eax, dword [rbp + 0x178]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x140176fa4]
jp 0x14005baa5
jne 0x14005baa5
xorps xmm0, xmm0
jmp 0x14005baad
mov eax, dword [rbp + 0x178]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x140176fa8]
jp 0x14005b8fa
jne 0x14005b8fa
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140176fa8], xmm0
jmp 0x14005bab9
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140176fa8], xmm0
jmp 0x14005bab9
mov eax, dword [rbp + 0x178]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x140176fac]
jp 0x14005b93f
jne 0x14005b93f
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140176fac], xmm0
jmp 0x14005bab9
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140176fac], xmm0
jmp 0x14005bab9
mov eax, dword [rbp + 0x178]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x140176fb0]
jp 0x14005b984
jne 0x14005b984
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140176fb0], xmm0
jmp 0x14005bab9
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140176fb0], xmm0
jmp 0x14005bab9
mov eax, dword [rbp + 0x178]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x140176fb4]
jp 0x14005b9c9
jne 0x14005b9c9
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140176fb4], xmm0
jmp 0x14005bab9
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140176fb4], xmm0
jmp 0x14005bab9
mov eax, dword [rbp + 0x178]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x140176fb8]
jp 0x14005ba0e
jne 0x14005ba0e
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140176fb8], xmm0
jmp 0x14005bab9
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140176fb8], xmm0
jmp 0x14005bab9
mov eax, dword [rbp + 0x178]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x140176fbc]
jp 0x14005ba50
jne 0x14005ba50
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140176fbc], xmm0
jmp 0x14005bab9
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140176fbc], xmm0
jmp 0x14005bab9
mov eax, dword [rbp + 0x178]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x140176fc4]
jp 0x14005ba8f
jne 0x14005ba8f
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140176fc4], xmm0
jmp 0x14005bab9
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140176fc4], xmm0
jmp 0x14005bab9
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x140176fa4], xmm0
mov ecx, dword [r14 + 0x14]
call fcn.1400568c0
test eax, eax
je 0x14005bacc
mov dword [0x1401710b0], eax
xorps xmm1, xmm1
movss xmm0, dword [0x140176fbc]
ucomiss xmm0, xmm1
jp 0x14005bade
je 0x14005bae5
mov byte [0x140177048], 1
xor r8d, r8d
mov rbx, qword [rbp - 0x80]
mov edx, dword [rbx + 0x5f68]
mov rcx, qword [rsp + 0x50]
call fcn.14006b730
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.1400089e0
nop
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.14001f230
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14005bb74
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005bb6f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14005bb6f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401012e8
mov dword [rbp - 0x30], 4
movss xmm0, dword [0x140176fcc]
movss dword [rbp - 0x20], xmm0
movss xmm1, dword [0x140176fa8]
movss dword [rbp - 0x1c], xmm1
movss xmm0, dword [0x140176fac]
movss dword [rbp - 0x18], xmm0
mov dword [rbp + 0x10], 4
movss xmm1, dword [0x140176fb0]
movss dword [rbp + 0x20], xmm1
mov dword [rbp + 0x24], 0
movss xmm0, dword [0x140176fb8]
movss dword [rbp + 0x28], xmm0
mov dword [rbp + 0x50], 4
movss xmm1, dword [0x140176fbc]
movss dword [rbp + 0x60], xmm1
movss xmm0, dword [0x140176fa4]
movss dword [rbp + 0x64], xmm0
movss xmm1, dword [0x140176fc4]
movss dword [rbp + 0x68], xmm1
mov dword [rbp + 0x90], 9
mov dword [rbp + 0xa0], 0x647296ff
mov dword [rbp + 0xd0], 4
movss xmm0, dword [0x140176fc8]
movss dword [rbp + 0xe0], xmm0
mov qword [rbp + 0xe4], 0x3f800000
mov qword [rsp + 0x50], 1
lea rcx, [rsp + 0x50]
call fcn.14001ae10
mov dword [rsp + 0x20], 0xffffffff
mov r9d, dword [rbx + 0x5f68]
lea r8, [rbp - 0x70]
mov dl, 1
mov rcx, qword [0x140178ef0]
call fcn.14006b420
nop
lea r9, [fcn.140021820]
mov edx, 0x40
lea r8d, [rdx - 0x39]
lea rcx, [rbp - 0x70]
call fcn.1401014bc
nop
lea rcx, [rbp + 0x150]
call fcn.140021210
jmp 0x14005bca3
lea rcx, str._SERVER_:Failed_to_connect_to_real_server._n
jmp 0x14005bc9e
lea rcx, str._SERVER_:Failed_to_setup_client_when_trying_to_connect_to_server__n
call fcn.14007d590
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140101380
lea r11, [rsp + 0x480]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret