Function at 0x1400bd870
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 r14
push r15
lea rbp, [rax - 0x338]
sub rsp, 0x420
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x140194d38]
xor rax, rsp
mov qword [rbp + 0x300], rax
mov rbx, rcx
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, qword [rcx]
call fcn.14000b550
test eax, eax
jle 0x1400be367
lea r14, [0x140000000]
xor esi, esi
nop dword [rax + rax]
mov ecx, dword [rsp + 0x68]
sub ecx, 1
je 0x1400bdb3c
sub ecx, 1
je 0x1400bdb0c
cmp ecx, 1
je 0x1400bd8fc
lea rcx, str._SERVER_:_UNHANDLED_n
call fcn.1400bb170
jmp 0x1400bdc03
mov rdx, qword [rbp - 0x80]
cmp qword [rdx + 0x18], 3
jbe 0x1400bdaca
mov rax, qword [rdx + 0x10]
movzx r8d, byte [rax]
mov ecx, r8d
sub ecx, 2
je 0x1400bda7a
sub ecx, 1
je 0x1400bda2e
sub ecx, 1
je 0x1400bd944
sub ecx, 2
je 0x1400be367
cmp ecx, 2
je 0x1400be367
jmp 0x1400bdacd
mov rcx, rdx
call fcn.1400c00c0
mov rdi, rax
test rax, rax
je 0x1400bdadc
movzx r8d, byte [rax]
cmp r8d, 0x1a
ja case.0x1400bd97a.5
movzx ecx, byte [r14 + r8 + 0xbe3b0]
mov edx, dword [r14 + rcx*4 + 0xbe398]
add rdx, r14
jmp rdx
test dword [rax + 4], 0xc00
jne 0x1400be367
mov rcx, rdi
call fcn.1400a9040
test al, al
je 0x1400bdadc
mov rcx, qword [rbp - 0x80]
call fcn.140009ff0
jmp 0x1400be367
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x1400bdadc
cmp byte [reloc.WS2_32.dll_accept], sil
jne 0x1400be367
jmp 0x1400bdadc
mov al, 1
mov ecx, dword [rdi + 0x14]
cmp ecx, 0x704
je 0x1400bd9ee
cmp ecx, 0xf2
je 0x1400bd9ee
movzx eax, al
cmp ecx, 0x1c14
cmovne eax, esi
cmp byte [0x14019d2d8], sil
je case.0x1400bd97a.1
test al, al
je 0x1400bdc20
mov rcx, rdi
call fcn.1400b6ea0
test al, al
jne 0x1400bd999
jmp 0x1400bdadc
cmp byte [0x14019d35b], sil
jne 0x1400be367
jmp 0x1400bdadc
lea rcx, str._SERVER_:_gamepacket_type:__d_n
jmp 0x1400bdad4
mov rcx, rdx
call fcn.1400c0160
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov r8, 0xffffffffffffffff
nop
inc r8
cmp byte [rax + r8], sil
jne 0x1400bda50
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000ff90
lea rcx, [rsp + 0x30]
call fcn.140049940
test al, al
jne 0x1400bd999
jmp 0x1400bdadc
mov rcx, rdx
call fcn.1400c0160
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 0x1400bdaa0
mov rdx, rax
lea rcx, [rsp + 0x30]
call fcn.14000ff90
lea rcx, [rsp + 0x30]
call fcn.14004a2a0
test al, al
jne 0x1400bd999
jmp 0x1400bdadc
mov r8d, esi
lea rcx, str._SERVER_:_Got_unknown_packet_of_type__d._n
mov edx, r8d
call fcn.1400bb170
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400be367
cmp qword [rbx + 8], rsi
je 0x1400be367
mov r8, qword [rbp - 0x80]
xor edx, edx
call fcn.14000b070
mov rcx, qword [rbx + 8]
call fcn.14000b520
jmp 0x1400bdc03
cmp byte [0x14019d35b], sil
jne 0x1400be367
cmp byte [0x14019d358], sil
je 0x1400bdc03
xor edx, edx
mov rcx, rbx
call fcn.1400bcee0
mov byte [0x14019d358], sil
jmp 0x1400be367
mov rax, qword [rsp + 0x70]
mov qword [rbx + 0x18], rax
lea rcx, str._SERVER_:_Connecting_to_server._n
call fcn.1400bb170
lea rdi, [rbx + 0x30]
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400bdb62
mov rdx, qword [rdi]
lea rcx, [rbp - 0x78]
call fcn.14000e060
movzx eax, word [rbx + 0x50]
mov word [rbp - 0x74], ax
cmp qword [rdi + 0x18], 0x10
jb 0x1400bdb7d
mov rdi, qword [rdi]
mov r8, rdi
mov edx, dword [rbx + 0x50]
lea rcx, str._SERVER_:_port_is__d_and_server_is__s_n
call fcn.1400bb170
cmp byte [0x14019d314], sil
je 0x1400bdbd2
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Recconecting...
lea rcx, [rsp + 0x30]
call fcn.14000ff90
lea rcx, [rsp + 0x30]
call fcn.1400a3ee0
mov byte [0x14019d314], sil
mov rcx, rbx
call fcn.1400bfa70
test al, al
je 0x1400be35b
xor r9d, r9d
lea r8d, [r9 + 2]
lea rdx, [rbp - 0x78]
mov rcx, qword [rbx + 8]
call fcn.140009840
mov qword [rbx + 0x10], rax
test rax, rax
je 0x1400be352
xor r8d, r8d
lea rdx, [rsp + 0x68]
mov rcx, qword [rbx]
call fcn.14000b550
test eax, eax
jle 0x1400be367
jmp 0x1400bd8d0
mov dword [rsp + 0x58], ecx
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x30]
lea rcx, [0x14019e080]
call fcn.140016420
mov rdx, qword [rax]
add rdx, 0x18
lea rcx, [rbp - 0x70]
call fcn.140023630
nop
lea rsi, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rsi, qword [rbp - 0x68]
mov r14, qword [rbp - 0x58]
cmp r14, 9
jb 0x1400bdcd7
lea r15, [r14 + rsi]
lea r8, [r15 - 8]
sub r8, rsi
mov edx, 0x41
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1400bdcd7
nop dword [rax]
nop word [rax + rax]
mov r8d, 9
lea rdx, str.Ancestral
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400bdcca
inc rbx
lea r8, [r15 - 8]
sub r8, rbx
mov edx, 0x41
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x1400bdc90
jmp 0x1400bdcd7
sub rbx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x1400bddf1
lea rsi, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rsi, qword [rbp - 0x68]
cmp r14, 7
jb 0x1400bdd57
lea r15, [r14 + rsi]
lea r8, [r15 - 6]
sub r8, rsi
mov edx, 0x53
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1400bdd57
nop dword [rax + rax]
mov r8d, 7
lea rdx, str.Samille
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400bdd4a
inc rbx
lea r8, [r15 - 6]
sub r8, rbx
mov edx, 0x53
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x1400bdd10
jmp 0x1400bdd57
sub rbx, rsi
cmp rbx, 0xffffffffffffffff
jne 0x1400bddf1
lea rsi, [rbp - 0x68]
cmp qword [rbp - 0x50], 0x10
cmovae rsi, qword [rbp - 0x68]
cmp r14, 7
jb 0x1400bddcb
lea r8, [r14 - 6]
add r8, rsi
sub r8, rsi
mov edx, 0x43
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x1400bddcb
nop word [rax + rax]
mov r8d, 7
lea rdx, str.Chakram
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x1400bdde8
inc rbx
lea r8, [r14 - 6]
add r8, rsi
sub r8, rbx
mov edx, 0x43
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x1400bdd90
movsx rax, byte [rbp - 0x10]
cmp eax, 8
ja case.0x1400bdde6.0
lea rdx, [0x140000000]
mov ecx, dword [rdx + rax*4 + 0xbe3cc]
add rcx, rdx
jmp rcx
sub rbx, rsi
cmp rbx, 0xffffffffffffffff
je 0x1400bddcb
mov eax, dword [rbp - 0x70]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x14019d2c8]
jp 0x1400bde1a
jne 0x1400bde1a
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14019d2c8], xmm0
jmp 0x1400be02e
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14019d2c8], xmm0
jmp 0x1400be02e
mov eax, dword [rbp - 0x70]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x14019d2a4]
jp 0x1400be01a
jne 0x1400be01a
xorps xmm0, xmm0
jmp 0x1400be022
mov eax, dword [rbp - 0x70]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x14019d2a8]
jp 0x1400bde81
jne 0x1400bde81
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14019d2a8], xmm0
jmp 0x1400be02e
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14019d2a8], xmm0
jmp 0x1400be02e
mov eax, dword [rbp - 0x70]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x14019d2ac]
jp 0x1400bdec3
jne 0x1400bdec3
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14019d2ac], xmm0
jmp 0x1400be02e
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14019d2ac], xmm0
jmp 0x1400be02e
mov eax, dword [rbp - 0x70]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x14019d2b0]
jp 0x1400bdf05
jne 0x1400bdf05
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14019d2b0], xmm0
jmp 0x1400be02e
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14019d2b0], xmm0
jmp 0x1400be02e
mov eax, dword [rbp - 0x70]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x14019d2b4]
jp 0x1400bdf47
jne 0x1400bdf47
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14019d2b4], xmm0
jmp 0x1400be02e
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14019d2b4], xmm0
jmp 0x1400be02e
mov eax, dword [rbp - 0x70]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x14019d2b8]
jp 0x1400bdf89
jne 0x1400bdf89
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14019d2b8], xmm0
jmp 0x1400be02e
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14019d2b8], xmm0
jmp 0x1400be02e
mov eax, dword [rbp - 0x70]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x14019d2bc]
jp 0x1400bdfc8
jne 0x1400bdfc8
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14019d2bc], xmm0
jmp 0x1400be02e
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14019d2bc], xmm0
jmp 0x1400be02e
mov eax, dword [rbp - 0x70]
movd xmm0, eax
cvtdq2ps xmm0, xmm0
ucomiss xmm0, dword [0x14019d2c4]
jp 0x1400be004
jne 0x1400be004
xorps xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14019d2c4], xmm0
jmp 0x1400be02e
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14019d2c4], xmm0
jmp 0x1400be02e
movd xmm0, eax
cvtdq2pd xmm0, xmm0
cvtpd2ps xmm0, xmm0
movss dword [0x14019d2a4], xmm0
mov ecx, dword [rdi + 0x14]
call fcn.140085190
test eax, eax
je 0x1400be048
mov ecx, dword [rdi + 0x14]
call fcn.140085190
mov dword [0x140190134], eax
xorps xmm6, xmm6
movss xmm0, dword [0x14019d2bc]
ucomiss xmm0, xmm6
jp 0x1400be063
jne 0x1400be063
movzx ecx, byte [0x14019d313]
jmp 0x1400be06b
mov cl, 1
mov byte [0x14019d313], cl
mov rax, qword [0x14019d398]
mov ebx, dword [rax + 0x160]
movzx edi, cl
add edi, edi
movzx eax, byte [0x14019d312]
or edi, eax
mov dword [rsp + 0x5c], 0x447a0000
mov dword [rsp + 0x60], 0x43c80000
mov dword [rsp + 0x50], 0x437a0000
mov dword [rbp - 0x78], 0x447a0000
mov ecx, Ordinal_60
call fcn.1401270ec
mov rsi, rax
xor ecx, ecx
mov qword [rax + 8], rcx
mov dword [rax + 0x10], ecx
mov dword [rax + 0x28], ecx
mov dword [rax + 0x34], ecx
mov dword [rax], reloc.WS2_32.dll_sendto
mov dword [rax + 4], ebx
mov dword [rax + 0x14], edi
mov eax, dword [rsp + 0x5c]
mov dword [rsi + 0x18], eax
mov eax, dword [rsp + 0x60]
mov dword [rsi + 0x1c], eax
mov eax, dword [rsp + 0x50]
mov dword [rsi + 0x20], eax
mov eax, dword [rbp - 0x78]
mov dword [rsi + 0x24], eax
mov qword [rsi + 0x2c], rcx
movzx eax, word [0x140190134]
mov word [rsi + 1], ax
movzx eax, byte [0x140190136]
mov byte [rsi + 3], al
mov eax, 0x80
mov ecx, 0xff
cmp byte [0x14019d2a0], 0
cmovne eax, ecx
mov byte [rsi + 2], al
mov byte [rsi + 3], al
mov dword [rbp - 0x78], 0x43480000
mov eax, dword [rbp - 0x78]
mov dword [rsi + 0x10], eax
mov rax, qword [0x14019d398]
mov rbx, qword [rax + 0x18]
test rbx, rbx
je 0x1400be184
mov edx, 0x3d
xor ecx, ecx
lea r8d, [rdx - 0x3c]
call fcn.140009f40
mov rcx, qword [rax + 0x10]
mov dword [rcx], 4
mov rcx, qword [rax + 0x10]
movups xmm0, xmmword [rsi]
movups xmmword [rcx + 4], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rcx + 0x14], xmm1
movups xmm0, xmmword [rsi + 0x20]
movups xmmword [rcx + 0x24], xmm0
movsd xmm1, qword [rsi + 0x30]
movsd qword [rcx + 0x34], xmm1
mov r8, rax
xor edx, edx
mov rcx, rbx
call fcn.14000b070
mov edx, 1
mov rcx, rsi
call fcn.140126e48
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], reloc.WS2_32.dll_listen
mov qword [rsp + 0x48], reloc.WS2_32.dll_ntohs
movsd xmm0, qword [str.OnSetClothing]
movsd qword [rsp + 0x30], xmm0
mov eax, dword [0x1401503e8]
mov dword [rsp + 0x38], eax
movzx eax, byte [0x1401503ec]
mov byte [rsp + 0x3c], al
mov byte [rsp + 0x3d], 0
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x140]
call fcn.140025160
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0x10
jb 0x1400be225
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400be220
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400be220
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140126e48
movss xmm1, dword [0x14019d2a8]
movss xmm2, dword [0x14019d2ac]
mov dword [rbp + 0x180], 4
movss xmm0, dword [0x14019d2a4]
unpcklps xmm0, xmm1
movsd qword [rbp + 0x190], xmm0
movss dword [rbp + 0x198], xmm2
movss xmm1, dword [0x14019d2b4]
movss xmm2, dword [0x14019d2b8]
mov dword [rbp + 0x1c0], 4
movss xmm0, dword [0x14019d2b0]
unpcklps xmm0, xmm1
movsd qword [rbp + 0x1d0], xmm0
movss dword [rbp + 0x1d8], xmm2
movss xmm1, dword [0x14019d2c0]
movss xmm2, dword [0x14019d2c4]
mov dword [rbp + 0x200], 4
movss xmm0, dword [0x14019d2bc]
unpcklps xmm0, xmm1
movsd qword [rbp + 0x210], xmm0
movss dword [rbp + 0x218], xmm2
mov dword [rbp + 0x240], 9
mov dword [rbp + 0x250], 0x647296ff
movss xmm1, dword [0x14015edc4]
mov dword [rbp + 0x280], 4
movss xmm0, dword [0x14019d2c8]
unpcklps xmm0, xmm1
movsd qword [rbp + 0x290], xmm0
movss dword [rbp + 0x298], xmm6
mov dword [rsp + 0x20], 0xffffffff
mov rcx, qword [0x14019d398]
mov r9d, dword [rcx + 0x160]
lea r8, [rbp + 0x140]
mov dl, 1
call fcn.1400bf210
nop
lea r9, [fcn.140028d40]
mov edx, 0x40
lea r8d, [rdx - 0x39]
lea rcx, [rbp + 0x140]
call fcn.14012701c
nop
lea rcx, [rbp - 0x70]
call fcn.140027450
jmp 0x1400be367
lea rcx, str._SERVER_:_Failed_to_connect_to_real_server._n
jmp 0x1400be362
lea rcx, str._SERVER_:_Failed_to_setup_client_when_trying_to_connect_to_server__n
call fcn.1400bb170
mov rcx, qword [rbp + 0x300]
xor rcx, rsp
call fcn.140126f60
lea r11, [rsp + 0x420]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret