Function at 0x100cb17e
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x10246e44]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [ebx + 0xfc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x30], edi
test eax, eax
je 0x100cb1ef
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x100cb1ef
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx + 0xfc]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
push edi
push esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
mov ecx, dword [ebx + 0xfc]
push eax
call fcn.1015a530
cmp dword [ebp + 8], 0x201
jne 0x100cb287
cmp dword [0x1024df04], 0
jne 0x100cb214
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
bt ax, 0xf
jae 0x100cb287
mov edi, dword [0x1024df44]
test edi, edi
je 0x100cb287
mov esi, edi
test edi, edi
je 0x100cb7d1
mov esi, dword [esi + 8]
mov edi, dword [edi]
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x100cb7d1
push dword [esi + 0x20]
call fcn.1006fe21
test eax, eax
je 0x100cb280
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esi]
push dword [ebp - 0x34]
push dword [ebp - 0x38]
mov esi, dword [eax + 0x390]
mov ecx, esi
call dword [0x101e0a88]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
jns 0x100cb35f
test edi, edi
jne 0x100cb21e
mov esi, dword [ebp - 0x28]
and dword [ebp - 0x2c], 0
call fcn.1009fca5
cmp dword [0x1024df04], 0
mov edi, eax
jne 0x100cb677
test edi, edi
je 0x100cb677
mov eax, dword [ebp - 0x30]
mov ecx, edi
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], esi
call fcn.1009e697
cmp eax, 4
jne 0x100cb662
call fcn.1009fb0b
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x100cb3e6
push dword [esi + 0x1170]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100cb3e6
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x1170]
call dword [sym.imp.USER32.dll_GetWindowRect]
push dword [ebp - 0x30]
lea eax, [ebp - 0x14]
push dword [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x100cb3e6
push dword [esi + 0x1170]
call fcn.1006fe21
push eax
push 0x102463cc
call fcn.100783c8
pop ecx
pop ecx
xor ecx, ecx
mov esi, eax
mov eax, dword [ebp - 0x3c]
push ecx
push ecx
push 0x10
push dword [eax + 0x20]
mov dword [eax + 0x1170], ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [0x1024e8a8], esi
xor eax, eax
jmp 0x100cb7c0
mov edi, dword [ebp - 0x2c]
mov ecx, edi
push eax
call fcn.10091b8e
mov dword [ebp - 0x2c], eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x38]
mov ecx, esi
call dword [0x101e0a88]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
je 0x100cb284
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov esi, dword [eax + 0x38]
mov ecx, esi
call dword [0x101e0a88]
mov ecx, dword [ebp - 0x2c]
call esi
cmp eax, dword [ebp + 0x14]
jne 0x100cb284
push dword [ebp - 0x34]
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x38]
add eax, 0x54
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x100cb284
movzx ecx, word [ebp - 0x34]
movzx eax, word [ebp - 0x38]
shl ecx, 0x10
or ecx, eax
push ecx
push 0
push 0x201
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
xor eax, eax
inc eax
jmp 0x100cb7c0
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
cmp dword [0x1024e8a8], eax
je 0x100cb590
mov esi, dword [edi + 0x20]
push eax
call fcn.10073af1
push esi
lea ecx, [eax + 0x1c]
call fcn.1007ba64
test eax, eax
jne 0x100cb430
mov esi, dword [edi + 0x20]
push eax
call fcn.10073af1
push esi
lea ecx, [eax + 0x38]
call fcn.1007ba64
test eax, eax
je 0x100cb590
mov eax, dword [edi]
lea ecx, [ebp - 0x24]
push ecx
mov esi, dword [eax + 0x1d4]
mov ecx, esi
call dword [0x101e0a88]
mov ecx, edi
call esi
mov dword [ebp - 0x34], eax
test eax, eax
je 0x100cb590
push eax
push 0x102463a8
call fcn.100783c8
mov esi, eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
pop ecx
push eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], esi
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_ScreenToClient]
push dword [ebp - 8]
lea eax, [ebp - 0x24]
push dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x100cb4fb
test esi, esi
je 0x100cb4b2
mov eax, dword [esi]
mov esi, dword [eax + 0x44c]
mov ecx, esi
call dword [0x101e0a88]
mov ecx, dword [ebp - 0x3c]
call esi
test eax, eax
je 0x100cb4d3
mov eax, dword [edi]
mov esi, dword [eax + 0x1cc]
mov ecx, esi
call dword [0x101e0a88]
mov ecx, edi
call esi
test eax, eax
jne 0x100cb4d3
push eax
push eax
push 0x10
jmp 0x100cb3d5
cmp dword [ebp + 8], 0x204
je 0x100cb4e9
cmp dword [ebp + 8], 0x205
jne 0x100cb3de
cmp dword [edi + 0x116c], 0
jne 0x100cb358
jmp 0x100cb3de
test esi, esi
je 0x100cb590
mov eax, dword [esi]
mov esi, dword [eax + 0x44c]
mov ecx, esi
call dword [0x101e0a88]
mov edi, dword [ebp - 0x3c]
mov ecx, edi
call esi
test eax, eax
jne 0x100cb590
mov eax, dword [edi]
mov esi, dword [eax + 0x440]
mov ecx, esi
call dword [0x101e0a88]
mov ecx, edi
call esi
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.1006fdf7
push eax
push 0x102463cc
call fcn.100783c8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100cb590
mov eax, dword [ebp - 0x28]
mov ecx, esi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x38]
push eax
call fcn.1009e697
test eax, eax
je 0x100cb358
jle 0x100cb590
cmp eax, 2
jle 0x100cb643
cmp eax, 3
je 0x100cb358
cmp eax, 5
je 0x100cb358
call fcn.1009fca5
mov edi, eax
test edi, edi
je 0x100cb677
mov ecx, dword [edi]
mov esi, dword [ecx + 0x1cc]
mov ecx, esi
call dword [0x101e0a88]
mov ecx, edi
call esi
test eax, eax
jne 0x100cb677
mov eax, dword [edi]
mov esi, dword [eax + 0x1dc]
mov ecx, esi
call dword [0x101e0a88]
mov ecx, edi
call esi
push 0
neg eax
push 0
sbb esi, esi
push 0x10
push dword [edi + 0x20]
inc esi
mov dword [ebp - 0x2c], esi
call dword [sym.imp.USER32.dll_SendMessageA]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call fcn.1006fdf7
test eax, eax
je 0x100cb611
push 0x102462f0
mov ecx, eax
call fcn.10078462
test eax, eax
je 0x100cb611
mov ecx, dword [ebx + 0xb0]
call fcn.10075744
test esi, esi
mov esi, dword [ebp - 0x28]
je 0x100cb67a
push dword [ebp - 0x30]
push esi
call dword [sym.imp.USER32.dll_WindowFromPoint]
push eax
call fcn.1006fdf7
push eax
push 0x101faf5c
call fcn.100783c8
pop ecx
pop ecx
test eax, eax
je 0x100cb63f
cmp dword [eax + 0x20], 0
jne 0x100cb67a
xor edi, edi
jmp 0x100cb67d
push 0
push 0
push 0x10
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebx + 0xb0]
call fcn.10075744
jmp 0x100cb3de
cmp eax, 1
je 0x100cb66c
cmp eax, 2
jne 0x100cb677
push 0
push 0
push 0x10
push dword [edi + 0x20]
jmp 0x100cb64c
mov esi, dword [ebp - 0x28]
mov edi, dword [ebp - 0x2c]
cmp dword [ebp + 8], 0xa5
jne 0x100cb7be
mov eax, dword [ebx + 0xb0]
test eax, eax
je 0x100cb697
mov eax, dword [eax + 0x20]
cmp dword [ebp + 0x14], eax
jne 0x100cb7be
mov ecx, ebx
call fcn.100c9a17
test eax, eax
je 0x100cb7be
push ecx
push ecx
mov ecx, dword [ebp - 0x30]
mov eax, esp
mov dword [eax + 4], ecx
mov ecx, ebx
mov dword [eax], esi
call fcn.100ca815
cmp eax, 2
je 0x100cb6df
cmp eax, 3
je 0x100cb6df
cmp eax, 8
je 0x100cb6df
cmp eax, 9
je 0x100cb6df
cmp eax, 0x14
jne 0x100cb7be
mov eax, dword [ebx + 0xb0]
push 0
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call fcn.1008ac15
mov esi, eax
test esi, esi
je 0x100cb7be
cmp dword [esi + 4], 0
je 0x100cb7be
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x100cb7be
push 0
push 0xf030
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EnableMenuItem]
push 0
push 0xf120
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [ebx + 0xb0]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsZoomed]
test eax, eax
je 0x100cb757
push 3
push 0xf030
jmp 0x100cb771
mov eax, dword [ebx + 0xb0]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
jne 0x100cb77a
push 3
push 0xf120
push dword [esi + 4]
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov eax, dword [ebx + 0xb0]
test eax, eax
je 0x100cb787
mov eax, dword [eax + 0x20]
push 0
push eax
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x28]
push 0x100
push dword [esi + 4]
call dword [sym.imp.USER32.dll_TrackPopupMenu]
test eax, eax
je 0x100cb7be
push 0
push eax
mov eax, dword [ebx + 0xb0]
push 0x112
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_SendMessageA]
xor edi, edi
inc edi
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.101a654a
leave
ret 0x10
call fcn.100644cd
int3