Function at 0x140053bf0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x50
cmp qword [0x1401399a0], 0
jne 0x140053c09
call fcn.14003fc50
mov rcx, qword [0x1401399c0]
lea rdx, [rsp + 0x40]
mov rdi, qword [0x140139360]
call qword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [rsp + 0x48]
lea rcx, [rsp + 0x70]
sub eax, dword [rsp + 0x40]
movd xmm1, eax
mov eax, dword [rsp + 0x4c]
sub eax, dword [rsp + 0x44]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [rdi + 0x10], xmm1
movss dword [rdi + 0x14], xmm0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [rsp + 0x70]
xorps xmm1, xmm1
mov rax, rcx
xorps xmm0, xmm0
sub rax, qword [0x1401399c8]
cvtsi2ss xmm0, qword [0x1401399d0]
cvtsi2ss xmm1, rax
divss xmm1, xmm0
movss dword [rdi + 0x18], xmm1
mov qword [0x1401399c8], rcx
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, reloc.WS2_32.dll_recv
and al, 1
mov byte [rdi + 0x130], al
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, reloc.WS2_32.dll_select
and al, 1
mov byte [rdi + 0x131], al
call qword [sym.imp.USER32.dll_GetKeyState]
mov rcx, qword [0x140139360]
shr eax, 0xf
and al, 1
mov byte [rdi + 0x133], 0
mov byte [rdi + 0x132], al
cmp byte [rcx + 0x3af], 0
lea rbx, [rcx + 0x118]
je 0x140053d1c
cvttss2si eax, dword [rbx]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], eax
cvttss2si eax, dword [rcx + 0x11c]
mov rcx, qword [0x1401399c0]
mov dword [rsp + 0x64], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x64]
mov ecx, dword [rsp + 0x60]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov dword [rbx], 0xff7fffff
mov dword [rbx + 4], 0xff7fffff
call qword [sym.imp.USER32.dll_GetActiveWindow]
cmp rax, qword [0x1401399c0]
jne 0x140053d78
lea rcx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x140053d78
mov rcx, qword [0x1401399c0]
lea rdx, [rsp + 0x68]
call qword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je 0x140053d78
movd xmm0, dword [rsp + 0x68]
movd xmm1, dword [rsp + 0x6c]
cvtdq2ps xmm0, xmm0
cvtdq2ps xmm1, xmm1
movss dword [rbx], xmm0
movss dword [rbx + 4], xmm1
cmp byte [rdi + 0xd0], 0
je 0x140053d88
mov eax, 0xffffffff
jmp 0x140053d95
mov rax, qword [0x140139360]
mov eax, dword [rax + 0x1d70]
cmp dword [reloc.WS2_32.dll_htonl], eax
je 0x140053da8
mov dword [reloc.WS2_32.dll_htonl], eax
call fcn.14003fda0
call fcn.1400222c0
mov ecx, reloc.WLDAP32.dll_Ordinal_45
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x140053dce
cmp byte [reloc.WS2_32.dll_accept], 0
sete dl
mov byte [reloc.WS2_32.dll_accept], dl
jmp 0x140053dd5
movzx edx, byte [reloc.WS2_32.dll_accept]
call fcn.140049dd0
mov rax, qword [0x140139360]
test dl, dl
je 0x140053e10
xor edx, edx
mov byte [rax + 0xd0], 1
mov r8d, 0x122
lea rcx, [0x1400b4cc6]
call fcn.140025a30
test al, al
je 0x140053e09
call fcn.14004a190
call fcn.140028a20
jmp 0x140053e17
mov byte [rax + 0xd0], 0
call fcn.14004f900
mov rcx, qword [0x140139a30]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 7]
call qword [rax + 0x1c8]
mov rcx, qword [0x140139a30]
xor r8d, r8d
mov rax, qword [rcx]
lea edx, [r8 + 0x1b]
call qword [rax + 0x1c8]
mov rcx, qword [0x140139a30]
xor r8d, r8d
mov edx, 0xae
mov rax, qword [rcx]
call qword [rax + 0x1c8]
mov rcx, qword [0x140139a30]
xor edi, edi
movss xmm0, dword [0x140129edc]
xor r8d, r8d
mov dword [rsp + 0x30], edi
xor edx, edx
movss dword [rsp + 0x28], xmm0
mov rax, qword [rcx]
lea r9d, [rdi + 1]
mov dword [rsp + 0x20], edi
call qword [rax + 0x158]
mov rcx, qword [0x140139a30]
mov rax, qword [rcx]
call qword [rax + 0x148]
test eax, eax
js 0x140053ed6
call fcn.140023910
mov rcx, qword [0x140139360]
add rcx, 0x1c70
cmp byte [rcx], dil
cmove rcx, rdi
call fcn.14003f370
mov rcx, qword [0x140139a30]
mov rax, qword [rcx]
call qword [rax + 0x150]
mov rcx, qword [0x140139a30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x88]
cmp eax, 0x88760868
jne 0x140053f98
mov rcx, qword [0x140139a30]
mov rax, qword [rcx]
call qword [rax + Ordinal_26]
cmp eax, 0x88760869
jne 0x140053f98
cmp qword [0x1401399b0], rdi
je 0x140053f7c
mov rcx, qword [0x1401399b8]
test rcx, rcx
je 0x140053f38
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x1401399b8], rdi
mov rcx, qword [0x1401399a8]
test rcx, rcx
je 0x140053f51
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x1401399a8], rdi
mov rcx, qword [0x1401399a0]
mov rbx, qword [0x140139360]
test rcx, rcx
je 0x140053f6a
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_recv]
mov qword [0x1401399a0], rdi
mov rax, qword [rbx + 0xa0]
mov qword [rax + 8], rdi
mov rcx, qword [0x140139a30]
lea rdx, [0x140139390]
mov rax, qword [rcx]
call qword [rax + 0x80]
call fcn.14003fc50
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret