Function at 0x10020330
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x10175120]
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 0x10020679
mov al, 1
xchg byte [ecx], al
mov al, byte [esi + 0x38e]
test al, al
jne 0x100203ab
cmp dword [esi + 0x374], 0
je 0x100203ab
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 0x100203a2
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.1001fdc0
push ebx
push edi
mov ecx, esi
call fcn.100202b0
push dword [esi + 0x388]
push dword [esi + 4]
call fcn.10012b90
mov al, byte [esi + 0x38d]
lea ecx, [esi + 0x38d]
add esp, 8
test al, al
je 0x10020535
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 0x100204fe
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 0x100204fe
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jne 0x10020483
cmp dword [ebp - 0x20], esi
jne 0x100204c1
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 0x10020495
test dword [ebp - 0x18], 8
jne 0x100204eb
jmp 0x100204c1
cmp eax, 0x100
jne 0x100204c1
cmp dword [ebp - 0x18], 0x74
je 0x100204eb
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x100204c1
mov eax, dword [ebp - 0x18]
cmp eax, 0x46
je 0x100204e5
cmp eax, 0x4f
je 0x100204e5
cmp eax, 0x50
je 0x100204e5
lea eax, [ebp - 0x20]
push eax
call fcn.1004bae0
add esp, 4
test al, al
jne 0x100204e5
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 0x100204fe
test ebx, ebx
jne 0x100204fe
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x10020440
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 0x10020665
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.10031d6d
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 0x10020646
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x10020646
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jne 0x100205cb
cmp dword [ebp - 0x3c], esi
jne 0x10020609
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 0x100205dd
test dword [ebp - 0x34], 8
jne 0x10020633
jmp 0x10020609
cmp eax, 0x100
jne 0x10020609
cmp dword [ebp - 0x34], 0x74
je 0x10020633
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x10020609
mov eax, dword [ebp - 0x34]
cmp eax, 0x46
je 0x1002062d
cmp eax, 0x4f
je 0x1002062d
cmp eax, 0x50
je 0x1002062d
lea eax, [ebp - 0x3c]
push eax
call fcn.1004bae0
add esp, 4
test al, al
jne 0x1002062d
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 0x10020646
test ebx, ebx
jne 0x10020646
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x10020588
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 0x10020665
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.10031d6d
mov esp, ebp
pop ebp
ret
mov cl, 1
lea eax, [esi + 0x38d]
xchg byte [eax], cl
mov ecx, esi
call fcn.100202b0
push dword [esi + 0x388]
push dword [esi + 4]
call fcn.10012b90
add esp, 8
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call fcn.10013200
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop esi
call fcn.10031d6d
mov esp, ebp
pop ebp
ret