Function at 0x10163930
Capabilities:
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x102052ff
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10293044]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10293044]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x60]
xor eax, eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x34], 0x10
mov dword [esp + 0x38], 3
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 0xffffffff
call dword [sym.imp.COMCTL32.dll__TrackMouseEvent]
mov esi, dword [esp + 0x64]
and esi, 1
jne 0x101639ae
mov byte [ebp + 0x1a4], 0
lea edi, [ebp + 0x24]
push edi
lea eax, [esp + 0x6c]
call fcn.101725c0
test esi, esi
mov ebx, eax
je 0x10163a0c
cmp byte [ebp + 0x220], 0
je 0x10163a0c
test dword [ebp + 0x1f4], 0x200
je 0x10163a0c
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
push edx
push eax
lea ecx, [esp + 0x1f]
push ecx
push ebp
mov dword [ebp + 0x1ac], 0xffffffff
mov byte [esp + 0x27], 0
call fcn.10163260
mov al, byte [esp + 0x17]
or byte [ebp + 0x208], al
test al, al
jne 0x10163cc3
mov edx, dword [ebp + 4]
push edx
lea eax, [esp + 0x1c]
push eax
mov byte [ebp + 0x208], 0
call fcn.10020cf0
mov dword [esp + 0x58], 0
call fcn.101c6680
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov byte [esp + 0x58], 1
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
cmp ebx, dword [ebp + 0x1fc]
mov dword [esp + 0x28], eax
jne 0x10163ad9
test esi, esi
je 0x10163a9d
test ebx, 0x800
je 0x10163a9d
or esi, 0xffffffff
cmp dword [ebp + 0x1ac], esi
je 0x10163aa0
mov dword [ebp + 0x1ac], esi
mov edx, dword [edi + 0x1a0]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10163aa0
mov eax, dword [edi + 0x1a0]
push 0x101
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
jmp 0x10163aa0
or esi, 0xffffffff
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov byte [esp + 0x58], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10163ad0
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x10163ad0
mov dword [esp + 0x20], 0
mov dword [esp + 0x58], esi
jmp 0x10163cb9
test ebx, 0x600
je 0x10163b07
mov edx, dword [ebp + 0x1d8]
mov eax, dword [edx + 0x54]
lea ecx, [ebp + 0x1d8]
mov esi, ebx
and esi, 0xff
push esi
call eax
test al, al
je 0x10163b07
mov dword [ebp + 0x1ac], esi
jmp 0x10163b18
or eax, 0xffffffff
cmp dword [ebp + 0x1ac], eax
je 0x10163b4d
mov dword [ebp + 0x1ac], eax
mov ecx, dword [ebp + 4]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [edi + 0x1a0]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10163b4d
mov eax, dword [edi + 0x1a0]
push 0x101
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
test dword [ebp + 0x1fc], 0x800
jne 0x10163b8e
mov ecx, dword [ebp + 4]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [edi + 0x1a0]
push edx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10163b8e
mov eax, dword [edi + 0x1a0]
push 0x101
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_RedrawWindow]
test ebx, 0x800
jne 0x10163bc7
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 0x80
neg al
sbb eax, eax
neg eax
add eax, 1
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x24]
mov eax, esp
mov dword [esp + 0x38], esp
mov dword [eax], ecx
mov byte [esp + 0x64], 2
mov byte [esp + 0x64], 1
call fcn.10170e30
cmp dword [ebp + 0x22c], ebx
je 0x10163c7b
lea edx, [esp + 0x68]
push edx
lea esi, [esp + 0x34]
mov ecx, ebp
call fcn.10163520
mov byte [esp + 0x58], 3
push 0x10232d58
mov eax, esi
push 0x10232d60
push eax
call fcn.1019c680
mov ecx, dword [esp + 0x40]
add esp, 0xc
cmp dword [esp + 0x48], 8
jae 0x10163c0c
lea ecx, [esp + 0x34]
mov edi, dword [ebp + 4]
push ecx
mov eax, esp
mov dword [esp + 0x30], esp
lea esi, [ebp + 0x1f0]
push esi
mov dword [eax], ecx
call fcn.10028f90
mov ecx, dword [esi]
xor edi, edi
push edi
push 1
push 0x401
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esi]
push 0x213
push edi
push edi
push edi
push edi
push 0xffffffffffffffff
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov dword [ebp + 0x22c], ebx
mov byte [esp + 0x58], 1
cmp dword [esp + 0x48], 8
jb 0x10163c6a
mov eax, dword [esp + 0x34]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], edi
mov word [esp + 0x34], di
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
push ecx
push edx
mov dword [ebp + 0x1fc], ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov byte [esp + 0x58], 0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x10163cb1
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x10163cb1
mov dword [esp + 0x20], 0
mov dword [esp + 0x58], 0xffffffff
lea eax, [esp + 0x18]
push eax
call fcn.10013210
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.101d19cc
add esp, 0x48
ret 0x10