Function at 0x10020110
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x10176120]
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 0x10020459
mov al, 1
xchg byte [ecx], al
mov al, byte [esi + 0x38e]
test al, al
jne 0x1002018b
cmp dword [esi + 0x374], 0
je 0x1002018b
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 0x10020182
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.1001fba0
push ebx
push edi
mov ecx, esi
call fcn.10020090
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 0x10020315
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 0x100202de
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 0x100202de
mov eax, dword [ebp - 0x1c]
cmp eax, 0x10
jne 0x10020263
cmp dword [ebp - 0x20], esi
jne 0x100202a1
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 0x10020275
test dword [ebp - 0x18], 8
jne 0x100202cb
jmp 0x100202a1
cmp eax, 0x100
jne 0x100202a1
cmp dword [ebp - 0x18], 0x74
je 0x100202cb
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x100202a1
mov eax, dword [ebp - 0x18]
cmp eax, 0x46
je 0x100202c5
cmp eax, 0x4f
je 0x100202c5
cmp eax, 0x50
je 0x100202c5
lea eax, [ebp - 0x20]
push eax
call fcn.1004c210
add esp, 4
test al, al
jne 0x100202c5
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 0x100202de
test ebx, ebx
jne 0x100202de
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x10020220
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 0x10020445
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.10031a8d
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 0x10020426
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x10020426
mov eax, dword [ebp - 0x38]
cmp eax, 0x10
jne 0x100203ab
cmp dword [ebp - 0x3c], esi
jne 0x100203e9
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 0x100203bd
test dword [ebp - 0x34], 8
jne 0x10020413
jmp 0x100203e9
cmp eax, 0x100
jne 0x100203e9
cmp dword [ebp - 0x34], 0x74
je 0x10020413
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x100203e9
mov eax, dword [ebp - 0x34]
cmp eax, 0x46
je 0x1002040d
cmp eax, 0x4f
je 0x1002040d
cmp eax, 0x50
je 0x1002040d
lea eax, [ebp - 0x3c]
push eax
call fcn.1004c210
add esp, 4
test al, al
jne 0x1002040d
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 0x10020426
test ebx, ebx
jne 0x10020426
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x10020368
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 0x10020445
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.10031a8d
mov esp, ebp
pop ebp
ret
mov cl, 1
lea eax, [esi + 0x38d]
xchg byte [eax], cl
mov ecx, esi
call fcn.10020090
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.10031a8d
mov esp, ebp
pop ebp
ret