Function at 0x140052570
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x14026f700]
xor rax, rsp
mov qword [rbp - 0x10], rax
movsxd rax, dword [rcx + 0x1138]
xor r13d, r13d
mov dword [rbp - 0x40], r13d
mov esi, edx
mov rbx, rcx
test eax, eax
jns 0x1400525b1
mov edi, r13d
jmp 0x1400525c8
mov rdx, rax
add rcx, 0x1188
call fcn.1400f78c4
mov rdi, rax
test rax, rax
jne 0x1400525cd
mov r12, r13
jmp 0x1400525d1
mov r12, qword [rax + 0x10]
mov r14d, dword [rbx + 0x1138]
mov r15d, r13d
cmp esi, 9
jne 0x140052602
lea ecx, [rsi + 7]
call qword [sym.imp.USER32.dll_GetKeyState]
mov rdx, rdi
test al, al
jns 0x1400525f8
lea ecx, [rsi + 0x1d]
jmp 0x140052875
mov ecx, 0x28
jmp 0x1400527b5
mov eax, esi
mov rdx, rdi
mov ecx, esi
sub eax, 0xd
je 0x140052a9b
sub eax, 0x14
je 0x140052a13
sub eax, 1
je 0x140052a13
sub eax, 1
je 0x140052872
sub eax, 1
je 0x1400527b2
sub eax, 2
je 0x140052875
cmp eax, 2
je 0x1400527b5
cmp dword [0x14027bacc], r13d
jne 0x140052b35
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x140052b35
mov ecx, esi
call fcn.14006e334
test eax, eax
je 0x14005276f
mov ecx, esi
call fcn.14006e3f0
lea rcx, [rbx + 0x1318]
mov dword [rbp - 0x38], eax
lea r8, [rbp - 0x30]
mov esi, eax
lea rdx, [rbp - 0x38]
call fcn.140049abc
test eax, eax
je 0x14005276f
mov rdi, qword [rbp - 0x30]
mov edx, r13d
mov rcx, qword [rbx + 0x1190]
jmp 0x1400526c8
lea rax, [rcx]
mov rcx, qword [rcx]
cmp qword [rax + 0x10], r13
je 0x140052b5c
cmp qword [rax + 0x10], rdi
je 0x1400526cf
inc edx
test rcx, rcx
jne 0x1400526b0
jmp 0x1400526d2
mov r14d, edx
mov rdx, rdi
lea rcx, [0x140270158]
call fcn.14003980c
mov rsi, rax
test rax, rax
je 0x140052934
mov rax, qword [rax]
xor edx, edx
mov rcx, rsi
mov rax, qword [rax + 0x198]
call qword [case.0x14002edca.0]
test eax, eax
je 0x140052731
mov rcx, qword [rsi + 0xc0]
test rcx, rcx
je 0x140052934
mov rcx, qword [rcx + 0x40]
xor r9d, r9d
mov edx, 0x100
lea r8d, [r9 + 0x24]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x140052934
test dword [rdi + 0x28], 0x40000
mov rcx, rbx
je 0x14005274c
mov r8, rdi
xor edx, edx
call fcn.1400531a8
jmp 0x140052a91
mov rax, qword [rbx]
mov rdx, rsi
mov rax, qword [rax + 0x7d0]
call qword [case.0x14002edca.0]
mov dword [rbp - 0x40], eax
test eax, eax
jne 0x140052a91
jmp 0x140052934
cmp dword [reloc.WS2_32.dll_accept], r13d
je 0x140052b35
cmp dword [rbx + 0x1380], r13d
jne 0x140052b35
lea rcx, [rbx + 0x13e8]
mov dword [rbp - 0x38], r13d
lea r8, [rbp - 0x38]
mov edx, esi
call fcn.1400424c8
test eax, eax
je 0x140052b35
mov edx, dword [rbp - 0x38]
xor r8d, r8d
mov rcx, rbx
jmp 0x140052742
mov rdi, r13
cmp dword [rbx + 0x1398], r13d
je 0x1400527d0
cmp rdx, qword [rbx + 0x1198]
jne 0x1400527d0
cmp ecx, 0x24
jne 0x140052a91
mov dword [rbp - 0x40], 1
cmp qword [rbx + 0x11a0], r13
je 0x140052b35
mov rsi, rdi
test rdi, rdi
je 0x1400527ef
mov rsi, qword [rdi]
mov rcx, rsi
test rsi, rsi
jne 0x1400527fe
mov rsi, qword [rbx + 0x1190]
neg rcx
lea eax, [r14 + 1]
sbb r14d, r14d
and r14d, eax
cmp rsi, rdi
je 0x140052b35
mov r13, rsi
mov r15, rsi
test rsi, rsi
je 0x140052b5c
mov r15, qword [r15 + 0x10]
mov rsi, qword [rsi]
test byte [r15 + 0x28], 1
jne 0x14005284a
lea rcx, [r15 + 0x68]
call qword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x14005284a
cmp dword [r15 + 0x24], 0xfffffffe
jne 0x140052929
inc r14d
test rsi, rsi
jne 0x140052868
cmp dword [rbx + 0x1398], esi
jne 0x140052a91
mov rsi, qword [rbx + 0x1190]
xor r14d, r14d
cmp rsi, rdi
jne 0x140052814
jmp 0x140052929
mov rdi, r13
cmp dword [rbx + 0x1398], r13d
je 0x140052890
cmp rdx, qword [rbx + 0x1190]
jne 0x140052890
cmp ecx, 0x23
jne 0x140052a91
mov dword [rbp - 0x40], 1
cmp qword [rbx + 0x11a0], r13
je 0x140052b35
test rdi, rdi
je 0x1400528b2
mov rsi, qword [rdi + 8]
test rsi, rsi
jne 0x1400528c0
mov rsi, qword [rbx + 0x1198]
mov r14d, dword [rbx + 0x11a0]
dec r14d
cmp rsi, rdi
je 0x140052b35
mov r13, rsi
mov r15, rsi
test rsi, rsi
je 0x140052b5c
mov r15, qword [r15 + 0x10]
mov rsi, qword [rsi + 8]
test byte [r15 + 0x28], 1
jne 0x1400528ff
lea rcx, [r15 + 0x68]
call qword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
jne 0x1400528ff
cmp dword [r15 + 0x24], 0xfffffffe
jne 0x140052929
dec r14d
test rsi, rsi
jne 0x140052924
cmp dword [rbx + 0x1398], esi
jne 0x140052a91
mov r14d, dword [rbx + 0x11a0]
mov rsi, qword [rbx + 0x1198]
dec r14d
cmp rsi, rdi
jne 0x1400528cc
mov rdi, qword [r13 + 0x10]
xor r13d, r13d
lea r15d, [r13 + 1]
cmp rdi, r12
je 0x140052b35
test r15d, r15d
je 0x140052961
cmp dword [rbx + 0x13a0], r13d
jne 0x140052961
mov rax, qword [rbx]
mov edx, r14d
mov rcx, rbx
mov rax, qword [rax + 0x4b8]
call qword [case.0x14002edca.0]
cmp dword [0x14027bacc], r13d
je 0x140052971
mov dword [rbx + 0x113c], r14d
mov rcx, qword [rbx + 0x40]
lea rdx, [rbp - 0x30]
xorps xmm0, xmm0
mov dword [rbx + 0x1138], r14d
movdqu xmmword [rbp - 0x30], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
movups xmm0, xmmword [rdi + 0x68]
movq rax, xmm0
shr rax, 0x20
movups xmmword [rbp - 0x20], xmm0
cmp eax, dword [rbp - 0x2c]
jl 0x1400529ef
psrldq xmm0, 8
movq rax, xmm0
shr rax, 0x20
cmp eax, dword [rbp - 0x24]
jg 0x1400529ef
test r12, r12
je 0x1400529d1
mov rcx, qword [rbx + 0x40]
lea rdx, [r12 + 0x68]
mov r8d, 1
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [rbx + 0x40]
lea rdx, [rbp - 0x20]
mov r8d, 1
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [rdi + 0x24]
cmp edx, 0xffffffff
je 0x140052b35
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x830]
call qword [case.0x14002edca.0]
jmp 0x140052b35
cmp dword [rbx + 0x1398], r13d
je 0x140052b35
cmp dword [rbx + 0x139c], r13d
jle 0x140052b35
mov edi, 0x28
mov dword [rbx + 0x13a0], 1
cmp esi, 0x21
mov r15d, r14d
mov r14d, r13d
lea ecx, [rdi - 2]
cmove edi, ecx
mov rax, qword [rbx]
mov edx, edi
mov rcx, rbx
mov rax, qword [rax + 0x800]
call qword [case.0x14002edca.0]
inc r14d
cmp r14d, dword [rbx + 0x139c]
jl 0x140052a4b
mov edx, dword [rbx + 0x1138]
mov dword [rbx + 0x13a0], r13d
cmp r15d, edx
je 0x140052a91
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x4b8]
call qword [case.0x14002edca.0]
mov eax, 1
jmp 0x140052b38
mov rdx, r12
mov dword [rbp - 0x40], 1
lea rcx, [0x140270158]
call fcn.14003980c
mov rdi, rax
test rax, rax
je 0x140052b35
mov rcx, qword [rax]
mov rax, qword [rcx + 0x1e0]
mov rcx, rdi
call qword [case.0x14002edca.0]
test eax, eax
jne 0x140052ae9
mov rcx, qword [rdi]
xor edx, edx
mov rax, qword [rcx + 0x198]
mov rcx, rdi
call qword [case.0x14002edca.0]
test eax, eax
jne 0x140052b35
mov rax, qword [rbx + 0xa0]
test rax, rax
jne 0x140052aff
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.140016dd8
xor r9d, r9d
mov edx, 0x362
mov r8d, 0xe001
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rax, qword [rbx]
mov rdx, rdi
mov rcx, rbx
mov rax, qword [rax + 0x7d0]
call qword [case.0x14002edca.0]
mov eax, dword [rbp - 0x40]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140009dd0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400156f8
int3