Function at 0x140059b00
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x90
mov qword [rax - 0x68], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x1402295b8]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rsi, rdx
mov rbx, rcx
mov rax, qword [rcx]
mov rdx, qword [rax + 0x148]
lea r14, vtable.ui::RichEdit.0
cmp rax, r14
jne 0x14005a213
movzx eax, byte [rcx + 0xc2]
test al, al
jne 0x140059b65
mov eax, dword [rsi]
sub eax, 0xe
cmp eax, 0xa
jbe 0x140059b8b
mov rax, qword [rbx]
mov rdx, qword [rax + 0x138]
cmp rax, r14
jne 0x14005a21a
movzx eax, byte [rbx + 0xc1]
test al, al
jne 0x140059bb2
cmp byte [rbx + 0x72d], al
jne 0x140059bb2
mov rcx, qword [rbx + 0x38]
mov rdx, rsi
test rcx, rcx
je 0x140059ba5
mov rax, qword [rcx]
call qword [rax + 0x1e0]
jmp 0x14005a1e5
mov rcx, rbx
call fcn.1400314f0
jmp 0x14005a1e5
mov r8d, dword [rsi]
cmp r8d, 0x28
jne 0x140059bcb
mov rdx, rsi
mov rcx, rbx
call fcn.14005a260
jmp 0x14005a1e5
cmp r8d, 0xa
jne 0x140059c76
lea ecx, [r8 - 1]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140059c15
cmp byte [rbx + 0x729], 0
jne 0x140059c15
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14005a1e5
xor edi, edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8d, [rdi + 0x30]
mov rdx, rbx
call fcn.14002ad40
jmp 0x14005a1e5
cmp byte [rbx + 0x730], 0
je 0x140059c30
mov rax, qword [rsi + 0x20]
sub rax, 0x30
cmp rax, 9
ja 0x14005a1e5
mov r9, qword [rsi + 0x28]
mov r8, qword [rsi + 0x20]
mov rax, qword [rbx]
mov r10, qword [rax + 0x418]
cmp rax, r14
jne 0x14005a224
mov rcx, qword [rbx + 0x720]
test rcx, rcx
je 0x14005a1e5
mov rcx, qword [rcx + 0x18]
mov rax, qword [rcx]
xor edi, edi
mov qword [rsp + 0x20], rdi
mov edx, 0x102
call qword [rax + ILCombine]
jmp 0x14005a1e5
cmp r8d, 8
jne 0x140059c8c
mov rdx, rsi
mov rcx, rbx
call fcn.14005a460
jmp 0x14005a1e5
cmp r8d, 0xe
jne 0x140059c9c
mov edx, 0x200
jmp 0x14005a1da
cmp r8d, 0x18
jne 0x140059cc5
lea ecx, [r8 - 7]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x14005a1e5
mov rdx, rsi
mov rcx, rbx
call fcn.14003bb10
jmp 0x14005a1e5
cmp r8d, 0x12
je 0x14005a0b1
cmp r8d, 0x20
je 0x14005a0b1
cmp r8d, 0x13
je 0x14005a052
cmp r8d, 0x22
je 0x14005a052
test r8d, r8d
jne 0x140059d18
mov rcx, rbx
cmp byte [rbx + 0x72d], r8b
je 0x140059d0e
xor edx, edx
lea r8d, [rdx - 1]
call fcn.140057ba0
jmp 0x14005a1e5
mov edx, 0x203
jmp 0x14005a1dd
cmp r8d, 0x14
jne 0x140059d28
mov edx, 0x204
jmp 0x14005a1da
cmp r8d, 0x15
jne 0x140059d38
mov edx, 0x205
jmp 0x14005a1da
cmp r8d, 0x32
jne 0x140059dec
mov rax, qword [rbx]
cmp rax, r14
jne 0x14005a238
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x140059d5d
mov rdi, qword [rax + 0x10]
jmp 0x140059d5f
xor edi, edi
test rdi, rdi
je 0x14005a1e5
mov rcx, rdi
call sub.IMM32.dll_ImmGetContext
mov rsi, rax
test rax, rax
je 0x14005a1e5
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14002e9a0
mov ecx, dword [rbx + 0x73c]
sub ecx, dword [rsp + 0x30]
mov edx, dword [rbx + 0x740]
sub edx, dword [rsp + 0x34]
mov dword [rsp + 0x68], 2
mov ebp, 1
cmp ecx, ebp
cmovl ecx, ebp
mov dword [rsp + 0x30], ecx
cmp edx, ebp
cmovl edx, ebp
mov dword [rsp + 0x34], edx
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x6c], rax
lea rdx, [rsp + 0x68]
mov rcx, rsi
call qword [sym.imp.IMM32.dll_ImmSetCompositionWindow]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.IMM32.dll_ImmReleaseContext]
mov byte [rbx + 0x738], bpl
jmp 0x14005a1e5
cmp r8d, 0x33
jne 0x140059dfe
mov byte [rbx + 0x738], 0
jmp 0x14005a1e5
cmp r8d, 2
jne 0x140059ed5
mov rsi, qword [rbx + 0x720]
xor edi, edi
lea ebp, [rdi + 1]
test rsi, rsi
je 0x140059e5b
or dword [rsi + 0x24], 0x20
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x48]
test eax, eax
jns 0x140059e31
and dword [rsi + 0x24], 0xffffffdf
mov rax, qword [rbx + 0x720]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 7]
call qword [rax + ILCombine]
mov edx, ebp
mov rcx, rbx
call fcn.14005c550
mov byte [rbx + 0xc4], bpl
mov dword [rbx + 0x130], 2
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x58]
mov rax, qword [rbx]
cmp rax, r14
jne 0x14005a242
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x140059e90
mov rdi, qword [rax + 0x10]
test rdi, rdi
je 0x14005a1e5
mov rcx, rdi
call sub.IMM32.dll_ImmGetContext
mov rbx, rax
test rax, rax
je 0x14005a1e5
mov rcx, rax
call qword [sym.imp.IMM32.dll_ImmGetOpenStatus]
test eax, eax
jne 0x140059ec4
mov edx, ebp
mov rcx, rbx
call sub.IMM32.dll_ImmSetOpenStatus
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.IMM32.dll_ImmReleaseContext]
jmp 0x14005a1e5
cmp r8d, 3
jne 0x140059cb5
mov rsi, qword [rbx + 0x720]
xor edi, edi
test rsi, rsi
je 0x140059f84
or dword [rsi + 0x24], 0x20
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 0x48]
test eax, eax
jns 0x140059f09
and dword [rsi + 0x24], 0xffffffdf
mov rax, qword [rbx + 0x720]
mov rcx, qword [rax + 0x18]
mov rax, qword [rcx]
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 8]
call qword [rax + ILCombine]
mov byte [rbx + 0x737], dil
mov qword [rbx + 0x888], rdi
mov rsi, qword [rbx + 0x890]
mov qword [rbx + 0x890], rdi
test rsi, rsi
je 0x140059f79
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x140059f79
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov eax, 0xffffffff
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x140059f79
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x58]
mov byte [rbx + 0xc4], dil
mov dword [rbx + 0x130], edi
mov byte [rbx + 0x733], dil
cmp byte [rbx + 0x734], dil
je 0x140059fb9
cmp byte [rbx + 0xc1], dil
je 0x140059fb9
xor r8d, r8d
lea edx, [r8 - 1]
mov rcx, rbx
call fcn.140057ba0
cmp byte [rbx + 0x735], dil
je 0x140059fda
cmp byte [rbx + 0xc1], dil
je 0x140059fda
xor r8d, r8d
lea edx, [r8 - 1]
mov rcx, rbx
call fcn.140057ba0
mov rax, qword [rbx]
xor edx, edx
mov rcx, rbx
call qword [rax + 0x58]
call fcn.140070070
mov rcx, rax
xor edx, edx
call fcn.1400700e0
mov rax, qword [rbx]
cmp rax, r14
jne 0x14005a24c
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x14005a00d
mov rdi, qword [rax + 0x10]
test rdi, rdi
je 0x14005a1e5
mov rcx, rdi
call sub.IMM32.dll_ImmGetContext
mov rbx, rax
test rax, rax
je 0x14005a1e5
mov rcx, rax
call qword [sym.imp.IMM32.dll_ImmGetOpenStatus]
test eax, eax
je 0x14005a041
xor edx, edx
mov rcx, rbx
call sub.IMM32.dll_ImmSetOpenStatus
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.IMM32.dll_ImmReleaseContext]
jmp 0x14005a1e5
cmp byte [rbx + 0xc1], 0
je 0x14005a0a7
cmp byte [rbx + 0x733], 0
jne 0x14005a0a7
mov byte [rbx + 0x733], 1
cmp byte [rbx + 0x735], 0
je 0x14005a0a7
xor edx, edx
lea r8d, [rdx - 1]
mov rcx, rbx
call fcn.140057ba0
mov rax, qword [rbx]
mov rcx, rbx
test byte [rbx + 0x774], 4
je 0x14005a0a1
call qword [rax + 0x388]
mov edx, 0x202
jmp 0x14005a1da
call qword [rax + 0x3a8]
mov edx, 0x202
jmp 0x14005a1da
mov rcx, qword [rbx + 0x900]
sub rcx, qword [rbx + 0x8f8]
movabs rax, 0x6666666666666667
imul rcx
sar rdx, 4
mov rax, rdx
shr rax, 0x3f
add rdx, rax
je 0x14005a1c0
movdqa xmm0, xmmword [0x1401f8bd0]
movdqu xmmword [rsp + 0x58], xmm0
xor edi, edi
mov word [rsp + 0x48], di
mov eax, dword [rsi + 0x14]
mov dword [rsp + 0x38], eax
mov eax, dword [rsi + 0x18]
mov dword [rsp + 0x3c], eax
lea r8, [rsp + 0x48]
mov rdx, qword [rsp + 0x38]
mov rcx, rbx
call fcn.14005cc90
test al, al
je 0x14005a17f
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x14005a137
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8d, [rdi + 0x31]
mov rdx, rbx
call fcn.14002ad40
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14005a1e5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a178
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005a256
call fcn.14017b7ac
jmp 0x14005a1e5
mov rdx, qword [rsp + 0x60]
cmp rdx, 8
jb 0x14005a1bd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005a1b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005a20d
call fcn.14017b7ac
mov r8d, dword [rsi]
cmp r8d, 0x20
jne 0x14005a1d5
call fcn.140070070
mov rcx, rax
mov dl, 1
call fcn.1400700e0
mov edx, 0x201
mov rcx, rbx
mov r8, rsi
call fcn.14005a830
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1401c4d70
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.1401b08a0
int3
call rdx
jmp 0x140059b57
mov rcx, rbx
call rdx
jmp 0x140059b7f
xor edi, edi
mov qword [rsp + 0x20], rdi
mov edx, 0x102
mov rcx, rbx
call r10
jmp 0x14005a1e5
mov rcx, rbx
call qword [rax]
jmp 0x140059d52
mov rcx, rbx
call qword [rax]
jmp 0x140059e87
mov rcx, rbx
call qword [rax]
jmp 0x14005a004
call fcn.1401b08a0
int3