Function at 0x1008c500
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x28
mov eax, dword [0x101b629c]
xor eax, esp
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x34]
test edi, edi
mov dword [esp + 4], ecx
jne 0x1008c52e
push eax
call fcn.1008b660
add esp, 4
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1008c549
pop edi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100ff704
add esp, 0x28
ret
push ebx
push ebp
push esi
push 5
push edi
call fcn.10054350
add esp, 8
test eax, eax
je 0x1008c5c8
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push 0
push edi
mov esi, eax
call fcn.10054310
add esp, 8
push 1
mov ebp, eax
push ebp
push esi
call dword [sym.imp.USER32.dll_AttachThreadInput]
call dword [sym.imp.USER32.dll_GetFocus]
push 0
push ebp
push esi
mov ebx, eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ebp, dword [sym.imp.USER32.dll_IsWindow]
push ebx
call ebp
test eax, eax
je 0x1008c5c8
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1008c5c8
push ebx
mov esi, ebx
call ebp
test eax, eax
je 0x1008c5c8
lea ecx, [ecx]
cmp esi, edi
je 0x1008c5c6
push esi
call dword [sym.imp.USER32.dll_GetParent]
mov esi, eax
push esi
call ebp
test eax, eax
jne 0x1008c5b0
jmp 0x1008c5c8
mov edi, ebx
mov eax, dword [esp + 0x10]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1008c5d0
sub eax, edx
mov esi, eax
lea ebx, [esi + esi + 2]
push ebx
call fcn.100ff166
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x1008c603
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.100ff704
add esp, 0x28
ret
push ebx
push 0
push ebp
call fcn.10100160
mov edx, dword [esp + 0x1c]
add esp, 0xc
add esi, 1
push esi
push ebp
push 0xffffffffffffffff
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_MultiByteToWideChar]
mov eax, ebp
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1008c630
sub eax, edx
sar eax, 1
push edi
mov ebx, eax
call dword [sym.imp.USER32.dll_IsWindowUnicode]
test eax, eax
je 0x1008c689
xor esi, esi
test ebx, ebx
jle 0x1008c700
movzx ecx, word [ebp + esi*2]
lea eax, [esp + 0x10]
push eax
push 0x9c4
push 1
push 1
push ecx
push 0x286
push edi
mov dword [esp + 0x2c], 0
call fcn.100542c0
add esi, 1
add esp, 0x1c
cmp esi, ebx
jl 0x1008c656
jmp 0x1008c700
test ebx, ebx
jle 0x1008c700
mov esi, ebp
nop
xor eax, eax
push eax
push eax
push 0x20
lea edx, [esp + 0x20]
push edx
push 1
push esi
push eax
push 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
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
xor ecx, ecx
mov ch, al
push 0x9c4
push 1
movzx edx, ah
push 1
or ecx, edx
push ecx
push 0x286
push edi
mov dword [esp + 0x2c], 0
call fcn.100542c0
add esp, 0x1c
add esi, 2
sub ebx, 1
jne 0x1008c690
push ebp
call fcn.100ff229
mov ecx, dword [esp + 0x38]
add esp, 4
pop esi
pop ebp
pop ebx
pop edi
xor ecx, esp
mov eax, 1
call fcn.100ff704
add esp, 0x28
ret