Function at 0x100471d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
call fcn.10021f90
test eax, eax
je case.0x1004769e.527
call fcn.100221a0
mov edi, dword [eax + 0x70]
test edi, edi
je case.0x1004769e.527
call fcn.100221a0
mov esi, dword [ebp + 0xc]
mov ecx, eax
mov dword [ebp - 4], ecx
cmp esi, 0x200
ja 0x10047686
je case.0x10047298.160
cmp esi, 7
ja 0x10047283
je 0x100474d3
sub esi, 2
jne case.0x1004769e.527
mov eax, dword [ebp + 8]
cmp dword [edi + 4], eax
jne case.0x1004769e.527
cmp dword [edi + 8], esi
je case.0x1004769e.527
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x10
mov dword [ebp - 0x1c], 0x80000000
mov dword [ebp - 0x14], esi
call dword [sym.imp.USER32.dll_TrackMouseEvent]
mov ecx, dword [ebp - 4]
sub esp, 8
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [esp + 4], 0xff7fffff
mov dword [esp], 0xff7fffff
call fcn.100191e0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi - 8]
cmp eax, 0xfd
ja case.0x1004769e.527
movzx eax, byte [eax + 0x100478ac]
jmp dword [eax*4 + 0x10047890]
cmp esi, 0x100
je 0x100472b3
mov byte [ebp - 4], 0
cmp esi, 0x104
jne 0x100472b7
mov byte [ebp - 4], 1
cmp dword [ebp + 0x10], 0x100
jae case.0x1004769e.527
call fcn.100221a0
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov edi, eax
push 0x11
call esi
shr eax, 0xf
and al, 1
movzx ecx, al
push ecx
push 0x1000
mov ecx, edi
call fcn.10019030
push 0x10
call esi
shr eax, 0xf
mov ecx, edi
and al, 1
movzx eax, al
push eax
push 0x2000
call fcn.10019030
push 0x12
call esi
shr eax, 0xf
mov ecx, edi
and al, 1
movzx eax, al
push eax
push 0x4000
call fcn.10019030
push 0x5b
call esi
shr eax, 0xf
test al, 1
jne 0x10047336
push 0x5c
call esi
shr eax, 0xf
test al, 1
jne 0x10047336
xor al, al
jmp 0x10047338
mov al, 1
push eax
push 0x8000
mov ecx, edi
call fcn.10019030
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push eax
mov dword [ebp - 8], eax
call fcn.10046230
mov edi, dword [ebp - 4]
mov ecx, eax
mov eax, dword [ebp + 0x14]
add esp, 8
shr eax, 0x10
mov dword [ebp - 0xc], ecx
movzx esi, al
cmp ecx, 0x262
jne 0x1004738e
cmp byte [ebp - 4], 0
jne 0x10047392
push esi
push dword [ebp - 8]
push 1
push 0x262
call fcn.10046060
mov ecx, dword [ebp - 0xc]
add esp, 0x10
jmp 0x10047392
test ecx, ecx
je 0x100473a0
push esi
push dword [ebp - 8]
push edi
push ecx
call fcn.10046060
add esp, 0x10
mov eax, dword [ebp - 8]
cmp eax, 0x10
jne 0x10047406
push 0xa0
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, byte [ebp - 4]
jne 0x100473d1
push esi
push 0xa0
push edi
push 0x210
call fcn.10046060
add esp, 0x10
push 0xa1
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, byte [ebp - 4]
jne case.0x1004769e.527
push esi
push 0xa1
push edi
push 0x214
call fcn.10046060
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x11
jne 0x10047469
push 0xa2
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, byte [ebp - 4]
jne 0x10047434
push esi
push 0xa2
push edi
push 0x20f
call fcn.10046060
add esp, 0x10
push 0xa3
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, byte [ebp - 4]
jne case.0x1004769e.527
push esi
push 0xa3
push edi
push 0x213
call fcn.10046060
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 0x12
jne case.0x1004769e.527
push 0xa4
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, byte [ebp - 4]
jne 0x1004749b
push esi
push 0xa4
push edi
push 0x211
call fcn.10046060
add esp, 0x10
push 0xa5
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp al, byte [ebp - 4]
jne case.0x1004769e.527
push esi
push 0xa5
push edi
push 0x215
call fcn.10046060
add esp, 0x10
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 7
sete al
movzx eax, al
push eax
call fcn.10018c20
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call fcn.10047050
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x10047523
mov ecx, dword [ebp + 0x10]
lea eax, [ecx - 1]
cmp eax, 0xfffe
ja case.0x1004769e.527
push ecx
mov ecx, dword [ebp - 4]
call fcn.10018d60
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 1
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 1
lea eax, [ebp + 0x10]
push eax
push 1
push dword [edi + 0x24]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movzx eax, word [ebp - 8]
mov ecx, dword [ebp - 4]
push eax
call fcn.10018cd0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp word [ebp + 0x14], 1
jne case.0x1004769e.527
call fcn.10047090
test al, al
je case.0x1004769e.527
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
and eax, 0xffffff80
cmp eax, 0xff515700
jne 0x10047592
mov dword [ebp - 8], 2
jmp 0x1004759f
xor ecx, ecx
cmp eax, 0xff515780
sete cl
mov dword [ebp - 8], ecx
mov ecx, dword [edi + 8]
xor eax, eax
mov edx, dword [ebp + 8]
cmp esi, 0x200
mov dword [edi + 4], edx
setne al
inc eax
mov dword [ebp - 0x10], eax
cmp ecx, eax
je 0x10047620
cmp esi, 0x200
mov dword [ebp - 0xc], 0x12
mov eax, 2
mov dword [ebp - 0x30], 0x10
cmovne eax, dword [ebp - 0xc]
mov dword [ebp - 0x3c], eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
mov dword [ebp - 0x2c], 0x80000000
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x40], 0x10
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], 0
test ecx, ecx
je 0x10047611
lea ecx, [ebp - 0x30]
push ecx
call eax
mov eax, dword [sym.imp.USER32.dll_TrackMouseEvent]
lea ecx, [ebp - 0x40]
push ecx
call eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [edi + 8], eax
mov ecx, dword [ebp + 0x14]
movsx eax, cx
shr ecx, 0x10
mov dword [ebp - 0x18], eax
movsx eax, cx
mov dword [ebp - 0x14], eax
cmp esi, 0xa0
jne 0x1004764d
lea eax, [ebp - 0x18]
push eax
push edx
call dword [sym.imp.USER32.dll_ScreenToClient]
test eax, eax
je case.0x1004769e.527
push dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.10019340
movd xmm0, dword [ebp - 0x14]
sub esp, 8
mov ecx, dword [ebp - 4]
cvtdq2ps xmm0, xmm0
movss dword [esp + 4], xmm0
movd xmm0, dword [ebp - 0x18]
cvtdq2ps xmm0, xmm0
movss dword [esp], xmm0
call fcn.100191e0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi - 0x201]
cmp eax, 0xa2
ja case.0x1004769e.527
movzx eax, byte [eax + 0x100479c8]
jmp dword [eax*4 + 0x100479ac]
xor eax, eax
cmp esi, 0x2a3
setne al
inc eax
cmp dword [edi + 8], eax
jne case.0x1004769e.527
mov eax, dword [edi + 4]
cmp eax, dword [ebp + 8]
jne 0x100476c9
mov dword [edi + 4], 0
sub esp, 8
mov dword [edi + 8], 0
mov dword [esp + 4], 0xff7fffff
mov dword [esp], 0xff7fffff
call fcn.100191e0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call fcn.10046030
mov dword [ebp - 0x10], eax
cmp esi, 0x204
je 0x1004770e
mov dword [ebp - 8], 0
cmp esi, 0x206
jne 0x10047715
mov dword [ebp - 8], 1
cmp esi, 0x207
je 0x10047725
cmp esi, 0x209
jne 0x1004772c
mov dword [ebp - 8], 2
cmp esi, 0x20b
je 0x1004773c
cmp esi, 0x20d
jne 0x1004774f
mov eax, dword [ebp + 0x10]
shr eax, 0x10
dec eax
neg eax
sbb eax, eax
neg eax
add eax, 3
mov dword [ebp - 8], eax
cmp dword [edi + 0xc], 0
jne 0x10047768
call dword [sym.imp.USER32.dll_GetCapture]
test eax, eax
jne 0x10047768
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetCapture]
mov eax, dword [edi + 0xc]
mov esi, dword [ebp - 8]
bts eax, esi
push dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
mov dword [edi + 0xc], eax
call fcn.10019340
mov ecx, dword [ebp - 4]
push 1
push esi
call fcn.10019080
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call fcn.10046030
xor ecx, ecx
mov dword [ebp - 0x10], eax
cmp esi, 0x205
sete cl
mov dword [ebp - 8], ecx
cmp esi, 0x208
jne 0x100477b7
mov ecx, 2
jmp 0x100477cf
cmp esi, 0x20c
jne 0x100477d2
mov ecx, dword [ebp + 0x10]
shr ecx, 0x10
dec ecx
neg ecx
sbb ecx, ecx
neg ecx
add ecx, 3
mov dword [ebp - 8], ecx
mov eax, dword [edi + 0xc]
btr eax, ecx
mov dword [edi + 0xc], eax
test eax, eax
jne 0x100477f0
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp + 8]
jne 0x100477f0
call dword [sym.imp.USER32.dll_ReleaseCapture]
push dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
call fcn.10019340
mov ecx, dword [ebp - 4]
push 0
push dword [ebp - 8]
call fcn.10019080
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
sub esp, 8
shr eax, 0x10
cwde
movd xmm0, eax
cvtdq2ps xmm0, xmm0
divss xmm0, dword [0x100ff0e8]
movss dword [esp + 4], xmm0
mov dword [esp], 0
call fcn.10019380
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
sub esp, 8
shr eax, 0x10
cwde
mov dword [esp + 4], 0
movd xmm0, eax
cvtdq2ps xmm0, xmm0
xorps xmm0, xmmword [0x100f92b0]
divss xmm0, dword [0x100ff0e8]
movss dword [esp], xmm0
call fcn.10019380
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x10], 7
jne case.0x1004769e.527
mov byte [edi + 0x29], 1
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret