Function at 0x140094200
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rdi
mov rbp, rsp
sub rsp, 0x78
mov rax, qword [0x14015d460]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rdi, rcx
lea rdx, [rbp - 0x30]
mov rcx, qword [rcx + 8]
xor r8d, r8d
call fcn.14000dc10
test eax, eax
jle 0x1400947cb
mov qword [rsp + 0xa0], rsi
xor esi, esi
mov qword [rsp + 0x70], r14
lea r14, [0x140000000]
mov qword [rsp + 0x98], rbx
mov ecx, dword [rbp - 0x30]
mov rdx, qword [rbp - 0x28]
mov qword [rdi + 0x50], rdx
sub ecx, 1
je 0x1400947de
sub ecx, 1
je 0x14009478b
cmp ecx, 1
je 0x140094284
lea rcx, str._SERVER_:_UNHANDLED_n
call fcn.14000b010
jmp 0x14009481f
mov r10, qword [rbp - 0x18]
mov r9, qword [r10 + 0x18]
cmp r9, 3
jbe 0x140094734
mov rax, qword [r10 + 0x10]
movzx r8d, byte [rax]
mov ecx, r8d
sub ecx, 2
je 0x1400946a7
sub ecx, 1
je 0x140094616
sub ecx, 1
je 0x1400942cf
sub ecx, 2
je 0x1400942c6
cmp ecx, 2
jne 0x140094737
mov qword [rdi + 0x50], rdx
jmp 0x1400947b6
cmp r9, 0x38
jae 0x1400942da
mov rbx, rsi
jmp 0x14009430f
mov rax, qword [rbp - 0x18]
mov rbx, qword [rax + 0x10]
add rbx, 4
test byte [rbx + 0xc], 8
je 0x140094308
mov eax, dword [rbx + 0x34]
add eax, 0x3c
cmp r9, rax
jae 0x14009430f
lea rcx, str.got_invalid_packet.__too_small__n
call fcn.14000b010
mov rbx, rsi
jmp 0x14009430b
mov dword [rbx + 0x34], esi
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x18]
mov r9, qword [rax + 0x18]
cmp r9, 0x38
jae 0x140094322
mov r8, rsi
jmp 0x14009435a
mov rax, qword [rbp - 0x18]
mov r8, qword [rax + 0x10]
add r8, 4
test byte [r8 + 0x14], 8
je 0x140094352
mov eax, dword [r8 + 0x34]
add eax, 0x3c
cmp r9, rax
jae 0x14009435a
lea rcx, str.got_invalid_packet.__too_small__n
call fcn.14000b010
mov r8, rsi
jmp 0x140094356
mov dword [r8 + 0x34], esi
mov rdx, qword [rbp - 0x28]
test rbx, rbx
je 0x14009474e
movzx r9d, byte [rbx]
cmp r9d, 0x19
ja case.0x140094385.8
movzx eax, byte [r14 + r9 + 0x94860]
mov ecx, dword [r14 + rax*4 + 0x9483c]
add rcx, r14
jmp rcx
mov qword [rdi + 0x50], rdx
mov rcx, rbx
mov rdx, r8
call fcn.140055180
test al, al
je 0x14009474e
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x1400947b6
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x1400943b9
mov rcx, rbx
call rax
test byte [rbx + 8], 4
jne 0x1400943ce
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400943ce
call qword [fcn.1401082ca]
mov rcx, rbx
call qword [fcn.1401082ca]
jmp 0x1400947b6
mov rcx, rbx
mov qword [rdi + 0x50], rdx
call fcn.140021280
test al, al
je 0x14009474e
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x1400947b6
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x14009440b
mov rcx, rbx
call rax
test byte [rbx + 8], 4
jne 0x140094420
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140094420
call qword [fcn.1401082ca]
mov rcx, rbx
call qword [fcn.1401082ca]
jmp 0x1400947b6
mov qword [rdi + 0x50], rdx
lea rcx, str._SERVER_:_Packet_Type:__d_n
movzx edx, byte [rbx]
call fcn.14000b010
mov rax, qword [0x14019fcf8]
cmp byte [rax + 0x63b0], sil
je 0x14009474e
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x14009474e
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x1400947b6
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x140094484
mov rcx, rbx
call rax
test byte [rbx + 8], 4
jne 0x140094499
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140094499
call qword [fcn.1401082ca]
mov rcx, rbx
call qword [fcn.1401082ca]
jmp 0x1400947b6
mov qword [rdi + 0x50], rdx
lea rcx, str._SERVER_:_Packet_Type:__d_n
movzx edx, byte [rbx]
call fcn.14000b010
mov rcx, rbx
call fcn.140061e30
test al, al
je 0x14009474e
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x1400947b6
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x1400944e5
mov rcx, rbx
call rax
test byte [rbx + 8], 4
jne 0x1400944fa
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400944fa
call qword [fcn.1401082ca]
mov rcx, rbx
call qword [fcn.1401082ca]
jmp 0x1400947b6
mov qword [rdi + 0x50], rdx
lea rcx, str._SERVER_:_Packet_Type:__d_n
movzx edx, byte [rbx]
call fcn.14000b010
jmp 0x14009474e
mov qword [rdi + 0x50], rdx
lea rcx, str._SERVER_:_Packet_Type:__d_n
movzx edx, byte [rbx]
call fcn.14000b010
mov rcx, rbx
call fcn.140062ce0
test al, al
je 0x14009474e
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x1400947b6
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x14009455e
mov rcx, rbx
call rax
test byte [rbx + 8], 4
jne 0x140094573
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140094573
call qword [fcn.1401082ca]
mov rcx, rbx
call qword [fcn.1401082ca]
jmp 0x1400947b6
mov qword [rdi + 0x50], rdx
lea rcx, str._SERVER_:_Packet_Type:__d_n
movzx edx, byte [rbx]
call fcn.14000b010
mov rcx, rbx
call fcn.14002d660
test al, al
je 0x14009474e
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x1400947b6
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x1400945bf
mov rcx, rbx
call rax
test byte [rbx + 8], 4
jne 0x1400945d4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400945d4
call qword [fcn.1401082ca]
mov rcx, rbx
call qword [fcn.1401082ca]
jmp 0x1400947b6
mov qword [rdi + 0x50], rdx
lea rcx, str._SERVER_:_Packet_Type:__d_n
movzx edx, byte [rbx]
call fcn.14000b010
cmp byte [0x14019d152], sil
jne 0x1400947b6
jmp 0x14009474e
mov edx, r9d
lea rcx, str._SERVER_:_Packet_Type:__d_n
jmp 0x140094741
mov rax, qword [rbp - 0x18]
xorps xmm0, xmm0
mov qword [rdi + 0x50], rdx
mov r8, 0xffffffffffffffff
xor edx, edx
mov rcx, qword [rax + 0x10]
mov rax, qword [r10 + 0x18]
mov byte [rax + rcx - 1], dl
lea rdx, [rcx + 4]
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], rsi
inc r8
cmp byte [rdx + r8], sil
jne 0x140094646
lea rcx, [rbp - 0x58]
call fcn.14006e1d0
lea rcx, [rbp - 0x58]
call fcn.140054dc0
test al, al
je 0x14009474e
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x1400947b6
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x140094684
mov rcx, rbx
call rax
test byte [rbx + 8], 4
jne 0x140094699
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140094699
call qword [fcn.1401082ca]
mov rcx, rbx
call qword [fcn.1401082ca]
jmp 0x1400947b6
mov rax, qword [rbp - 0x18]
xorps xmm0, xmm0
mov qword [rdi + 0x50], rdx
mov r8, 0xffffffffffffffff
xor edx, edx
mov rcx, qword [rax + 0x10]
mov rax, qword [r10 + 0x18]
mov byte [rax + rcx - 1], dl
lea rdx, [rcx + 4]
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], rsi
mov qword [rbp - 0x40], rsi
inc r8
cmp byte [rdx + r8], sil
jne 0x1400946d7
lea rcx, [rbp - 0x58]
call fcn.14006e1d0
lea rcx, [rbp - 0x58]
call fcn.14003a8a0
test al, al
je 0x14009474e
mov rbx, qword [rbp - 0x18]
test rbx, rbx
je 0x1400947b6
mov rax, qword [rbx + 0x20]
test rax, rax
je 0x140094711
mov rcx, rbx
call rax
test byte [rbx + 8], 4
jne 0x140094726
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140094726
call qword [fcn.1401082ca]
mov rcx, rbx
call qword [fcn.1401082ca]
jmp 0x1400947b6
mov r8d, esi
mov edx, r8d
lea rcx, str._SERVER_:_Got_unknown_packet_of_type__d._n
call fcn.14000b010
mov rax, qword [rbp - 0x28]
mov qword [rdi + 0x50], rax
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x1400947b6
cmp qword [rdi + 0x18], rsi
je 0x1400947b6
mov r8, qword [rbp - 0x18]
call fcn.140009f90
mov rbx, qword [rdi + 0x18]
call qword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [0x14019d070]
xor r8d, r8d
xor edx, edx
mov dword [rbx + 0x40], eax
mov rcx, rbx
call fcn.14000d450
jmp 0x14009481f
cmp byte [0x14019d152], sil
mov qword [rdi + 0x50], rdx
jne 0x1400947b6
cmp byte [0x14019d161], sil
je 0x14009481f
xor edx, edx
mov rcx, rdi
call fcn.140097830
mov byte [0x14019d161], sil
mov rbx, qword [rsp + 0x98]
mov rsi, qword [rsp + 0xa0]
mov r14, qword [rsp + 0x70]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140106d80
add rsp, 0x78
pop rdi
pop rbp
ret
mov qword [rdi + 0x50], rdx
mov rax, qword [0x1401a0248]
cmp rax, qword [0x1401a0250]
je 0x1400947ff
mov qword [rax], rdx
add qword [0x1401a0248], 8
jmp 0x14009480b
lea r8, [rbp - 0x28]
mov rdx, rax
call fcn.14009dc50
mov rax, qword [rbp - 0x28]
mov rcx, rdi
mov qword [rdi + 0x48], rax
call fcn.1400985c0
test al, al
je 0x1400947b6
mov rcx, qword [rdi + 8]
lea rdx, [rbp - 0x30]
xor r8d, r8d
call fcn.14000dc10
test eax, eax
jg 0x140094251
jmp 0x1400947b6