Function at 0x10089ed0
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x34
mov eax, dword [0x101b03d4]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x40]
push ebp
mov ebp, dword [esp + 0x40]
test ebp, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 4], ecx
jne 0x10089f04
push eax
call fcn.10089450
add esp, 4
mov ebp, eax
mov ch, ch
push ebp
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x10089f1f
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100fb12a
add esp, 0x34
ret
push ebx
push esi
push edi
push 5
push ebp
call fcn.100522e0
add esp, 8
test eax, eax
je 0x10089fac
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov esi, eax
mov bh, bh
push 0
push ebp
call fcn.100522a0
add esp, 8
mov edi, eax
mov edx, edx
push 1
push edi
push esi
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ch, ch
call dword [sym.imp.USER32.dll_GetFocus]
mov ebx, eax
push ebx
pop ebx
push 0
push edi
push esi
call dword [sym.imp.USER32.dll_AttachThreadInput]
push edx
pop edx
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push ebx
call edi
test eax, eax
je 0x10089fac
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x10089fac
mov esi, ebx
mov eax, eax
push ebx
call edi
test eax, eax
je 0x10089fac
nop
cmp esi, ebp
je 0x10089fa8
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
mov eax, eax
push esi
call edi
test eax, eax
jne 0x10089f90
jmp 0x10089fac
mov ebp, ebx
mov cl, cl
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x10089fb3
sub eax, edx
mov esi, eax
mov eax, eax
lea edi, [esi + esi + 2]
push edi
call fcn.100fab8c
mov ebx, eax
add esp, 4
mov dword [esp + 0x14], ebx
nop
test ebx, ebx
jne 0x10089fed
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100fb12a
add esp, 0x34
ret
push edi
push 0
push ebx
call fcn.100fbc20
add esp, 0xc
mov ebx, ebx
mov edx, dword [esp + 0x10]
add esi, 1
push esi
push ebx
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov edx, edx
mov eax, ebx
lea edx, [eax + 2]
jmp 0x1008a020
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1008a020
sub eax, edx
sar eax, 1
mov dword [esp + 0x18], eax
mov dl, dl
mov esi, esi
xor ebx, ebx
test eax, eax
jle 0x1008a0f2
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
jmp 0x1008a050
mov bh, bh
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov edi, edi
push eax
push eax
push 0x20
lea eax, [esp + 0x2c]
push eax
push 1
push esi
push 0
push 0
call edi
push ecx
pop ecx
mov dword [esp + 0x10], 0
mov bh, bh
mov eax, dword [esp + 0x20]
xor edx, edx
mov dh, al
lea ecx, [esp + 0x10]
push ecx
push 0x9c4
push 1
movzx eax, ah
push 1
or edx, eax
push edx
push 0x286
push ebp
call fcn.10052250
add esp, 0x1c
mov esi, esi
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x37fc]
test eax, eax
je 0x1008a0e2
mov edx, dword [esp + 0x18]
add edx, 0xffffffff
cmp ebx, edx
jge 0x1008a0e2
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
push ecx
pop ecx
add ebx, 1
add esi, 2
cmp ebx, dword [esp + 0x18]
jl 0x1008a050
mov eax, dword [esp + 0x14]
push eax
call fcn.100fac4f
add esp, 4
mov bl, bl
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
pop ebp
xor ecx, esp
mov eax, 1
call fcn.100fb12a
add esp, 0x34
ret