Function at 0x4afe60
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x468
push ebp
mov ebp, ecx
mov dword [esp + 0xc], ebp
call fcn.004b3610
test eax, eax
jne 0x4afe80
pop ebp
add esp, 0x468
ret 0x14
push esi
push edi
call fcn.004b3610
push eax
mov ecx, ebp
call fcn.004af100
mov eax, dword [0x591228]
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 0x4b061e
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebx, eax
cmp ebx, esi
je 0x4b0616
push edi
mov ecx, 0x591980
call fcn.004ef1b0
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 0x4afeef
mov dword [esp + 0x14], esi
jmp 0x4afefb
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 [0x5c27bc]
mov dword [esp + 0x1c], 0x30
cmp eax, esi
mov dword [esp + 0x20], 0x42
je 0x4aff9c
push 0x5c27c0
push 0x56bac0
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4aff9c
mov edx, dword [0x591228]
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, 0x591980
push 0
push 0
push 0xc
push 0
push edx
push esi
push 0
push ebx
mov dword [esp + 0x64], eax
call fcn.004ef3e0
jmp 0x4b0002
mov ecx, dword [0x591228]
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, 0x591980
call fcn.004ef3e0
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 0x4b0088
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 8]
mov edi, dword [ecx + eax*4]
test edi, edi
je 0x4b0071
mov ecx, edi
call fcn.004b5360
test eax, eax
je 0x4b0071
mov ecx, edi
call fcn.004b5360
mov ecx, edi
mov dword [esp + 0x40], eax
call fcn.004b5360
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, 0x591980
mov dword [esp + 0x4c], edx
inc esi
call fcn.004ef3e0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4b0010
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x18]
test ecx, ecx
jle 0x4b00c7
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4b00a0
mov dword [esp + 0x14], ecx
jmp 0x4b00ac
mov eax, dword [eax + 0xc]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x14], eax
call fcn.004b3610
mov ecx, eax
call fcn.004b3db0
mov edx, eax
mov eax, dword [esp + 0x14]
add edx, eax
mov eax, dword [esp + 0x18]
sub dword [eax + 0x18], edx
mov ecx, dword [0x591228]
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, 0x591980
mov dword [esp + 0x4c], 0xcb30
inc esi
call fcn.004ef3e0
mov eax, dword [0x591228]
lea edx, [esp + 0x68]
push 0x103
push edx
push 0xc438
push eax
call edi
push 0x56bbb8
call fcn.004b3610
mov ecx, eax
call fcn.004b3e50
cmp eax, 0xffffffff
jne 0x4b0184
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, 0x591980
inc esi
call fcn.004ef3e0
mov eax, dword [0x591228]
lea edx, [esp + 0x68]
push 0x103
push edx
push 0xc440
push eax
call edi
push 0x56bb98
call fcn.004b3610
mov ecx, eax
call fcn.004b3e50
cmp eax, 0xffffffff
jne 0x4b01ed
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, 0x591980
inc esi
call fcn.004ef3e0
mov eax, dword [0x591228]
lea edx, [esp + 0x68]
push 0x103
push edx
push 0xc441
push eax
call edi
push 0x56bba8
call fcn.004b3610
mov ecx, eax
call fcn.004b3e50
cmp eax, 0xffffffff
jne 0x4b0256
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, 0x591980
inc esi
call fcn.004ef3e0
mov ecx, dword [esp + 0x18]
call fcn.004afe40
test eax, eax
je 0x4b0271
push 8
push 0xcf1b
push ebx
call dword [sym.imp.USER32.dll_CheckMenuItem]
xor edi, edi
call fcn.004b3610
mov ecx, eax
call fcn.004b3db0
test eax, eax
jle 0x4b044d
push edi
call fcn.004b3610
mov ecx, eax
call fcn.004b3dd0
test eax, eax
mov dword [esp + 0x10], eax
je 0x4b0438
mov ecx, eax
call fcn.004b5360
test eax, eax
je 0x4b0438
mov ecx, dword [esp + 0x10]
call fcn.004b5360
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], eax
call fcn.004b5360
push eax
call ebp
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [edi + 0xcf1c]
mov dword [esp + 0x44], eax
push 0x56bbb8
mov dword [esp + 0x30], edx
call fcn.004b5370
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4b034c
mov ecx, dword [0x591228]
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, 0x591980
call fcn.004ef3e0
inc esi
jmp 0x4b0419
mov ecx, dword [esp + 0x10]
push 0x56bb98
call fcn.004b5370
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4b03a2
mov ecx, dword [0x591228]
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 0x4b032d
mov ecx, dword [esp + 0x10]
push 0x56bba8
call fcn.004b5370
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x4b03fb
mov ecx, dword [0x591228]
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 0x4b032d
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, 0x591980
inc esi
call fcn.004ef3e0
mov edx, dword [esp + 0x10]
push edx
call fcn.004afe10
add esp, 4
test eax, eax
je 0x4b0438
mov eax, dword [esp + 0x2c]
push 8
push eax
push ebx
call dword [sym.imp.USER32.dll_CheckMenuItem]
inc edi
call fcn.004b3610
mov ecx, eax
call fcn.004b3db0
cmp edi, eax
jl 0x4b0287
mov edx, dword [0x591228]
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 0x4b04b6
push eax
lea eax, [esp + 0x274]
push eax
push 0x56bbd8
lea ecx, [esp + 0x74]
push 0x103
push ecx
call dword [sym.imp.MSVCRT.dll__snwprintf]
add esp, 0x14
jmp 0x4b04d6
lea edx, [esp + 0x270]
lea eax, [esp + 0x68]
push edx
push 0x53d4a4
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, 0x591980
mov dword [esp + 0x4c], 0x8054
call fcn.004ef3e0
lea ecx, [edi + 0x20]
mov dword [edi + 0x14], ebx
call fcn.004b5600
lea ecx, [edi + 0x488]
call fcn.004b5930
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, 0x591980
call fcn.004ef830
mov ecx, dword [esp + 0x4c]
mov esi, eax
push ecx
mov ecx, 0x591980
mov dword [edi + 0x14], 0
call fcn.004ef260
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 0x4b05bb
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 0x4b05bb
mov esi, dword [edi + 0x1c]
add esi, 0x64
test esi, esi
jne 0x4b05fd
push 1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x4b05fd
mov eax, dword [edi + 0x24]
push eax
call ebx
test eax, eax
je 0x4b05fd
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 0x4b05fd
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