Function at 0x462130
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x615d78
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x69e3d4]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov eax, dword [edi]
mov edx, dword [ebp + 0xc]
mov eax, dword [eax + 0x1d0]
push ecx
push edx
mov ecx, edi
call eax
mov ecx, dword [0x6bce5c]
cmp ecx, edi
mov esi, eax
mov dword [esp + 0x10], esi
je 0x4621b0
cmp dword [0x6bce3c], 0
je 0x4621b0
test ecx, ecx
mov dword [0x6bce5c], edi
je 0x4621b0
mov eax, dword [ecx + 0x5c0]
mov esi, ecx
mov dword [ecx + 0x5c0], 0xffffffff
call fcn.00461d50
mov esi, dword [esp + 0x10]
test esi, esi
jge 0x462225
or ebx, 0xffffffff
cmp dword [0x6bce3c], 0
mov dword [edi + 0x5b8], ebx
je 0x4621fd
cmp dword [edi + 0x574], 0
jne 0x4621fd
mov eax, dword [edi + 0x5c0]
cmp eax, ebx
mov dword [edi + 0x5c0], ebx
je 0x4621f0
mov esi, edi
call fcn.00461d50
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.user32.dll_UpdateWindow]
mov edx, dword [edi]
mov eax, dword [edx + 0x1ec]
push ebx
mov ecx, edi
call eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
mov ecx, edi
call fcn.0058670c
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, esi
mov ecx, edi
call fcn.00461d30
mov ebx, eax
test ebx, ebx
je 0x4626aa
cmp dword [0x6bce58], 0
mov dword [0x6bce40], 0
je 0x46226b
cmp dword [0x6bce3c], 0
jne 0x46227d
push 0x12
call dword [sym.imp.user32.dll_GetAsyncKeyState]
test ax, ax
jns 0x46226b
mov dword [0x6bce40], 1
cmp dword [0x6bce3c], 0
jne 0x46227d
cmp dword [0x6bce40], 0
je 0x46228a
cmp dword [edi + 0x574], 0
je 0x462373
mov eax, esi
mov ecx, edi
mov dword [edi + 0x5b8], esi
call fcn.004632f0
test dword [ebx + 0xc], 0x40000
je 0x4622d1
push 0x6ab1a4
mov ecx, ebx
call fcn.0056ef57
test eax, eax
jne 0x4622d1
mov dword [edi + 0x5b8], 0xffffffff
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
or dword [ebx + 0xc], 0x20000
mov eax, esi
mov esi, edi
call fcn.00461d50
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.user32.dll_UpdateWindow]
mov edx, dword [edi]
mov eax, dword [ebx + 8]
mov edx, dword [edx + 0x23c]
push eax
mov ecx, edi
call edx
mov eax, dword [ebx]
mov edx, dword [eax + 0x1c]
push 0
push edi
mov ecx, ebx
call edx
test eax, eax
je 0x462358
push 0
push ebx
lea ecx, [edi + 0x5c8]
call fcn.0058d1aa
test eax, eax
je 0x462324
and dword [ebx + 0xc], 0xfffdffff
mov edx, dword [edi]
or eax, 0xffffffff
mov dword [edi + 0x5b8], eax
mov dword [edi + 0x5bc], eax
push eax
mov eax, dword [edx + 0x1ec]
mov ecx, edi
call eax
mov eax, dword [esp + 0x10]
call fcn.00461d50
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x462675
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.user32.dll_SetCapture]
push eax
call fcn.005680c4
mov dword [edi + 0x698], eax
jmp 0x462675
mov eax, dword [edi + 0x5c0]
mov edx, dword [edi]
mov edx, dword [edx + 0x1a0]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x20]
push eax
push esi
mov ecx, edi
mov dword [edi + 0x5c0], esi
call edx
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x4623a9
mov esi, edi
call fcn.00461d50
mov esi, dword [esp + 0x10]
mov eax, dword [edi + 0x5c0]
mov ecx, edi
call fcn.00461d30
mov ecx, dword [ebp + 8]
and ecx, 8
mov dword [edi + 0x65c], eax
mov dword [edi + 0x668], ecx
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x58]
call eax
test eax, eax
jne 0x46240e
mov dword [edi + 0x65c], eax
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
mov dword [edi + 0x5c0], 0xffffffff
je 0x4626aa
mov esi, edi
call fcn.00461d50
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, esi
mov esi, edi
call fcn.00461d50
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.user32.dll_UpdateWindow]
mov ecx, dword [edi + 0x65c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x38]
call eax
xor esi, esi
test eax, eax
je 0x4624b3
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x28]
cdq
xor eax, edx
sub eax, edx
cmp eax, 6
jg 0x4624b3
cmp dword [0x6bce40], esi
jne 0x4624b3
mov ecx, dword [edi + 0x65c]
mov dword [edi + 0x66c], 1
mov edx, dword [ecx + 0x30]
mov dword [edi + 0x670], edx
mov eax, dword [ecx + 0x34]
lea esi, [edi + 0x670]
mov dword [esi + 4], eax
mov edx, dword [ecx + 0x38]
mov dword [esi + 8], edx
mov eax, dword [ecx + 0x3c]
mov dword [esi + 0xc], eax
mov edx, dword [ecx]
mov eax, dword [edx + 0x34]
call eax
test eax, eax
je 0x462494
push 2
push 2
push esi
call dword [sym.imp.user32.dll_InflateRect]
mov ecx, edi
call fcn.00469190
mov dword [edi + 0x698], eax
mov ecx, dword [0x6bd8fc]
push ecx
call dword [sym.imp.user32.dll_SetCursor]
jmp 0x462675
mov ecx, dword [edi + 0x65c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x4c]
call eax
test eax, eax
je 0x46266f
mov ecx, dword [edi + 0x65c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x6c]
call eax
test eax, eax
je 0x46266f
lea ecx, [esp + 0x30]
call fcn.00579f9b
lea ecx, [esp + 0x30]
mov dword [esp + 0x70], esi
push ecx
mov ecx, dword [edi + 0x65c]
call fcn.0046ca90
mov edx, dword [edi]
mov eax, dword [ebx + 8]
mov edx, dword [edx + 0x23c]
push eax
mov ecx, edi
call edx
cmp dword [0x6bce40], esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [0x6bda00], esi
mov ebx, dword [edi + 0x20]
mov dword [edi + 0x660], eax
mov dword [edi + 0x664], ecx
je 0x462537
mov dword [0x6bce3c], 1
push 0x6bd9b8
lea edx, [esp + 0x24]
push edx
push 3
lea ecx, [esp + 0x3c]
call fcn.005789c8
push ebx
mov dword [esp + 0x18], eax
call dword [sym.imp.user32.dll_IsWindow]
test eax, eax
jne 0x462595
cmp dword [0x6bce40], esi
je 0x46256f
mov dword [0x6bce3c], esi
mov dword [0x6bce40], esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x70], 0xffffffff
call fcn.00579fc6
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.user32.dll_GetCursorPos]
mov edx, dword [edi + 0x20]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.user32.dll_ScreenToClient]
cmp dword [0x6bda00], esi
je 0x462632
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x28]
call fcn.00413f50
test eax, eax
jne 0x462632
cmp dword [esp + 0x14], 1
je 0x462616
mov eax, dword [edi + 0x65c]
cmp eax, esi
je 0x462616
cmp dword [0x6bd9fc], esi
jne 0x462616
mov esi, eax
mov ecx, edi
call fcn.00461270
push eax
mov ecx, edi
call fcn.00461000
mov edx, dword [edi]
mov eax, dword [edx + 0x1cc]
mov ecx, edi
call eax
mov ecx, dword [edi + 0x20]
push 1
push 0
push ecx
call dword [sym.imp.user32.dll_InvalidateRect]
xor esi, esi
jmp 0x462649
mov eax, dword [edi + 0x65c]
cmp eax, esi
je 0x462649
mov edx, dword [edi + 0x20]
push 1
add eax, 0x30
push eax
push edx
call dword [sym.imp.user32.dll_InvalidateRect]
jmp 0x462649
mov eax, dword [esp + 0x10]
mov edx, dword [edi]
mov dword [edi + 0x5bc], eax
push eax
mov eax, dword [edx + 0x1ec]
mov ecx, edi
call eax
or ecx, 0xffffffff
mov eax, ecx
mov dword [edi + 0x664], ecx
mov dword [esp + 0x70], ecx
lea ecx, [esp + 0x30]
mov dword [edi + 0x65c], esi
mov dword [edi + 0x660], eax
call fcn.00579fc6
jmp 0x462675
mov dword [edi + 0x65c], esi
cmp dword [0x6bce40], 0
je 0x4626aa
push 0
mov dword [0x6bce40], 0
call fcn.00463810
mov ecx, dword [edi + 0x20]
add esp, 4
push 1
push 0
push ecx
call dword [sym.imp.user32.dll_InvalidateRect]
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.user32.dll_UpdateWindow]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc