Function at 0x451110
Capabilities:
Hide graphical window
Log keystrokes via polling

Disassembly:
sub esp, 0x34
lea eax, [esp + 0x18]
push 1
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x451a25
push ebx
mov ebx, dword [sym.wluart_static.exe_lua_rotate]
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetParent]
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowLongA]
push edi
mov edi, dword [esp + 0x48]
nop dword [eax + eax]
mov eax, dword [esp + 0x2c]
cmp eax, 0x402
jb 0x4518ba
mov ecx, dword [sym.wluart_static.exe_WM_LUAMAX]
xor edx, edx
cmp edx, dword [ecx + 4]
jg 0x4518ba
jl 0x45117a
cmp eax, dword [ecx]
ja 0x4518ba
xor ebp, ebp
push edi
mov dword [esp + 0x14], ebp
call dword [0x46e938]
mov dword [esp + 0x28], eax
add esp, 4
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4516fe
push 0xffffffffffffffeb
push eax
call esi
mov ebp, eax
mov dword [esp + 0x10], ebp
test ebp, ebp
je 0x4519ca
mov eax, dword [ebp + 0x14]
cdq
push edx
push eax
push 0xfff0b9d8
push edi
call dword [0x46e9fc]
add esp, 0x10
cmp eax, 5
jne 0x451a00
mov esi, dword [sym.wluart_static.exe_lua_gettop]
push edi
call esi
mov ebx, eax
lea eax, [esp + 0x20]
push eax
push 0
push dword [esp + 0x38]
push edi
call dword [0x46ea14]
add esp, 0x14
cmp dword [esp + 0x1c], 6
jne 0x4512b3
push 0xfffffffffffffffe
push edi
call dword [0x46e994]
lea eax, [esp + 0x30]
push eax
push edi
call dword [0x46e95c]
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push edi
call dword [0x46e8fc]
add esp, 0x28
test eax, eax
je 0x45122d
push edi
call dword [0x46e964]
add esp, 4
push edi
call esi
mov esi, eax
add esp, 4
sub esi, ebx
cmp esi, 1
jne 0x451274
mov ebx, dword [sym.wluart_static.exe_lua_type]
push 0xffffffffffffffff
push edi
call ebx
add esp, 8
test eax, eax
jne 0x451260
mov eax, dword [sym.wluart_static.exe_lua_settop]
push 0xfffffffffffffffe
push edi
call eax
add esp, 8
jmp 0x45177f
mov eax, dword [sym.wluart_static.exe_lua_rotate]
push 1
push 0xfffffffffffffffe
push edi
call eax
add esp, 0xc
jmp 0x45177f
jle case.0x4512f0.1031
mov eax, esi
not eax
push eax
push edi
call dword [0x46e994]
mov ebx, dword [sym.wluart_static.exe_lua_rotate]
mov eax, 0xfffffffe
push 0xffffffffffffffff
sub eax, esi
push eax
push edi
call ebx
mov eax, dword [sym.wluart_static.exe_lua_settop]
push 0xfffffffffffffffe
push edi
call eax
push 1
neg esi
push esi
push edi
call ebx
add esp, 0x28
jmp case.0x4512f0.1031
push eax
push 0xffffffffffffffff
push edi
call dword [0x46e8ec]
add esp, 0xc
test eax, eax
je 0x4516f0
mov eax, dword [sym.wluart_static.exe_lua_rotate]
push 1
push 0xfffffffffffffffe
push edi
call eax
mov eax, dword [esp + 0x38]
add esp, 0xc
add eax, 0xfffffbfa
cmp eax, 0x16
ja case.0x4512f0.1031
movzx eax, byte [eax + 0x451a50]
jmp dword [eax*4 + 0x451a2c]
mov edx, dword [ebp + 8]
cmp edx, dword [0x4767f0]
jl case.0x4512f0.1031
cmp edx, dword [0x4767f4]
jg case.0x4512f0.1031
mov ecx, dword [esp + 0x30]
test ecx, ecx
je case.0x4512f0.1031
xor eax, eax
cmp edx, dword [0x4767e8]
cmove eax, ecx
push eax
lea eax, [ecx - 1]
push eax
push ebp
push edi
call fcn.0045c1a0
add esp, 0x10
jmp case.0x4512f0.1031
mov eax, dword [esp + 0x30]
push dword [eax*4 + 0x475260]
push edi
call dword [0x46e8e8]
movsx eax, word [esp + 0x3c]
mov ebx, dword [sym.wluart_static.exe_lua_pushinteger]
cdq
push edx
push eax
push edi
call ebx
mov eax, dword [esp + 0x48]
shr eax, 0x10
cwde
cdq
push edx
push eax
push edi
call ebx
add esp, 0x20
jmp case.0x4512f0.1031
movsx eax, word [esp + 0x34]
mov ebx, dword [sym.wluart_static.exe_lua_pushinteger]
cdq
push edx
push eax
push edi
call ebx
mov eax, dword [esp + 0x40]
shr eax, 0x10
cwde
cdq
push edx
push eax
push edi
call ebx
push 5
push 0
push edi
call dword [0x46e8f0]
mov eax, dword [esp + 0x54]
mov ebx, dword [sym.wluart_static.exe_lua_pushboolean]
and eax, 8
push eax
push edi
call ebx
mov esi, dword [sym.wluart_static.exe_lua_setfield]
push 0x46cc44
push 0xfffffffffffffffe
push edi
call esi
mov eax, dword [esp + 0x68]
and eax, 4
push eax
push edi
call ebx
add esp, 0x40
push str.shift
push 0xfffffffffffffffe
push edi
call esi
mov eax, dword [esp + 0x3c]
and eax, 2
push eax
push edi
call ebx
push str.right
push 0xfffffffffffffffe
push edi
call esi
mov eax, dword [esp + 0x50]
and eax, 1
push eax
push edi
call ebx
push str.left
push 0xfffffffffffffffe
push edi
call esi
mov eax, dword [esp + 0x64]
and eax, 0x10
push eax
push edi
call ebx
push str.middle
push 0xfffffffffffffffe
push edi
call esi
add esp, 0x48
jmp case.0x4512f0.1031
mov eax, dword [ebp + 8]
cmp eax, dword [0x4767ec]
jne 0x45144c
push 0
push 0
push 0x407
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
push edi
call fcn.004543f0
add esp, 8
jmp case.0x4512f0.1031
cmp eax, dword [0x4767e8]
jne 0x4514a6
cmp dword [esp + 0x30], 0
je 0x451474
push 0xffffffffffffffff
push dword [esp + 0x38]
push edi
call dword [0x46e928]
push dword [esp + 0x40]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x451481
push dword [esp + 0x34]
push 0
push ebp
push edi
call fcn.0045c1a0
add esp, 0x10
mov eax, str.removed
cmp dword [esp + 0x30], 0
mov ecx, str.edited
cmove eax, ecx
push eax
push edi
call dword [0x46e8e8]
add esp, 8
jmp case.0x4512f0.1031
cmp eax, dword [0x4767e4]
jne case.0x4512f0.1031
push 0x20000
push 0
push 0x445
push dword [ebp + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp case.0x4512f0.1031
mov eax, dword [ebp + 8]
cmp eax, dword [0x476808]
jne 0x4514e8
push dword [ebp + 4]
push edi
call fcn.004543f0
add esp, 8
jmp case.0x4512f0.1031
cmp eax, dword [0x4767f0]
jl 0x45150f
cmp eax, dword [0x4767f4]
jg 0x45150f
push dword [esp + 0x34]
push dword [esp + 0x34]
push ebp
push edi
call fcn.0045c1a0
add esp, 0x10
jmp case.0x4512f0.1031
cmp eax, dword [0x476800]
jne 0x451528
push dword [ebp + 4]
push edi
call fcn.004569f0
add esp, 8
jmp case.0x4512f0.1031
cmp eax, dword [0x4767e4]
jne case.0x4512f0.1031
mov ebx, dword [sym.wluart_static.exe_lua_pushinteger]
push 0
push dword [esp + 0x34]
push edi
call ebx
mov eax, dword [esp + 0x40]
cdq
push edx
push eax
push edi
call ebx
add esp, 0x18
jmp case.0x4512f0.1031
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x451496
push 1
lea eax, [esp + 0x38]
push eax
push edi
call dword [0x46e954]
add esp, 0xc
jmp case.0x4512f0.1031
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x18], ebx
movsx eax, byte [ebx]
sub eax, 1
je 0x4516c6
sub eax, 0xc
je 0x45169a
sub eax, 2
je 0x4515bb
push str.unknown
push edi
call dword [0x46e8e8]
add esp, 8
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp case.0x4512f0.1031
push 0
push 0
lea ebp, [ebx + 1]
push 0xffffffffffffffff
push ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov esi, eax
push str.files
push edi
mov dword [esp + 0x28], esi
call dword [0x46e8e8]
push 0
push esi
push edi
call dword [0x46e8f0]
add esp, 0x14
xor ebx, ebx
test esi, esi
je 0x451683
push 0
push 0
push ebx
push ebp
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
lea esi, [eax + 1]
lea ecx, [esi + esi]
push ecx
push 1
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
add esp, 8
mov ebp, eax
push esi
push ebp
push ebx
push dword [esp + 0x20]
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
push 0xffffffffffffffff
push ebp
push edi
call dword [0x46e928]
add esp, 0xc
push ebp
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push 1
test eax, eax
je 0x451646
push str.Directory
jmp 0x45164b
push str.File
push edi
call dword [0x46e920]
add esp, 0xc
inc ebx
push 0
push ebx
push 0xfffffffffffffffd
push edi
call dword [0x46e8f8]
push 0xfffffffffffffffe
push edi
call dword [0x46e8e0]
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebp, dword [esp + 0x30]
add esp, 0x1c
cmp ebx, dword [esp + 0x20]
jb 0x4515f8
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp case.0x4512f0.1031
push str.text
push edi
call dword [0x46e8e8]
shr esi, 1
lea eax, [ebx + 1]
push esi
push eax
push edi
call dword [0x46e928]
add esp, 0x14
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp case.0x4512f0.1031
push str.text
push edi
call dword [0x46e8e8]
push esi
lea eax, [ebx + 1]
push eax
push edi
call dword [0x46e954]
add esp, 0x14
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
jmp case.0x4512f0.1031
push 0xfffffffffffffffe
push edi
call dword [0x46e8e0]
add esp, 8
jmp case.0x4512f0.1031
cmp dword [esp + 0x2c], 0x415
jne 0x4519ca
push 0
push dword [esp + 0x34]
push 0xfff0b9d8
push edi
call dword [0x46e9fc]
add esp, 0x10
cmp eax, 5
jne case.0x4512f0.1031
push str.onClick
push 0xffffffffffffffff
push edi
call dword [0x46e8ec]
add esp, 0xc
test eax, eax
je case.0x4512f0.1031
push 1
push 0xfffffffffffffffe
push edi
call ebx
mov eax, dword [esp + 0x40]
add esp, 0xc
cmp eax, 0xffffffff
jle case.0x4512f0.1031
cdq
push edx
push eax
push edi
call dword [0x46e950]
push 2
push str.MenuItem
push edi
call dword [0x46e920]
push 0xffffffffffffffff
push 0xfffffffffffffffe
push edi
call ebx
push 0xfffffffffffffffe
push edi
call dword [0x46e8e0]
add esp, 0x2c
mov ebx, dword [sym.wluart_static.exe_lua_type]
push edi
call dword [0x46e938]
mov esi, eax
add esp, 4
sub esi, dword [esp + 0x24]
sub esi, 1
jne 0x4517b5
push 0xffffffffffffffff
push edi
call ebx
add esp, 8
cmp eax, 6
je 0x4517b5
mov eax, dword [ebp + 8]
cmp eax, dword [0x4767f8]
jle 0x4519e0
jmp 0x4519ca
push edi
call dword [0x46ea18]
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x4517cc
mov dword [ebp + 0x1c], 1
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
push edi
call dword [0x46e8fc]
add esp, 0x18
test eax, eax
je 0x4517ed
push edi
call dword [0x46e964]
add esp, 4
test ebp, ebp
je 0x4517f8
mov dword [ebp + 0x1c], 0
mov eax, dword [esp + 0x2c]
cmp eax, 0x40e
jne 0x451830
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 8]
cmp eax, dword [0x4767e4]
jne 0x4519e0
push 0xa0001
push 0
push 0x445
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4519e0
cmp eax, 0x408
jne 0x4519e0
push edi
call dword [0x46e938]
mov esi, eax
add esp, 4
test esi, esi
je 0x45185b
push 0xffffffffffffffff
push edi
call dword [0x46e944]
add esp, 8
test eax, eax
je 0x4518a8
mov ebx, dword [esp + 0x10]
push 0
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebx + 8]
cmp eax, dword [0x476820]
jne 0x451895
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x451895
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov dword [ebx + 0xc], 0
cmp dword [ebx + 0x8c], 0
je 0x4518a8
mov dword [ebx + 0x8c], 0
not esi
push esi
push edi
call dword [0x46e8e0]
add esp, 8
jmp 0x4519e0
push 0xffffffffffffffeb
push dword [esp + 0x2c]
call esi
mov ebx, eax
test ebx, ebx
je 0x4519ca
nop dword [eax]
mov ecx, dword [ebx + 8]
mov eax, dword [0x4767f4]
cmp ecx, dword [0x476820]
je 0x451909
cmp ecx, eax
je 0x451909
cmp ecx, dword [0x4767d8]
je 0x451909
cmp ecx, dword [0x476818]
je 0x451909
push 0xffffffffffffffeb
push dword [ebx + 4]
call ebp
push eax
call esi
mov ebx, eax
test ebx, ebx
jne 0x4518d0
jmp 0x4519ca
cmp dword [esp + 0x2c], 0x100
mov ebp, dword [ebx + 4]
jne 0x4519b5
cmp dword [esp + 0x30], 9
jne 0x4519b5
cmp ecx, eax
jne 0x451960
push 0
push 0
push 0
push 0x130b
push ebp
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push ebx
call fcn.0045c030
mov esi, eax
push dword [esi + 0xc]
mov ebp, dword [esi + 0x18]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongA]
add esp, 0x14
push 0xffffffffffffffeb
push dword [esp + 0x2c]
call esi
test eax, eax
je 0x4519b5
mov eax, dword [eax + 8]
cmp eax, dword [0x4767e4]
je 0x4519b5
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and eax, 1
push eax
push dword [esp + 0x2c]
push ebp
call dword [sym.imp.USER32.dll_GetNextDlgTabItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
push 9
push 9
call fcn.0045ed30
add esp, 4
push eax
push 0x416
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4519fa
lea eax, [esp + 0x28]
push eax
push dword [ebx + 0x3c]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4519d5
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push edi
call dword [0x46e938]
not eax
push eax
push edi
call dword [0x46e8e0]
mov esi, dword [sym.imp.USER32.dll_GetWindowLongA]
add esp, 0xc
mov ebx, dword [sym.wluart_static.exe_lua_rotate]
push 1
push 0
push 0
push 0
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
mov ebp, dword [sym.imp.USER32.dll_GetParent]
test eax, eax
jne 0x451150
pop edi
pop esi
pop ebp
pop ebx
xor eax, eax
add esp, 0x34
ret