Function at 0x4aee90
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x468
push ebp
mov ebp, ecx
mov dword [esp + 0xc], ebp
call fcn.004b2660
test eax, eax
jne 0x4aeeb0
pop ebp
add esp, 0x468
ret 0x14
push esi
push edi
call fcn.004b2660
push eax
mov ecx, ebp
call fcn.004ae120
mov eax, dword [0x58bcc8]
push 0x821
push eax
xor esi, esi
call dword [sym.imp.USER32.dll_LoadMenuW]
mov edi, eax
cmp edi, esi
mov dword [esp + 0x48], edi
je 0x4af64e
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebx, eax
cmp ebx, esi
je 0x4af646
push edi
mov ecx, 0x58c420
call fcn.004edc30
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x6a]
mov word [esp + 0x68], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
cmp eax, esi
jne 0x4aef1f
mov dword [esp + 0x14], esi
jmp 0x4aef2b
mov ecx, dword [ebp + 0xc]
sub ecx, eax
sar ecx, 2
mov dword [esp + 0x14], ecx
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [0x5bd7bc]
mov dword [esp + 0x1c], 0x30
cmp eax, esi
mov dword [esp + 0x20], 0x42
je 0x4aefcc
push 0x5bd7c0
push str.3.Xdefault
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4aefcc
mov edx, dword [0x58bcc8]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [esp + 0x68]
push 0x103
push ecx
push 0xc43d
push edx
call edi
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
lea ecx, [esp + 0x68]
lea eax, [esp + 0x68]
push ecx
mov dword [esp + 0x30], 0xcb34
mov dword [esp + 0x44], eax
call ebp
add esp, 4
lea edx, [esp + 0x1c]
mov esi, 1
mov ecx, 0x58c420
push 0
push 0
push 0xc
push 0
push edx
push esi
push 0
push ebx
mov dword [esp + 0x64], eax
call fcn.004ede60
jmp 0x4af032
mov ecx, dword [0x58bcc8]
lea eax, [esp + 0x68]
push 0x103
push eax
push 0xc43c
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [esp + 0x68]
lea edx, [esp + 0x68]
push eax
mov dword [esp + 0x30], 0xcb33
mov dword [esp + 0x44], edx
call ebp
add esp, 4
lea ecx, [esp + 0x1c]
mov esi, 1
mov dword [esp + 0x44], eax
push 0
push 0
push 0xb
push 0
push ecx
push esi
push 0
push ebx
mov ecx, 0x58c420
call fcn.004ede60
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov ecx, dword [esp + 0x14]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], eax
jle 0x4af0b8
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 8]
mov edi, dword [ecx + eax*4]
test edi, edi
je 0x4af0a1
mov ecx, edi
call fcn.00477220
test eax, eax
je 0x4af0a1
mov ecx, edi
call fcn.00477220
mov ecx, edi
mov dword [esp + 0x40], eax
call fcn.00477220
push eax
call ebp
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], eax
push 0
push 0
push 8
push 0
mov eax, esi
push ecx
push 1
add edx, 0xcf08
push eax
push ebx
mov ecx, 0x58c420
mov dword [esp + 0x4c], edx
inc esi
call fcn.004ede60
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4af040
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jle 0x4af0f7
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4af0d0
mov dword [esp + 0x14], ecx
jmp 0x4af0dc
mov eax, dword [eax + 0xc]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x14], eax
call fcn.004b2660
mov ecx, eax
call fcn.004b2e00
mov edx, eax
mov eax, dword [esp + 0x14]
add edx, eax
mov eax, dword [esp + 0x18]
sub dword [eax + 0x18], edx
mov ecx, dword [0x58bcc8]
lea eax, [esp + 0x68]
push 0x103
push eax
push 0xc437
push ecx
call edi
lea eax, [esp + 0x68]
lea edx, [esp + 0x68]
push eax
mov dword [esp + 0x44], edx
call ebp
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], eax
mov eax, esi
push 0
push 0
push 9
push 0
push ecx
push 1
push eax
push ebx
mov ecx, 0x58c420
mov dword [esp + 0x4c], 0xcb30
inc esi
call fcn.004ede60
mov eax, dword [0x58bcc8]
lea edx, [esp + 0x68]
push 0x103
push edx
push 0xc438
push eax
call edi
push str.Crystal_Chrome
call fcn.004b2660
mov ecx, eax
call fcn.004b2ea0
cmp eax, 0xffffffff
jne 0x4af1b4
lea edx, [esp + 0x68]
lea ecx, [esp + 0x68]
push edx
mov dword [esp + 0x30], 0xcb32
mov dword [esp + 0x44], ecx
call ebp
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], eax
mov eax, esi
push 0
push 0
push 0xa
push 0
push ecx
push 1
push eax
push ebx
mov ecx, 0x58c420
inc esi
call fcn.004ede60
mov eax, dword [0x58bcc8]
lea edx, [esp + 0x68]
push 0x103
push edx
push 0xc440
push eax
call edi
push str.bigword
call fcn.004b2660
mov ecx, eax
call fcn.004b2ea0
cmp eax, 0xffffffff
jne 0x4af21d
lea edx, [esp + 0x68]
lea ecx, [esp + 0x68]
push edx
mov dword [esp + 0x30], 0xcb36
mov dword [esp + 0x44], ecx
call ebp
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], eax
mov eax, esi
push 0
push 0
push 0xd
push 0
push ecx
push 1
push eax
push ebx
mov ecx, 0x58c420
inc esi
call fcn.004ede60
mov eax, dword [0x58bcc8]
lea edx, [esp + 0x68]
push 0x103
push edx
push 0xc441
push eax
call edi
push str.simple
call fcn.004b2660
mov ecx, eax
call fcn.004b2ea0
cmp eax, 0xffffffff
jne 0x4af286
lea edx, [esp + 0x68]
lea ecx, [esp + 0x68]
push edx
mov dword [esp + 0x30], 0xcb35
mov dword [esp + 0x44], ecx
call ebp
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x44], eax
mov eax, esi
push 0
push 0
push 0xe
push 0
push ecx
push 1
push eax
push ebx
mov ecx, 0x58c420
inc esi
call fcn.004ede60
mov ecx, dword [esp + 0x18]
call fcn.004aee70
test eax, eax
je 0x4af2a1
push 8
push 0xcf1b
push ebx
call dword [sym.imp.USER32.dll_CheckMenuItem]
xor edi, edi
call fcn.004b2660
mov ecx, eax
call fcn.004b2e00
test eax, eax
jle 0x4af47d
push edi
call fcn.004b2660
mov ecx, eax
call fcn.004b2e20
test eax, eax
mov dword [esp + 0x10], eax
je 0x4af468
mov ecx, eax
call fcn.00477220
test eax, eax
je 0x4af468
mov ecx, dword [esp + 0x10]
call fcn.00477220
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], eax
call fcn.00477220
push eax
call ebp
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [edi + 0xcf1c]
mov dword [esp + 0x44], eax
push str.Crystal_Chrome
mov dword [esp + 0x30], edx
call fcn.004b43e0
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4af37c
mov ecx, dword [0x58bcc8]
lea eax, [esp + 0x68]
push 0x103
push eax
push 0xc438
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [esp + 0x68]
lea edx, [esp + 0x68]
push eax
mov dword [esp + 0x44], edx
call ebp
add esp, 4
mov dword [esp + 0x44], eax
push 0
push 0
push 0xa
lea ecx, [esp + 0x28]
mov edx, esi
push 0
push ecx
sub edx, edi
push 1
push edx
push ebx
mov ecx, 0x58c420
call fcn.004ede60
inc esi
jmp 0x4af449
mov ecx, dword [esp + 0x10]
push str.bigword
call fcn.004b43e0
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4af3d2
mov ecx, dword [0x58bcc8]
lea eax, [esp + 0x68]
push 0x103
push eax
push 0xc440
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [esp + 0x68]
lea edx, [esp + 0x68]
push eax
mov dword [esp + 0x44], edx
call ebp
add esp, 4
mov dword [esp + 0x44], eax
push 0
push 0
push 0xd
jmp 0x4af35d
mov ecx, dword [esp + 0x10]
push str.simple
call fcn.004b43e0
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4af42b
mov ecx, dword [0x58bcc8]
lea eax, [esp + 0x68]
push 0x103
push eax
push 0xc441
push ecx
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [esp + 0x68]
lea edx, [esp + 0x68]
push eax
mov dword [esp + 0x44], edx
call ebp
add esp, 4
mov dword [esp + 0x44], eax
push 0
push 0
push 0xe
jmp 0x4af35d
push 0
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x28]
push 0
mov eax, esi
push ecx
push 1
push eax
push ebx
mov ecx, 0x58c420
inc esi
call fcn.004ede60
mov edx, dword [esp + 0x10]
push edx
call fcn.004aee40
add esp, 4
test eax, eax
je 0x4af468
mov eax, dword [esp + 0x2c]
push 8
push eax
push ebx
call dword [sym.imp.USER32.dll_CheckMenuItem]
inc edi
call fcn.004b2660
mov ecx, eax
call fcn.004b2e00
cmp edi, eax
jl 0x4af2b7
mov edx, dword [0x58bcc8]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x272]
mov word [esp + 0x270], 0
push 0x103
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x274]
push ecx
push 0xc41b
push edx
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_LoadStringW]
mov edi, dword [esp + 0x18]
mov eax, dword [edi + 0x18]
test eax, eax
jle 0x4af4e6
push eax
lea eax, [esp + 0x274]
push eax
push str._s__d_
lea ecx, [esp + 0x74]
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
jmp 0x4af506
lea edx, [esp + 0x270]
lea eax, [esp + 0x68]
push edx
push 0x5384a4
push 0x103
push eax
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x10
lea edx, [esp + 0x68]
lea ecx, [esp + 0x68]
push edx
mov dword [esp + 0x44], ecx
call ebp
add esp, 4
mov dword [esp + 0x44], eax
lea eax, [esp + 0x1c]
add esi, 2
push 0
push 0
push 2
push 0
push eax
push 1
push esi
push ebx
mov ecx, 0x58c420
mov dword [esp + 0x4c], 0x8054
call fcn.004ede60
lea ecx, [edi + 0x20]
mov dword [edi + 0x14], ebx
call fcn.004b4680
lea ecx, [edi + 0x488]
call fcn.004b49b0
mov ecx, dword [esp + 0x480]
mov edx, dword [esp + 0x48c]
mov eax, dword [esp + 0x488]
push 0
push ecx
push edx
push eax
push 0x108
push ebx
mov ecx, 0x58c420
call fcn.004ee2b0
mov ecx, dword [esp + 0x4c]
mov esi, eax
push ecx
mov ecx, 0x58c420
mov dword [edi + 0x14], 0
call fcn.004edce0
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [edi + 0x48c]
mov ebx, dword [sym.imp.USER32.dll_IsWindowVisible]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x4af5eb
mov ecx, dword [edi + 0x48c]
lea eax, [esp + 0x58]
push eax
push ecx
call ebp
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
push edx
lea ecx, [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4af5eb
mov esi, dword [edi + 0x1c]
add esi, 0x64
test esi, esi
jne 0x4af62d
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x4af62d
mov eax, dword [edi + 0x24]
push eax
call ebx
test eax, eax
je 0x4af62d
mov eax, dword [edi + 0x24]
lea edx, [esp + 0x58]
push edx
push eax
call ebp
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
push ecx
lea eax, [esp + 0x5c]
push edx
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4af62d
mov esi, dword [edi + 0x1c]
mov ecx, dword [edi + 0x24]
mov ebx, dword [sym.imp.USER32.dll_DestroyWindow]
push ecx
call ebx
mov edx, dword [edi + 0x48c]
push edx
call ebx
mov edi, dword [esp + 0x4c]
push edi
call dword [sym.imp.USER32.dll_DestroyMenu]
pop ebx
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x468
ret 0x14