Function at 0x40755c
Capabilities:
Log keystrokes via input method manager

Disassembly:
push 8
push 0x60
mov eax, 0x474575
call fcn.00473970
mov edi, ecx
mov eax, dword [edi + 0x2a4]
push eax
mov dword [ebp - 0x54], eax
call dword [sym.imp.IMM32.dll_ImmGetContext]
mov esi, eax
mov dword [ebp - 0x50], esi
and dword [ebp - 4], 0
test esi, esi
je 0x40781b
mov eax, dword [edi + 0x298]
cmp byte [eax + 0x54], 0
jne 0x407800
mov ecx, edi
call fcn.0042d853
test al, al
jne 0x407800
mov ecx, dword [edi + 0x298]
mov byte [ebp - 0x45], al
mov eax, dword [ecx + 0x7c]
shr eax, 0x1f
xor al, 1
je 0x4075c6
call fcn.00419060
jmp 0x4075ca
mov byte [ebp - 0x45], 1
mov eax, dword [ebx + 0xc]
mov byte [edi + 0x4ae], 0
test al, 8
je 0x4077ae
push 8
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x54]
call fcn.00405f5b
mov byte [ebp - 4], 1
cmp dword [ebp - 0x1c], 0
jne 0x407608
mov ecx, edi
call fcn.0042ecb6
lea ecx, [ebp - 0x2c]
call fcn.0040bb09
jmp 0x40780d
cmp byte [ebp - 0x45], 0
je 0x407615
mov ecx, edi
call fcn.004302ba
mov ecx, edi
call fcn.00407056
mov ecx, dword [edi + 0x298]
sub esp, 0xc
mov eax, dword [ecx + 0x70]
mov dword [ecx + 0x7c], eax
lea ecx, [ebp - 0x54]
push esp
call fcn.00405ee7
lea ecx, [ebp - 0x64]
call fcn.004073d5
add esp, 0xc
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.00407a6e
cmp dword [ebp - 0x18], 7
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x4c], ecx
test esi, esi
je 0x407701
lea eax, [eax + ecx*2]
mov edx, 0x3ff
mov dword [ebp - 0x68], eax
movzx eax, word [eax]
add eax, 0x2800
cmp dx, ax
sbb edx, edx
add edx, 2
mov dword [ebp - 0x70], edx
cmp esi, ecx
jb 0x407828
mov eax, esi
sub eax, ecx
mov ecx, edx
cmp eax, edx
mov edx, dword [ebp - 0x6c]
cmovb ecx, eax
push ecx
push dword [ebp - 0x68]
lea ecx, [ebp - 0x44]
call fcn.00406880
pop ecx
pop ecx
mov byte [ebp - 4], 3
mov ecx, edi
mov eax, dword [edi]
cmp dword [ebp - 0x30], 0xf
push 1
push dword [ebp - 0x34]
mov edx, dword [eax + 0x50]
lea eax, [ebp - 0x44]
cmova eax, dword [ebp - 0x44]
push eax
call edx
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x4c]
push dword [ebp - 0x34]
push dword [eax + ecx*4]
mov ecx, edi
call fcn.00406fc4
mov eax, dword [ebp - 0x70]
lea ecx, [ebp - 0x44]
add dword [ebp - 0x4c], eax
mov byte [ebp - 4], 2
call fcn.0040bb37
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x58]
cmp ecx, esi
jb 0x40766b
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x64]
jmp 0x40770e
cmp dword [eax], 0x21
jne 0x407715
add eax, 4
cmp eax, dword [ebp - 0x60]
jne 0x407706
jmp 0x407785
mov eax, dword [ebx + 0xc]
neg esi
and eax, 0x4080
mov dword [ebp - 0x4c], esi
mov ecx, 0x80
cmp eax, ecx
jne 0x40773e
push 0
push 0
push ecx
push dword [ebp - 0x50]
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
add esi, eax
mov dword [ebp - 0x4c], esi
test esi, esi
je 0x407785
mov eax, dword [edi + 0x260]
push dword [ebp - 0x4c]
mov ecx, dword [edi + 0x298]
shl eax, 4
add eax, dword [edi + 0x238]
mov esi, dword [eax]
push esi
call fcn.0041a3ac
sub eax, esi
mov ecx, edi
push eax
call fcn.00406f4b
push 0x21
push dword [ebp - 0x60]
push dword [ebp - 0x64]
call fcn.004565d0
cmp eax, dword [ebp - 0x60]
je 0x407785
mov ecx, edi
call fcn.00407056
call fcn.00406eef
test al, al
je 0x407795
mov byte [edi + 0x4ae], 1
lea ecx, [ebp - 0x64]
call fcn.0040bad8
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.0040bb09
mov esi, dword [ebp - 0x50]
jmp 0x4077eb
mov ecx, 0x800
test ecx, eax
je 0x4077eb
push ecx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x54]
call fcn.00405f5b
mov byte [ebp - 4], 4
mov ecx, eax
cmp dword [eax + 0x14], 7
jbe 0x4077d2
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
push 2
mov ecx, edi
call fcn.004074b3
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.0040bb09
push ecx
push 1
push 1
mov ecx, edi
call fcn.0042ec1b
mov ecx, edi
call fcn.0042ecb6
jmp 0x40780d
push 0
push 4
push 0x15
push esi
call dword [sym.imp.IMM32.dll_ImmNotifyIME]
test esi, esi
je 0x40781b
push esi
push dword [ebp - 0x54]
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
xor eax, eax
mov ecx, dword [ebp - 0x14]
call fcn.0047394e
ret 8
call fcn.0040bb5d
int3