Function at 0x4af05c
Capabilities:
Log keystrokes via input method manager
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
lea esi, [ebp - 0x40]
mov eax, dword [ebp - 4]
add eax, 0x5c
xor ecx, ecx
mov edx, 0xc
call fcn.00403584
mov eax, dword [ebp - 4]
call fcn.004ab50c
xor edx, edx
push ebp
push 0x4af7b9
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4af761
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov byte [ebp - 9], 0
test bl, bl
je 0x4af11e
call sub.user32.dll_GetMessagePos
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00408828
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x11]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
call fcn.004ab014
mov eax, dword [ebp - 0xd]
push eax
lea eax, [ebp - 9]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
mov ecx, dword [ebp - 0x11]
mov dl, byte [0x4af7cc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5c], 0
je 0x4af118
call fcn.00404628
call fcn.00404628
jmp 0x4af7c0
mov byte [ebp - 9], 0
jmp 0x4af14a
cmp byte [ebp + 0x10], 0
je 0x4af14a
mov dl, byte [ebp + 0xc]
xor dl, 1
mov eax, dword [ebp - 4]
call fcn.004ae94c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5c], 0
je 0x4af14a
call fcn.00404628
call fcn.00404628
jmp 0x4af7c0
mov bl, 1
jmp 0x4af73c
test bl, bl
jne 0x4af15a
call sub.user32.dll_WaitMessage
xor ebx, ebx
jmp 0x4af71b
mov eax, dword [esi + 4]
sub eax, 0x201
je 0x4af174
sub eax, 3
jne 0x4af25f
lea edx, [ebp - 0x11]
mov eax, dword [esi + 0xc]
call fcn.00408828
lea eax, [ebp - 0x11]
push eax
mov eax, dword [esi]
push eax
call sub.user32.dll_ClientToScreen
lea eax, [ebp - 0x11]
mov dl, 1
call fcn.0044e028
mov edi, eax
mov eax, edi
mov edx, dword [0x4a6b44]
call fcn.00403f3c
test al, al
je 0x4af1be
mov edx, dword [edi + 0x214]
mov eax, dword [ebp - 4]
call fcn.004ab448
test al, al
jne 0x4af25f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
jne 0x4af20a
mov eax, dword [ebp - 4]
cmp edi, dword [eax + 0xc8]
jne 0x4af20a
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x11]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
call fcn.0044f2e8
push dword [ebp - 0x44]
push dword [ebp - 0x48]
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea eax, [ebp - 0x5c]
push eax
call sub.user32.dll_PtInRect
test eax, eax
jne 0x4af219
call fcn.00404628
call fcn.00404628
jmp 0x4af7c0
cmp dword [esi + 4], 0x201
jne 0x4af25f
push ebp
lea eax, [ebp - 0x11]
mov dl, 1
call fcn.004aecf0
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
test eax, eax
je 0x4af250
mov edx, dword [ebp - 4]
cmp byte [edx + 0x88], 0
je 0x4af250
mov eax, dword [eax + 0x1c]
test byte [eax + 0x64], 0x10
je 0x4af25f
call fcn.00404628
call fcn.00404628
jmp 0x4af7c0
push 3
push 0
push 0
push 0
push esi
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x4af71b
mov eax, dword [esi + 4]
mov edx, eax
cmp edx, 0x113
jg 0x4af2aa
je 0x4af442
sub edx, 0x4d
je case.0x4af4b5.512
sub edx, 0x2e
je case.0x4af4b5.512
add edx, 0xffffff7b
sub edx, 9
jb 0x4af2ca
jmp 0x4af6be
sub edx, 0x118
je case.0x4af4b5.512
add edx, 0xffffff18
sub edx, 0xb
jb 0x4af49e
jmp 0x4af6be
mov eax, dword [0x83fa38]
mov eax, dword [eax]
call fcn.004723d0
push 1
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4af2f8
cmp byte [ebp + 8], 0
je 0x4af2f4
push 2
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x4af2f8
xor eax, eax
jmp 0x4af2fa
mov al, 1
mov byte [ebp - 0x1a], al
mov eax, dword [esi + 4]
sub eax, 0x100
je 0x4af31b
sub eax, 2
je 0x4af38b
sub eax, 2
je 0x4af31b
sub eax, 2
je 0x4af38b
jmp case.0x4af4b5.512
cmp dword [esi + 8], 0xe5
jne 0x4af32f
mov eax, dword [esi]
push eax
call sub.imm32.dll_ImmGetVirtualKey
mov dword [esi + 8], eax
cmp byte [ebp - 0x1a], 0
je 0x4af33f
cmp dword [esi + 8], 0x70
jne case.0x4af4b5.512
mov ax, word [esi + 8]
mov word [ebp - 0x1c], ax
push ebp
mov eax, dword [esi + 0xc]
call fcn.004685d0
push eax
push ebp
call fcn.004aecd4
pop ecx
lea edx, [ebp - 0x1c]
pop ecx
call fcn.004aedd0
pop ecx
test al, al
je 0x4af375
call fcn.00404628
call fcn.00404628
jmp 0x4af7c0
cmp word [ebp - 0x1c], 0
je case.0x4af4b5.512
push esi
call sub.user32.dll_TranslateMessage
jmp case.0x4af4b5.512
cmp byte [ebp - 0x1a], 0
jne case.0x4af4b5.512
push ebp
call fcn.004aecd4
pop ecx
mov dword [ebp - 0x18], eax
push 0
lea eax, [ebp - 0x19]
push eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + 0xac]
mov eax, dword [ebp - 0x18]
call fcn.004ae3f0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4af416
mov eax, dword [esi + 8]
sub eax, 0x20
je 0x4af3cf
sub eax, 0xd
jne 0x4af40a
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
jne 0x4af40a
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 4]
jne 0x4af40a
call sub.user32.dll_GetActiveWindow
test eax, eax
je 0x4af40a
call sub.user32.dll_GetActiveWindow
mov edx, eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 4]
call fcn.004ae934
call fcn.00404628
call fcn.00404628
jmp 0x4af7c0
push 0
call sub.user32.dll_MessageBeep
jmp case.0x4af4b5.512
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
call fcn.004abf8c
mov eax, dword [ebp - 0x18]
call fcn.004aeab0
cmp byte [ebp - 0x19], 0
je case.0x4af4b5.512
mov dl, 1
mov eax, dword [ebp - 0x18]
call fcn.004ae94c
jmp case.0x4af4b5.512
mov eax, dword [esi]
call fcn.0044c690
mov edi, eax
test edi, edi
je 0x4af493
mov eax, edi
mov edx, dword [0x4a6b44]
call fcn.00403f3c
test al, al
je 0x4af493
cmp dword [esi + 8], 0x2328
jl 0x4af493
cmp dword [esi + 8], 0x232b
jg 0x4af493
mov eax, dword [edi + 0x214]
test eax, eax
je case.0x4af4b5.512
mov edx, dword [esi + 8]
sub edx, 0x2328
call fcn.004aefec
jmp case.0x4af4b5.512
push esi
call sub.user32.dll_DispatchMessageA
jmp case.0x4af4b5.512
mov edx, eax
add edx, 0xfffffe00
cmp edx, 0xa
ja case.0x4af4b5.512
mov dl, byte [edx + 0x4af4bc]
jmp dword [edx*4 + 0x4af4c7]
mov eax, dword [esi + 0x14]
cmp eax, dword [0x844298]
jne 0x4af4f1
mov eax, dword [esi + 0x18]
cmp eax, dword [0x84429c]
je 0x4af50a
mov eax, dword [esi + 0x14]
mov dword [0x844298], eax
mov eax, dword [esi + 0x18]
mov dword [0x84429c], eax
push ebp
call fcn.004aee6c
pop ecx
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.004aed44
pop ecx
test al, al
je case.0x4af4b5.512
lea ecx, [ebp - 0x11]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.004ab014
mov ecx, dword [ebp - 0xd]
mov edx, dword [ebp - 0x11]
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0x38]
jmp case.0x4af4b5.512
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.004aed44
pop ecx
test al, al
je case.0x4af4b5.512
lea ecx, [ebp - 0x11]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.004ab014
mov eax, dword [ebp - 0xd]
push eax
movsx edx, word [esi + 0xa]
mov ecx, dword [ebp - 0x11]
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0x40]
jmp case.0x4af4b5.512
cmp eax, 0x204
setne al
or al, byte [ebp + 8]
je case.0x4af4b5.512
mov eax, dword [0x83fa38]
mov eax, dword [eax]
call fcn.004723d0
mov byte [ebp - 9], 0
mov eax, dword [ebp - 4]
and byte [eax + 0xb3], 0xef
push ebp
lea eax, [esi + 0x14]
mov dl, 1
call fcn.004aecf0
pop ecx
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.004aed44
pop ecx
test al, al
je case.0x4af4b5.512
cmp dword [esi + 4], 0x203
je 0x4af5da
mov al, byte [0x4af7cc]
mov byte [ebp - 0x1d], al
jmp 0x4af5e2
mov al, byte [0x4af7d0]
mov byte [ebp - 0x1d], al
lea ecx, [ebp - 0x11]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.004ab014
mov eax, dword [ebp - 0xd]
push eax
lea eax, [ebp - 9]
push eax
mov ecx, dword [ebp - 0x11]
mov dl, byte [ebp - 0x1d]
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0x34]
call sub.user32.dll_GetMessagePos
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00408828
mov eax, dword [ebp - 0x48]
mov dword [0x844298], eax
mov eax, dword [ebp - 0x44]
mov dword [0x84429c], eax
jmp case.0x4af4b5.512
cmp eax, 0x202
sete al
or al, byte [ebp + 8]
je case.0x4af4b5.512
push ebp
lea eax, [esi + 0x14]
xor edx, edx
call fcn.004aecf0
pop ecx
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.004aed44
pop ecx
test al, al
jne 0x4af69c
cmp dword [ebp - 0x18], 0
je 0x4af675
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 4]
jne case.0x4af4b5.512
mov eax, dword [ebp - 4]
cmp byte [eax + 0x71], 0
je case.0x4af4b5.512
mov eax, dword [ebp - 4]
test byte [eax + 0xb3], 0x10
jne 0x4af690
call fcn.00404628
call fcn.00404628
jmp 0x4af7c0
mov eax, dword [ebp - 4]
and byte [eax + 0xb3], 0xef
jmp case.0x4af4b5.512
lea ecx, [ebp - 0x11]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.004ab014
mov al, byte [ebp - 9]
push eax
mov ecx, dword [ebp - 0xd]
mov edx, dword [ebp - 0x11]
mov eax, dword [ebp - 0x24]
mov edi, dword [eax]
call dword [edi + 0x3c]
jmp case.0x4af4b5.512
push esi
call sub.user32.dll_DispatchMessageA
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5c], 0
je 0x4af6dc
call fcn.00404628
call fcn.00404628
jmp 0x4af7c0
cmp dword [0x844298], 0x80000000
jne 0x4af714
call sub.user32.dll_GetMessagePos
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00408828
mov eax, dword [ebp - 0x48]
mov dword [0x844298], eax
mov eax, dword [ebp - 0x44]
mov dword [0x84429c], eax
push ebp
call fcn.004aee6c
pop ecx
push ebp
call fcn.004aef60
pop ecx
push ebp
call fcn.004aedb8
pop ecx
test al, al
je 0x4af73c
push 0
push 0
push 0
push 0
push esi
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x4af161
push ebp
call fcn.004aedb8
pop ecx
test al, al
jne 0x4af151
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af768
mov eax, dword [ebp - 4]
call fcn.004ae678
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc