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

Disassembly:
mov eax, 0x556ee6
call fcn.00538504
sub esp, 0x64
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x2b8]
push eax
mov dword [ebp - 0x24], eax
call sub.IMM32.dll_ImmGetContext
mov esi, eax
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
test esi, esi
je 0x4c3baa
mov ecx, dword [edi + 0x2ac]
add ecx, 0x10
call fcn.004d1e60
test al, al
jne 0x4c3b91
mov ecx, edi
call fcn.004f84ce
test al, al
jne 0x4c3b91
mov ecx, dword [edi + 0x2ac]
mov byte [ebp - 0xd], al
lea ecx, [ecx + 0x10]
call fcn.004d27b9
test al, al
je 0x4c3924
mov ecx, dword [edi + 0x2ac]
call fcn.004e11a6
jmp 0x4c3928
mov byte [ebp - 0xd], 1
mov eax, dword [ebp + 0xc]
mov ecx, 0x800
mov byte [edi + 0x4da], 0
test ecx, eax
je 0x4c3972
push ecx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x24]
call fcn.004c337b
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 1
jb 0x4c3956
mov ecx, dword [eax]
push 2
push dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.004c120c
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.004c7248
mov eax, dword [ebp + 0xc]
test al, 8
je 0x4c3b7b
push 8
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x24]
call fcn.004c337b
cmp dword [ebp - 0x48], 0
mov byte [ebp - 4], 2
jne 0x4c39a6
mov ecx, edi
call fcn.004f954a
lea ecx, [ebp - 0x58]
call fcn.004c7248
jmp 0x4c3b9d
cmp byte [ebp - 0xd], 0
je 0x4c39b3
mov ecx, edi
call fcn.004ef18b
mov ecx, edi
call fcn.004c5e36
mov ecx, dword [edi + 0x2ac]
lea ecx, [ecx + 0x10]
call fcn.004d27cd
sub esp, 0xc
mov esi, esp
mov dword [ebp - 0x1c], esi
push 0
push 0
push 0x10
push dword [ebp - 0x20]
call sub.IMM32.dll_ImmGetCompositionStringW
xor ecx, ecx
mov byte [ebp - 0xd], cl
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
lea ecx, [ebp - 0xd]
push ecx
push eax
mov ecx, esi
call fcn.004c03cb
mov eax, dword [esi + 4]
sub eax, dword [esi]
push eax
push dword [esi]
mov esi, dword [ebp - 0x20]
push 0x10
push esi
call sub.IMM32.dll_ImmGetCompositionStringW
lea eax, [ebp - 0x40]
push eax
call fcn.004c4a5b
add esp, 0x10
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004c1baf
cmp dword [ebp - 0x44], 8
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
xor edx, edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], edx
test ecx, ecx
je 0x4c3ad5
movzx eax, word [eax + edx*2]
mov ecx, 0x3ff
add eax, 0x2800
cmp cx, ax
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x2c]
sbb esi, esi
add esi, 2
push esi
push edx
push eax
call fcn.004c746c
push dword [ebp - 0x1c]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x70]
push eax
call fcn.004c633e
add esp, 0x10
mov eax, dword [edi]
mov ecx, edi
cmp dword [ebp - 0x5c], 0x10
push 1
push dword [ebp - 0x60]
mov edx, dword [eax + 0x54]
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push eax
mov byte [ebp - 4], 4
call edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x18]
push dword [ebp - 0x60]
push dword [eax + ecx*4]
mov ecx, edi
call fcn.004c24c0
add dword [ebp - 0x18], esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.004c7222
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x14]
jb 0x4c3a48
mov ecx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x40]
jmp 0x4c3ae2
cmp dword [eax], 0x21
jne 0x4c3ae9
add eax, 4
cmp eax, dword [ebp - 0x3c]
jne 0x4c3ada
jmp 0x4c3b54
mov eax, dword [ebp + 0xc]
neg ecx
and eax, 0x4080
mov dword [ebp - 0x14], ecx
mov edx, 0x80
cmp eax, edx
jne 0x4c3b12
push 0
push 0
push edx
push esi
call sub.IMM32.dll_ImmGetCompositionStringW
mov ecx, dword [ebp - 0x14]
add ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
je 0x4c3b54
mov ecx, edi
call fcn.004efb39
push dword [ebp - 0x14]
mov ecx, dword [edi + 0x2ac]
mov esi, eax
push esi
call fcn.004df156
sub eax, esi
mov ecx, edi
push eax
call fcn.004c5067
push 0x21
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.004c08b8
add esp, 0xc
cmp eax, dword [ebp - 0x3c]
je 0x4c3b54
mov ecx, edi
call fcn.004c5e36
call fcn.004c4a13
test al, al
je 0x4c3b64
mov byte [edi + 0x4da], 1
lea ecx, [ebp - 0x40]
call fcn.004c71fc
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.004c7248
mov esi, dword [ebp - 0x20]
push 1
push 1
push 1
mov ecx, edi
call fcn.004f0bf7
mov ecx, edi
call fcn.004f954a
jmp 0x4c3b9d
push 0
push 4
push 0x15
push esi
call sub.IMM32.dll_ImmNotifyIME
test esi, esi
je 0x4c3baa
push esi
push dword [ebp - 0x24]
call sub.IMM32.dll_ImmReleaseContext
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
mov dword fs:[0], ecx
pop esi
leave
ret 8