Function at 0x47948c
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.00403234
mov eax, dword [ebp - 4]
call fcn.00475980
xor edx, edx
push ebp
push 0x479be9
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x479b91
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 0x47954e
call sub.USER32.dll_GetMessagePos
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00407ef4
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x11]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
call fcn.00475488
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 [0x479bfc]
mov ebx, dword [eax]
call dword [ebx + 0x34]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5c], 0
je 0x479548
call fcn.004042e4
call fcn.004042e4
jmp 0x479bf0
mov byte [ebp - 9], 0
jmp 0x47957a
cmp byte [ebp + 0x10], 0
je 0x47957a
mov dl, byte [ebp + 0xc]
xor dl, 1
mov eax, dword [ebp - 4]
call fcn.00478d8c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5c], 0
je 0x47957a
call fcn.004042e4
call fcn.004042e4
jmp 0x479bf0
mov bl, 1
jmp 0x479b6c
test bl, bl
jne 0x47958a
call sub.USER32.dll_WaitMessage
xor ebx, ebx
jmp 0x479b4b
mov eax, dword [esi + 4]
sub eax, 0x201
je 0x4795a4
sub eax, 3
jne 0x47968f
lea edx, [ebp - 0x11]
mov eax, dword [esi + 0xc]
call fcn.00407ef4
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.00447d24
mov edi, eax
mov eax, edi
mov edx, dword [0x471278]
call fcn.00403bf8
test al, al
je 0x4795ee
mov edx, dword [edi + 0x214]
mov eax, dword [ebp - 4]
call fcn.004758bc
test al, al
jne 0x47968f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
jne 0x47963a
mov eax, dword [ebp - 4]
cmp edi, dword [eax + 0xc8]
jne 0x47963a
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x11]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc8]
call fcn.00448fe4
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 0x479649
call fcn.004042e4
call fcn.004042e4
jmp 0x479bf0
cmp dword [esi + 4], 0x201
jne 0x47968f
push ebp
lea eax, [ebp - 0x11]
mov dl, 1
call fcn.00479120
pop ecx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xac]
test eax, eax
je 0x479680
mov edx, dword [ebp - 4]
cmp byte [edx + 0x88], 0
je 0x479680
mov eax, dword [eax + 0x1c]
test byte [eax + 0x64], 0x10
je 0x47968f
call fcn.004042e4
call fcn.004042e4
jmp 0x479bf0
push 3
push 0
push 0
push 0
push esi
call sub.USER32.dll_PeekMessageA
test eax, eax
je 0x479b4b
mov eax, dword [esi + 4]
mov edx, eax
cmp edx, 0x113
jg 0x4796da
je 0x479872
sub edx, 0x4d
je case.0x4798e5.512
sub edx, 0x2e
je case.0x4798e5.512
add edx, 0xffffff7b
sub edx, 9
jb 0x4796fa
jmp 0x479aee
sub edx, 0x118
je case.0x4798e5.512
add edx, 0xffffff18
sub edx, 0xb
jb 0x4798ce
jmp 0x479aee
mov eax, dword [0x64ef58]
mov eax, dword [eax]
call fcn.0046b5d4
push 1
call sub.USER32.dll_GetKeyState
test ax, ax
jl 0x479728
cmp byte [ebp + 8], 0
je 0x479724
push 2
call sub.USER32.dll_GetKeyState
test ax, ax
jl 0x479728
xor eax, eax
jmp 0x47972a
mov al, 1
mov byte [ebp - 0x1a], al
mov eax, dword [esi + 4]
sub eax, 0x100
je 0x47974b
sub eax, 2
je 0x4797bb
sub eax, 2
je 0x47974b
sub eax, 2
je 0x4797bb
jmp case.0x4798e5.512
cmp dword [esi + 8], 0xe5
jne 0x47975f
mov eax, dword [esi]
push eax
call sub.IMM32.dll_ImmGetVirtualKey
mov dword [esi + 8], eax
cmp byte [ebp - 0x1a], 0
je 0x47976f
cmp dword [esi + 8], 0x70
jne case.0x4798e5.512
mov ax, word [esi + 8]
mov word [ebp - 0x1c], ax
push ebp
mov eax, dword [esi + 0xc]
call fcn.004617d4
push eax
push ebp
call fcn.00479104
pop ecx
lea edx, [ebp - 0x1c]
pop ecx
call fcn.00479200
pop ecx
test al, al
je 0x4797a5
call fcn.004042e4
call fcn.004042e4
jmp 0x479bf0
cmp word [ebp - 0x1c], 0
je case.0x4798e5.512
push esi
call sub.USER32.dll_TranslateMessage
jmp case.0x4798e5.512
cmp byte [ebp - 0x1a], 0
jne case.0x4798e5.512
push ebp
call fcn.00479104
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.00478830
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x479846
mov eax, dword [esi + 8]
sub eax, 0x20
je 0x4797ff
sub eax, 0xd
jne 0x47983a
mov eax, dword [ebp - 4]
cmp byte [eax + 0x70], 0
jne 0x47983a
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 4]
jne 0x47983a
call sub.USER32.dll_GetActiveWindow
test eax, eax
je 0x47983a
call sub.USER32.dll_GetActiveWindow
mov edx, eax
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 4]
call fcn.00478d74
call fcn.004042e4
call fcn.004042e4
jmp 0x479bf0
push 0
call sub.USER32.dll_MessageBeep
jmp case.0x4798e5.512
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
call fcn.00476400
mov eax, dword [ebp - 0x18]
call fcn.00478ef0
cmp byte [ebp - 0x19], 0
je case.0x4798e5.512
mov dl, 1
mov eax, dword [ebp - 0x18]
call fcn.00478d8c
jmp case.0x4798e5.512
mov eax, dword [esi]
call fcn.0044638c
mov edi, eax
test edi, edi
je 0x4798c3
mov eax, edi
mov edx, dword [0x471278]
call fcn.00403bf8
test al, al
je 0x4798c3
cmp dword [esi + 8], 0x2328
jl 0x4798c3
cmp dword [esi + 8], 0x232b
jg 0x4798c3
mov eax, dword [edi + 0x214]
test eax, eax
je case.0x4798e5.512
mov edx, dword [esi + 8]
sub edx, 0x2328
call fcn.0047941c
jmp case.0x4798e5.512
push esi
call sub.USER32.dll_DispatchMessageA
jmp case.0x4798e5.512
mov edx, eax
add edx, 0xfffffe00
cmp edx, 0xa
ja case.0x4798e5.512
mov dl, byte [edx + 0x4798ec]
jmp dword [edx*4 + 0x4798f7]
mov eax, dword [esi + 0x14]
cmp eax, dword [0x650d24]
jne 0x479921
mov eax, dword [esi + 0x18]
cmp eax, dword [0x650d28]
je 0x47993a
mov eax, dword [esi + 0x14]
mov dword [0x650d24], eax
mov eax, dword [esi + 0x18]
mov dword [0x650d28], eax
push ebp
call fcn.0047929c
pop ecx
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.00479174
pop ecx
test al, al
je case.0x4798e5.512
lea ecx, [ebp - 0x11]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.00475488
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.0x4798e5.512
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.00479174
pop ecx
test al, al
je case.0x4798e5.512
lea ecx, [ebp - 0x11]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.00475488
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.0x4798e5.512
cmp eax, 0x204
setne al
or al, byte [ebp + 8]
je case.0x4798e5.512
mov eax, dword [0x64ef58]
mov eax, dword [eax]
call fcn.0046b5d4
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.00479120
pop ecx
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.00479174
pop ecx
test al, al
je case.0x4798e5.512
cmp dword [esi + 4], 0x203
je 0x479a0a
mov al, byte [0x479bfc]
mov byte [ebp - 0x1d], al
jmp 0x479a12
mov al, byte [0x479c00]
mov byte [ebp - 0x1d], al
lea ecx, [ebp - 0x11]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.00475488
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.00407ef4
mov eax, dword [ebp - 0x48]
mov dword [0x650d24], eax
mov eax, dword [ebp - 0x44]
mov dword [0x650d28], eax
jmp case.0x4798e5.512
cmp eax, 0x202
sete al
or al, byte [ebp + 8]
je case.0x4798e5.512
push ebp
lea eax, [esi + 0x14]
xor edx, edx
call fcn.00479120
pop ecx
push ebp
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x18]
call fcn.00479174
pop ecx
test al, al
jne 0x479acc
cmp dword [ebp - 0x18], 0
je 0x479aa5
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 4]
jne case.0x4798e5.512
mov eax, dword [ebp - 4]
cmp byte [eax + 0x71], 0
je case.0x4798e5.512
mov eax, dword [ebp - 4]
test byte [eax + 0xb3], 0x10
jne 0x479ac0
call fcn.004042e4
call fcn.004042e4
jmp 0x479bf0
mov eax, dword [ebp - 4]
and byte [eax + 0xb3], 0xef
jmp case.0x4798e5.512
lea ecx, [ebp - 0x11]
lea edx, [esi + 0x14]
mov eax, dword [ebp - 0x24]
call fcn.00475488
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.0x4798e5.512
push esi
call sub.USER32.dll_DispatchMessageA
mov eax, dword [ebp - 4]
cmp byte [eax + 0x5c], 0
je 0x479b0c
call fcn.004042e4
call fcn.004042e4
jmp 0x479bf0
cmp dword [0x650d24], 0x80000000
jne 0x479b44
call sub.USER32.dll_GetMessagePos
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
lea edx, [ebp - 0x48]
call fcn.00407ef4
mov eax, dword [ebp - 0x48]
mov dword [0x650d24], eax
mov eax, dword [ebp - 0x44]
mov dword [0x650d28], eax
push ebp
call fcn.0047929c
pop ecx
push ebp
call fcn.00479390
pop ecx
push ebp
call fcn.004791e8
pop ecx
test al, al
je 0x479b6c
push 0
push 0
push 0
push 0
push esi
call sub.USER32.dll_PeekMessageA
test eax, eax
jne 0x479591
push ebp
call fcn.004791e8
pop ecx
test al, al
jne 0x479581
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x479b98
mov eax, dword [ebp - 4]
call fcn.00478ab8
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc