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

Disassembly:
mov eax, 0x696926
call fcn.006783e4
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 0x5a616a
mov ecx, dword [edi + 0x2ac]
add ecx, 0x10
call fcn.005b43ec
test al, al
jne 0x5a6151
mov ecx, edi
call fcn.005daa52
test al, al
jne 0x5a6151
mov ecx, dword [edi + 0x2ac]
mov byte [ebp - 0xd], al
lea ecx, [ecx + 0x10]
call fcn.005b4d45
test al, al
je 0x5a5ee4
mov ecx, dword [edi + 0x2ac]
call fcn.005c3732
jmp 0x5a5ee8
mov byte [ebp - 0xd], 1
mov eax, dword [ebp + 0xc]
mov ecx, 0x800
mov byte [edi + 0x4da], 0
test ecx, eax
je 0x5a5f32
push ecx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x24]
call fcn.005a593b
cmp dword [eax + 0x14], 8
mov ecx, eax
mov byte [ebp - 4], 1
jb 0x5a5f16
mov ecx, dword [eax]
push 2
push dword [eax + 0x10]
push ecx
mov ecx, edi
call fcn.005a37cc
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0
call fcn.005a97da
mov eax, dword [ebp + 0xc]
test al, 8
je 0x5a613b
push 8
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x24]
call fcn.005a593b
cmp dword [ebp - 0x48], 0
mov byte [ebp - 4], 2
jne 0x5a5f66
mov ecx, edi
call fcn.005dbace
lea ecx, [ebp - 0x58]
call fcn.005a97da
jmp 0x5a615d
cmp byte [ebp - 0xd], 0
je 0x5a5f73
mov ecx, edi
call fcn.005d1712
mov ecx, edi
call fcn.005a83c8
mov ecx, dword [edi + 0x2ac]
lea ecx, [ecx + 0x10]
call fcn.005b4d59
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.005a298b
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.005a701b
add esp, 0x10
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.005a416f
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 0x5a6095
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.005a99fe
push dword [ebp - 0x1c]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x70]
push eax
call fcn.005a88d0
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.005a4a80
add dword [ebp - 0x18], esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.005a97b4
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x14]
jb 0x5a6008
mov ecx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x40]
jmp 0x5a60a2
cmp dword [eax], 0x21
jne 0x5a60a9
add eax, 4
cmp eax, dword [ebp - 0x3c]
jne 0x5a609a
jmp 0x5a6114
mov eax, dword [ebp + 0xc]
neg ecx
and eax, 0x4080
mov dword [ebp - 0x14], ecx
mov edx, 0x80
cmp eax, edx
jne 0x5a60d2
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 0x5a6114
mov ecx, edi
call fcn.005d20c0
push dword [ebp - 0x14]
mov ecx, dword [edi + 0x2ac]
mov esi, eax
push esi
call fcn.005c16e2
sub eax, esi
mov ecx, edi
push eax
call fcn.005a7627
push 0x21
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
call fcn.005a2e78
add esp, 0xc
cmp eax, dword [ebp - 0x3c]
je 0x5a6114
mov ecx, edi
call fcn.005a83c8
call fcn.005a6fd3
test al, al
je 0x5a6124
mov byte [edi + 0x4da], 1
lea ecx, [ebp - 0x40]
call fcn.005a978e
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.005a97da
mov esi, dword [ebp - 0x20]
push 1
push 1
push 1
mov ecx, edi
call fcn.005d317e
mov ecx, edi
call fcn.005dbace
jmp 0x5a615d
push 0
push 4
push 0x15
push esi
call sub.IMM32.dll_ImmNotifyIME
test esi, esi
je 0x5a616a
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