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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x68
mov eax, dword [0x1026500c]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
mov esi, edx
mov edx, ecx
mov ecx, dword [0x10265568]
mov dword [esp + 0xc], edx
push edi
test ecx, ecx
je case.0x1003afbd.527
lea edi, [ecx + 8]
mov ecx, dword [ecx + 0x78]
mov dword [esp + 0x5c], ecx
cmp esi, 0x10f
ja 0x1003afa5
je 0x1003af07
lea eax, [esi - 7]
cmp eax, 0xfe
ja case.0x1003afbd.527
movzx eax, byte [eax + 0x1003b3d4]
jmp dword [eax*4 + 0x1003b3b8]
cmp esi, 0x100
je 0x1003a8f9
mov byte [esp + 0x10], 0
cmp esi, 0x104
jne 0x1003a8fe
mov byte [esp + 0x10], 1
cmp dword [ebp + 8], 0x100
jae 0x1003b22a
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3799], 0
mov byte [esp + 0x58], al
je 0x1003a948
test al, al
je 0x1003a935
movss xmm3, dword [0x1025cd5c]
jmp 0x1003a938
xorps xmm3, xmm3
push dword [esp + 0x58]
mov ecx, edi
push 0x1000
call fcn.100041b0
push 0x10
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3799], 0
mov byte [esp + 0x58], al
je 0x1003a97f
test al, al
je 0x1003a96c
movss xmm3, dword [0x1025cd5c]
jmp 0x1003a96f
xorps xmm3, xmm3
push dword [esp + 0x58]
mov ecx, edi
push 0x2000
call fcn.100041b0
push 0x12
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3799], 0
mov byte [esp + 0x58], al
je 0x1003a9b6
test al, al
je 0x1003a9a3
movss xmm3, dword [0x1025cd5c]
jmp 0x1003a9a6
xorps xmm3, xmm3
push dword [esp + 0x58]
mov ecx, edi
push 0x4000
call fcn.100041b0
push 0x5d
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3799], 0
mov byte [esp + 0x58], al
je 0x1003a9ed
test al, al
je 0x1003a9da
movss xmm3, dword [0x1025cd5c]
jmp 0x1003a9dd
xorps xmm3, xmm3
push dword [esp + 0x58]
mov ecx, edi
push 0x8000
call fcn.100041b0
mov esi, dword [ebp + 8]
cmp esi, 0xd
jne 0x1003aa08
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne esi, eax
mov ecx, esi
call fcn.1003a340
mov dword [esp + 0x58], eax
test eax, eax
je 0x1003aa69
mov ecx, dword [0x10265568]
add ecx, 8
mov dword [esp + 0x5c], ecx
cmp byte [ecx + 0x3799], 0
je 0x1003aa53
cmp byte [esp + 0x10], 0
je 0x1003aa3e
movss xmm3, dword [0x1025cd5c]
jmp 0x1003aa41
xorps xmm3, xmm3
push dword [esp + 0x10]
push eax
call fcn.100041b0
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
cmp esi, 0x1ff
ja 0x1003aa69
mov dword [ecx + esi*4 + 0xbc], eax
mov dword [ecx + eax*4 + 0xbc], esi
cmp esi, 0x10
jne 0x1003ab57
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa0
call esi
mov cl, byte [esp + 0x10]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1003aadb
mov eax, dword [0x10265568]
add eax, 8
mov dword [esp + 0x58], eax
cmp byte [eax + 0x3799], 0
je 0x1003aac7
test cl, cl
je 0x1003aaaf
movss xmm3, dword [0x1025cd5c]
jmp 0x1003aab2
xorps xmm3, xmm3
mov ecx, dword [esp + 0x10]
push ecx
push 0x210
mov ecx, eax
call fcn.100041b0
mov eax, dword [esp + 0x58]
mov dword [eax + 0x33c], 0x210
mov dword [eax + 0x8fc], 0xa0
push 0xa1
call esi
mov cl, byte [esp + 0x10]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1003b22a
mov esi, dword [0x10265568]
cmp byte [esi + 0x37a1], 0
je 0x1003ab27
test cl, cl
je 0x1003ab10
movss xmm0, dword [0x1025cd5c]
jmp 0x1003ab13
xorps xmm0, xmm0
push dword [esp + 0x10]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x214
call fcn.100041b0
mov dword [esi + 0x348], 0x214
xor eax, eax
mov dword [esi + 0x914], 0xa1
cmp byte [edi + 0x92], al
setne al
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10077e95
mov esp, ebp
pop ebp
ret
cmp esi, 0x11
jne 0x1003ac45
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa2
call esi
mov cl, byte [esp + 0x10]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1003abc9
mov eax, dword [0x10265568]
add eax, 8
mov dword [esp + 0x58], eax
cmp byte [eax + 0x3799], 0
je 0x1003abb5
test cl, cl
je 0x1003ab9d
movss xmm3, dword [0x1025cd5c]
jmp 0x1003aba0
xorps xmm3, xmm3
mov ecx, dword [esp + 0x10]
push ecx
push 0x20f
mov ecx, eax
call fcn.100041b0
mov eax, dword [esp + 0x58]
mov dword [eax + 0x344], 0x20f
mov dword [eax + 0x8f8], 0xa2
push 0xa3
call esi
mov cl, byte [esp + 0x10]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1003b22a
mov esi, dword [0x10265568]
cmp byte [esi + 0x37a1], 0
je 0x1003ac15
test cl, cl
je 0x1003abfe
movss xmm0, dword [0x1025cd5c]
jmp 0x1003ac01
xorps xmm0, xmm0
push dword [esp + 0x10]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x213
call fcn.100041b0
mov dword [esi + 0x350], 0x213
xor eax, eax
mov dword [esi + 0x910], 0xa3
cmp byte [edi + 0x92], al
setne al
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10077e95
mov esp, ebp
pop ebp
ret
cmp esi, 0x12
jne 0x1003b22a
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa4
call esi
mov cl, byte [esp + 0x10]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1003acb7
mov eax, dword [0x10265568]
add eax, 8
mov dword [esp + 0x58], eax
cmp byte [eax + 0x3799], 0
je 0x1003aca3
test cl, cl
je 0x1003ac8b
movss xmm3, dword [0x1025cd5c]
jmp 0x1003ac8e
xorps xmm3, xmm3
mov ecx, dword [esp + 0x10]
push ecx
push 0x211
mov ecx, eax
call fcn.100041b0
mov eax, dword [esp + 0x58]
mov dword [eax + 0x34c], 0x211
mov dword [eax + 0x900], 0xa4
push 0xa5
call esi
mov cl, byte [esp + 0x10]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1003b22a
mov esi, dword [0x10265568]
cmp byte [esi + 0x37a1], 0
je 0x1003ad03
test cl, cl
je 0x1003acec
movss xmm0, dword [0x1025cd5c]
jmp 0x1003acef
xorps xmm0, xmm0
push dword [esp + 0x10]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x215
call fcn.100041b0
mov dword [esi + 0x358], 0x215
xor eax, eax
mov dword [esi + 0x918], 0xa5
cmp byte [edi + 0x92], al
setne al
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10077e95
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0xdb8]
cmp esi, 7
mov dword [esp + 0x5c], ecx
sete byte [esp + 0x1b]
mov edx, dword [ecx + 0x3ecc]
sub edx, 1
js 0x1003ad77
mov eax, dword [esp + 0x5c]
lea ecx, [edx*8]
sub ecx, edx
mov eax, dword [eax + 0x3ed4]
lea eax, [eax + ecx*4]
cmp dword [eax], 7
je 0x1003ade2
sub eax, 0x1c
sub edx, 1
jns 0x1003ad66
mov ecx, dword [esp + 0x5c]
cmp byte [ecx + 0x37a0], 0
sete al
mov dl, byte [esp + 0x1b]
cmp al, dl
je case.0x1003afbd.527
cmp byte [edi + 0x66], 0
je 0x1003ad9c
cmp esi, 7
jne case.0x1003afbd.527
mov eax, dword [ecx + 0x3ee8]
lea esi, [ecx + 0x3ecc]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x28], eax
inc eax
mov dword [ecx + 0x3ee8], eax
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x20], 7
mov byte [esp + 0x2c], dl
cmp eax, edi
jne 0x1003adff
lea ecx, [eax + 1]
test edi, edi
je 0x1003adeb
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x1003adf0
mov al, byte [eax + 0xc]
mov ecx, dword [esp + 0x5c]
jmp 0x1003ad81
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.10027ef0
mov eax, dword [esi]
movups xmm0, xmmword [esp + 0x20]
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 8]
movups xmmword [eax + ecx*4], xmm0
xorps xmm0, xmm0
movq qword [eax + ecx*4 + 0x10], xmm0
mov dword [eax + ecx*4 + 0x18], 0
inc dword [esi]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10077e95
mov esp, ebp
pop ebp
ret
push edx
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x1003ae7a
mov ecx, dword [ebp + 8]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja 0x1003b22a
push ecx
mov ecx, edi
call fcn.10004110
xor eax, eax
cmp byte [edi + 0x92], al
setne al
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10077e95
mov esp, ebp
pop ebp
ret
push 1
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0
push eax
push 1
lea eax, [ebp + 8]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [esp + 0x5c]
mov ecx, edi
push eax
call fcn.10004050
xor eax, eax
cmp byte [edi + 0x92], al
setne al
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10077e95
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0xc], 1
jne case.0x1003afbd.527
call fcn.100393e0
test al, al
je case.0x1003afbd.527
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10077e95
mov esp, ebp
pop ebp
ret
mov byte [ecx + 0x24], 1
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10077e95
mov esp, ebp
pop ebp
ret
test dword [ebp + 0xc], 0x800
je 0x1003b22a
push edx
call dword [sym.imp.IMM32.dll_ImmGetContext]
mov esi, dword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
push 0
push 0
push 0x800
push eax
mov dword [esp + 0x24], eax
call esi
mov dword [esp + 0x5c], eax
lea ecx, [eax + eax]
push ecx
push 0
push 0x10265fe8
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [esp + 0x5c]
push 0x10265fe8
push 0x800
push dword [esp + 0x20]
call esi
xor esi, esi
cmp dword [esp + 0x5c], esi
jle 0x1003af7b
movzx eax, word [esi*2 + 0x10265fe8]
mov ecx, edi
push eax
call fcn.10004110
inc esi
cmp esi, dword [esp + 0x5c]
jl 0x1003af64
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.IMM32.dll_ImmReleaseContext]
xor eax, eax
cmp byte [edi + 0x92], al
setne al
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10077e95
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x200]
cmp eax, 0xa3
ja case.0x1003afbd.527
movzx eax, byte [eax + 0x1003b4f8]
jmp dword [eax*4 + 0x1003b4d4]
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
and eax, 0xffffff80
cmp eax, 0xff515700
jne 0x1003afde
mov dword [esp + 0x14], 2
jmp 0x1003afec
xor ecx, ecx
cmp eax, 0xff515780
sete cl
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov edx, dword [esp + 0x10]
cmp esi, 0x200
setne cl
inc ecx
mov dword [eax + 4], edx
mov eax, dword [eax + 8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x58], eax
cmp eax, ecx
je 0x1003b08b
cmp esi, 0x200
mov dword [esp + 0x48], 0x10
mov eax, 2
mov dword [esp + 0x4c], 0x80000000
mov ecx, 0x12
mov dword [esp + 0x50], edx
cmovne eax, ecx
mov dword [esp + 0x54], 0
cmp dword [esp + 0x58], 0
mov dword [esp + 0x24], eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [esp + 0x20], 0x10
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 0
je 0x1003b075
lea ecx, [esp + 0x48]
push ecx
call eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
lea ecx, [esp + 0x20]
push ecx
call eax
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x1c]
mov dword [edx + 8], eax
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 0xc]
movsx eax, cx
mov dword [esp + 0x60], eax
shr ecx, 0x10
movsx eax, cx
mov dword [esp + 0x64], eax
mov eax, dword [edi]
shr eax, 0xa
and al, 1
cmp esi, 0x200
jne 0x1003b0c0
test al, al
je 0x1003b0d8
lea eax, [esp + 0x60]
push eax
push edx
call dword [sym.imp.USER32.dll_ClientToScreen]
jmp 0x1003b0d8
cmp esi, 0xa0
jne 0x1003b0d8
test al, al
jne 0x1003b0d8
lea eax, [esp + 0x60]
push eax
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [edi + 0xdb8]
mov ecx, dword [esp + 0x14]
mov dword [eax + 0x3ee4], ecx
mov ecx, edi
movd xmm2, dword [esp + 0x64]
movd xmm1, dword [esp + 0x60]
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.10004320
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10077e95
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp esi, 0x2a3
setne al
inc eax
cmp dword [ecx + 8], eax
jne case.0x1003afbd.527
cmp dword [ecx + 4], edx
jne 0x1003b135
mov dword [ecx + 4], 0
movss xmm1, dword [0x1025ceb4]
mov dword [ecx + 8], 0
movaps xmm2, xmm1
mov ecx, edi
call fcn.10004320
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10077e95
mov esp, ebp
pop ebp
ret
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
and eax, 0xffffff80
cmp eax, 0xff515700
jne 0x1003b17b
mov dword [esp + 0x58], 2
jmp 0x1003b189
xor ecx, ecx
cmp eax, 0xff515780
sete cl
mov dword [esp + 0x58], ecx
mov dword [esp + 0x14], 0
cmp esi, 0x204
je 0x1003b1a1
cmp esi, 0x206
jne 0x1003b1a9
mov dword [esp + 0x14], 1
cmp esi, 0x207
je 0x1003b1b9
cmp esi, 0x209
jne 0x1003b1c1
mov dword [esp + 0x14], 2
cmp esi, 0x20b
je 0x1003b1d1
cmp esi, 0x20d
jne 0x1003b1e5
mov eax, dword [ebp + 8]
shr eax, 0x10
dec eax
neg eax
sbb eax, eax
neg eax
add eax, 3
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x5c]
cmp dword [esi + 0xc], 0
jne 0x1003b203
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x1003b203
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x14]
bts eax, ecx
mov dword [esi + 0xc], eax
push 1
mov eax, dword [edi + 0xdb8]
mov edx, dword [esp + 0x5c]
push ecx
mov ecx, edi
mov dword [eax + 0x3ee4], edx
call fcn.100044b0
xor eax, eax
cmp byte [edi + 0x92], al
setne al
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10077e95
mov esp, ebp
pop ebp
ret
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
and eax, 0xffffff80
cmp eax, 0xff515700
jne 0x1003b260
mov dword [esp + 0x58], 2
jmp 0x1003b26e
xor edx, edx
cmp eax, 0xff515780
sete dl
mov dword [esp + 0x58], edx
xor ecx, ecx
cmp esi, 0x205
sete cl
mov dword [esp + 0x14], ecx
cmp esi, 0x208
jne 0x1003b28c
mov ecx, 2
jmp 0x1003b2a4
cmp esi, 0x20c
jne 0x1003b2a8
mov ecx, dword [ebp + 8]
shr ecx, 0x10
dec ecx
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 3
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x5c]
mov eax, dword [edx + 0xc]
btr eax, ecx
mov dword [edx + 0xc], eax
test eax, eax
jne 0x1003b2cf
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esp + 0x10]
jne 0x1003b2cb
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 0x14]
push 0
jmp 0x1003b212
mov eax, dword [ebp + 8]
xorps xmm1, xmm1
shr eax, 0x10
mov ecx, edi
cwde
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm2, dword [0x1025ce2c]
call fcn.100045c0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10077e95
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
xorps xmm2, xmm2
shr eax, 0x10
mov ecx, edi
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
xorps xmm1, xmmword [0x1025d7f0]
divss xmm1, dword [0x1025ce2c]
call fcn.100045c0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.10077e95
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov dword [esp + 0x58], edx
cmp edx, 0x7f
ja 0x1003b35c
push edx
mov ecx, edi
call fcn.10004050
jmp 0x1003b22a
mov eax, edx
shr eax, 8
movzx ecx, al
movzx eax, dl
shl eax, 8
push 3
or ecx, eax
lea eax, [esp + 0x64]
push eax
push 4
lea eax, [esp + 0x64]
mov dword [esp + 0x64], ecx
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [esp + 0x60]
mov ecx, edi
push eax
call fcn.10004050
jmp 0x1003b22a
cmp dword [ebp + 8], 7
jne case.0x1003afbd.527
mov byte [ecx + 0x26], 1
mov ecx, dword [esp + 0x6c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.10077e95
mov esp, ebp
pop ebp
ret