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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4baaa1
mov eax, dword fs:[0]
push eax
sub esp, 0x778
mov eax, dword [0x4fc504]
xor eax, esp
mov dword [esp + 0x770], eax
push ebx
push esi
push edi
mov eax, dword [0x4fc504]
xor eax, esp
push eax
lea eax, [esp + 0x788]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0x2ac]
call dword [sym.imp.IMM32.dll_ImmGetContext]
mov dword [esp + 0x18], eax
test eax, eax
je 0x458be5
mov ecx, dword [esi + 0x2a0]
xor edx, edx
cmp dword [ecx + 0x64], edx
jl 0x458794
call fcn.004124ea
jmp 0x4587ab
mov eax, dword [esi]
mov ecx, esi
mov bl, byte [esi + 4]
push edx
push edx
push 0x4d3406
mov byte [esi + 4], dl
call dword [eax + 0x4c]
mov byte [esi + 4], bl
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov byte [esi + 0xd5e], cl
test bl, 8
je 0x458a51
xor eax, eax
push 0x18e
mov word [esp + 0x5f0], ax
lea eax, [esp + 0x5f2]
push ecx
push eax
call fcn.004936a0
mov edi, dword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
lea eax, [esp + 0x5f8]
add esp, 0xc
push 0xc8
push eax
push 8
push dword [esp + 0x24]
call edi
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x20], eax
je 0x458bce
cmp eax, 0xc8
jae 0x458bce
mov ecx, dword [esi + 0x2a0]
push 0xc7
push 0
mov eax, dword [ecx + 0x58]
mov dword [ecx + 0x64], eax
lea eax, [esp + 0x39d]
push eax
mov byte [esp + 0x3a0], 0
call fcn.004936a0
and dword [esp + 0x28], 0
add esp, 0xc
test bl, 0x10
je 0x45885e
push 0xc8
lea eax, [esp + 0x398]
push eax
push 0x10
push dword [esp + 0x24]
call edi
test bl, bl
jns 0x458877
xor ebx, ebx
push ebx
push ebx
push 0x80
push dword [esp + 0x24]
call edi
mov dword [esp + 0x1c], eax
jmp 0x458879
xor ebx, ebx
push 0x320
lea eax, [esp + 0x64]
mov dword [esp + 0x388], ebx
push ebx
push eax
mov dword [esp + 0x68], ebx
call fcn.004936a0
mov al, byte [esi + 0xee0]
mov edi, ebx
mov byte [esi + 0xee0], bl
add esp, 0xc
mov ebx, dword [esp + 0x20]
mov byte [esp + 0x17], al
mov dword [esp + 0x28], edi
test ebx, ebx
je 0x458a19
mov edx, 0x3ff
lea ecx, [esp + 0x5ec]
lea ecx, [ecx + edi*2]
movzx eax, word [ecx]
add eax, 0x2800
cmp dx, ax
sbb eax, eax
add eax, 2
push eax
push ecx
lea ecx, [esp + 0x4c]
mov dword [esp + 0x2c], eax
call fcn.004310d4
xor edx, edx
mov ecx, esi
mov dword [esp + 0x790], edx
mov eax, dword [0x4e98e4]
mov dword [esp + 0x38c], eax
mov al, byte [0x4e98e8]
mov byte [esp + 0x390], al
call fcn.00422dd7
test al, al
mov eax, dword [esp + 0x44]
je 0x458954
cmp dword [esp + 0x58], 8
mov dword [esp + 0x20], eax
jae 0x458926
lea eax, [esp + 0x44]
mov edx, dword [esp + 0x54]
mov ecx, eax
call fcn.00488fc0
cmp dword [esp + 0x58], 8
mov edi, eax
mov ecx, dword [esp + 0x20]
jae 0x458942
lea ecx, [esp + 0x44]
lea eax, [esp + 0x38c]
push edi
push eax
call fcn.00489008
pop ecx
pop ecx
jmp 0x45897f
cmp dword [esp + 0x58], 8
jae 0x45895f
lea eax, [esp + 0x44]
push edx
push edx
push 4
lea ecx, [esp + 0x398]
push ecx
push dword [esp + 0x64]
push eax
push edx
call fcn.00457bc7
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
cmp edi, 5
jae 0x458a4c
mov eax, dword [esi]
lea ecx, [esp + 0x38c]
push 0
push edi
push ecx
mov ecx, esi
mov byte [esp + edi + 0x398], 0
call dword [eax + 0x4c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x384]
add ecx, edi
push 0x23
mov dword [esp + eax*4 + 0x64], ecx
movzx eax, byte [esp + eax + 0x398]
mov dword [esp + 0x388], ecx
pop ecx
sub eax, 0
je 0x4589db
dec eax
je 0x4589d3
dec eax
je 0x4589d7
dec eax
jne 0x4589de
push 0x21
jmp 0x4589dd
push 0x22
jmp 0x4589dd
push 0x20
pop ecx
push edi
push ecx
mov ecx, esi
call fcn.0045828a
mov edi, dword [esp + 0x28]
lea ecx, [esp + 0x44]
add edi, dword [esp + 0x24]
or dword [esp + 0x790], 0xffffffff
push 0
push 1
mov dword [esp + 0x30], edi
call fcn.0040f05a
mov edx, 0x3ff
cmp edi, ebx
jb 0x4588be
mov al, byte [esp + 0x17]
mov byte [esi + 0xee0], al
mov ecx, esi
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + eax*4 + 0x5c]
sub eax, dword [esp + ebx*4 + 0x5c]
push eax
call fcn.00458211
call fcn.004581f7
test al, al
je 0x458bc7
mov byte [esi + 0xd5e], 1
jmp 0x458bc7
call fcn.004931bc
mov edi, 0x800
test edi, ebx
je 0x458bc7
xor eax, eax
push 0x18e
mov word [esp + 0x460], ax
lea eax, [esp + 0x462]
push ecx
push eax
call fcn.004936a0
add esp, 0xc
lea eax, [esp + 0x45c]
push 0xc8
push eax
push edi
push dword [esp + 0x24]
call dword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
cdq
sub eax, edx
push 0
sar eax, 1
pop ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ebx
je 0x458bc7
mov edx, 0x3ff
lea ecx, [esp + 0x45c]
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx]
add eax, 0x2800
cmp dx, ax
sbb eax, eax
add eax, 2
push eax
push ecx
lea ecx, [esp + 0x34]
mov dword [esp + 0x2c], eax
call fcn.004310d4
mov dword [esp + 0x790], 1
mov ecx, esi
mov eax, dword [0x4e98e4]
mov dword [esp + 0x384], eax
mov al, byte [0x4e98e8]
mov byte [esp + 0x388], al
call fcn.00422dd7
test al, al
je 0x458b47
cmp dword [esp + 0x40], 8
mov ebx, dword [esp + 0x2c]
mov ecx, ebx
jae 0x458b19
lea ecx, [esp + 0x2c]
mov edx, dword [esp + 0x3c]
call fcn.00488fc0
cmp dword [esp + 0x40], 8
mov edi, eax
jae 0x458b2f
lea ebx, [esp + 0x2c]
lea eax, [esp + 0x384]
mov ecx, ebx
push edi
push eax
call fcn.00489008
mov ebx, dword [esp + 0x24]
pop ecx
pop ecx
jmp 0x458b78
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x458b56
lea eax, [esp + 0x2c]
xor edx, edx
lea ecx, [esp + 0x384]
push edx
push edx
push 4
push ecx
push dword [esp + 0x4c]
push eax
push edx
call fcn.00457bc7
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
cmp edi, 5
jae 0x458a4c
mov eax, dword [esi]
lea ecx, [esp + 0x384]
push 0
push edi
push ecx
mov ecx, esi
mov byte [esp + edi + 0x390], 0
call dword [eax + 0x4c]
add ebx, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
or dword [esp + 0x790], 0xffffffff
push 0
push 1
mov dword [esp + 0x24], ebx
call fcn.0040f05a
mov edx, 0x3ff
cmp ebx, dword [esp + 0x20]
jb 0x458ab1
mov ecx, esi
call fcn.0045832e
mov ecx, esi
call fcn.00419b81
push dword [esp + 0x18]
push dword [esi + 0x2ac]
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
xor eax, eax
mov ecx, dword [esp + 0x788]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x770]
xor ecx, esp
call fcn.004906a0
mov esp, ebp
pop ebp
ret 8