Function at 0x4a5dec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
movzx eax, bx
add eax, 0xffffff9b
cmp eax, 0x21
ja case.0x4a5e07.110
jmp dword [eax*4 + 0x4a5e0e]
cmp dword [0x4f39c0], 0
jne 0x4a5eba
cmp dword [0x4fe2b0], 0xffffffff
jne 0x4a5eba
cmp dword [0x4f39b4], 0
jne 0x4a5eba
cmp dword [0x4f39b0], 0
je 0x4a5ec4
call fcn.00445220
jmp 0x4a6784
cmp dword [0x4fe2b0], 0xffffffff
jne 0x4a6784
push 0x10
call sub.USER32.dll_GetKeyState
test ax, ax
jl 0x4a5f0e
mov esi, 0x515aff
mov edi, 0x4fad00
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
xchg edi, esi
mov eax, edi
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x515aff
call fcn.004d1b6c
push 1
call fcn.00444c98
jmp 0x4a6784
cmp dword [0x4fab68], 0
jne 0x4a6784
xor eax, eax
mov dword [0x4fb134], eax
mov edx, dword [ebp + 0x10]
mov dword [0x4fa6b0], edx
push 0x4b14e4
push 0x73
mov ecx, dword [ebp + 8]
push ecx
call fcn.00451600
xor eax, eax
mov dword [0x4fa6b0], eax
jmp 0x4a6784
cmp dword [0x4fab68], 0
jne 0x4a6784
mov edx, dword [ebp + 0x10]
mov dword [0x4fa6b0], edx
push 0x4b14e4
push 0x73
mov ecx, dword [ebp + 8]
push ecx
call fcn.00451600
xor eax, eax
mov dword [0x4fa6b0], eax
jmp 0x4a6784
push 0
push 0
push 0x10
mov edx, dword [ebp + 8]
push edx
call sub.USER32.dll_PostMessageA
jmp 0x4a6784
cmp dword [0x4f23a0], 0
jne 0x4a6784
mov eax, dword [ebp + 0x10]
mov dword [0x4fa6b0], eax
dec eax
je 0x4a5fcf
mov eax, dword [0x4fd9f8]
test eax, eax
je 0x4a5fcf
cmp eax, dword [0x4fda00]
jne 0x4a5fcf
mov dword [ebp + 8], eax
mov dword [0x4fa6b0], 2
push 0x424848
push 0x68
mov edx, dword [ebp + 8]
push edx
call fcn.00451600
xor ecx, ecx
mov dword [0x4fa6b0], ecx
jmp 0x4a6784
cmp dword [0x4fa6e8], 0
jne 0x4a6055
cmp dword [0x4f2448], 0
jne 0x4a6055
mov dword [0x4fa6e8], 1
mov eax, dword [ebp + 0x10]
mov dword [0x4fa6b0], eax
dec eax
je 0x4a6031
mov eax, dword [0x4fd9f8]
test eax, eax
je 0x4a6031
cmp eax, dword [0x4fda00]
jne 0x4a6031
mov dword [ebp + 8], eax
mov dword [0x4fa6b0], 2
push 0x4264d0
push 0x46
mov edx, dword [ebp + 8]
push edx
call fcn.00451600
xor ecx, ecx
mov dword [0x4fa6b0], ecx
xor eax, eax
mov dword [0x4fa6e8], eax
jmp 0x4a6784
push 0
call sub.USER32.dll_MessageBeep
jmp 0x4a6784
cmp dword [0x4fc118], 0
jne 0x4a607c
xor edx, edx
mov dword [0x4fc11c], edx
call fcn.004cd5a8
jmp 0x4a6784
push 0
call fcn.004cd5f4
jmp 0x4a6784
cmp dword [0x4fc118], 0
jne 0x4a60a5
mov dword [0x4fc11c], 1
call fcn.004cd5a8
jmp 0x4a6784
push 1
call fcn.004cd5f4
jmp 0x4a6784
cmp dword [0x4fc118], 0
jne 0x4a60d7
cmp dword [0x4fc11c], 2
jge 0x4a60cd
mov dword [0x4fc11c], 2
call fcn.004cd5a8
jmp 0x4a6784
cmp dword [0x4fc11c], 2
jge 0x4a60ec
push 2
call fcn.004cd5f4
jmp 0x4a6784
mov ecx, dword [0x4fc11c]
push ecx
call fcn.004cd5f4
jmp 0x4a6784
cmp dword [0x4f17d8], 0
jne 0x4a6784
cmp dword [0x4fd9f8], 0
je 0x4a6157
mov eax, dword [0x4fd9f8]
push eax
call sub.USER32.dll_IsIconic
test eax, eax
jne 0x4a6157
mov edx, dword [0x4fd9f8]
push edx
call sub.USER32.dll_IsWindowVisible
test eax, eax
je 0x4a6157
mov ecx, dword [0x4fd9f8]
push ecx
call fcn.004e8a90
test eax, eax
je 0x4a614c
mov eax, dword [0x4fd9ec]
mov dword [ebp + 8], eax
jmp 0x4a6160
mov edx, dword [0x4fd9f8]
mov dword [ebp + 8], edx
jmp 0x4a6160
mov ecx, dword [0x4fd9ec]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0x10]
mov dword [0x4fa6b0], eax
mov eax, dword [0x4fd9f8]
test eax, eax
je 0x4a618e
push eax
call fcn.004e8a90
test eax, eax
jne 0x4a618e
mov edx, dword [0x4fd9f8]
mov dword [ebp + 8], edx
mov dword [0x4fa6b0], 2
push 0x416af8
push 0x34
mov ecx, dword [ebp + 8]
push ecx
call fcn.00451600
xor eax, eax
mov dword [0x4fa6b0], eax
jmp 0x4a6784
cmp dword [0x4fa6ec], 0
jne 0x4a6784
mov dword [0x4fa6ec], 1
cmp dword [0x4f6418], 0
je 0x4a61f7
mov ebx, dword [0x4fda10]
test ebx, ebx
je 0x4a61ed
mov eax, dword [0x4f29cc]
push eax
push 0
push 0xf46
call fcn.0041f178
push eax
push ebx
call fcn.004bc548
push 0x4fa864
call fcn.00466104
mov edx, dword [ebp + 0x10]
mov dword [0x4fa6b0], edx
mov eax, dword [0x4fd9f8]
test eax, eax
je 0x4a6220
cmp eax, dword [0x4fda10]
jne 0x4a6220
mov dword [ebp + 8], eax
mov dword [0x4fa6b0], 2
jmp 0x4a622c
cmp dword [0x4fa6b0], 2
jne 0x4a622c
mov dword [ebp + 8], eax
push 0x453140
push 0x5c
mov edx, dword [ebp + 8]
push edx
call fcn.00451600
xor ecx, ecx
mov dword [0x4fa6b0], ecx
xor eax, eax
mov dword [0x4fa6ec], eax
jmp 0x4a6784
cmp dword [0x4fa6f0], 0
jne 0x4a6784
mov dword [0x4fa6f0], 1
mov edx, dword [ebp + 0x10]
mov dword [0x4fa6b0], edx
push 0x451904
push 0x7e
mov ecx, dword [ebp + 8]
push ecx
call fcn.00451600
xor eax, eax
mov dword [0x4fa6b0], eax
xor edx, edx
mov dword [0x4fa6f0], edx
jmp 0x4a6784
cmp dword [0x4fa6f4], 0
jne 0x4a6784
mov dword [0x4fa6f4], 1
mov ecx, dword [ebp + 0x10]
mov dword [0x4fa6b0], ecx
push 0x42c34c
push 0x41
mov eax, dword [ebp + 8]
push eax
call fcn.00451600
xor edx, edx
mov dword [0x4fa6b0], edx
xor ecx, ecx
mov dword [0x4fa6f4], ecx
jmp 0x4a6784
cmp dword [0x4fa6f8], 0
jne 0x4a6784
mov dword [0x4fa6f8], 1
mov eax, dword [0x4fd9f8]
push eax
call fcn.004694e0
xor edx, edx
mov dword [0x4fa6f8], edx
jmp 0x4a6784
cmp dword [0x4fa6fc], 0
jne 0x4a6784
mov dword [0x4fa6fc], 1
mov ecx, dword [ebp + 0x10]
mov dword [0x4fa6b0], ecx
push 0
push 0
push 0
push 0
call fcn.004cf1cc
xor eax, eax
mov dword [0x4fa6b0], eax
xor edx, edx
mov dword [0x4fa6fc], edx
jmp 0x4a6784
cmp dword [0x4fa700], 0
jne 0x4a6784
mov dword [0x4fa700], 1
mov ecx, dword [ebp + 0x10]
mov dword [0x4fa6b0], ecx
push 0
push 0
push 0
push 0
push 0
push 0
call fcn.0042742c
xor eax, eax
mov dword [0x4fa6b0], eax
xor edx, edx
mov dword [0x4fa700], edx
jmp 0x4a6784
cmp dword [0x4fab68], 0
jne 0x4a6784
mov dword [0x4fb13c], 5
mov dword [0x4fb15c], 1
push 0x4b14e4
push 0x73
mov ecx, dword [ebp + 8]
push ecx
call fcn.00451600
jmp 0x4a6784
mov eax, dword [0x4fda08]
test eax, eax
je 0x4a63e6
cmp eax, dword [0x4fd9f8]
jne 0x4a63e6
push 0
push 0
push 0x10
push eax
call sub.USER32.dll_PostMessageA
jmp 0x4a6784
call fcn.004ac7b0
jmp 0x4a6784
mov eax, dword [0x4fda04]
test eax, eax
je 0x4a6412
cmp eax, dword [0x4fd9f8]
jne 0x4a6412
push 0
push 0
push 0x10
push eax
call sub.USER32.dll_PostMessageA
jmp 0x4a6784
call fcn.004e5134
jmp 0x4a6784
cmp dword [ebp + 0x10], 0
je 0x4a6445
push 0x10
call sub.USER32.dll_GetKeyState
test ax, ax
jge 0x4a6445
push 0
push 0
push 0x226
mov edx, dword [0x4fd9f0]
push edx
call sub.USER32.dll_SendMessageA
jmp 0x4a645a
push 0
push 1
push 0x226
mov ecx, dword [0x4fd9f0]
push ecx
call sub.USER32.dll_SendMessageA
mov ebx, dword [0x4fd9e4]
test ebx, ebx
je 0x4a6784
mov eax, dword [ebx]
push eax
call sub.USER32.dll_IsIconic
test eax, eax
jne 0x4a64a4
mov edx, dword [ebx]
push edx
call sub.USER32.dll_IsWindowVisible
test eax, eax
je 0x4a64a4
push 0
lea ecx, [ebp - 0x10]
push ecx
mov eax, dword [ebx]
push eax
call fcn.004eb0a8
push 1
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebx]
push ecx
call sub.USER32.dll_InvalidateRect
mov eax, dword [ebx]
push eax
call sub.USER32.dll_UpdateWindow
mov ebx, dword [ebx + 0x828]
test ebx, ebx
jne 0x4a6468
jmp 0x4a6784
push 0
push 0
push 0x227
mov edx, dword [0x4fd9f0]
push edx
call sub.USER32.dll_SendMessageA
mov ebx, dword [0x4fd9e4]
test ebx, ebx
je 0x4a6784
mov eax, dword [ebx]
push eax
call sub.USER32.dll_IsIconic
test eax, eax
jne 0x4a6512
mov edx, dword [ebx]
push edx
call sub.USER32.dll_IsWindowVisible
test eax, eax
je 0x4a6512
push 0
lea ecx, [ebp - 0x20]
push ecx
mov eax, dword [ebx]
push eax
call fcn.004eb0a8
push 1
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebx]
push ecx
call sub.USER32.dll_InvalidateRect
mov eax, dword [ebx]
push eax
call sub.USER32.dll_UpdateWindow
mov ebx, dword [ebx + 0x828]
test ebx, ebx
jne 0x4a64d6
jmp 0x4a6784
mov ebx, dword [0x4fd9e4]
test ebx, ebx
je 0x4a6561
mov eax, dword [ebx]
push eax
call sub.USER32.dll_IsIconic
test eax, eax
jne 0x4a6543
mov edx, dword [ebx]
push edx
call sub.USER32.dll_IsWindowVisible
test eax, eax
jne 0x4a6557
push 0x13
push 0
push 0
push 0
push 0
push 1
mov ecx, dword [ebx]
push ecx
call sub.USER32.dll_SetWindowPos
mov ebx, dword [ebx + 0x828]
test ebx, ebx
jne 0x4a652b
push 0
push 0
push 0x228
mov eax, dword [0x4fd9f0]
push eax
call sub.USER32.dll_SendMessageA
jmp 0x4a6784
mov eax, dword [0x4fd9f8]
test eax, eax
je 0x4a6784
push 0
push 0
push 0x10
push eax
call sub.USER32.dll_SendMessageA
jmp 0x4a6784
mov eax, dword [0x4fa69c]
cmp eax, 1
sbb eax, eax
neg eax
mov dword [0x4fa69c], eax
test eax, eax
je 0x4a65dc
push 8
push 0x7e
mov edx, dword [0x5155bc]
push edx
call sub.USER32.dll_CheckMenuItem
push 0
push 0x80
mov ecx, dword [0x5155bc]
push ecx
call sub.USER32.dll_CheckMenuItem
xor eax, eax
mov dword [0x4fa6a0], eax
jmp 0x4a6784
push 0
push 0x7e
mov edx, dword [0x5155bc]
push edx
call sub.USER32.dll_CheckMenuItem
jmp 0x4a6784
mov eax, dword [0x4fa6a0]
cmp eax, 1
sbb eax, eax
neg eax
mov dword [0x4fa6a0], eax
test eax, eax
je 0x4a6635
push 8
push 0x80
mov edx, dword [0x5155bc]
push edx
call sub.USER32.dll_CheckMenuItem
push 0
push 0x7e
mov ecx, dword [0x5155bc]
push ecx
call sub.USER32.dll_CheckMenuItem
xor eax, eax
mov dword [0x4fa69c], eax
jmp 0x4a6784
push 0
push 0x80
mov edx, dword [0x5155bc]
push edx
call sub.USER32.dll_CheckMenuItem
jmp 0x4a6784
mov eax, dword [0x4fa6a4]
cmp eax, 1
sbb eax, eax
neg eax
mov dword [0x4fa6a4], eax
test eax, eax
je 0x4a6677
push 8
push 0x7f
mov edx, dword [0x5155bc]
push edx
call sub.USER32.dll_CheckMenuItem
jmp 0x4a6784
push 0
push 0x7f
mov ecx, dword [0x5155bc]
push ecx
call sub.USER32.dll_CheckMenuItem
jmp 0x4a6784
mov eax, dword [0x4f9da0]
test eax, eax
je 0x4a66a8
push eax
call fcn.0041f7ac
xor edx, edx
mov dword [0x4f9da0], edx
jmp 0x4a6784
push 0xa
call fcn.0041f7ac
jmp 0x4a6784
push 0
call fcn.0041f7ac
jmp 0x4a6784
cmp dword [0x4fa704], 0
jne 0x4a6784
mov dword [0x4fa704], 1
mov ecx, dword [ebp + 0x10]
mov dword [0x4fa6b0], ecx
push 0x413d10
push 0x32
mov eax, dword [ebp + 8]
push eax
call fcn.00451600
xor edx, edx
mov dword [0x4fa6b0], edx
cmp dword [0x4f171c], 0
je 0x4a670e
xor ecx, ecx
mov dword [0x4f171c], ecx
call fcn.004a34d0
xor eax, eax
mov dword [0x4fa704], eax
jmp 0x4a6784
cmp dword [0x4fa708], 0
jne 0x4a6784
mov dword [0x4fa708], 1
push 0x4989d0
push 0x77
mov edx, dword [ebp + 8]
push edx
call fcn.00451600
xor ecx, ecx
mov dword [0x4fa708], ecx
jmp 0x4a6784
movzx esi, bx
push esi
mov eax, dword [0x4fd9f8]
push eax
call fcn.004a0548
test eax, eax
je 0x4a675e
mov eax, 1
jmp 0x4a6789
push esi
call fcn.0049ebdc
test eax, eax
je 0x4a676f
mov eax, 1
jmp 0x4a6789
push ebx
call fcn.0049f1b0
test eax, eax
je 0x4a6780
mov eax, 1
jmp 0x4a6789
xor eax, eax
jmp 0x4a6789
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc