Function at 0x1005d330
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100e4600
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x10
push esi
push edi
mov eax, dword [0x10122094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0x29], 0
je 0x1005d4aa
mov esi, dword [0x1012f1fc]
xor edx, edx
mov eax, dword [esi]
cmp eax, esi
je 0x1005d393
cmp dword [eax + 8], edi
je 0x1005d393
mov ecx, dword [eax]
inc edx
mov eax, ecx
cmp ecx, esi
jne 0x1005d385
mov esi, dword [edi + 0x24]
sub esp, 0x18
imul eax, edx, 0x13
mov ecx, esp
mov dword [ebp - 0x14], ecx
sub esi, eax
lea eax, [edi + 0x3c]
push eax
call fcn.1003ecf0
xor ecx, ecx
call fcn.10058910
add eax, 8
mov dword [ebp - 0x14], edx
mov edx, dword [edi + 0x20]
add esp, 0x18
mov dword [ebp - 0x1c], eax
mov eax, dword [0x1012f1f0]
mov ecx, dword [eax]
mov eax, dword [0x1012f1ec]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
cmp eax, edx
jb 0x1005d4aa
mov eax, dword [ebp - 0x1c]
add eax, edx
cmp dword [ebp - 0x14], eax
ja 0x1005d4aa
cmp ecx, esi
jb 0x1005d4aa
lea eax, [esi + 0xf]
cmp ecx, eax
ja 0x1005d4aa
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call esi
test ax, ax
je 0x1005d42c
cmp byte [ebx + 8], 0
je 0x1005d583
push 0
mov ecx, edi
call fcn.1005d110
mov ecx, edi
call fcn.1005d670
mov al, 1
jmp 0x1005d648
push 0x10
call esi
test ax, ax
je 0x1005d473
cmp byte [ebx + 8], 0
jne 0x1005d473
lea esi, [edi + 0x58]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov byte [edi + 0x2a], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebx + 0xc]
mov eax, edx
sub eax, dword [edi + 0x20]
mov ecx, dword [ebx + 0x10]
mov dword [edi + 0x2c], eax
mov eax, ecx
sub eax, dword [edi + 0x24]
mov dword [edi + 0x30], eax
mov al, 1
mov dword [edi + 0x34], edx
mov dword [edi + 0x38], ecx
jmp 0x1005d648
push 1
push 0
mov ecx, edi
call fcn.1005cb70
cmp byte [ebx + 8], 0
jne 0x1005d583
push str.CTRL_click_to_open_settings
push 7
call fcn.10041380
push str.Shift_drag_to_move
push 7
call fcn.10041380
add esp, 0x10
mov al, 1
jmp 0x1005d648
mov edx, dword [edi + 0xc]
mov ecx, dword [ebx + 0xc]
cmp ecx, edx
jb 0x1005d61b
mov eax, dword [edi + 0x14]
mov esi, dword [ebx + 0x10]
add eax, edx
cmp ecx, eax
ja 0x1005d58a
mov eax, dword [edi + 0x10]
cmp esi, eax
jb 0x1005d58a
add eax, 0xf
cmp esi, eax
ja 0x1005d58a
cmp byte [edi + 0x29], 0
jne 0x1005d58a
cmp byte [ebx + 8], 0
jne 0x1005d530
lea esi, [edi + 0x58]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov byte [edi + 0x2a], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax]
call eax
mov esi, dword [ebx + 0xc]
mov ecx, esi
sub ecx, eax
mov eax, dword [edi]
mov dword [edi + 0x2c], ecx
mov ecx, edi
mov eax, dword [eax + 4]
call eax
mov edx, dword [ebx + 0x10]
mov ecx, edx
sub ecx, eax
mov dword [edi + 0x34], esi
mov dword [edi + 0x30], ecx
mov dword [edi + 0x38], edx
jmp 0x1005d567
push 1
push 0
mov ecx, edi
call fcn.1005cb70
mov eax, dword [ebx + 0xc]
cmp dword [edi + 0x34], eax
jne 0x1005d567
cmp dword [edi + 0x38], esi
jne 0x1005d567
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1005d567
push str.Right_Click_to_Close
push 0x87
call fcn.10041380
add esp, 8
lea esi, [edi + 0x58]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov byte [edi + 0x28], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, edi
call fcn.1005d670
mov al, 1
jmp 0x1005d648
mov eax, dword [edi + 0x14]
add eax, edx
cmp ecx, eax
ja 0x1005d61b
mov ecx, dword [edi + 0x10]
cmp esi, ecx
jb 0x1005d61b
mov eax, dword [edi + 0x18]
add eax, ecx
cmp esi, eax
ja 0x1005d61b
cmp byte [edi + 0x29], 0
jne 0x1005d61b
lea esi, [edi + 0x58]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov byte [edi + 0x28], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, edi
call fcn.1005d670
cmp byte [ebx + 8], 0
je 0x1005d583
mov eax, dword [edi + 0x70]
mov esi, dword [eax]
cmp esi, eax
je 0x1005d583
nop dword [eax + eax]
push dword [ebx + 0x10]
mov ecx, dword [esi + 8]
push dword [ebx + 0xc]
call fcn.1005b8e0
test al, al
jne 0x1005d5fd
mov esi, dword [esi]
cmp esi, dword [edi + 0x70]
jne 0x1005d5e0
mov al, 1
jmp 0x1005d648
mov esi, dword [esi + 8]
lea eax, [edi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x58]
mov dword [edi + 0x54], esi
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x1005d648
lea esi, [edi + 0x58]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [edi + 0x28], 0
call esi
lea eax, [edi + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x58]
mov byte [edi + 0x2a], 0
push eax
call esi
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc