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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xdcd285
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
mov eax, dword [0xe3c018]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x5c], esi
mov eax, dword [ebx + 0xc]
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x6c], eax
call fcn.0059ed00
mov edi, eax
mov dword [ebp - 0x68], edi
test edi, edi
je 0x54b9d7
push dword [ebp - 0x70]
call dword [sym.imp.IMM32.dll_ImmGetContext]
mov dword [ebp - 0x60], eax
test eax, eax
je 0x54b9d7
cmp dword [esi], 0
jge 0x54b6d7
mov ecx, dword [edi]
lea eax, [ebp - 0x20]
push eax
mov edx, dword [ecx + 8]
mov ecx, edi
call edx
mov eax, dword [eax]
mov dword [esi], eax
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x6c]
test ecx, 0x800
je 0x54b7d8
push 0x800
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0054ba00
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], 0
cmp byte [esi + 8], 0
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 0xffffffff
je 0x54b71b
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0xc]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp - 0x5c]
call dword [eax + 0x18]
mov ecx, dword [ebp - 0x5c]
call fcn.004b03d0
xor ecx, ecx
test eax, eax
cmovg ecx, eax
mov eax, dword [esi]
add eax, ecx
cmp dword [ebp - 0x20], 0
mov dword [esi + 4], eax
jge 0x54b747
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
lea ecx, [ebp - 0x20]
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x6c]
add ecx, 0xfffffff8
cmp ecx, 0xe3ce50
je 0x54b776
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x54b776
push ecx
call fcn.00d491c8
add esp, 4
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov byte [esi + 8], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x24]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0x10]
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x24]
mov dword [ebp - 0x1c], 0
call fcn.00d9e0ad
jmp 0x54b940
test cl, 8
je 0x54b943
xor edi, edi
xor esi, esi
test cl, 0x10
je 0x54b859
push esi
push esi
push 0x10
push eax
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
mov dword [ebp - 0x2c], eax
test eax, eax
jle 0x54b859
push eax
call fcn.00d9e0c8
add esp, 4
mov esi, eax
mov dword [ebp - 0x64], esi
push dword [ebp - 0x2c]
push esi
push 0x10
push dword [ebp - 0x60]
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
mov ecx, dword [ebp - 0x2c]
nop dword [eax]
mov al, byte [esi + edi]
cmp al, 1
je 0x54b830
cmp al, 3
je 0x54b830
inc edi
cmp edi, ecx
jl 0x54b820
mov edx, dword [ebp - 0x64]
mov esi, edi
cmp edi, ecx
jge 0x54b850
nop dword [eax]
mov al, byte [edx + esi]
cmp al, 1
je 0x54b84b
cmp al, 3
jne 0x54b850
inc esi
cmp esi, ecx
jl 0x54b840
push edx
call fcn.00d9e0ad
add esp, 4
mov ecx, dword [ebp - 0x5c]
cmp edi, esi
mov edx, edi
cmovl edx, esi
push 8
mov ecx, dword [ecx]
push dword [ebp - 0x60]
lea esi, [ecx + edi]
lea eax, [edx + ecx]
cmp esi, eax
lea eax, [ebp - 0x1c]
push eax
cmovl edi, edx
add edi, ecx
call fcn.0054ba00
mov dword [ebp - 0x64], eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x30], esi
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp - 0x68]
cmp byte [esi + 8], 0
je 0x54b8a4
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0xc]
mov eax, dword [edi]
mov ecx, edi
push dword [ebp - 0x64]
call dword [eax + 0x18]
mov ecx, dword [ebp - 0x64]
call fcn.004b03d0
xor ecx, ecx
test eax, eax
cmovg ecx, eax
mov eax, dword [esi]
add eax, ecx
cmp dword [ebp - 0x30], 0
mov dword [esi + 4], eax
jge 0x54b8d0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov eax, dword [edi]
lea ecx, [ebp - 0x30]
push ecx
mov ecx, edi
call dword [eax + 0xc]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff8
cmp ecx, 0xe3ce50
je 0x54b8ff
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
cmp eax, 0xffffffff
jne 0x54b8ff
push ecx
call fcn.00d491c8
add esp, 4
mov eax, dword [edi]
mov ecx, dword [ebp - 0x5c]
mov esi, dword [eax + 0x10]
mov eax, dword [ebp - 0x6c]
push eax
push dword [ebp - 0x60]
lea eax, [ebp - 0x24]
push eax
call fcn.0054bad0
push eax
mov ecx, edi
mov dword [ebp - 4], 3
call esi
mov dword [ebp - 4], 0xffffffff
push dword [ebp - 0x24]
mov dword [ebp - 0x1c], 0
call fcn.00d9e0ad
mov eax, dword [ebp - 0x5c]
mov byte [eax + 8], 1
add esp, 4
push 0
push 0xe3d874
push 0xe3d754
push 0
push edi
call fcn.00d9a034
add esp, 0x14
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x54b9cb
mov eax, dword [ebp - 0x68]
mov ecx, eax
mov edi, dword [ebp - 0x74]
mov esi, dword [eax]
mov edi, dword [edi + 4]
mov edx, dword [esi + 0x1c]
call edx
mov ecx, dword [ebp - 0x68]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [esi + 0x20]
movups xmm0, xmmword [ebp - 0x38]
sub esp, 0x10
lea ecx, [ebp - 0x28]
mov eax, esp
mov edx, edi
push dword [ebp - 0x1c]
movups xmmword [eax], xmm0
call fcn.005a8080
mov eax, dword [ebp - 0x28]
add esp, 0x14
mov dword [ebp - 0x50], eax
xorps xmm0, xmm0
mov eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x58]
push eax
push dword [ebp - 0x60]
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0x40
movups xmmword [ebp - 0x48], xmm0
call dword [sym.imp.IMM32.dll_ImmSetCandidateWindow]
push dword [ebp - 0x60]
push dword [ebp - 0x70]
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00d491ba
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc