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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6428bd
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x6ae654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
push 5
push ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0xfc], esi
mov dword [ebp - 0xe0], eax
mov dword [ebp - 0xe8], edi
mov dword [ebp - 0xe4], 0
call fcn.0049a7b0
push 0
push ebx
call fcn.0049a710
mov eax, dword [ebp - 0xe0]
push ebx
push dword [esi]
mov eax, dword [eax + 0x2c]
call eax
lea eax, [ebp - 0xf0]
push eax
push ebx
call fcn.00461dc0
add esp, 0x20
test eax, eax
je 0x4e6e84
mov eax, dword [ebp - 0xf0]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp + 0x1c]
test eax, 0x800
je 0x4e6953
push 6
push ebx
call fcn.0049a7b0
push 0
push ebx
call fcn.0049a710
mov eax, dword [ebp - 0xe0]
push ebx
push dword [esi]
mov eax, dword [eax + 0x2c]
call eax
lea eax, [ebp - 0xf0]
push eax
push ebx
call fcn.00461dc0
add esp, 0x20
test eax, eax
je 0x4e6e84
cmp dword [ebp - 0xf0], 0
jne 0x4e67e8
cmp dword [ebp - 0xdc], 0
je 0x4e6e7d
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0
push eax
push ebx
mov dword [ebp - 0x104], 0
call fcn.0049a7d0
cmp dword [ebp - 0xf0], 0
mov ecx, 7
mov eax, 0xe
cmovne eax, ecx
push eax
push ebx
call fcn.0049a7b0
mov eax, dword [ebp - 0xe0]
push ebx
push dword [esi]
mov eax, dword [eax + 0x2c]
call eax
lea eax, [ebp - 0x108]
push eax
push ebx
call fcn.00492270
add esp, 0x20
push edi
call sub.IMM32.dll_ImmGetContext
push 0
push 0
mov edi, eax
push 0x800
push edi
call sub.IMM32.dll_ImmGetCompositionStringW
mov esi, eax
xor ecx, ecx
shr eax, 1
mov edx, 2
mov dword [ebp - 0xe4], eax
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005a59b7
add esp, 4
mov dword [ebp - 0xf4], eax
push esi
push eax
push 0x800
push edi
call sub.IMM32.dll_ImmGetCompositionStringW
push edi
mov edi, dword [ebp - 0xe8]
push edi
call sub.IMM32.dll_ImmReleaseContext
lea ecx, [ebp - 0x7c]
call fcn.00522a20
xor esi, esi
mov dword [ebp - 4], 0
cmp dword [ebp - 0xe4], esi
jbe 0x4e68ee
mov edi, dword [ebp - 0xf4]
mov ebx, dword [ebp - 0xe4]
movzx eax, word [edi + esi*2]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x10c]
push 1
push eax
call fcn.00522ba0
inc esi
cmp esi, ebx
jl 0x4e68c2
mov ebx, dword [ebp - 0x110]
mov edi, dword [ebp - 0xe8]
push dword [ebp - 0xf4]
call fcn.005a5725
push 1
push ebx
call fcn.0049a7b0
push 0
push ebx
call fcn.0049a710
lea eax, [ebp - 0x108]
push eax
push ebx
call fcn.0049a7d0
lea eax, [ebp - 0x7c]
push eax
push ebx
call fcn.0049a830
mov esi, dword [ebp - 0xfc]
mov eax, dword [ebp - 0xe0]
push ebx
push dword [esi]
mov eax, dword [eax + 0x2c]
call eax
add esp, 0x2c
mov dword [ebp - 0xe4], 1
lea ecx, [ebp - 0x7c]
mov dword [ebp - 4], 0xffffffff
call fcn.00522a50
mov eax, dword [ebp + 0x1c]
cmp dword [ebp - 0xdc], 0
jne 0x4e6af0
push 5
push ebx
mov dword [ebp - 0xdc], 0
mov esi, 1
call fcn.0049a7b0
push 0
push ebx
call fcn.0049a710
mov eax, dword [ebp - 0xfc]
push ebx
push dword [eax]
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 0x2c]
call eax
lea eax, [ebp - 0xdc]
push eax
push ebx
call fcn.00461dc0
add esp, 0x20
test eax, eax
je 0x4e6ae5
xor eax, eax
cmp dword [ebp - 0xdc], eax
push 6
push ebx
cmove esi, eax
call fcn.0049a7b0
push 0
push ebx
call fcn.0049a710
mov eax, dword [ebp - 0xfc]
push ebx
push dword [eax]
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 0x2c]
call eax
lea eax, [ebp - 0xdc]
push eax
push ebx
call fcn.00461dc0
add esp, 0x20
cmp dword [ebp - 0xdc], 0
je 0x4e6a2e
push 3
push ebx
call fcn.0049a7b0
push 0
push ebx
call fcn.0049a710
add esp, 0x10
test esi, esi
jne 0x4e6a15
push 4
push ebx
call fcn.0049a7b0
add esp, 8
mov eax, dword [ebp - 0xfc]
push ebx
push dword [eax]
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 0x2c]
call eax
add esp, 8
jmp 0x4e6a36
test esi, esi
je 0x4e6ae5
push edi
call sub.IMM32.dll_ImmGetContext
mov ebx, eax
test ebx, ebx
je 0x4e6ae5
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push ebx
call sub.IMM32.dll_ImmSetCompositionWindow
push 0x5c
lea eax, [ebp - 0xd8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push edi
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x5a
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
push esi
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0xc8], 0x190
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, qword [0x664748]
divsd xmm0, qword [0x664480]
cvttsd2si eax, xmm0
mov dword [ebp - 0xd8], eax
call dword [sym.imp.GDI32.dll_GetTextCharset]
push esi
push edi
mov byte [ebp - 0xc1], al
mov dword [ebp - 0xc0], 0x32010203
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [ebp - 0xd8]
push eax
push ebx
call sub.IMM32.dll_ImmSetCompositionFontW
push ebx
push edi
call sub.IMM32.dll_ImmReleaseContext
mov eax, dword [ebp - 0xe4]
jmp 0x4e6e86
and eax, 0x18
cmp al, 0x18
jne 0x4e6e33
push edi
call sub.IMM32.dll_ImmGetContext
push 0
push 0
push 8
push eax
mov dword [ebp - 0x100], eax
call sub.IMM32.dll_ImmGetCompositionStringW
mov esi, eax
xor ecx, ecx
mov edi, esi
mov edx, 2
shr edi, 1
mov dword [ebp - 0xdc], edi
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005a59b7
add esp, 4
mov dword [ebp - 0x118], eax
push esi
mov esi, dword [ebp - 0x100]
push eax
push 8
push esi
call sub.IMM32.dll_ImmGetCompositionStringW
push 0
push 0
push 0x10
push esi
call sub.IMM32.dll_ImmGetCompositionStringW
mov dword [ebp - 0x114], eax
lea ecx, [eax + 1]
push ecx
call fcn.005a59b7
add esp, 4
mov dword [ebp - 0x10c], eax
push dword [ebp - 0x114]
push eax
push 0x10
push esi
call sub.IMM32.dll_ImmGetCompositionStringW
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0xe4], 0
test al, 0x20
je 0x4e6be9
push 0
push 0
push 0x20
push esi
call sub.IMM32.dll_ImmGetCompositionStringW
mov esi, eax
xor ecx, ecx
shr eax, 2
mov edx, 4
mov dword [ebp - 0xf4], eax
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005a59b7
add esp, 4
mov dword [ebp - 0xe4], eax
push esi
mov esi, dword [ebp - 0x100]
push eax
push 0x20
push esi
call sub.IMM32.dll_ImmGetCompositionStringW
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x100], edi
test al, al
jns 0x4e6c0a
push 0
push 0
push 0x80
push esi
call sub.IMM32.dll_ImmGetCompositionStringW
mov edi, eax
mov dword [ebp - 0x100], edi
push esi
push dword [ebp - 0xe8]
call sub.IMM32.dll_ImmReleaseContext
lea ecx, [ebp - 0x58]
call fcn.00522a20
mov eax, dword [ebp - 0xdc]
xor esi, esi
mov dword [ebp - 4], 1
test eax, eax
je 0x4e6c72
mov edi, dword [ebp - 0x118]
mov ebx, eax
nop dword [eax]
movzx eax, word [edi + esi*2]
lea ecx, [ebp - 0x58]
mov dword [ebp - 0xf8], eax
lea eax, [ebp - 0xf8]
push 1
push eax
call fcn.00522ba0
inc esi
cmp esi, ebx
jl 0x4e6c40
mov ebx, dword [ebp - 0x110]
mov edi, dword [ebp - 0x100]
mov eax, dword [ebp - 0xdc]
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x104], 0
call fcn.00522a20
mov eax, dword [ebp - 0xf4]
mov byte [ebp - 4], 2
test eax, eax
je 0x4e6d88
cmp dword [ebp - 0x114], 0
jle 0x4e6d88
cmp eax, 1
jbe 0x4e6db3
mov ecx, dword [ebp - 0xe4]
mov esi, 1
nop dword [eax]
mov edx, dword [ecx + 4]
lea eax, [ecx + 4]
mov dword [ebp - 0xf8], eax
test edx, edx
je 0x4e6db3
mov ecx, dword [ecx]
cmp ecx, dword [ebp - 0xdc]
jae 0x4e6db3
mov eax, dword [ebp - 0x10c]
mov al, byte [ecx + eax]
mov byte [ebp - 0xe9], al
mov eax, edx
sub eax, ecx
mov word [ebp - 0xe8], ax
mov eax, 3
mov word [ebp - 0xe6], ax
mov al, byte [ebp - 0xe9]
cmp al, 2
jne 0x4e6d20
mov eax, 1
mov word [ebp - 0xe6], ax
jmp 0x4e6d62
cmp al, 1
jne 0x4e6d32
mov eax, 2
mov word [ebp - 0xe6], ax
jmp 0x4e6d62
cmp al, 3
jne 0x4e6d46
sub edx, ecx
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x104], edx
jmp 0x4e6d62
test al, al
jne 0x4e6d62
cmp ecx, edi
jg 0x4e6d62
cmp edi, edx
jg 0x4e6d62
mov dword [ebp - 0x108], edi
mov dword [ebp - 0x104], 0
push 2
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x34]
call fcn.00522ba0
mov ecx, dword [ebp - 0xf8]
inc esi
cmp esi, dword [ebp - 0xf4]
jl 0x4e6cc0
jmp 0x4e6db3
lea ecx, [ebp - 0x58]
call fcn.0046ee30
mov word [ebp - 0xf8], ax
lea ecx, [ebp - 0x34]
mov eax, 2
push eax
mov word [ebp - 0xf6], ax
lea eax, [ebp - 0xf8]
push eax
call fcn.00522ba0
push dword [ebp - 0x118]
call fcn.005a5725
push dword [ebp - 0x10c]
call fcn.005a5725
push dword [ebp - 0xe4]
call fcn.005a5725
push 2
push ebx
call fcn.0049a7b0
push 0
push ebx
call fcn.0049a710
lea eax, [ebp - 0x108]
push eax
push ebx
call fcn.0049a7d0
lea eax, [ebp - 0x58]
push eax
push ebx
call fcn.0049a830
lea eax, [ebp - 0x34]
push eax
push ebx
call fcn.0049a6f0
mov eax, dword [ebp - 0xfc]
push ebx
push dword [eax]
mov eax, dword [ebp - 0xe0]
mov eax, dword [eax + 0x2c]
call eax
add esp, 0x3c
lea ecx, [ebp - 0x34]
call fcn.00522a50
lea ecx, [ebp - 0x58]
call fcn.00522a50
mov eax, 1
jmp 0x4e6e86
push 6
push ebx
call fcn.0049a7b0
push 0
push ebx
call fcn.0049a710
mov edi, dword [ebp - 0xe0]
push ebx
push dword [esi]
mov eax, dword [edi + 0x2c]
call eax
lea eax, [ebp - 0xf0]
push eax
push ebx
call fcn.00461dc0
add esp, 0x20
cmp dword [ebp - 0xf0], 0
je 0x4e6e7d
push 4
push ebx
call fcn.0049a7b0
mov ecx, dword [edi + 0x2c]
push ebx
push dword [esi]
call ecx
add esp, 0x10
mov eax, 1
jmp 0x4e6e86
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005a4e1e
mov esp, ebp
pop ebp
ret