Function at 0x4af360
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x468
push ebp
mov ebp, ecx
mov dword [esp + 0xc], ebp
call fcn.004b2b30
test eax, eax
jne 0x4af380
pop ebp
add esp, 0x468
ret 0x14
push esi
push edi
call fcn.004b2b30
push eax
mov ecx, ebp
call fcn.004ae5f0
mov eax, dword [0x58d1a0]
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 0x4afb1e
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebx, eax
cmp ebx, esi
je 0x4afb16
push edi
mov ecx, 0x58d8f8
call fcn.004ee350
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 0x4af3ef
mov dword [esp + 0x14], esi
jmp 0x4af3fb
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 [0x5be7bc]
mov dword [esp + 0x1c], 0x30
cmp eax, esi
mov dword [esp + 0x20], 0x42
je 0x4af49c
push 0x5be7c0
push str.3.Xdefault
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4af49c
mov edx, dword [0x58d1a0]
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, 0x58d8f8
push 0
push 0
push 0xc
push 0
push edx
push esi
push 0
push ebx
mov dword [esp + 0x64], eax
call fcn.004ee580
jmp 0x4af502
mov ecx, dword [0x58d1a0]
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, 0x58d8f8
call fcn.004ee580
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 0x4af588
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 8]
mov edi, dword [ecx + eax*4]
test edi, edi
je 0x4af571
mov ecx, edi
call fcn.004d9b00
test eax, eax
je 0x4af571
mov ecx, edi
call fcn.004d9b00
mov ecx, edi
mov dword [esp + 0x40], eax
call fcn.004d9b00
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, 0x58d8f8
mov dword [esp + 0x4c], edx
inc esi
call fcn.004ee580
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4af510
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jle 0x4af5c7
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4af5a0
mov dword [esp + 0x14], ecx
jmp 0x4af5ac
mov eax, dword [eax + 0xc]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x14], eax
call fcn.004b2b30
mov ecx, eax
call fcn.004b32d0
mov edx, eax
mov eax, dword [esp + 0x14]
add edx, eax
mov eax, dword [esp + 0x18]
sub dword [eax + 0x18], edx
mov ecx, dword [0x58d1a0]
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, 0x58d8f8
mov dword [esp + 0x4c], 0xcb30
inc esi
call fcn.004ee580
mov eax, dword [0x58d1a0]
lea edx, [esp + 0x68]
push 0x103
push edx
push 0xc438
push eax
call edi
push str.Crystal_Chrome
call fcn.004b2b30
mov ecx, eax
call fcn.004b3370
cmp eax, 0xffffffff
jne 0x4af684
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, 0x58d8f8
inc esi
call fcn.004ee580
mov eax, dword [0x58d1a0]
lea edx, [esp + 0x68]
push 0x103
push edx
push 0xc440
push eax
call edi
push str.bigword
call fcn.004b2b30
mov ecx, eax
call fcn.004b3370
cmp eax, 0xffffffff
jne 0x4af6ed
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, 0x58d8f8
inc esi
call fcn.004ee580
mov eax, dword [0x58d1a0]
lea edx, [esp + 0x68]
push 0x103
push edx
push 0xc441
push eax
call edi
push str.simple
call fcn.004b2b30
mov ecx, eax
call fcn.004b3370
cmp eax, 0xffffffff
jne 0x4af756
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, 0x58d8f8
inc esi
call fcn.004ee580
mov ecx, dword [esp + 0x18]
call fcn.004af340
test eax, eax
je 0x4af771
push 8
push 0xcf1b
push ebx
call dword [sym.imp.USER32.dll_CheckMenuItem]
xor edi, edi
call fcn.004b2b30
mov ecx, eax
call fcn.004b32d0
test eax, eax
jle 0x4af94d
push edi
call fcn.004b2b30
mov ecx, eax
call fcn.004b32f0
test eax, eax
mov dword [esp + 0x10], eax
je 0x4af938
mov ecx, eax
call fcn.004d9b00
test eax, eax
je 0x4af938
mov ecx, dword [esp + 0x10]
call fcn.004d9b00
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], eax
call fcn.004d9b00
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.004b48b0
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4af84c
mov ecx, dword [0x58d1a0]
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, 0x58d8f8
call fcn.004ee580
inc esi
jmp 0x4af919
mov ecx, dword [esp + 0x10]
push str.bigword
call fcn.004b48b0
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4af8a2
mov ecx, dword [0x58d1a0]
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 0x4af82d
mov ecx, dword [esp + 0x10]
push str.simple
call fcn.004b48b0
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4af8fb
mov ecx, dword [0x58d1a0]
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 0x4af82d
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, 0x58d8f8
inc esi
call fcn.004ee580
mov edx, dword [esp + 0x10]
push edx
call fcn.004af310
add esp, 4
test eax, eax
je 0x4af938
mov eax, dword [esp + 0x2c]
push 8
push eax
push ebx
call dword [sym.imp.USER32.dll_CheckMenuItem]
inc edi
call fcn.004b2b30
mov ecx, eax
call fcn.004b32d0
cmp edi, eax
jl 0x4af787
mov edx, dword [0x58d1a0]
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 0x4af9b6
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 0x4af9d6
lea edx, [esp + 0x270]
lea eax, [esp + 0x68]
push edx
push 0x5394a4
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, 0x58d8f8
mov dword [esp + 0x4c], 0x8054
call fcn.004ee580
lea ecx, [edi + 0x20]
mov dword [edi + 0x14], ebx
call fcn.004b4b40
lea ecx, [edi + 0x488]
call fcn.004b4e70
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, 0x58d8f8
call fcn.004ee9d0
mov ecx, dword [esp + 0x4c]
mov esi, eax
push ecx
mov ecx, 0x58d8f8
mov dword [edi + 0x14], 0
call fcn.004ee400
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 0x4afabb
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 0x4afabb
mov esi, dword [edi + 0x1c]
add esi, 0x64
test esi, esi
jne 0x4afafd
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x4afafd
mov eax, dword [edi + 0x24]
push eax
call ebx
test eax, eax
je 0x4afafd
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 0x4afafd
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