Function at 0x4a92e0
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x468
push ebp
mov ebp, ecx
mov dword [esp + 8], ebp
call fcn.004ab0b0
test eax, eax
jne 0x4a9300
pop ebp
add esp, 0x468
ret 0x14
push esi
push edi
call fcn.004ab0b0
push eax
mov ecx, ebp
call fcn.004a86e0
mov eax, dword [0x5dc940]
push 0x821
push eax
xor esi, esi
call dword [sym.imp.USER32.dll_LoadMenuW]
mov edi, eax
cmp edi, esi
mov dword [esp + 0x18], edi
je 0x4a98fa
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebx, eax
cmp ebx, esi
je 0x4a98f2
push edi
mov ecx, 0x5dd098
call fcn.004e3610
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 0x4a936f
mov dword [esp + 0x18], esi
jmp 0x4a937b
mov ecx, dword [ebp + 0xc]
sub ecx, eax
sar ecx, 2
mov dword [esp + 0x18], ecx
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [0x6027b4]
mov dword [esp + 0x20], 0x30
cmp eax, esi
mov dword [esp + 0x24], 0x42
je 0x4a940c
push 0x6027b8
push str.3.Xdefault
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4a940c
mov edx, dword [0x5dc940]
lea ecx, [esp + 0x68]
push 0x103
push ecx
push 0xc43d
push edx
call dword [sym.imp.USER32.dll_LoadStringW]
mov ebp, dword [sym.imp.MSVCRT.dll_wcslen]
lea ecx, [esp + 0x68]
lea eax, [esp + 0x68]
push ecx
mov dword [esp + 0x34], 0xcb34
mov dword [esp + 0x48], eax
call ebp
add esp, 4
lea edx, [esp + 0x20]
mov dword [esp + 0x48], eax
mov esi, 1
push 0
push 0
push 0xc
push 0
push edx
jmp 0x4a945e
mov ecx, dword [0x5dc940]
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 + 0x34], 0xcb33
mov dword [esp + 0x48], edx
call ebp
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], eax
mov esi, 1
push 0
push 0
push 0xb
push 0
push ecx
push 1
push 0
push ebx
mov ecx, 0x5dd098
call fcn.004e3840
mov ecx, dword [esp + 0x18]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x10], eax
jle 0x4a94ed
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 8]
mov edi, dword [ecx + eax*4]
test edi, edi
je 0x4a94dc
mov ecx, edi
call fcn.00472bf0
test eax, eax
je 0x4a94dc
mov ecx, edi
call fcn.00472bf0
mov ecx, edi
mov dword [esp + 0x44], eax
call fcn.00472bf0
push eax
call ebp
mov edx, dword [esp + 0x14]
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], 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, 0x5dd098
mov dword [esp + 0x50], edx
inc esi
call fcn.004e3840
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4a947b
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0x18]
test eax, eax
jle 0x4a9522
mov eax, dword [ecx + 8]
test eax, eax
jne 0x4a9503
xor edi, edi
jmp 0x4a950b
mov edi, dword [ecx + 0xc]
sub edi, eax
sar edi, 2
call fcn.004ab0b0
mov ecx, eax
call fcn.004ab850
mov edx, eax
mov eax, dword [esp + 0x14]
add edx, edi
sub dword [eax + 0x18], edx
mov ecx, dword [0x5dc940]
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
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 + 0x48], edx
call ebp
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], eax
mov eax, esi
push 0
push 0
push 9
push 0
push ecx
push 1
push eax
push ebx
mov ecx, 0x5dd098
mov dword [esp + 0x50], 0xcb30
inc esi
call fcn.004e3840
mov eax, dword [0x5dc940]
lea edx, [esp + 0x68]
push 0x103
push edx
push 0xc438
push eax
call edi
push str.Crystal_Chrome
call fcn.004ab0b0
mov ecx, eax
call fcn.004ab8f0
cmp eax, 0xffffffff
jne 0x4a95e5
lea edx, [esp + 0x68]
lea ecx, [esp + 0x68]
push edx
mov dword [esp + 0x34], 0xcb32
mov dword [esp + 0x48], ecx
call ebp
add esp, 4
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], eax
mov eax, esi
push 0
push 0
push 0xa
push 0
push ecx
push 1
push eax
push ebx
mov ecx, 0x5dd098
inc esi
call fcn.004e3840
mov ecx, dword [esp + 0x14]
call fcn.004a92c0
test eax, eax
je 0x4a9600
push 8
push 0xcf1b
push ebx
call dword [sym.imp.USER32.dll_CheckMenuItem]
xor edi, edi
call fcn.004ab0b0
mov ecx, eax
call fcn.004ab850
test eax, eax
jle 0x4a9729
push edi
call fcn.004ab0b0
mov ecx, eax
call fcn.004ab870
test eax, eax
mov dword [esp + 0x10], eax
je 0x4a9714
mov ecx, eax
call fcn.00472bf0
test eax, eax
je 0x4a9714
mov ecx, dword [esp + 0x10]
call fcn.00472bf0
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x44], eax
call fcn.00472bf0
push eax
call ebp
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [edi + 0xcf1c]
mov dword [esp + 0x48], eax
push str.Crystal_Chrome
mov dword [esp + 0x34], edx
call fcn.004ace30
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x4a96a4
push 0
push 0
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
push 0
mov eax, esi
push ecx
push 1
push eax
push ebx
mov ecx, 0x5dd098
inc esi
call fcn.004e3840
jmp 0x4a96f5
mov eax, dword [0x5dc940]
lea edx, [esp + 0x68]
push 0x103
push edx
push 0xc438
push eax
call dword [sym.imp.USER32.dll_LoadStringW]
lea edx, [esp + 0x68]
lea ecx, [esp + 0x68]
push edx
mov dword [esp + 0x48], ecx
call ebp
add esp, 4
mov dword [esp + 0x48], eax
lea eax, [esp + 0x20]
mov ecx, esi
push 0
push 0
push 0xa
push 0
push eax
sub ecx, edi
push 1
push ecx
push ebx
mov ecx, 0x5dd098
call fcn.004e3840
inc esi
mov edx, dword [esp + 0x10]
push edx
call fcn.004a9290
add esp, 4
test eax, eax
je 0x4a9714
mov eax, dword [esp + 0x30]
push 8
push eax
push ebx
call dword [sym.imp.USER32.dll_CheckMenuItem]
inc edi
call fcn.004ab0b0
mov ecx, eax
call fcn.004ab850
cmp edi, eax
jl 0x4a9616
mov edx, dword [0x5dc940]
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 + 0x14]
mov eax, dword [edi + 0x18]
test eax, eax
jle 0x4a9792
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 0x4a97b2
lea edx, [esp + 0x270]
lea eax, [esp + 0x68]
push edx
push 0x528430
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 + 0x48], ecx
call ebp
add esp, 4
mov dword [esp + 0x48], eax
lea eax, [esp + 0x20]
add esi, 2
push 0
push 0
push 2
push 0
push eax
push 1
push esi
push ebx
mov ecx, 0x5dd098
mov dword [esp + 0x50], 0x8054
call fcn.004e3840
lea ecx, [edi + 0x20]
mov dword [edi + 0x14], ebx
call fcn.004ad0c0
lea ecx, [edi + 0x488]
call fcn.004ad3f0
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, 0x5dd098
call fcn.004e3c90
mov ecx, dword [esp + 0x1c]
mov esi, eax
push ecx
mov ecx, 0x5dd098
mov dword [edi + 0x14], 0
call fcn.004e36c0
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 0x4a9897
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 0x4a9897
mov esi, dword [edi + 0x1c]
add esi, 0x64
test esi, esi
jne 0x4a98d9
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x4a98d9
mov eax, dword [edi + 0x24]
push eax
call ebx
test eax, eax
je 0x4a98d9
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 0x4a98d9
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 + 0x1c]
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