Function at 0x140048a90
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rbx, rcx
mov r13d, 1
lea rcx, [rbp - 0x30]
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x140049129
lea esi, [r13 - 3]
lea r14d, [r13 - 0x16]
cmp dword [rbp - 0x28], 0x402
jb 0x14004902e
mov rax, qword [sym.wluart_static.exe_WM_LUAMAX]
mov ecx, dword [rbp - 0x28]
cmp rcx, qword [rax]
jg 0x14004902e
mov rcx, rbx
xor edi, edi
call qword [sym.wluart_static.exe_lua_gettop]
mov rcx, qword [rbp - 0x30]
mov r15d, eax
test rcx, rcx
je 0x140048e62
mov edx, r14d
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
mov rdi, rax
test rax, rax
je 0x1400490d6
movsxd r8, dword [rax + 0x28]
mov edx, 0xfff0b9d8
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_rawgeti]
cmp eax, 5
jne 0x14004910a
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_gettop]
mov edx, dword [rbp - 0x28]
lea r8, [rbp + 0x38]
mov rcx, rbx
mov r14d, eax
call qword [sym.wluart_static.exe_lua_getevent]
cmp dword [rbp + 0x38], 6
mov rcx, rbx
jne 0x140048c26
mov edx, esi
call qword [sym.wluart_static.exe_lua_pushvalue]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_pushlightuserdata]
and qword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
or r8d, 0xffffffff
mov rcx, rbx
lea edx, [r9 + 2]
call qword [sym.wluart_static.exe_lua_pcallk]
test eax, eax
je 0x140048baf
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_error]
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_gettop]
mov esi, eax
sub esi, r14d
cmp esi, r13d
jne 0x140048bec
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_type]
mov edx, 0xfffffffe
mov rcx, rbx
test eax, eax
je 0x140048ee8
mov r8d, r13d
call qword [sym.wluart_static.exe_lua_rotate]
jmp 0x140048eee
jle 0x140048eee
mov edx, esi
mov rcx, rbx
not edx
call qword [sym.wluart_static.exe_lua_pushvalue]
neg esi
or r8d, 0xffffffff
mov rcx, rbx
lea edx, [rsi - 2]
call qword [sym.wluart_static.exe_lua_rotate]
mov edx, 0xfffffffe
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_settop]
mov edx, esi
mov rcx, rbx
jmp 0x140048bde
mov r8, rax
or edx, 0xffffffff
call qword [sym.wluart_static.exe_lua_getfield]
mov edx, esi
mov rcx, rbx
test eax, eax
je 0x140048ee8
mov r8d, r13d
call qword [sym.wluart_static.exe_lua_rotate]
mov eax, dword [rbp - 0x28]
sub eax, 0x406
je 0x140048d52
sub eax, 3
je 0x140048d52
sub eax, r13d
je 0x140048e19
sub eax, r13d
je 0x140048e19
sub eax, 3
je 0x140048d68
sub eax, r13d
je 0x140048cf4
sub eax, 6
je 0x140048cd2
sub eax, r13d
je 0x140048c92
cmp eax, r13d
jne 0x140048eee
mov rdx, qword [rbp - 0x20]
lea rax, str.left
mov rcx, rbx
mov rdx, qword [rax + rdx*8]
call qword [sym.wluart_static.exe_lua_pushstring]
movsx rdx, word [rbp - 0x18]
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_pushinteger]
mov rax, qword [rbp - 0x18]
shr rax, 0x10
movsx rdx, ax
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_pushinteger]
jmp 0x140048eee
mov rdx, qword [rbp - 0x20]
mov rcx, rbx
test rdx, rdx
jne 0x140048de5
mov r8, r13
lea rdx, [rbp - 0x18]
call qword [sym.wluart_static.exe_lua_pushlstring]
jmp 0x140048eee
mov eax, dword [rdi + 0x10]
cmp eax, dword [0x14006e2ac]
jne 0x140048d10
mov rdx, qword [rdi + 8]
mov rcx, rbx
call fcn.14004b83c
jmp 0x140048eee
cmp eax, dword [0x14006e294]
jl 0x140048d2d
cmp eax, dword [0x14006e298]
jg 0x140048d2d
mov r9, qword [rbp - 0x18]
mov r8d, dword [rbp - 0x20]
jmp 0x140048e52
cmp eax, dword [0x14006e2a4]
jne 0x140048d46
mov rdx, qword [rdi + 8]
mov rcx, rbx
call fcn.14004da44
jmp 0x140048eee
cmp eax, dword [0x14006e288]
jne 0x140048eee
mov rdx, qword [rbp - 0x20]
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_pushinteger]
mov rdx, qword [rbp - 0x18]
jmp 0x140048cc4
mov eax, dword [rdi + 0x10]
cmp eax, dword [0x14006e290]
jne 0x140048d90
mov rcx, qword [rdi + 8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x407
call qword [sym.imp.USER32.dll_SendMessageA]
mov rdx, rax
jmp 0x140048d03
cmp eax, dword [0x14006e28c]
jne 0x140048df0
cmp qword [rbp - 0x20], 0
mov rcx, rbx
je 0x140048dbc
mov rdx, qword [rbp - 0x18]
or r8d, 0xffffffff
call qword [sym.wluart_static.exe_lua_pushlwstring]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140048dcb
mov r9, qword [rbp - 0x18]
xor r8d, r8d
mov rdx, rdi
call fcn.1400526a4
cmp qword [rbp - 0x20], 0
lea rax, str.removed
lea rdx, str.edited
mov rcx, rbx
cmovne rdx, rax
call qword [sym.wluart_static.exe_lua_pushstring]
jmp 0x140048eee
cmp eax, dword [0x14006e288]
jne 0x140048eee
mov rcx, qword [rdi + 8]
mov r9d, 0x20000
xor r8d, r8d
mov edx, 0x445
call qword [sym.imp.USER32.dll_SendMessageA]
jmp 0x140048eee
mov eax, dword [rdi + 0x10]
cmp eax, dword [0x14006e294]
jl 0x140048eee
cmp eax, dword [0x14006e298]
jg 0x140048eee
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140048eee
xor r9d, r9d
lea r8d, [rcx - 1]
cmp eax, dword [0x14006e28c]
cmove r9, rcx
mov rdx, rdi
mov rcx, rbx
call fcn.1400526a4
jmp 0x140048eee
cmp dword [rbp - 0x28], 0x414
jne 0x1400490d6
mov r8, qword [rbp - 0x20]
mov edx, 0xfff0b9d8
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_rawgeti]
cmp eax, 5
jne 0x140048eee
lea r8, str.onClick
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_getfield]
test eax, eax
je 0x140048eee
mov r8d, r13d
mov edx, esi
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_rotate]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0xffffffffffffffff
jle 0x140048eee
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_pushinteger]
mov r8d, 2
lea rdx, str.MenuItem
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_pushnewinstance]
or r8d, 0xffffffff
mov edx, esi
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_rotate]
mov edx, esi
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_settop]
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_gettop]
mov r14d, eax
sub r14d, r15d
sub r14d, r13d
jne 0x140048f27
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_type]
cmp eax, 6
je 0x140048f27
mov eax, dword [0x14006e29c]
cmp dword [rdi + 0x10], eax
jle 0x1400490ea
jmp 0x1400490d6
mov rcx, rbx
call qword [sym.wluart_static.exe_search_task]
mov r15, rax
test rax, rax
je 0x140048f3c
mov dword [rax + 0x30], r13d
and qword [rsp + 0x28], 0
xor r9d, r9d
and qword [rsp + 0x20], 0
or r8d, 0xffffffff
mov edx, r14d
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_pcallk]
test eax, eax
je 0x140048f68
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_error]
test r15, r15
je 0x140048f72
and dword [r15 + 0x30], 0
cmp dword [rbp - 0x28], 0x40e
jne 0x140048fa7
mov eax, dword [0x14006e288]
cmp dword [rdi + 0x10], eax
jne 0x1400490ea
mov rcx, qword [rdi + 8]
mov r9d, 0xa0001
xor r8d, r8d
mov edx, 0x445
call qword [sym.imp.USER32.dll_SendMessageA]
jmp 0x1400490ea
cmp dword [rbp - 0x28], 0x408
jne 0x1400490ea
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_gettop]
mov esi, eax
test eax, eax
je 0x140048fd3
or edx, 0xffffffff
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_toboolean]
test eax, eax
je 0x14004901b
mov rcx, qword [rdi + 8]
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x14006e2c4]
cmp dword [rdi + 0x10], eax
jne 0x14004900b
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x14004900b
mov edx, r13d
call qword [sym.imp.USER32.dll_EnableWindow]
mov rcx, qword [rdi + 0x18]
call qword [sym.imp.USER32.dll_SetActiveWindow]
and qword [rdi + 0x18], 0
cmp dword [rdi + 0xd8], 0
je 0x14004901b
and dword [rdi + 0xd8], 0
or edx, 0xffffffff
mov rcx, rbx
sub edx, esi
call qword [sym.wluart_static.exe_lua_settop]
jmp 0x1400490ea
mov rcx, qword [rbp - 0x30]
jmp 0x14004904c
mov ecx, dword [0x14006e2c4]
cmp dword [rdi + 0x10], ecx
je 0x14004905f
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_GetParent]
mov rcx, rax
mov edx, r14d
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
mov rdi, rax
test rax, rax
jne 0x140049034
jmp 0x1400490d6
cmp dword [rbp - 0x28], 0x100
jne 0x1400490c0
cmp qword [rbp - 0x20], 9
jne 0x1400490c0
mov rcx, qword [rbp - 0x30]
mov edx, r14d
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
test rax, rax
je 0x1400490c0
mov ecx, dword [0x14006e288]
cmp dword [rax + 0x10], ecx
je 0x1400490c0
mov ecx, reloc.WS2_32.dll_recv
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov rdx, qword [rbp - 0x30]
movzx r8d, ax
mov rcx, qword [rdi + 8]
shr r8d, 0xf
and r8d, r13d
call qword [sym.imp.USER32.dll_GetNextDlgTabItem]
test rax, rax
je 0x1400490c0
mov rcx, rax
call qword [sym.imp.USER32.dll_SetFocus]
jmp 0x14004910a
mov rdx, qword [rdi + 0x70]
lea r8, [rbp - 0x30]
mov rcx, qword [rdi + 8]
call qword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x1400490e0
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageA]
mov rcx, rbx
call qword [sym.wluart_static.exe_lua_gettop]
or edx, 0xffffffff
mov rcx, rbx
sub edx, eax
call qword [sym.wluart_static.exe_lua_settop]
mov esi, 0xfffffffe
lea r14d, [rsi - 0x13]
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor r8d, r8d
lea rcx, [rbp - 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x140048ad9
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_Sleep]
lea r11, [rsp + 0x60]
xor eax, eax
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret