Function at 0x4bcfb0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
movzx edx, byte [ecx + 0x104]
test edx, edx
jne 0x4bcff8
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
je 0x4bcfe0
jmp 0x4bd635
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 0x8000
je 0x4bcff8
jmp 0x4bd635
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.004b6af0
add esp, 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ecx]
push eax
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4bd025
jmp 0x4bd635
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xb8]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 1
jge 0x4bd03f
jmp 0x4bd635
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xd0]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 1
jge 0x4bd059
jmp 0x4bd635
mov edx, dword [ebp + 8]
push edx
call fcn.004b6ab0
add esp, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
sub edx, eax
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 8]
push eax
call fcn.004b6ad0
add esp, 4
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
sub edx, eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xb8]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x20]
mov ecx, dword [edx + eax*4 - 4]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x18], 0xffffffff
mov byte [ebp - 0x21], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [eax + 0xe0]
jge 0x4bd0be
mov byte [ebp - 0x21], 1
jmp 0x4bd122
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
sub eax, dword [edx + 0xe4]
cmp dword [ebp - 0x2c], eax
jle 0x4bd0d5
mov byte [ebp - 0x21], 1
jmp 0x4bd122
mov ecx, dword [ebp - 0x28]
movzx edx, byte [ecx + 0xc1]
test edx, edx
je 0x4bd100
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
sub ecx, dword [eax + 0xc4]
mov esi, dword [ebp - 0x28]
mov eax, ecx
cdq
idiv dword [esi + 0xe8]
mov dword [ebp - 0x18], eax
jmp 0x4bd110
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
cdq
idiv dword [ecx + 0xe8]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x4bd11e
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x1c]
jl 0x4bd122
mov byte [ebp - 0x21], 1
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
je 0x4bd287
movzx ecx, byte [ebp - 0x21]
test ecx, ecx
jne 0x4bd282
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xd0]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
cmp dword [ecx], 3
je 0x4bd1a8
mov edx, dword [ebp - 0x34]
mov dword [edx], 3
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x34]
mov dword [eax + 0xd8], ecx
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xd4]
push ecx
call fcn.004b54b0
add esp, 8
push 0
push 0
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 4]
push eax
push 0x32
mov ecx, dword [ebp + 8]
push ecx
call fcn.00497fc0
add esp, 0x14
jmp 0x4bd274
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xd8]
cmp eax, dword [ebp - 0x34]
jne 0x4bd21a
mov ecx, dword [ebp - 0x34]
mov dword [ecx], 0
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xd4]
push ecx
call fcn.004b5700
add esp, 8
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xd4]
cmp dword [eax + 8], 0
jle 0x4bd20b
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xd4]
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xd4]
mov eax, dword [ecx + 8]
mov ecx, dword [edx + 4]
mov edx, dword [ebp - 0x28]
mov eax, dword [ecx + eax*4 - 4]
mov dword [edx + 0xd8], eax
jmp 0x4bd218
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 0xd8], 0
jmp 0x4bd239
mov edx, dword [ebp - 0x34]
mov dword [edx], 0
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xd4]
push edx
call fcn.004b5700
add esp, 8
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0xd8], 0
je 0x4bd260
push 0
push 0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx + 4]
push edx
push 0x32
mov eax, dword [ebp + 8]
push eax
call fcn.00497fc0
add esp, 0x14
jmp 0x4bd274
push 0
push 0
push 0xffffffffffffffff
push 0x32
mov ecx, dword [ebp + 8]
push ecx
call fcn.00497fc0
add esp, 0x14
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00498620
add esp, 8
jmp 0x4bd614
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
je 0x4bd454
movzx ecx, byte [ebp - 0x21]
test ecx, ecx
jne 0x4bd44f
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xd4]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 0
jne 0x4bd328
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xd0]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x18]
mov eax, dword [ecx + edx*4]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], 3
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xd4]
push ecx
call fcn.004b54b0
add esp, 8
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x3c]
mov dword [edx + 0xd8], eax
push 0
push 0
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ecx + 4]
push edx
push 0x32
mov eax, dword [ebp + 8]
push eax
call fcn.00497fc0
add esp, 0x14
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00498620
add esp, 8
jmp 0x4bd44f
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0xd8], 0
je 0x4bd44f
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xd8]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004bd700
add esp, 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x44]
mov dword [eax + 0xd8], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xd8]
mov dword [eax], 3
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xd8]
mov eax, dword [edx + 4]
cmp eax, dword [ebp - 0x18]
jge 0x4bd3a1
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xd8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x48], ecx
jmp 0x4bd3b6
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xd8]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x40]
test eax, eax
jle 0x4bd44f
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xd0]
mov eax, dword [edx + 8]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x50], ecx
jmp 0x4bd3e4
mov edx, dword [ebp - 0x50]
add edx, 1
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x48]
jg 0x4bd422
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xd0]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x50]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
mov dword [eax], 3
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xd4]
push eax
call fcn.004b54b0
add esp, 8
jmp 0x4bd3db
push 0
push 0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xd8]
mov eax, dword [edx + 4]
push eax
push 0x32
mov ecx, dword [ebp + 8]
push ecx
call fcn.00497fc0
add esp, 0x14
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00498620
add esp, 8
jmp 0x4bd614
movzx eax, byte [ebp - 0x21]
test eax, eax
jne 0x4bd58a
mov byte [ebp - 0x59], 0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xd0]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x18]
mov edx, dword [eax + ecx*4]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
cmp dword [eax], 3
jne 0x4bd487
mov byte [ebp - 0x59], 0
jmp 0x4bd48b
mov byte [ebp - 0x59], 1
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xd4]
mov eax, dword [edx + 8]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x64], 0
jmp 0x4bd4ac
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
cmp edx, dword [ebp - 0x58]
jge 0x4bd4ce
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xd4]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x64]
mov ecx, dword [edx + eax*4]
mov dword [ecx], 0
jmp 0x4bd4a3
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xd4]
push eax
call fcn.004b57f0
add esp, 4
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x60]
mov dword [ecx + 0xd8], edx
mov eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xd4]
push edx
call fcn.004b54b0
add esp, 8
movzx eax, byte [ebp - 0x59]
test eax, eax
jne 0x4bd510
cmp dword [ebp - 0x58], 0
jle 0x4bd527
mov ecx, dword [ebp - 0x60]
mov dword [ecx], 3
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00498620
add esp, 8
push 0
push 0
mov eax, dword [ebp - 0x60]
mov ecx, dword [eax + 4]
push ecx
push 0x32
mov edx, dword [ebp + 8]
push edx
call fcn.00497fc0
add esp, 0x14
mov eax, dword [ebp - 0x28]
movzx ecx, byte [eax + 0x105]
test ecx, ecx
je 0x4bd585
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x60]
add eax, 0x10
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4bd585
mov ecx, dword [ebp - 0x60]
movzx edx, byte [ecx + 0xc]
test edx, edx
sete al
mov ecx, dword [ebp - 0x60]
mov byte [ecx + 0xc], al
jmp 0x4bd614
mov edx, dword [ebp - 0x28]
mov dword [edx + 0xd8], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0xd4]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x70], edx
cmp dword [ebp - 0x70], 0
jle 0x4bd614
mov dword [ebp - 0x74], 0
jmp 0x4bd5be
mov eax, dword [ebp - 0x74]
add eax, 1
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
cmp ecx, dword [ebp - 0x70]
jge 0x4bd5e0
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0xd4]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x74]
mov eax, dword [ecx + edx*4]
mov dword [eax], 0
jmp 0x4bd5b5
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0xd4]
push edx
call fcn.004b57f0
add esp, 4
push 0
push 0
push 0xffffffffffffffff
push 0x32
mov eax, dword [ebp + 8]
push eax
call fcn.00497fc0
add esp, 0x14
push 0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00498620
add esp, 8
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [ebp - 0x28]
mov dword [edx + 0xf4], eax
mov dword [edx + 0xf8], ecx
mov eax, dword [ebp - 0x28]
mov byte [eax + 0xf0], 1
pop esi
mov esp, ebp
pop ebp
ret