Function at 0x4afa20
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x468
push ebp
mov ebp, ecx
mov dword [esp + 0xc], ebp
call fcn.004b31f0
test eax, eax
jne 0x4afa40
pop ebp
add esp, 0x468
ret 0x14
push esi
push edi
call fcn.004b31f0
push eax
mov ecx, ebp
call fcn.004aecb0
mov eax, dword [0x58e228]
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 0x4b01de
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebx, eax
cmp ebx, esi
je 0x4b01d6
push edi
mov ecx, 0x58e980
call fcn.004eea40
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 0x4afaaf
mov dword [esp + 0x14], esi
jmp 0x4afabb
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 [0x5bf7bc]
mov dword [esp + 0x1c], 0x30
cmp eax, esi
mov dword [esp + 0x20], 0x42
je 0x4afb5c
push 0x5bf7c0
push str.3.Xdefault
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4afb5c
mov edx, dword [0x58e228]
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, 0x58e980
push 0
push 0
push 0xc
push 0
push edx
push esi
push 0
push ebx
mov dword [esp + 0x64], eax
call fcn.004eec70
jmp 0x4afbc2
mov ecx, dword [0x58e228]
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, 0x58e980
call fcn.004eec70
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 0x4afc48
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 8]
mov edi, dword [ecx + eax*4]
test edi, edi
je 0x4afc31
mov ecx, edi
call fcn.00477a10
test eax, eax
je 0x4afc31
mov ecx, edi
call fcn.00477a10
mov ecx, edi
mov dword [esp + 0x40], eax
call fcn.00477a10
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, 0x58e980
mov dword [esp + 0x4c], edx
inc esi
call fcn.004eec70
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4afbd0
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jle 0x4afc87
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4afc60
mov dword [esp + 0x14], ecx
jmp 0x4afc6c
mov eax, dword [eax + 0xc]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x14], eax
call fcn.004b31f0
mov ecx, eax
call fcn.004b3990
mov edx, eax
mov eax, dword [esp + 0x14]
add edx, eax
mov eax, dword [esp + 0x18]
sub dword [eax + 0x18], edx
mov ecx, dword [0x58e228]
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, 0x58e980
mov dword [esp + 0x4c], 0xcb30
inc esi
call fcn.004eec70
mov eax, dword [0x58e228]
lea edx, [esp + 0x68]
push 0x103
push edx
push 0xc438
push eax
call edi
push str.Crystal_Chrome
call fcn.004b31f0
mov ecx, eax
call fcn.004b3a30
cmp eax, 0xffffffff
jne 0x4afd44
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, 0x58e980
inc esi
call fcn.004eec70
mov eax, dword [0x58e228]
lea edx, [esp + 0x68]
push 0x103
push edx
push 0xc440
push eax
call edi
push str.bigword
call fcn.004b31f0
mov ecx, eax
call fcn.004b3a30
cmp eax, 0xffffffff
jne 0x4afdad
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, 0x58e980
inc esi
call fcn.004eec70
mov eax, dword [0x58e228]
lea edx, [esp + 0x68]
push 0x103
push edx
push 0xc441
push eax
call edi
push str.simple
call fcn.004b31f0
mov ecx, eax
call fcn.004b3a30
cmp eax, 0xffffffff
jne 0x4afe16
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, 0x58e980
inc esi
call fcn.004eec70
mov ecx, dword [esp + 0x18]
call fcn.004afa00
test eax, eax
je 0x4afe31
push 8
push 0xcf1b
push ebx
call dword [sym.imp.USER32.dll_CheckMenuItem]
xor edi, edi
call fcn.004b31f0
mov ecx, eax
call fcn.004b3990
test eax, eax
jle 0x4b000d
push edi
call fcn.004b31f0
mov ecx, eax
call fcn.004b39b0
test eax, eax
mov dword [esp + 0x10], eax
je 0x4afff8
mov ecx, eax
call fcn.00477a10
test eax, eax
je 0x4afff8
mov ecx, dword [esp + 0x10]
call fcn.00477a10
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], eax
call fcn.00477a10
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.004b4f70
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4aff0c
mov ecx, dword [0x58e228]
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, 0x58e980
call fcn.004eec70
inc esi
jmp 0x4affd9
mov ecx, dword [esp + 0x10]
push str.bigword
call fcn.004b4f70
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4aff62
mov ecx, dword [0x58e228]
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 0x4afeed
mov ecx, dword [esp + 0x10]
push str.simple
call fcn.004b4f70
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4affbb
mov ecx, dword [0x58e228]
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 0x4afeed
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, 0x58e980
inc esi
call fcn.004eec70
mov edx, dword [esp + 0x10]
push edx
call fcn.004af9d0
add esp, 4
test eax, eax
je 0x4afff8
mov eax, dword [esp + 0x2c]
push 8
push eax
push ebx
call dword [sym.imp.USER32.dll_CheckMenuItem]
inc edi
call fcn.004b31f0
mov ecx, eax
call fcn.004b3990
cmp edi, eax
jl 0x4afe47
mov edx, dword [0x58e228]
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 0x4b0076
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 0x4b0096
lea edx, [esp + 0x270]
lea eax, [esp + 0x68]
push edx
push 0x53a4a4
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, 0x58e980
mov dword [esp + 0x4c], 0x8054
call fcn.004eec70
lea ecx, [edi + 0x20]
mov dword [edi + 0x14], ebx
call fcn.004b5240
lea ecx, [edi + 0x488]
call fcn.004b5570
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, 0x58e980
call fcn.004ef0c0
mov ecx, dword [esp + 0x4c]
mov esi, eax
push ecx
mov ecx, 0x58e980
mov dword [edi + 0x14], 0
call fcn.004eeaf0
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 0x4b017b
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 0x4b017b
mov esi, dword [edi + 0x1c]
add esi, 0x64
test esi, esi
jne 0x4b01bd
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x4b01bd
mov eax, dword [edi + 0x24]
push eax
call ebx
test eax, eax
je 0x4b01bd
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 0x4b01bd
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