Function at 0x4c81a0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov eax, dword [ebp + 0x6e4]
test eax, eax
push esi
push edi
mov byte [esp + 0x1c], 0
mov dword [esp + 0x14], 0
jle 0x4c829f
lea eax, [ebp + 0x6e8]
mov dword [esp + 0x10], eax
mov ecx, dword [eax + 4]
mov edx, dword [esp + 0x20]
add ecx, 0x200
cmp edx, ecx
jne 0x4c8248
push ecx
mov edi, esp
mov dword [edi], 0x8cccd0
mov ebx, dword [eax]
mov esi, dword [ebx - 4]
test esi, esi
jl 0x4c823a
test ebx, ebx
je 0x4c823a
cmp ebx, 0x8cccd0
je 0x4c823a
test esi, esi
je 0x4c8221
call fcn.004f4a30
mov edx, dword [edi]
push esi
push ebx
push edx
call dword [sym.imp.MSVCR71.dll_memmove]
mov edi, dword [edi]
mov eax, dword [edi - 4]
add esp, 0xc
mov byte [edi + eax], 0
jmp 0x4c823a
mov eax, dword [0x8ccccc]
test eax, eax
je 0x4c823a
mov byte [0x8cccd0], 0
mov ecx, dword [edi]
mov dword [ecx - 4], 0
push ebp
call fcn.004c6430
test al, al
jne 0x4c82ca
cmp dword [ebp + 0xd2c], 0xffffffff
je 0x4c826c
mov edx, dword [esp + 0x10]
mov eax, dword [edx]
push eax
mov eax, dword [ebp + 0xd28]
push eax
call dword [sym.imp.MSVCR71.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4c8271
mov byte [esp + 0x1c], 1
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x6e4]
inc ecx
add eax, 8
cmp ecx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jl 0x4c81d0
mov al, byte [esp + 0x1c]
test al, al
jne 0x4c8346
mov eax, dword [ebp + 0xd28]
mov ecx, dword [eax - 4]
test ecx, ecx
je 0x4c82bc
mov byte [eax], 0
mov ecx, dword [ebp + 0xd28]
mov dword [ecx - 4], 0
or edi, 0xffffffff
mov dword [ebp + 0xd2c], edi
jmp 0x4c8349
mov ecx, dword [esp + 0x14]
mov ebx, dword [ebp + ecx*8 + 0x6e8]
mov esi, dword [ebx - 4]
test esi, esi
lea edi, [ebp + 0x80]
jl 0x4c8313
test ebx, ebx
je 0x4c8313
cmp ebx, dword [edi]
je 0x4c8313
test esi, esi
je 0x4c830c
call fcn.004f4a30
mov edx, dword [edi]
push esi
push ebx
push edx
call dword [sym.imp.MSVCR71.dll_memmove]
mov edi, dword [edi]
mov eax, dword [edi - 4]
add esp, 0xc
mov byte [edi + eax], 0
jmp 0x4c8313
mov ecx, edi
call fcn.00412f90
push 0xbf800000
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0x2d
or esi, 0xffffffff
xor eax, eax
or ecx, 0xffffffff
mov byte [ebp + 0xdc4], 0
mov dword [ebp + 0x7c], 1
call fcn.00488840
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
or edi, 0xffffffff
mov eax, dword [esp + 0x20]
cmp eax, 0x126
jg 0x4c8512
je 0x4c84c4
cmp eax, 0x10c
jg 0x4c840e
je 0x4c83a8
dec eax
je 0x4c837c
sub eax, 0xc
je 0x4c83a8
sub eax, 0xe
jne case.0x4c8529.297
push 0xbf800000
push edi
push edi
push 0x2e
mov esi, edi
xor eax, eax
mov ecx, edi
mov byte [ebp], 0
mov byte [ebp + 0xdc4], 0
call fcn.00488840
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
cmp dword [ebp + 0xd2c], edi
je case.0x4c8529.297
push ecx
lea esi, [ebp + 0xd28]
mov eax, esi
mov ecx, esp
call fcn.00412df0
push ebp
call fcn.004c6430
test al, al
je case.0x4c8529.297
lea ecx, [ebp + 0x80]
mov eax, esi
mov byte [ebp + 0xdc4], 0
call fcn.00412ec0
push 0xbf800000
push edi
push edi
push 0x2d
mov esi, edi
xor eax, eax
mov ecx, edi
mov dword [ebp + 0x7c], 1
call fcn.00488840
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
sub eax, 0x121
je 0x4c849c
sub eax, 3
je 0x4c8474
dec eax
jne case.0x4c8529.297
mov eax, dword [ebp + 0xd2c]
cmp eax, 5
je 0x4c845a
cmp eax, edi
jne 0x4c843e
mov ecx, dword [ebp + 0x6e4]
test ecx, ecx
jg 0x4c845a
cmp eax, 5
jle case.0x4c8529.297
mov edx, dword [ebp + eax*8 + 0x6bc]
lea eax, [ebp + eax*8 + 0x6b8]
jmp 0x4c8624
mov eax, dword [ebp + 0x6e4]
mov ecx, dword [ebp + eax*8 + 0x6e4]
push ecx
lea eax, [ebp + eax*8 + 0x6e0]
jmp 0x4c8625
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
mov ecx, ebp
je 0x4c848d
call fcn.004c6140
jmp case.0x4c8529.297
mov eax, 1
call fcn.004c5160
jmp case.0x4c8529.297
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
mov ecx, ebp
je 0x4c84b5
call fcn.004c60f0
jmp case.0x4c8529.297
mov eax, 1
call fcn.004c5040
jmp case.0x4c8529.297
mov esi, dword [ebp + 0xd30]
test esi, esi
je case.0x4c8529.297
mov eax, esi
call fcn.00504fc0
mov ebx, eax
mov eax, esi
call fcn.00504f60
mov eax, dword [ebp + 0xd30]
call fcn.00504fc0
cmp ebx, eax
je case.0x4c8529.297
push edi
push 0xbf800000
push edi
push edi
push edi
push 0x36
push 0x8ca278
call fcn.00488920
add esp, 0x1c
jmp case.0x4c8529.297
add eax, 0xfffffed9
cmp eax, 0xdd
ja case.0x4c8529.297
movzx edx, byte [eax + 0x4c86c4]
jmp dword [edx*4 + 0x4c86a4]
mov eax, dword [ebp + 0xda8]
xor ecx, ecx
mov cl, byte [eax]
lea eax, [ebp + 0x80]
push ecx
call fcn.004cddb0
push 0xbf800000
push edi
push edi
push 0x2d
mov esi, edi
xor eax, eax
mov ecx, edi
mov dword [ebp + 0x7c], 0
mov byte [ebp + 0xdc4], 0
call fcn.00488840
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8
mov ecx, ebp
call fcn.004c6140
jmp case.0x4c8529.297
mov ecx, ebp
call fcn.004c60f0
jmp case.0x4c8529.297
mov eax, 1
mov ecx, ebp
call fcn.004c5160
jmp case.0x4c8529.297
mov eax, 1
mov ecx, ebp
call fcn.004c5040
jmp case.0x4c8529.297
mov esi, dword [ebp + 0xd30]
test esi, esi
je case.0x4c8529.297
mov eax, esi
call fcn.00504fc0
mov ebx, eax
mov eax, esi
call fcn.00504f00
mov eax, dword [ebp + 0xd30]
call fcn.00504fc0
cmp ebx, eax
je case.0x4c8529.297
jmp 0x4c8638
mov ecx, dword [ebp + 0xd2c]
cmp ecx, edi
jne 0x4c85f2
mov eax, dword [ebp + 0x6e4]
test eax, eax
jg 0x4c8603
mov eax, dword [ebp + 0x6e4]
test eax, eax
jle case.0x4c8529.297
lea edx, [eax + 4]
cmp ecx, edx
jne 0x4c8612
mov eax, dword [ebp + 0x6ec]
push eax
lea eax, [ebp + 0x6e8]
jmp 0x4c8625
test eax, eax
jle case.0x4c8529.297
mov edx, dword [ebp + ecx*8 + 0x6cc]
lea eax, [ebp + ecx*8 + 0x6c8]
push edx
push ecx
mov ecx, esp
call fcn.00412df0
lea eax, [ebp + 0xd28]
call fcn.004cdc10
mov eax, 5
call fcn.0042e700
mov ebx, 1
mov esi, ebp
call fcn.004c6020
mov esi, dword [0x8de30c]
cmp dword [ebp + 0x88], esi
mov edx, dword [0x8de310]
jne 0x4c866a
cmp dword [ebp + 0x8c], edx
je 0x4c869a
call fcn.0042c6c0
cmp eax, dword [ebp + 0xd2c]
je 0x4c869a
mov eax, dword [ebp + 0xd28]
mov ecx, dword [eax - 4]
test ecx, ecx
je 0x4c8694
mov byte [eax], 0
mov eax, dword [ebp + 0xd28]
mov dword [eax - 4], 0
mov dword [ebp + 0xd2c], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8