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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x70], 0
mov eax, dword [ebp - 4]
call fcn.0060c894
xor eax, eax
push ebp
push 0x610cdb
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x610c83
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 0x58], eax
mov byte [ebp - 0xd], 0
test bl, bl
je 0x610628
lea eax, [ebp - 0x4c]
call fcn.00603d84
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xcc]
call fcn.0060c384
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xd]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xcc]
mov ecx, dword [ebp - 0x18]
movzx edx, word [0x610cec]
mov ebx, dword [eax]
call dword [ebx + 0x30]
mov eax, dword [ebp - 4]
call fcn.0060fc8c
test al, al
je 0x610622
call fcn.00409094
call fcn.00409094
jmp 0x610ce2
mov byte [ebp - 0xd], 0
jmp 0x610658
cmp byte [ebp + 0x10], 0
je 0x610658
movzx edx, byte [ebp + 0xc]
xor dl, 1
mov eax, dword [ebp - 4]
call fcn.0060fd00
mov eax, dword [ebp - 4]
call fcn.0060fc8c
test al, al
je 0x610658
call fcn.00409094
call fcn.00409094
jmp 0x610ce2
call sub.user32.dll_GetActiveWindow
mov dword [ebp - 0xc], eax
jmp 0x610c5e
call fcn.00604110
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x44]
push eax
call sub.user32.dll_PeekMessageW
test eax, eax
jne 0x6106a9
call fcn.00603ec8
test al, al
je 0x61069f
push 0x4ff
push 1
push 0
push 0
push 0
call sub.user32.dll_MsgWaitForMultipleObjects
jmp 0x610c5e
call sub.user32.dll_WaitMessage
jmp 0x610c5e
mov eax, dword [ebp - 0x40]
sub eax, 0x201
je 0x6106bc
sub eax, 3
jne 0x6107a5
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
mov dl, 1
call fcn.0055fa04
mov ebx, eax
mov eax, ebx
mov edx, dword [0x607de4]
call fcn.00407e34
test al, al
je 0x6106fb
mov edx, dword [ebx + 0x29c]
mov eax, dword [ebp - 4]
call fcn.0060c7a8
test al, al
jne 0x6107a5
mov eax, dword [ebp - 4]
cmp byte [eax + 0x90], 0
jne 0x610748
mov eax, dword [ebp - 4]
cmp ebx, dword [eax + 0xe0]
jne 0x610748
lea ecx, [ebp - 0x4c]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
call fcn.00561280
lea eax, [ebp - 0x4c]
push eax
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xe0]
mov ecx, dword [eax]
call dword [ecx + 0x60]
lea eax, [ebp - 0x5c]
pop edx
call fcn.0040f19c
test al, al
jne 0x610757
call fcn.00409094
call fcn.00409094
jmp 0x610ce2
cmp dword [ebp - 0x40], 0x201
jne 0x6107a5
push ebp
lea eax, [ebp - 0x18]
mov dl, 1
call fcn.006101d4
pop ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xcc], 0
je 0x610796
mov eax, dword [ebp - 4]
cmp byte [eax + 0xa8], 0
je 0x610796
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xcc]
mov eax, dword [eax + 0x1c]
test byte [eax + 0x70], 0x10
je 0x6107a5
call fcn.00409094
call fcn.00409094
jmp 0x610ce2
push 3
mov esi, dword [ebp - 0x40]
push esi
push esi
push 0
lea eax, [ebp - 0x44]
push eax
call sub.user32.dll_PeekMessageW
test eax, eax
je 0x610c5e
mov eax, dword [ebp - 0x40]
cmp eax, 0x113
jg 0x6107f0
je 0x6109a7
sub eax, 0x4d
je case.0x610a22.518
sub eax, 0x2e
je case.0x610a22.518
add eax, 0xffffff7b
sub eax, 0xa
jb 0x61080e
jmp 0x610c07
sub eax, 0x118
je case.0x610a22.518
add eax, 0xffffff18
sub eax, 0xf
jb 0x610a0a
jmp 0x610c07
mov eax, dword [0x768cec]
mov eax, dword [eax]
call fcn.005f8bd8
push 1
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x61083c
cmp byte [ebp + 8], 0
je 0x610838
push 2
call sub.user32.dll_GetKeyState
test ax, ax
jl 0x61083c
xor eax, eax
jmp 0x61083e
mov al, 1
mov byte [ebp - 0x20], al
mov eax, dword [ebp - 0x40]
sub eax, 0x100
je 0x610863
sub eax, 2
je 0x6108d8
sub eax, 2
je 0x610863
sub eax, 2
je 0x6108d8
jmp case.0x610a22.518
cmp dword [ebp - 0x3c], 0xe5
jne 0x610878
mov eax, dword [ebp - 0x44]
push eax
call sub.imm32.dll_ImmGetVirtualKey
mov dword [ebp - 0x3c], eax
movzx eax, word [ebp - 0x3c]
mov word [ebp - 0x22], ax
cmp byte [ebp - 0x20], 0
je 0x610891
cmp word [ebp - 0x22], 0x70
jne case.0x610a22.518
push ebp
mov eax, dword [ebp - 0x38]
call fcn.005eb86c
push eax
push ebp
call fcn.00610198
pop ecx
lea edx, [ebp - 0x22]
pop ecx
call fcn.006102cc
pop ecx
test al, al
je 0x6108bf
call fcn.00409094
call fcn.00409094
jmp 0x610ce2
cmp word [ebp - 0x22], 0
je case.0x610a22.518
lea eax, [ebp - 0x44]
push eax
call sub.user32.dll_TranslateMessage
jmp case.0x610a22.518
cmp byte [ebp - 0x20], 0
jne case.0x610a22.518
movzx eax, word [ebp - 0x3c]
mov word [ebp - 0x22], ax
push ebp
call fcn.00610198
pop ecx
mov dword [ebp - 0x1c], eax
movzx eax, word [ebp - 0x22]
mov word [ebp - 0x1e], ax
push 0
lea eax, [ebp - 0x1f]
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0xcc]
movzx ecx, word [ebp - 0x1e]
mov eax, dword [ebp - 0x1c]
call fcn.0060f78c
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x61097b
movzx eax, word [ebp - 0x22]
sub ax, 0x20
je 0x610930
sub ax, 0xd
jne 0x61096f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x90], 0
jne 0x61096f
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 4]
jne 0x61096f
call sub.user32.dll_GetActiveWindow
test eax, eax
je 0x61096f
call sub.user32.dll_GetActiveWindow
mov edx, eax
movzx ecx, word [ebp - 0x22]
mov eax, dword [ebp - 4]
call fcn.0060fce4
call fcn.00409094
call fcn.00409094
jmp 0x610ce2
push 0
call sub.user32.dll_MessageBeep
jmp case.0x610a22.518
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
call fcn.0060d2d4
mov eax, dword [ebp - 0x1c]
call fcn.0060fe3c
cmp byte [ebp - 0x1f], 0
je case.0x610a22.518
mov dl, 1
mov eax, dword [ebp - 0x1c]
call fcn.0060fd00
jmp case.0x610a22.518
mov eax, dword [ebp - 0x44]
call fcn.0055deb0
mov ebx, eax
test ebx, ebx
je 0x6109fc
mov eax, ebx
mov edx, dword [0x607de4]
call fcn.00407e34
test al, al
je 0x6109fc
cmp dword [ebp - 0x3c], 0x2328
jb 0x6109fc
cmp dword [ebp - 0x3c], 0x232b
ja 0x6109fc
cmp dword [ebx + 0x29c], 0
je case.0x610a22.518
movzx edx, byte [ebp - 0x3c]
sub dl, 0x28
mov eax, dword [ebx + 0x29c]
call fcn.0061050c
jmp case.0x610a22.518
lea eax, [ebp - 0x44]
push eax
call sub.user32.dll_DispatchMessageW
jmp case.0x610a22.518
mov eax, dword [ebp - 0x40]
add eax, 0xfffffe00
cmp eax, 0xa
ja case.0x610a22.518
movzx eax, byte [eax + 0x610a29]
jmp dword [eax*4 + 0x610a34]
mov eax, dword [ebp - 0x30]
cmp eax, dword [0x76f6a8]
jne 0x610a62
mov eax, dword [ebp - 0x2c]
cmp eax, dword [0x76f6ac]
je case.0x610a22.518
mov eax, dword [ebp - 0x30]
mov dword [0x76f6a8], eax
mov eax, dword [ebp - 0x2c]
mov dword [0x76f6ac], eax
push ebp
call fcn.0061037c
pop ecx
jmp case.0x610a22.518
push ebp
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x1c]
call fcn.00610224
pop ecx
test al, al
je case.0x610a22.518
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x28]
call fcn.0060c384
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [ebp - 0x3c]
shr edx, 0x10
movsx edx, dx
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
jmp case.0x610a22.518
cmp dword [ebp - 0x40], 0x204
setne al
or al, byte [ebp + 8]
je case.0x610a22.518
mov eax, dword [0x768cec]
mov eax, dword [eax]
call fcn.005f8bd8
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 4]
and byte [eax + 0xd3], 0xef
push ebp
lea eax, [ebp - 0x30]
mov dl, 1
call fcn.006101d4
pop ecx
push ebp
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x1c]
call fcn.00610224
pop ecx
test al, al
je case.0x610a22.518
cmp dword [ebp - 0x40], 0x203
je 0x610b24
movzx eax, word [0x610cec]
mov word [ebp - 0x24], ax
jmp 0x610b2f
movzx eax, word [0x610cf0]
mov word [ebp - 0x24], ax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x28]
call fcn.0060c384
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp - 0xd]
push eax
mov ecx, dword [ebp - 0x18]
movzx edx, word [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x30]
lea eax, [ebp - 0x4c]
call fcn.00603d84
mov eax, dword [ebp - 0x4c]
mov dword [0x76f6a8], eax
mov eax, dword [ebp - 0x48]
mov dword [0x76f6ac], eax
jmp case.0x610a22.518
cmp dword [ebp - 0x40], 0x202
sete al
or al, byte [ebp + 8]
je case.0x610a22.518
push ebp
lea eax, [ebp - 0x30]
xor edx, edx
call fcn.006101d4
pop ecx
push ebp
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x1c]
call fcn.00610224
pop ecx
test al, al
jne 0x610be4
cmp dword [ebp - 0x1c], 0
je 0x610bbd
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 4]
jne case.0x610a22.518
mov eax, dword [ebp - 4]
cmp byte [eax + 0x91], 0
je case.0x610a22.518
mov eax, dword [ebp - 4]
test byte [eax + 0xd3], 0x10
jne 0x610bd8
call fcn.00409094
call fcn.00409094
jmp 0x610ce2
mov eax, dword [ebp - 4]
and byte [eax + 0xd3], 0xef
jmp case.0x610a22.518
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 0x28]
call fcn.0060c384
movzx eax, byte [ebp - 0xd]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
jmp case.0x610a22.518
lea eax, [ebp - 0x44]
push eax
call sub.user32.dll_DispatchMessageW
push ebp
call fcn.00610294
pop ecx
test al, al
jne 0x610c2a
call fcn.00409094
call fcn.00409094
jmp 0x610ce2
cmp dword [0x76f6a8], 0x80000000
jne 0x610c57
lea eax, [ebp - 0x4c]
call fcn.00603d84
mov eax, dword [ebp - 0x4c]
mov dword [0x76f6a8], eax
mov eax, dword [ebp - 0x48]
mov dword [0x76f6ac], eax
push ebp
call fcn.0061037c
pop ecx
push ebp
call fcn.00610480
pop ecx
push ebp
call fcn.00610294
pop ecx
test al, al
jne 0x610665
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x610c8a
mov eax, dword [ebp - 4]
call fcn.0060fa10
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc