Function at 0x140040cf0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r13, r8
mov rsi, rdx
xor edi, edi
test rdx, rdx
jne 0x140040d18
mov qword [rsp + 0x38], rdi
jmp 0x140040d21
mov rax, qword [rdx + 0x40]
mov qword [rsp + 0x38], rax
mov r14d, dword [r8 + 8]
mov dword [rsp + 0xb8], r14d
call qword [sym.imp.USER32.dll_GetFocus]
mov qword [rsp + 0x48], rax
mov rcx, rax
call fcn.140025e38
mov r15, rax
mov qword [rsp + 0x40], rax
lea ecx, [r14 - 0x100]
mov eax, 9
cmp ecx, eax
jbe 0x140040d67
lea ecx, [r14 - 0x200]
cmp ecx, eax
ja 0x140040e3e
test r15, r15
je 0x140040e3e
mov rbx, r15
cmp qword [rbx + 0xd0], rdi
jne 0x140040db2
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.140025e38
cmp rax, rsi
je 0x140040dad
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
call fcn.140025e38
mov rbx, rax
test rax, rax
jne 0x140040d73
test rbx, rbx
je 0x140040de8
mov rax, qword [rbx + 0xd0]
test rax, rax
je 0x140040de8
mov rcx, qword [rax + 0x90]
test rcx, rcx
je 0x140040de8
mov rax, qword [rcx]
mov rdx, r13
mov rax, qword [rax + 0x28]
call qword [case.0x140141489.0]
test eax, eax
jne 0x140040de8
mov eax, 1
jmp 0x140041279
lea eax, [r14 - 0x100]
mov r12d, 2
cmp eax, r12d
ja 0x140040e44
test rbx, rbx
je 0x140040e44
mov rax, qword [rbx + 0xd0]
test rax, rax
je 0x140040e44
cmp word [r13 + 0x10], 0xd
jne 0x140040e27
lea r14d, [r12 - 1]
test byte [rax + 0xcc], r14b
jne 0x140040ef3
jmp 0x140040e4a
cmp word [r13 + 0x10], 0x1b
jne 0x140040e44
test byte [rax + 0xcc], r12b
jne 0x140040ef3
jmp 0x140040e44
mov r12d, 2
mov r14d, 1
mov dword [rsp + 0xb0], edi
mov rcx, qword [r13]
call fcn.140025e38
mov rbx, rax
mov ecx, dword [rsp + 0xb8]
sub ecx, 0x100
je 0x140040f23
sub ecx, r12d
je 0x140040ea2
cmp ecx, 4
jne 0x140040f88
test r15, r15
jne 0x140040e96
lea ecx, [r15 + 0x12]
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x140040f88
cmp word [r13 + 0x10], 0x20
je 0x140040f88
test rbx, rbx
jne 0x140040eab
mov eax, edi
jmp 0x140040ec1
mov r9, r13
mov r8, qword [r13 + 0x10]
mov edx, 0x87
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp dword [rsp + 0xb8], 0x102
jne 0x140040ed6
test al, 0x84
jne 0x140040f88
mov ecx, 9
cmp word [r13 + 0x10], cx
jne 0x140040eeb
test r12b, al
jne 0x140040f88
cmp word [r13 + 0x10], 0x20
jne 0x140040efa
xor eax, eax
jmp 0x140041279
mov r8, r13
mov rdx, rbx
mov rcx, rsi
call fcn.1400419dc
test rax, rax
je 0x140040f88
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x140040f88
mov rdx, r13
call fcn.14003f0bc
jmp 0x14004120b
test rbx, rbx
jne 0x140040f2c
mov eax, edi
jmp 0x140040f42
mov r9, r13
mov r8, qword [r13 + 0x10]
mov edx, 0x87
mov rcx, qword [rax + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
movzx edx, word [r13 + 0x10]
sub edx, 3
je 0x140041128
sub edx, 6
je 0x140041169
sub edx, 4
je 0x140041101
sub edx, 0xe
je 0x140041128
sub edx, 0xa
je 0x140040fe1
sub edx, 1
je 0x140040fe1
sub edx, 1
je 0x140040fe6
sub edx, 1
je 0x140040fe6
cmp edx, 3
je 0x140041101
test dword [rsi + 0xa8], 0x1000
jne 0x14004121d
mov rdx, r13
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_IsDialogMessageW]
mov ebx, eax
test eax, eax
je 0x140041224
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
call fcn.140025e38
cmp rax, r15
je 0x140041224
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
call fcn.140025e38
mov rcx, rax
call fcn.1400413cc
jmp 0x140041224
mov r12d, r14d
jmp 0x140040fe9
mov r12d, edi
test r15, r15
je 0x14004100d
mov r9, r13
mov r8, qword [r13 + 0x10]
mov edx, 0x87
mov rcx, qword [r15 + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
test r14b, al
jne 0x140040f88
xor edx, edx
mov rcx, rsi
test r12d, r12d
je 0x14004101e
call fcn.14002c61c
jmp 0x140041023
call fcn.14002c3b4
mov rbx, rax
test rax, rax
je 0x140040f88
cmp dword [rax + 0x10], edi
je 0x14004103f
mov rdx, rax
mov rcx, rsi
call fcn.14002cba0
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x140041060
mov rax, qword [rcx]
mov rdx, r13
mov rax, qword [rax + 0x158]
call qword [case.0x140141489.0]
jmp 0x1400412cb
mov rax, qword [rbx]
test rax, rax
jne 0x140041081
test r15, r15
mov rdx, rdi
je 0x140041074
mov rdx, qword [r15 + 0x40]
mov r8d, r12d
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetNextDlgGroupItem]
mov rcx, rax
call fcn.140025e38
mov r12, rax
test rax, rax
je 0x140040f88
mov rcx, qword [rsi + 0xc8]
mov qword [rcx + 0xd8], rdi
mov rcx, rax
call fcn.140041668
cmp dword [rbx + 0x10], edi
je 0x14004120b
mov edx, 0xfffffff4
mov rcx, qword [r12 + 0x40]
call qword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
xor r9d, r9d
mov r8, r14
mov edx, 0xf1
mov rcx, qword [r12 + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
movzx r8d, bx
mov r9, qword [r12 + 0x40]
mov edx, 0x111
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rcx, r12
call fcn.140041668
jmp 0x14004120b
test al, 4
jne 0x140040f88
mov rcx, r15
call fcn.140040cac
test al, 0x10
je 0x14004115c
mov rbx, r15
mov rcx, r15
call fcn.14002c1e4
mov r12d, eax
test r15, r15
jne 0x14004113f
mov edx, r12d
mov rcx, rsi
call fcn.1400416b4
mov rbx, rax
test rax, rax
je 0x140040f88
mov rcx, rbx
call fcn.14002c8c4
test eax, eax
jne 0x140041289
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBeep]
jmp 0x140040f88
mov rcx, rsi
call fcn.140041c48
mov r12d, eax
jmp 0x140041128
test r12b, al
jne 0x140040f88
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.USER32.dll_GetKeyState]
movzx r12d, ax
shr r12d, 0xf
mov r8d, r12d
xor edx, edx
mov rcx, rsi
call fcn.14002c418
test rax, rax
je 0x140040f88
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x1400411b9
mov rax, qword [rcx]
mov rdx, r13
mov rax, qword [rax + 0x158]
call qword [case.0x140141489.0]
jmp 0x14004120b
mov rax, qword [rax]
test rax, rax
jne 0x1400411da
test rbx, rbx
mov rdx, rdi
je 0x1400411cd
mov rdx, qword [rbx + 0x40]
mov r8d, r12d
mov rcx, qword [rsi + 0x40]
call qword [sym.imp.USER32.dll_GetNextDlgTabItem]
mov rcx, rax
call fcn.140025e38
mov rbx, rax
test rax, rax
je 0x14004120b
mov rcx, qword [rsi + 0xc8]
mov qword [rcx + 0xd8], rdi
mov rcx, rax
call fcn.140041668
mov rdx, rbx
mov rcx, r15
call fcn.140041474
mov eax, r14d
mov dword [rsp + 0xb0], eax
test eax, eax
je 0x140040f88
mov ebx, dword [rsp + 0xb0]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140041277
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
call fcn.140025e38
mov rdx, rax
mov rcx, r15
call fcn.140041474
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x140041277
call qword [sym.imp.USER32.dll_GetFocus]
mov rcx, rax
call fcn.140025e38
mov r8, rax
mov rdx, r15
mov rcx, rsi
call fcn.140041540
mov eax, ebx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
cmp qword [rbx + 0xd0], rdi
je 0x140040f88
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
movzx r9d, di
movzx r8d, r14w
mov edx, 0xfffffdd9
mov rcx, rbx
call fcn.14002c820
nop
jmp 0x1400412cb
mov ebx, r14d
jmp 0x140041224