Function at 0x1003ab05
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x1006b040]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [0x1007de40]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], eax
push esi
mov esi, edx
push edi
test eax, eax
je case.0x1003b289.527
mov edx, dword [eax + 0x74]
lea edi, [eax + 8]
mov dword [esp + 0x18], edx
cmp esi, 0x200
ja 0x1003b271
je case.0x1003aafe.160
lea eax, [esi - 7]
cmp eax, 0xfe
ja case.0x1003b289.527
movzx eax, byte [eax + 0x1003b4e4]
jmp dword [eax*4 + 0x1003b4cc]
cmp esi, 0x100
je 0x1003ab1a
mov byte [esp + 0x54], 0
cmp esi, 0x104
jne 0x1003ab1f
mov byte [esp + 0x54], 1
cmp dword [ebp + 8], 0x100
jae case.0x1003b289.527
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3761], 0
mov byte [esp + 0x50], al
je 0x1003ab69
test al, al
je 0x1003ab56
movss xmm3, dword [0x10064374]
jmp 0x1003ab59
xorps xmm3, xmm3
push dword [esp + 0x50]
mov ecx, edi
push 0x1000
call fcn.10014360
push 0x10
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3761], 0
mov byte [esp + 0x50], al
je 0x1003aba0
test al, al
je 0x1003ab8d
movss xmm3, dword [0x10064374]
jmp 0x1003ab90
xorps xmm3, xmm3
push dword [esp + 0x50]
mov ecx, edi
push 0x2000
call fcn.10014360
push 0x12
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3761], 0
mov byte [esp + 0x50], al
je 0x1003abd7
test al, al
je 0x1003abc4
movss xmm3, dword [0x10064374]
jmp 0x1003abc7
xorps xmm3, xmm3
push dword [esp + 0x50]
mov ecx, edi
push 0x4000
call fcn.10014360
push 0x5d
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3761], 0
mov byte [esp + 0x50], al
je 0x1003ac0e
test al, al
je 0x1003abfb
movss xmm3, dword [0x10064374]
jmp 0x1003abfe
xorps xmm3, xmm3
push dword [esp + 0x50]
mov ecx, edi
push 0x8000
call fcn.10014360
mov esi, dword [ebp + 8]
cmp esi, 0xd
jne 0x1003ac29
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne esi, eax
mov ecx, esi
call fcn.1003a550
mov edi, eax
test edi, edi
je 0x1003ac85
mov eax, dword [0x1007de40]
add eax, 8
mov dword [esp + 0x50], eax
cmp byte [eax + 0x3761], 0
je 0x1003ac6f
cmp byte [esp + 0x54], 0
je 0x1003ac5c
movss xmm3, dword [0x10064374]
jmp 0x1003ac5f
xorps xmm3, xmm3
push dword [esp + 0x54]
mov ecx, eax
push edi
call fcn.10014360
mov eax, dword [esp + 0x50]
cmp esi, 0x1ff
ja 0x1003ac85
mov dword [eax + esi*4 + 0xb4], edi
mov dword [eax + edi*4 + 0xb4], esi
cmp esi, 0x10
jne 0x1003ad61
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa0
call edi
mov cl, byte [esp + 0x54]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1003acee
mov eax, dword [0x1007de40]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x1003acda
test cl, cl
je 0x1003acc7
movss xmm3, dword [0x10064374]
jmp 0x1003acca
xorps xmm3, xmm3
push dword [esp + 0x54]
mov ecx, esi
push 0x210
call fcn.10014360
mov dword [esi + 0x334], 0x210
mov dword [esi + 0x8f4], 0xa0
push 0xa1
call edi
mov cl, byte [esp + 0x54]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1003b289.527
mov esi, dword [0x1007de40]
cmp byte [esi + 0x3769], 0
je 0x1003ad3a
test cl, cl
je 0x1003ad23
movss xmm0, dword [0x10064374]
jmp 0x1003ad26
xorps xmm0, xmm0
push dword [esp + 0x54]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x214
call fcn.10014360
mov dword [esi + 0x340], 0x214
xor eax, eax
mov dword [esi + 0x90c], 0xa1
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10056ca1
mov esp, ebp
pop ebp
ret
cmp esi, 0x11
jne 0x1003ae3d
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa2
call edi
mov cl, byte [esp + 0x54]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1003adca
mov eax, dword [0x1007de40]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x1003adb6
test cl, cl
je 0x1003ada3
movss xmm3, dword [0x10064374]
jmp 0x1003ada6
xorps xmm3, xmm3
push dword [esp + 0x54]
mov ecx, esi
push 0x20f
call fcn.10014360
mov dword [esi + 0x33c], 0x20f
mov dword [esi + 0x8f0], 0xa2
push 0xa3
call edi
mov cl, byte [esp + 0x54]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1003b289.527
mov esi, dword [0x1007de40]
cmp byte [esi + 0x3769], 0
je 0x1003ae16
test cl, cl
je 0x1003adff
movss xmm0, dword [0x10064374]
jmp 0x1003ae02
xorps xmm0, xmm0
push dword [esp + 0x54]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x213
call fcn.10014360
mov dword [esi + 0x348], 0x213
xor eax, eax
mov dword [esi + 0x908], 0xa3
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10056ca1
mov esp, ebp
pop ebp
ret
cmp esi, 0x12
jne case.0x1003b289.527
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0xa4
call edi
mov cl, byte [esp + 0x54]
shr eax, 0xf
and al, 1
cmp al, cl
jne 0x1003aea6
mov eax, dword [0x1007de40]
cmp byte [eax + 0x3769], 0
lea esi, [eax + 8]
je 0x1003ae92
test cl, cl
je 0x1003ae7f
movss xmm3, dword [0x10064374]
jmp 0x1003ae82
xorps xmm3, xmm3
push dword [esp + 0x54]
mov ecx, esi
push 0x211
call fcn.10014360
mov dword [esi + 0x344], 0x211
mov dword [esi + 0x8f8], 0xa4
push 0xa5
call edi
mov cl, byte [esp + 0x54]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x1003b289.527
mov esi, dword [0x1007de40]
cmp byte [esi + 0x3769], 0
je 0x1003aef2
test cl, cl
je 0x1003aedb
movss xmm0, dword [0x10064374]
jmp 0x1003aede
xorps xmm0, xmm0
push dword [esp + 0x54]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x215
call fcn.10014360
mov dword [esi + 0x350], 0x215
xor eax, eax
mov dword [esi + 0x910], 0xa5
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10056ca1
mov esp, ebp
pop ebp
ret
cmp esi, 7
mov esi, dword [esp + 0x54]
sete byte [esp + 0x17]
mov edx, dword [esi + 0x3780]
sub edx, 1
js 0x1003af4d
mov eax, dword [esi + 0x3788]
lea ecx, [edx + edx*2]
lea eax, [eax + ecx*8]
nop dword [eax]
cmp dword [eax], 6
je 0x1003afa0
sub eax, 0x18
sub edx, 1
jns 0x1003af40
cmp byte [esi + 0x3768], 0
sete al
mov dl, byte [esp + 0x17]
cmp al, dl
je case.0x1003b289.527
xorps xmm0, xmm0
lea eax, [esp + 0x20]
movaps xmmword [esp + 0x20], xmm0
lea ecx, [esi + 0x3780]
push eax
movq qword [esp + 0x34], xmm0
mov dword [esp + 0x24], 6
mov byte [esp + 0x2c], dl
call fcn.10028c10
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10056ca1
mov esp, ebp
pop ebp
ret
mov al, byte [eax + 8]
jmp 0x1003af57
push ecx
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x1003b12b
mov ecx, dword [ebp + 8]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja case.0x1003b289.527
movzx esi, cx
mov eax, esi
test ax, ax
jne 0x1003afdc
cmp word [edi + 0x3764], ax
je case.0x1003b289.527
cmp byte [edi + 0x3761], 0
je case.0x1003b289.527
movzx edx, word [edi + 0x3764]
mov ecx, eax
and ecx, 0xfc00
mov dword [esp + 0x50], 0xd800
cmp cx, word [esp + 0x50]
jne 0x1003b065
test dx, dx
je 0x1003b04b
mov ecx, dword [0x1007de40]
lea eax, [esp + 0x20]
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
push eax
movlpd qword [esp + 0x30], xmm0
lea ecx, [ecx + 0x3780]
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 0xfffd
call fcn.10028c10
mov word [edi + 0x3764], si
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10056ca1
mov esp, ebp
pop ebp
ret
test dx, dx
je 0x1003b0c5
mov eax, 0xdc00
cmp cx, ax
je 0x1003b0b7
mov ecx, dword [0x1007de40]
lea eax, [esp + 0x20]
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
push eax
movlpd qword [esp + 0x30], xmm0
lea ecx, [ecx + 0x3780]
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 0xfffd
call fcn.10028c10
mov eax, esi
jmp 0x1003b0bc
mov eax, 0xfffd
xor ecx, ecx
mov word [edi + 0x3764], cx
movzx eax, ax
test eax, eax
je case.0x1003b289.527
cmp byte [edi + 0x3761], 0
je case.0x1003b289.527
mov ecx, dword [0x1007de40]
xorps xmm0, xmm0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x20]
push eax
movlpd qword [esp + 0x30], xmm0
lea ecx, [ecx + 0x3780]
mov dword [esp + 0x38], 0
mov dword [esp + 0x24], 5
mov dword [esp + 0x28], 2
call fcn.10028c10
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10056ca1
mov esp, ebp
pop ebp
ret
push 1
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 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 + 0x50]
jmp 0x1003b0c8
cmp word [ebp + 0xc], 1
jne case.0x1003b289.527
call fcn.10039a90
test al, al
je case.0x1003b289.527
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10056ca1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [edx + 4], ecx
mov edx, dword [edx + 8]
cmp esi, 0x200
setne al
inc eax
mov dword [esp + 0x1c], eax
cmp edx, eax
je 0x1003b213
cmp esi, 0x200
mov dword [esp + 0x54], 0x12
mov eax, 2
mov dword [esp + 0x40], 0x10
cmovne eax, dword [esp + 0x54]
mov dword [esp + 0x24], eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [esp + 0x44], 0x80000000
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x20], 0x10
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], 0
test edx, edx
je 0x1003b1fd
lea ecx, [esp + 0x40]
push ecx
call eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
lea ecx, [esp + 0x20]
push ecx
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x50]
mov eax, dword [ebp + 0xc]
movsx edx, ax
shr eax, 0x10
cwde
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], eax
cmp esi, 0xa0
jne 0x1003b249
lea eax, [esp + 0x54]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je case.0x1003b289.527
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x54]
movd xmm2, eax
mov ecx, edi
movd xmm1, edx
cvtdq2ps xmm2, xmm2
cvtdq2ps xmm1, xmm1
call fcn.10014480
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10056ca1
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x201]
cmp eax, 0xa2
ja case.0x1003b289.527
movzx eax, byte [eax + 0x1003b600]
jmp dword [eax*4 + 0x1003b5e4]
xor eax, eax
cmp esi, 0x2a3
setne al
inc eax
cmp dword [edx + 8], eax
jne case.0x1003b289.527
cmp dword [edx + 4], ecx
jne 0x1003b2b1
mov dword [edx + 4], 0
movss xmm1, dword [0x1006444c]
mov ecx, edi
movaps xmm2, xmm1
mov dword [edx + 8], 0
call fcn.10014480
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10056ca1
mov esp, ebp
pop ebp
ret
xor edi, edi
cmp esi, 0x204
je 0x1003b2ef
cmp esi, 0x206
jne 0x1003b2f4
mov edi, 1
cmp esi, 0x207
je 0x1003b304
cmp esi, 0x209
jne 0x1003b309
mov edi, 2
cmp esi, 0x20b
je 0x1003b319
cmp esi, 0x20d
jne 0x1003b329
mov edi, dword [ebp + 8]
shr edi, 0x10
dec edi
neg edi
sbb edi, edi
neg edi
add edi, 3
cmp dword [edx + 0xc], 0
jne 0x1003b347
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x1003b343
push dword [esp + 0x50]
call dword [sym.imp.USER32.dll_SetCapture]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0xc]
mov ecx, dword [esp + 0x54]
bts eax, edi
push 1
push edi
mov dword [edx + 0xc], eax
lea ecx, [ecx + 8]
call fcn.100145a0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10056ca1
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp esi, 0x205
sete cl
mov dword [esp + 0x54], ecx
cmp esi, 0x208
jne 0x1003b390
mov ecx, 2
jmp 0x1003b3a8
cmp esi, 0x20c
jne 0x1003b3ac
mov ecx, dword [ebp + 8]
shr ecx, 0x10
dec ecx
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 3
mov dword [esp + 0x54], ecx
mov eax, dword [edx + 0xc]
btr eax, ecx
mov dword [edx + 0xc], eax
test eax, eax
jne 0x1003b3cf
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esp + 0x50]
jne 0x1003b3cb
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 0x54]
push 0
push ecx
mov ecx, edi
call fcn.100145a0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10056ca1
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
shr eax, 0x10
cmp byte [edi + 0x3761], 0
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
divss xmm1, dword [0x100643f0]
je case.0x1003b289.527
xorps xmm0, xmm0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp case.0x1003b289.527
mov dword [esp + 0x28], 0
movss dword [esp + 0x2c], xmm1
jmp 0x1003b46f
mov eax, dword [ebp + 8]
shr eax, 0x10
cmp byte [edi + 0x3761], 0
cwde
movd xmm1, eax
cvtdq2ps xmm1, xmm1
xorps xmm1, xmmword [0x10064580]
divss xmm1, dword [0x100643f0]
je case.0x1003b289.527
xorps xmm0, xmm0
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp case.0x1003b289.527
movss dword [esp + 0x28], xmm1
mov dword [esp + 0x2c], 0
mov ecx, dword [esp + 0x54]
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x24], 2
lea ecx, [ecx + 0x3780]
movlpd qword [esp + 0x34], xmm0
call fcn.10028c10
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.10056ca1
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 7
jne case.0x1003b289.527
mov byte [edx + 0x25], 1
mov ecx, dword [esp + 0x5c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.10056ca1
mov esp, ebp
pop ebp
ret