Function at 0x408ee0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push esi
mov esi, dword [esp + 0x30]
push edi
push ebp
cmp esi, 0x20
je 0x408f25
cmp esi, 0x201
je 0x408f5e
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x48]
push ecx
lea ecx, [eax + eax*2]
push esi
push edx
mov edx, dword [ecx*8 + 0x437354]
push edx
call dword [sym.imp.USER32.dll_CallWindowProcA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x34]
push eax
call fcn.00408e60
add esp, 4
cmp eax, 0xffffffff
je 0x408ef8
push str.SPLITH1
mov eax, dword [0x438580]
push eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
mov ebp, dword [sym.imp.USER32.dll_SetCursor]
call ebp
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x20
ret
mov eax, dword [esp + 0x34]
push eax
call fcn.00408e60
add esp, 4
cmp eax, 0xffffffff
je 0x408ef8
xor ecx, ecx
mov edi, dword [esp + 0x44]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x44], 0x2d
jle 0x408fc3
sub edi, eax
push 4
mov ebp, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, dword [edi*4 + 0x4303d8]
sub esi, dword [0x4366b4]
add esi, dword [0x437718]
call ebp
mov ebx, eax
push 0x21
call ebp
add ebx, eax
mov eax, dword [0x437724]
add ebx, dword [0x4377ac]
add eax, dword [0x4377b4]
mov dword [esp + 0x1c], ebx
jmp 0x408fff
sub edi, eax
push 4
mov ebp, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, dword [edi*4 + 0x4303d4]
sub esi, dword [0x4366b0]
add esi, dword [0x437700]
call ebp
mov ebx, eax
push 0x21
call ebp
add ebx, eax
mov eax, dword [0x43773c]
add ebx, dword [0x437734]
add eax, dword [0x43770c]
mov dword [esp + 0x1c], ebx
add eax, ebx
push 0x17
mov ebx, 2
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 1
call ebp
test eax, eax
je 0x409023
mov dword [esp + 0x28], ebx
mov ebx, 1
mov eax, dword [esp + 0x34]
mov ebp, dword [sym.imp.USER32.dll_SetCapture]
push eax
call ebp
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [esp + 0x10]
mov ecx, dword [0x42f7d0]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [esp + 0x18]
mov eax, dword [0x42f7d0]
cmp dword [esp + 0x10], ecx
je 0x4090b8
cmp dword [esp + 0x10], esi
jg 0x409066
cmp ecx, esi
jle 0x4090b8
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
cmp dword [esp + 0x20], 0
mov ebp, eax
je 0x409082
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.USER32.dll_InvertRect]
cmp dword [esp + 0x10], esi
jle 0x40908e
mov eax, dword [esp + 0x10]
jmp 0x409091
lea eax, [esi + 1]
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
push ecx
inc eax
push ebp
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_InvertRect]
push ebp
mov ecx, dword [0x42f7d0]
push ecx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, 0x80
je 0x4090e0
push ebx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ah, 0x80
je 0x409030
mov dword [esp + 0x2c], 1
cmp dword [esp + 0x1c], 0
je 0x40910e
mov eax, dword [0x42f7d0]
push eax
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebx, eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_InvertRect]
push ebx
mov eax, dword [0x42f7d0]
push eax
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [esp + 0x2c], 0
jne 0x4091f1
cmp dword [esp + 0x44], 0x2d
jle 0x40918f
sub edi, 0x2d
cmp dword [esp + 0x10], esi
jle 0x40912d
mov esi, dword [esp + 0x10]
sub esi, dword [0x437718]
lea edx, [edi*4 + 0x430490]
sub esi, dword [edx]
cmp edi, 5
jge 0x409156
mov eax, dword [0x4366b4]
lea ecx, [esi + eax]
add dword [edx], ecx
add edx, 4
cmp edx, 0x4304a4
jb 0x409146
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 2
call fcn.0040e220
add esp, 4
push 1
push 2
call fcn.0040dfc0
add esp, 8
mov eax, dword [0x437710]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x20
ret
sub edi, 0x28
cmp dword [esp + 0x10], esi
jle 0x40919c
mov esi, dword [esp + 0x10]
sub esi, dword [0x437700]
lea edx, [edi*4 + 0x430478]
sub esi, dword [edx]
cmp edi, 5
jge 0x4091c5
mov eax, dword [0x4366b0]
lea ecx, [esi + eax]
add dword [edx], ecx
add edx, 4
cmp edx, 0x43048c
jb 0x4091b5
call dword [sym.imp.USER32.dll_ReleaseCapture]
push 1
call fcn.0040e220
add esp, 4
push 1
push 1
call fcn.0040dfc0
add esp, 8
mov eax, dword [0x4376f8]
push 1
push 0
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x20
ret