Function at 0x100200b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1016d120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov al, byte [esi + 0x38c]
lea ecx, [esi + 0x38c]
push edi
test al, al
lea edi, [esi + 0x38d]
mov al, 1
jne 0x100203a9
push ebx
xchg byte [ecx], al
mov ecx, esi
call fcn.10020030
push dword [esi + 0x388]
push dword [esi + 4]
call fcn.10012ac0
mov al, byte [edi]
add esp, 8
test al, al
je 0x10020265
push 4
push dword [esi + 4]
mov dword [ebp - 0x40], 0
call dword [sym.imp.USER32.dll_GetWindow]
push 0
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x320
push 0x3001
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov esi, dword [esi + 4]
xorps xmm0, xmm0
push esi
movups xmmword [ebp - 0x20], xmm0
xor ebx, ebx
mov dword [ebp - 8], 0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1002022e
nop dword [eax]
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x1002022e
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jne 0x100201b3
cmp dword [ebp - 0x20], esi
jne 0x100201f1
mov eax, dword [ebp - 0x18]
push 1
push edi
mov dword [ebp - 0x40], eax
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0x1c]
mov ebx, 1
cmp eax, 0x20a
jne 0x100201c5
test dword [ebp - 0x18], 8
jne 0x1002021b
jmp 0x100201f1
cmp eax, 0x100
jne 0x100201f1
cmp dword [ebp - 0x18], 0x74
je 0x1002021b
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x100201f1
mov eax, dword [ebp - 0x18]
cmp eax, 0x46
je 0x10020215
cmp eax, 0x4f
je 0x10020215
cmp eax, 0x50
je 0x10020215
lea eax, [ebp - 0x20]
push eax
call fcn.1004bd20
add esp, 4
test al, al
jne 0x10020215
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x1c], 0x12
je 0x1002022e
test ebx, ebx
jne 0x1002022e
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x10020170
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebp - 0x1c], 0x12
jne 0x10020395
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 0x40]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003161c
mov esp, ebp
pop ebp
ret
mov al, 1
xchg byte [edi], al
push 4
push dword [esi + 4]
mov dword [ebp - 0x40], 0
call dword [sym.imp.USER32.dll_GetWindow]
push 1
push dword [esi + 4]
mov edi, eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov esi, dword [esi + 4]
xorps xmm0, xmm0
push esi
movups xmmword [ebp - 0x3c], xmm0
xor ebx, ebx
mov dword [ebp - 0x24], 0
movq qword [ebp - 0x2c], xmm0
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10020376
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x10020376
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jne 0x100202fb
cmp dword [ebp - 0x3c], esi
jne 0x10020339
mov eax, dword [ebp - 0x34]
push 1
push edi
mov dword [ebp - 0x40], eax
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0x38]
mov ebx, 1
cmp eax, 0x20a
jne 0x1002030d
test dword [ebp - 0x34], 8
jne 0x10020363
jmp 0x10020339
cmp eax, 0x100
jne 0x10020339
cmp dword [ebp - 0x34], 0x74
je 0x10020363
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x10020339
mov eax, dword [ebp - 0x34]
cmp eax, 0x46
je 0x1002035d
cmp eax, 0x4f
je 0x1002035d
cmp eax, 0x50
je 0x1002035d
lea eax, [ebp - 0x3c]
push eax
call fcn.1004bd20
add esp, 4
test al, al
jne 0x1002035d
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x38], 0x12
je 0x10020376
test ebx, ebx
jne 0x10020376
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x100202b8
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebp - 0x38], 0x12
jne 0x10020395
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 0x40]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003161c
mov esp, ebp
pop ebp
ret
xchg byte [edi], al
mov ecx, esi
call fcn.10020030
push dword [esi + 0x388]
push dword [esi + 4]
call fcn.10012ac0
add esp, 8
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call fcn.10013130
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.1003161c
mov esp, ebp
pop ebp
ret