Function at 0x10020100
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x10170120]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov al, byte [esi + 0x38c]
lea ecx, [esi + 0x38c]
test al, al
jne 0x10020449
mov al, 1
xchg byte [ecx], al
mov al, byte [esi + 0x38e]
test al, al
jne 0x1002017b
cmp dword [esi + 0x374], 0
je 0x1002017b
mov ecx, dword [esi + 0x348]
push 0
mov eax, dword [ecx]
call dword [eax + 0x114]
mov ecx, dword [esi + 0x344]
push 1
mov eax, dword [ecx]
call dword [eax + 0x114]
cmp dword [esi + 0x378], 8
lea eax, [esi + 0x364]
mov ecx, dword [eax + 0x10]
jb 0x10020172
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.1001fb90
push ebx
push edi
mov ecx, esi
call fcn.10020080
push dword [esi + 0x388]
push dword [esi + 4]
call fcn.10012ac0
mov al, byte [esi + 0x38d]
lea ecx, [esi + 0x38d]
add esp, 8
test al, al
je 0x10020305
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 0x100202ce
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 0x100202ce
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jne 0x10020253
cmp dword [ebp - 0x20], esi
jne 0x10020291
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 0x10020265
test dword [ebp - 0x18], 8
jne 0x100202bb
jmp 0x10020291
cmp eax, 0x100
jne 0x10020291
cmp dword [ebp - 0x18], 0x74
je 0x100202bb
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x10020291
mov eax, dword [ebp - 0x18]
cmp eax, 0x46
je 0x100202b5
cmp eax, 0x4f
je 0x100202b5
cmp eax, 0x50
je 0x100202b5
lea eax, [ebp - 0x20]
push eax
call fcn.1004be60
add esp, 4
test al, al
jne 0x100202b5
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 0x100202ce
test ebx, ebx
jne 0x100202ce
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x10020210
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 0x10020435
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 0x40]
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100316da
mov esp, ebp
pop ebp
ret
mov al, 1
xchg byte [ecx], 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 0x10020416
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x10020416
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jne 0x1002039b
cmp dword [ebp - 0x3c], esi
jne 0x100203d9
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 0x100203ad
test dword [ebp - 0x34], 8
jne 0x10020403
jmp 0x100203d9
cmp eax, 0x100
jne 0x100203d9
cmp dword [ebp - 0x34], 0x74
je 0x10020403
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x100203d9
mov eax, dword [ebp - 0x34]
cmp eax, 0x46
je 0x100203fd
cmp eax, 0x4f
je 0x100203fd
cmp eax, 0x50
je 0x100203fd
lea eax, [ebp - 0x3c]
push eax
call fcn.1004be60
add esp, 4
test al, al
jne 0x100203fd
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 0x10020416
test ebx, ebx
jne 0x10020416
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x10020358
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 0x10020435
push dword [ebp - 0x34]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 0x40]
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100316da
mov esp, ebp
pop ebp
ret
mov cl, 1
lea eax, [esi + 0x38d]
xchg byte [eax], cl
mov ecx, esi
call fcn.10020080
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 esi
call fcn.100316da
mov esp, ebp
pop ebp
ret