Function at 0x10085220
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x34
mov eax, dword [0x101ad3b4]
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 0x10085252
push eax
call fcn.10084850
add esp, 4
mov ebp, eax
push ebp
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1008526d
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100f611a
add esp, 0x34
ret
push ebx
push esi
push edi
push 5
push ebp
call fcn.100515a0
add esp, 8
test eax, eax
je 0x100852e9
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push 0
push ebp
mov esi, eax
call fcn.10051560
add esp, 8
push 1
mov edi, eax
push edi
push esi
call dword [sym.imp.USER32.dll_AttachThreadInput]
call dword [sym.imp.USER32.dll_GetFocus]
push 0
push edi
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, dword [sym.imp.USER32.dll_IsWindow]
push ebx
call edi
test eax, eax
je 0x100852e9
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x100852e9
push ebx
mov esi, ebx
call edi
test eax, eax
je 0x100852e9
cmp esi, ebp
je 0x100852e7
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
push esi
call edi
test eax, eax
jne 0x100852d1
jmp 0x100852e9
mov ebp, ebx
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x100852f0
sub eax, edx
mov esi, eax
lea edi, [esi + esi + 2]
push edi
call fcn.100f5b7c
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x14], ebx
jne 0x10085327
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100f611a
add esp, 0x34
ret
push edi
push 0
push ebx
call fcn.100f6b80
mov edx, dword [esp + 0x1c]
add esp, 0xc
add esi, 1
push esi
push ebx
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, ebx
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10085350
sub eax, edx
sar eax, 1
xor ebx, ebx
test eax, eax
mov dword [esp + 0x10], eax
jle 0x1008540d
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
xor eax, eax
push eax
push eax
push 0x20
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 dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x2c]
push eax
push 1
push esi
push 0
push 0
call edi
mov eax, dword [esp + 0x20]
xor edx, edx
mov dh, al
lea ecx, [esp + 0x18]
push ecx
push 0x9c4
push 1
movzx eax, ah
push 1
or edx, eax
push edx
push 0x286
push ebp
mov dword [esp + 0x34], 0
call fcn.10051510
mov ecx, dword [esp + 0x38]
mov eax, dword [ecx + 0x37fc]
add esp, 0x1c
test eax, eax
je 0x100853fd
mov edx, dword [esp + 0x10]
add edx, 0xffffffff
cmp ebx, edx
jge 0x100853fd
push eax
call dword [sym.imp.KERNEL32.DLL_Sleep]
add ebx, 1
add esi, 2
cmp ebx, dword [esp + 0x10]
jl 0x10085377
mov eax, dword [esp + 0x14]
push eax
call fcn.100f5c3f
mov ecx, dword [esp + 0x44]
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
xor ecx, esp
mov eax, 1
call fcn.100f611a
add esp, 0x34
ret