Function at 0x46a2f1
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x6efb00]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [0x7ca4d8]
mov dword [esp + 0x48], ecx
push esi
mov esi, edx
push edi
test eax, eax
je case.0x46aaaa.527
mov edx, dword [eax + 0x78]
lea edi, [eax + 8]
mov dword [esp + 0x18], edx
cmp esi, 0x200
ja 0x46aa92
je case.0x46a2ea.160
lea eax, [esi - 7]
cmp eax, 0xfe
ja case.0x46aaaa.527
movzx eax, byte [eax + 0x46acc0]
jmp dword [eax*4 + 0x46aca8]
cmp esi, 0x100
je 0x46a306
mov byte [esp + 0x54], 0
cmp esi, 0x104
jne 0x46a30b
mov byte [esp + 0x54], 1
cmp dword [ebp + 8], 0x100
jae case.0x46aaaa.527
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3769], 0
mov byte [esp + 0x50], al
je 0x46a355
test al, al
je 0x46a342
movss xmm3, dword [0x6e6a00]
jmp 0x46a345
xorps xmm3, xmm3
push dword [esp + 0x50]
mov ecx, edi
push 0x1000
call fcn.00448cf0
push 0x10
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3769], 0
mov byte [esp + 0x50], al
je 0x46a38c
test al, al
je 0x46a379
movss xmm3, dword [0x6e6a00]
jmp 0x46a37c
xorps xmm3, xmm3
push dword [esp + 0x50]
mov ecx, edi
push 0x2000
call fcn.00448cf0
push 0x12
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3769], 0
mov byte [esp + 0x50], al
je 0x46a3c3
test al, al
je 0x46a3b0
movss xmm3, dword [0x6e6a00]
jmp 0x46a3b3
xorps xmm3, xmm3
push dword [esp + 0x50]
mov ecx, edi
push 0x4000
call fcn.00448cf0
push 0x5d
call esi
shr eax, 0xf
and al, 1
cmp byte [edi + 0x3769], 0
mov byte [esp + 0x50], al
je 0x46a3fa
test al, al
je 0x46a3e7
movss xmm3, dword [0x6e6a00]
jmp 0x46a3ea
xorps xmm3, xmm3
push dword [esp + 0x50]
mov ecx, edi
push 0x8000
call fcn.00448cf0
mov esi, dword [ebp + 8]
cmp esi, 0xd
jne 0x46a415
mov eax, dword [ebp + 0xc]
shr eax, 0x10
test eax, 0x100
mov eax, 0x10d
cmovne esi, eax
mov ecx, esi
call fcn.00469d50
mov edi, eax
test edi, edi
je 0x46a471
mov eax, dword [0x7ca4d8]
add eax, 8
mov dword [esp + 0x50], eax
cmp byte [eax + 0x3769], 0
je 0x46a45b
cmp byte [esp + 0x54], 0
je 0x46a448
movss xmm3, dword [0x6e6a00]
jmp 0x46a44b
xorps xmm3, xmm3
push dword [esp + 0x54]
mov ecx, eax
push edi
call fcn.00448cf0
mov eax, dword [esp + 0x50]
cmp esi, 0x1ff
ja 0x46a471
mov dword [eax + esi*4 + 0xb8], edi
mov dword [eax + edi*4 + 0xb8], esi
cmp esi, 0x10
jne 0x46a54d
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 0x46a4da
mov eax, dword [0x7ca4d8]
cmp byte [eax + 0x3771], 0
lea esi, [eax + 8]
je 0x46a4c6
test cl, cl
je 0x46a4b3
movss xmm3, dword [0x6e6a00]
jmp 0x46a4b6
xorps xmm3, xmm3
push dword [esp + 0x54]
mov ecx, esi
push 0x210
call fcn.00448cf0
mov dword [esi + 0x338], 0x210
mov dword [esi + 0x8f8], 0xa0
push 0xa1
call edi
mov cl, byte [esp + 0x54]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x46aaaa.527
mov esi, dword [0x7ca4d8]
cmp byte [esi + 0x3771], 0
je 0x46a526
test cl, cl
je 0x46a50f
movss xmm0, dword [0x6e6a00]
jmp 0x46a512
xorps xmm0, xmm0
push dword [esp + 0x54]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x214
call fcn.00448cf0
mov dword [esi + 0x344], 0x214
xor eax, eax
mov dword [esi + 0x910], 0xa1
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.006193d7
mov esp, ebp
pop ebp
ret
cmp esi, 0x11
jne 0x46a629
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 0x46a5b6
mov eax, dword [0x7ca4d8]
cmp byte [eax + 0x3771], 0
lea esi, [eax + 8]
je 0x46a5a2
test cl, cl
je 0x46a58f
movss xmm3, dword [0x6e6a00]
jmp 0x46a592
xorps xmm3, xmm3
push dword [esp + 0x54]
mov ecx, esi
push 0x20f
call fcn.00448cf0
mov dword [esi + 0x340], 0x20f
mov dword [esi + 0x8f4], 0xa2
push 0xa3
call edi
mov cl, byte [esp + 0x54]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x46aaaa.527
mov esi, dword [0x7ca4d8]
cmp byte [esi + 0x3771], 0
je 0x46a602
test cl, cl
je 0x46a5eb
movss xmm0, dword [0x6e6a00]
jmp 0x46a5ee
xorps xmm0, xmm0
push dword [esp + 0x54]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x213
call fcn.00448cf0
mov dword [esi + 0x34c], 0x213
xor eax, eax
mov dword [esi + 0x90c], 0xa3
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.006193d7
mov esp, ebp
pop ebp
ret
cmp esi, 0x12
jne case.0x46aaaa.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 0x46a692
mov eax, dword [0x7ca4d8]
cmp byte [eax + 0x3771], 0
lea esi, [eax + 8]
je 0x46a67e
test cl, cl
je 0x46a66b
movss xmm3, dword [0x6e6a00]
jmp 0x46a66e
xorps xmm3, xmm3
push dword [esp + 0x54]
mov ecx, esi
push 0x211
call fcn.00448cf0
mov dword [esi + 0x348], 0x211
mov dword [esi + 0x8fc], 0xa4
push 0xa5
call edi
mov cl, byte [esp + 0x54]
shr eax, 0xf
and al, 1
cmp al, cl
jne case.0x46aaaa.527
mov esi, dword [0x7ca4d8]
cmp byte [esi + 0x3771], 0
je 0x46a6de
test cl, cl
je 0x46a6c7
movss xmm0, dword [0x6e6a00]
jmp 0x46a6ca
xorps xmm0, xmm0
push dword [esp + 0x54]
movaps xmm3, xmm0
lea ecx, [esi + 8]
push 0x215
call fcn.00448cf0
mov dword [esi + 0x354], 0x215
xor eax, eax
mov dword [esi + 0x914], 0xa5
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.006193d7
mov esp, ebp
pop ebp
ret
mov eax, dword [0x7ca4d8]
cmp esi, 7
mov esi, dword [edi + 0xdb4]
sete byte [esp + 0x17]
mov edx, dword [eax + 0x3788]
sub edx, 1
js 0x46a73d
mov eax, dword [eax + 0x3790]
lea ecx, [edx + edx*2]
lea eax, [eax + ecx*8]
nop
cmp dword [eax], 6
je 0x46a789
sub eax, 0x18
sub edx, 1
jns 0x46a730
cmp byte [esi + 0x3770], 0
sete al
mov cl, byte [esp + 0x17]
cmp al, cl
je case.0x46aaaa.527
mov edi, dword [esi + 0x378c]
add esi, 0x3788
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
mov byte [esp + 0x28], cl
mov ecx, dword [esi]
mov dword [esp + 0x20], 6
cmp ecx, edi
jne 0x46a7a4
inc ecx
test edi, edi
je 0x46a792
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x46a797
test eax, eax
je 0x46a73d
mov al, byte [eax + 8]
jmp 0x46a747
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.0045e1f0
mov eax, dword [esi]
movups xmm0, xmmword [esp + 0x20]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 8]
movups xmmword [eax + ecx*8], xmm0
xorps xmm0, xmm0
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [esi]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.006193d7
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x46a8ab
mov ecx, dword [ebp + 8]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja case.0x46aaaa.527
movzx esi, cx
mov eax, esi
test ax, ax
jne 0x46a80a
cmp word [edi + 0x376c], ax
je case.0x46aaaa.527
cmp byte [edi + 0x3769], 0
je case.0x46aaaa.527
movzx edx, word [edi + 0x376c]
mov ecx, eax
and ecx, 0xfc00
mov dword [esp + 0x50], 0xd800
cmp cx, word [esp + 0x50]
jne 0x46a860
test dx, dx
je 0x46a846
push 0xfffd
mov ecx, edi
call fcn.00448c50
mov word [edi + 0x376c], si
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.006193d7
mov esp, ebp
pop ebp
ret
test dx, dx
je 0x46a88d
mov eax, 0xdc00
cmp cx, ax
je 0x46a87f
push 0xfffd
mov ecx, edi
call fcn.00448c50
mov eax, esi
jmp 0x46a884
mov eax, 0xfffd
xor ecx, ecx
mov word [edi + 0x376c], cx
movzx eax, ax
mov ecx, edi
push eax
call fcn.00448c50
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.006193d7
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]
test eax, eax
je case.0x46aaaa.527
cmp byte [edi + 0x3769], 0
je case.0x46aaaa.527
mov esi, dword [edi + 0xdb4]
xorps xmm0, xmm0
mov edi, dword [esi + 0x378c]
add esi, 0x3788
movlpd qword [esp + 0x2c], xmm0
mov dword [esp + 0x34], 0
mov dword [esp + 0x20], 5
mov ecx, dword [esi]
mov dword [esp + 0x24], 2
mov dword [esp + 0x28], eax
cmp ecx, edi
jne 0x46a943
inc ecx
test edi, edi
je 0x46a931
mov eax, edi
cdq
sub eax, edx
sar eax, 1
add eax, edi
jmp 0x46a936
mov eax, 8
cmp eax, ecx
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.0045e1f0
mov eax, dword [esi]
movups xmm0, xmmword [esp + 0x20]
lea ecx, [eax + eax*2]
mov eax, dword [esi + 8]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [esp + 0x30]
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [esi]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.006193d7
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0xc], 1
jne case.0x46aaaa.527
call fcn.004692c0
test al, al
je case.0x46aaaa.527
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.006193d7
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 0x46aa34
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], getpeername
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 0x46aa1e
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 0x46aa6a
lea eax, [esp + 0x54]
push eax
push ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je case.0x46aaaa.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.00448e50
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.006193d7
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x201]
cmp eax, 0xa2
ja case.0x46aaaa.527
movzx eax, byte [eax + 0x46addc]
jmp dword [eax*4 + 0x46adc0]
xor eax, eax
cmp esi, 0x2a3
setne al
inc eax
cmp dword [edx + 8], eax
jne case.0x46aaaa.527
cmp dword [edx + 4], ecx
jne 0x46aad2
mov dword [edx + 4], 0
movss xmm1, dword [0x6e6b24]
mov ecx, edi
movaps xmm2, xmm1
mov dword [edx + 8], 0
call fcn.00448e50
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.006193d7
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x54], 0
cmp esi, 0x204
je 0x46ab16
cmp esi, 0x206
jne 0x46ab1e
mov dword [esp + 0x54], 1
cmp esi, 0x207
je 0x46ab2e
cmp esi, 0x209
jne 0x46ab36
mov dword [esp + 0x54], 2
cmp esi, 0x20b
je 0x46ab46
cmp esi, 0x20d
jne 0x46ab5a
mov eax, dword [ebp + 8]
shr eax, 0x10
dec eax
neg eax
sbb eax, eax
neg eax
add eax, 3
mov dword [esp + 0x54], eax
cmp dword [edx + 0xc], 0
jne 0x46ab78
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x46ab74
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, ecx
push 1
push ecx
mov ecx, edi
mov dword [edx + 0xc], eax
call fcn.00448fa0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.006193d7
mov esp, ebp
pop ebp
ret
xor ecx, ecx
cmp esi, 0x205
sete cl
mov dword [esp + 0x54], ecx
cmp esi, 0x208
jne 0x46abc0
mov ecx, 2
jmp 0x46abd8
cmp esi, 0x20c
jne 0x46abdc
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 0x46abff
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esp + 0x50]
jne 0x46abfb
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [esp + 0x54]
push 0
push ecx
mov ecx, edi
call fcn.00448fa0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.006193d7
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
xorps xmm1, xmm1
shr eax, 0x10
mov ecx, edi
cwde
movd xmm2, eax
cvtdq2ps xmm2, xmm2
divss xmm2, dword [0x6e6ab0]
call fcn.00449090
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.006193d7
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 [0x6e6f60]
divss xmm1, dword [0x6e6ab0]
call fcn.00449090
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.006193d7
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 7
jne case.0x46aaaa.527
mov byte [edx + 0x25], 1
mov ecx, dword [esp + 0x5c]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.006193d7
mov esp, ebp
pop ebp
ret