Function at 0x43e130
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x24
lea eax, [esp + 8]
push edi
push 1
xor edi, edi
push edi
push edi
push edi
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x43e732
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
push ebp
push esi
mov esi, dword [esp + 0x38]
mov eax, dword [esp + 0x1c]
cmp eax, 0x402
jb 0x43e656
mov ecx, dword [sym.wluart.exe_WM_LUAMAX]
cmp edi, dword [ecx + 4]
jg 0x43e656
jl 0x43e183
cmp eax, dword [ecx]
ja 0x43e656
push esi
mov ebp, edi
call dword [0x45402c]
cmp dword [esp + 0x1c], 0
pop ecx
mov dword [esp + 0x14], eax
je 0x43e4a4
push 0xffffffffffffffeb
push dword [esp + 0x1c]
call ebx
mov ebp, eax
test ebp, ebp
je 0x43e6e5
mov eax, dword [ebp + 0x14]
cdq
push edx
push eax
push 0xfff0b9d8
push esi
call dword [0x4540e4]
add esp, 0x10
cmp eax, 5
jne 0x43e717
mov edi, dword [sym.wluart.exe_lua_gettop]
push esi
call edi
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push 0
push dword [esp + 0x28]
push esi
call dword [0x4540f4]
add esp, 0x14
cmp dword [esp + 0x10], 6
jne 0x43e296
push 0xfffffffffffffffe
push esi
call dword [0x454088]
lea eax, [esp + 0x20]
push eax
push esi
call dword [0x454050]
xor eax, eax
push eax
push eax
push eax
push 0xffffffffffffffff
push 2
push esi
call dword [0x453ff0]
add esp, 0x28
test eax, eax
je 0x43e22b
push esi
call dword [0x45405c]
pop ecx
push esi
call edi
mov edi, eax
sub edi, ebx
pop ecx
cmp edi, 1
jne 0x43e25a
push 0xffffffffffffffff
push esi
call dword [0x454034]
pop ecx
pop ecx
test eax, eax
je 0x43e494
push edi
push 0xfffffffffffffffe
push esi
call dword [0x45408c]
jmp 0x43e483
jle case.0x43e2d2.1031
mov eax, edi
not eax
push eax
push esi
call dword [0x454088]
neg edi
push 0xffffffffffffffff
lea eax, [edi - 2]
push eax
push esi
call dword [0x45408c]
push 0xfffffffffffffffe
push esi
call dword [0x453fd0]
push 1
push edi
push esi
call dword [0x45408c]
add esp, 0x28
jmp case.0x43e2d2.1031
push eax
push 0xffffffffffffffff
push esi
call dword [0x453fe0]
add esp, 0xc
test eax, eax
je 0x43e494
push 1
push 0xfffffffffffffffe
push esi
call dword [0x45408c]
mov eax, dword [esp + 0x28]
add esp, 0xc
add eax, 0xfffffbfa
cmp eax, 0x11
ja case.0x43e2d2.1031
movzx eax, byte [eax + 0x43e760]
jmp dword [eax*4 + 0x43e744]
mov edx, dword [ebp + 8]
cmp edx, dword [0x45a590]
jl case.0x43e2d2.1031
cmp edx, dword [0x45a594]
jg case.0x43e2d2.1031
mov ecx, dword [esp + 0x20]
test ecx, ecx
je case.0x43e2d2.1031
xor eax, eax
cmp edx, dword [0x45a588]
cmove eax, ecx
push eax
lea eax, [ecx - 1]
push eax
push ebp
push esi
call fcn.00446574
add esp, 0x10
jmp case.0x43e2d2.1031
mov eax, dword [esp + 0x20]
push dword [eax*4 + 0x459230]
push esi
call dword [0x453fd8]
movsx eax, word [esp + 0x2c]
mov ebx, dword [sym.wluart.exe_lua_pushinteger]
cdq
push edx
push eax
push esi
call ebx
mov eax, dword [esp + 0x38]
shr eax, 0x10
cwde
cdq
push edx
push eax
push esi
call ebx
add esp, 0x20
jmp case.0x43e2d2.1031
mov eax, dword [ebp + 8]
cmp eax, dword [0x45a58c]
jne 0x43e381
push 0
push 0
push 0x407
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
push esi
call fcn.0044059c
jmp 0x43e49d
cmp eax, dword [0x45a588]
jne 0x43e3d8
cmp dword [esp + 0x20], 0
je 0x43e3a9
push 0xffffffffffffffff
push dword [esp + 0x28]
push esi
call dword [0x454018]
push dword [esp + 0x30]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x43e3b6
push dword [esp + 0x24]
push 0
push ebp
push esi
call fcn.00446574
add esp, 0x10
mov eax, str.removed
cmp dword [esp + 0x20], 0
mov ecx, str.edited
cmove eax, ecx
push eax
push esi
call dword [0x453fd8]
jmp 0x43e49d
cmp eax, dword [0x45a584]
jne case.0x43e2d2.1031
push 0x20000
push 0
push 0x445
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp case.0x43e2d2.1031
mov eax, dword [ebp + 8]
cmp eax, dword [0x45a5a8]
jne 0x43e411
push dword [ebp + 4]
jmp 0x43e376
cmp eax, dword [0x45a590]
jl 0x43e42e
cmp eax, dword [0x45a594]
jg 0x43e42e
push dword [esp + 0x24]
push dword [esp + 0x24]
jmp 0x43e310
cmp eax, dword [0x45a5a0]
jne 0x43e441
push dword [ebp + 4]
push esi
call fcn.00442205
jmp 0x43e49d
cmp eax, dword [0x45a584]
jne case.0x43e2d2.1031
mov edi, dword [sym.wluart.exe_lua_pushinteger]
push 0
push dword [esp + 0x24]
push esi
call edi
mov eax, dword [esp + 0x30]
cdq
push edx
push eax
push esi
call edi
add esp, 0x18
jmp case.0x43e2d2.1031
cmp dword [esp + 0x20], 0
jne 0x43e48b
push 1
lea eax, [esp + 0x28]
push eax
push esi
call dword [0x454048]
add esp, 0xc
jmp case.0x43e2d2.1031
push dword [esp + 0x20]
jmp 0x43e3cc
push 0xfffffffffffffffe
push esi
call dword [0x453fd0]
pop ecx
pop ecx
jmp case.0x43e2d2.1031
cmp dword [esp + 0x1c], 0x414
jne 0x43e6e5
push edi
push dword [esp + 0x24]
push 0xfff0b9d8
push esi
call dword [0x4540e4]
add esp, 0x10
cmp eax, 5
jne 0x43e6e5
push str.onClick
push 0xffffffffffffffff
push esi
call dword [0x453fe0]
add esp, 0xc
test eax, eax
je 0x43e6e5
push 1
push 0xfffffffffffffffe
push esi
call dword [0x45408c]
mov eax, dword [esp + 0x30]
add esp, 0xc
cmp eax, 0xffffffff
jle case.0x43e2d2.1031
cdq
push edx
push eax
push esi
call dword [0x454044]
push 2
push str.MenuItem
push esi
call dword [0x454010]
push 0xffffffffffffffff
push 0xfffffffffffffffe
push esi
call dword [0x45408c]
push 0xfffffffffffffffe
push esi
call dword [0x453fd0]
add esp, 0x2c
push esi
call dword [0x45402c]
mov edi, eax
sub edi, dword [esp + 0x18]
pop ecx
sub edi, 1
jne 0x43e565
push 0xffffffffffffffff
push esi
call dword [0x454034]
pop ecx
pop ecx
cmp eax, 6
je 0x43e565
mov eax, dword [ebp + 8]
cmp eax, dword [0x45a598]
jle 0x43e6fb
jmp 0x43e6e5
push esi
call dword [0x4540f8]
mov dword [esp + 0x18], eax
pop ecx
lea ebx, [eax + 0x1c]
test eax, eax
je 0x43e57e
mov dword [ebx], 1
xor eax, eax
push eax
push eax
push eax
push 0xffffffffffffffff
push edi
push esi
call dword [0x453ff0]
add esp, 0x18
test eax, eax
je 0x43e59c
push esi
call dword [0x45405c]
pop ecx
cmp dword [esp + 0x14], 0
je 0x43e5a6
and dword [ebx], 0
cmp dword [esp + 0x1c], 0x40e
jne 0x43e5d9
mov eax, dword [ebp + 8]
cmp eax, dword [0x45a584]
jne 0x43e6fb
push 0xa0001
push 0
push 0x445
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x43e6fb
cmp dword [esp + 0x1c], 0x408
jne 0x43e6fb
push esi
call dword [0x45402c]
mov edi, eax
pop ecx
test edi, edi
je 0x43e604
push 0xffffffffffffffff
push esi
call dword [0x454038]
pop ecx
pop ecx
test eax, eax
je 0x43e645
xor ebx, ebx
push ebx
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 8]
cmp eax, dword [0x45a5c0]
jne 0x43e637
cmp dword [ebp + 0xc], ebx
je 0x43e637
push 1
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov dword [ebp + 0xc], ebx
cmp dword [ebp + 0x8c], ebx
je 0x43e645
mov dword [ebp + 0x8c], ebx
not edi
push edi
push esi
call dword [0x453fd0]
pop ecx
pop ecx
jmp 0x43e6fb
push 0xffffffffffffffeb
push dword [esp + 0x1c]
jmp 0x43e675
mov ecx, dword [edi + 8]
cmp ecx, dword [0x45a5c0]
je 0x43e67f
push 0xffffffffffffffeb
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x43e65e
jmp 0x43e6e5
cmp dword [esp + 0x1c], 0x100
jne 0x43e6d0
cmp dword [esp + 0x20], 9
jne 0x43e6d0
push 0xffffffffffffffeb
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x43e6d0
mov eax, dword [eax + 8]
cmp eax, dword [0x45a584]
je 0x43e6d0
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and eax, 1
push eax
push dword [esp + 0x1c]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetNextDlgTabItem]
test eax, eax
je 0x43e6d0
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x43e715
lea eax, [esp + 0x18]
push eax
push dword [edi + 0x3c]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x43e6f0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
call dword [0x45402c]
not eax
push eax
push esi
call dword [0x453fd0]
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongA]
add esp, 0xc
xor edi, edi
push 1
push edi
push edi
push edi
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x43e15b
pop esi
pop ebp
pop ebx
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
pop edi
add esp, 0x24
ret