Function at 0x1402163c4
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov eax, 0x104
mov edx, dword [rdx + 8]
mov rdi, rcx
mov r12d, 1
cmp edx, eax
ja 0x1402165d6
je 0x140216505
mov eax, edx
sub eax, 0x7b
je 0x140216529
sub eax, 0x26
je 0x1402164dc
sub eax, r12d
je 0x1402164dc
sub eax, 2
je 0x1402164dc
sub eax, r12d
je 0x1402164dc
sub eax, 2
je 0x1402164dc
sub eax, r12d
je 0x1402164dc
cmp eax, 0x58
jne 0x1402167cb
mov rcx, rbx
call fcn.14024be9c
test eax, eax
jne 0x14021646c
mov edx, dword [rbx + 0x10]
lea rcx, [rdi + 0x590]
xor r8d, r8d
call fcn.14024d94c
test eax, eax
jne 0x1402165b7
cmp qword [rbx + 0x10], 0x1b
jne 0x1402167cb
cmp dword [rdi + 0x6d8], 0
je 0x14021648f
lea rcx, [rdi + 0x6b8]
mov rdx, rdi
call fcn.1402ab3a4
mov rcx, qword [rdi + 0x530]
test rcx, rcx
je 0x1402164ac
cmp dword [rcx + 0xc], 0
je 0x1402164ac
cmp dword [rcx + 8], 0
je 0x1402164ac
call fcn.14022d8d4
call qword [sym.imp.USER32.dll_GetCapture]
mov rcx, rax
call fcn.14015c95c
mov rdx, rax
lea rcx, [0x14032c6e8]
call fcn.140153c70
test rax, rax
je 0x1402167cb
mov edx, 0x1f
jmp 0x1402165a7
movsx eax, word [rbx + 0x18]
add rcx, 0x590
mov r9, qword [rbx]
mov dword [rsp + 0x58], eax
movsx eax, word [rbx + 0x1a]
mov dword [rsp + 0x5c], eax
mov r8, qword [rsp + 0x58]
call fcn.14024dc5c
jmp 0x1402166d7
mov rcx, qword [rcx + 0x710]
test rcx, rcx
je 0x140216529
mov r9, qword [rbx + 0x18]
mov rdx, rdi
mov r8, qword [rbx + 0x10]
call fcn.14029a318
test eax, eax
jne 0x1402165b7
mov eax, dword [0x14037a140]
lea rsi, [0x14037a140]
test eax, eax
jne 0x14021654b
mov rcx, rsi
call fcn.14018edcc
mov eax, r12d
mov dword [0x14037a140], eax
cmp dword [0x14037a3c0], 0
jne 0x140216591
test eax, eax
jne 0x140216569
mov rcx, rsi
call fcn.14018edcc
mov eax, r12d
mov dword [0x14037a140], eax
cmp dword [0x14037a3bc], 0
jne 0x140216591
test eax, eax
jne 0x140216585
mov rcx, rsi
call fcn.14018edcc
mov dword [0x14037a140], r12d
mov dword [0x14037a3bc], r12d
call fcn.1401b48b8
call fcn.1401d64cc
test rax, rax
je 0x1402165bf
cmp qword [rbx + 0x10], 0x12
jne 0x1402165bf
mov edx, reloc.WS2_32.dll_recv
mov rcx, qword [rax + 0x40]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.USER32.dll_SendMessageW]
mov eax, r12d
jmp 0x1402167d6
mov edx, dword [rbx + 0x10]
lea rcx, [rdi + 0x590]
xor r8d, r8d
call fcn.14024d94c
jmp 0x1402166d7
sub edx, 0x105
je 0x1402166de
sub edx, 0xfb
je 0x14021669a
sub edx, r12d
je 0x140216629
sub edx, 3
je 0x140216629
sub edx, r12d
je 0x140216629
sub edx, 2
je 0x140216629
sub edx, r12d
je 0x140216629
cmp edx, 2
jne 0x1402167cb
mov r8, qword [rbx + 0x18]
add rcx, 0x590
mov rdx, qword [rbx + 0x10]
call fcn.14024e41c
jmp 0x1402166d7
movsx eax, word [rbx + 0x18]
mov rcx, qword [rbx]
mov dword [rsp + 0x58], eax
movsx eax, word [rbx + 0x1a]
mov dword [rsp + 0x5c], eax
call fcn.14015c95c
mov rsi, rax
test rax, rax
je 0x140216665
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140216665
mov rcx, qword [rsi + 0x40]
lea rdx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov r9, qword [rbx]
lea rcx, [rdi + 0x590]
mov r8, qword [rsp + 0x58]
mov edx, dword [rbx + 8]
call fcn.14024dc5c
test eax, eax
jne 0x1402165b7
mov rcx, qword [rbx]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1402165b7
jmp 0x1402167cb
movsx eax, word [rbx + 0x18]
mov rcx, qword [rbx]
mov dword [rsp + 0x58], eax
movsx eax, word [rbx + 0x1a]
mov dword [rsp + 0x5c], eax
call fcn.14015c95c
test rax, rax
je 0x1402166c6
mov rcx, qword [rax + 0x40]
lea rdx, [rsp + 0x58]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov rdx, qword [rsp + 0x58]
lea rcx, [rdi + 0x590]
call fcn.14024e320
test eax, eax
jmp 0x1402167c5
mov rcx, qword [rcx + 0x710]
test rcx, rcx
je 0x140216702
mov r9, qword [rbx + 0x18]
mov rdx, rdi
mov r8, qword [rbx + 0x10]
call fcn.14029a49c
test eax, eax
jne 0x1402165b7
mov ecx, reloc.WS2_32.dll_recvfrom
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, reloc.WS2_32.dll_recv
movsx r14d, ax
call qword [sym.imp.USER32.dll_GetKeyState]
mov rcx, qword [rdi + 0x40]
movsx r15d, ax
call sub.IMM32.dll_ImmGetContext
mov rsi, rax
test rax, rax
je 0x140216742
mov rcx, rax
call sub.IMM32.dll_ImmGetOpenStatus
test eax, eax
je 0x140216742
mov ebp, r12d
jmp 0x140216749
xor ebp, ebp
test rsi, rsi
je 0x140216755
mov rcx, qword [rdi + 0x40]
mov rdx, rsi
call sub.IMM32.dll_ImmReleaseContext
cmp qword [rdi + 0x6a0], 0
je 0x1402167bd
cmp qword [rbx + 0x10], 0x12
je 0x14021677f
cmp qword [rbx + 0x10], 0x79
jne 0x1402167bd
bt r14d, 0xf
jb 0x1402167bd
bt r15d, 0xf
jb 0x1402167bd
test ebp, ebp
jne 0x1402167bd
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
call fcn.14015c95c
mov rcx, qword [rdi + 0x6a0]
cmp rcx, rax
jne 0x14021679e
mov rcx, rdi
jmp 0x1402167b3
cmp qword [rbx + 0x10], 0x12
je 0x1402167b3
mov eax, dword [rbx + 0x18]
bt rax, 0x1d
jb 0x1402165b7
call fcn.140162fd8
jmp 0x1402165b7
call fcn.1401d64cc
test rax, rax
jne 0x1402165b7
mov rdx, rbx
mov rcx, rdi
call fcn.140284468
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret