Function at 0x101f0dd8
Capabilities:
Get graphical window text
Log keystrokes

Disassembly:
sub esp, 0x224
mov eax, dword [0x1023904c]
xor eax, esp
mov dword [esp + 0x220], eax
push esi
mov esi, dword [esp + 0x230]
push edi
mov edi, dword [esp + 0x230]
xor eax, eax
inc eax
push esi
mov word [esp + 0x1c], ax
call fcn.100145f1
test ax, ax
je 0x101f0e16
and dword [esp + 0x10], 0
jmp 0x101f0e23
push esi
call fcn.1015692e
movzx eax, ax
mov dword [esp + 0x10], eax
push ebx
push ebp
lea eax, [esp + 0x20]
push eax
push edi
call fcn.1001531d
mov ebp, dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
cmp word [ebx], 8
jne 0x101f0f57
push dword [ebx + 8]
push 0
call fcn.101fbe91
mov edi, eax
test edi, edi
jne 0x101f0fcd
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x101f0e62
mov eax, dword [ecx - 4]
shr eax, 1
mov edi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
call edi
mov dword [esp + 0x10], eax
test eax, eax
jne 0x101f0eda
xor esi, esi
mov ebx, dword [esp + 0x10]
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call ebp
mov edi, eax
test edi, edi
je 0x101f0ecf
test esi, esi
je 0x101f0ecb
push 0x1ff
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push ebx
lea eax, [esp + 0x34]
push eax
push esi
call dword [sym.imp.msvcr100.dll__mbsnicmp]
add esp, 0xc
test eax, eax
je 0x101f0ecb
push 2
push edi
call ebp
mov edi, eax
test edi, edi
jne 0x101f0e97
test edi, edi
jne 0x101f0f4b
push 5
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
jmp 0x101f0f43
push eax
call fcn.1000ac41
mov esi, eax
test esi, esi
je 0x101f0e82
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x101f0ef1
xor eax, eax
jmp 0x101f0ef6
mov eax, dword [ecx - 4]
shr eax, 1
mov ebx, dword [esp + 0x10]
push 0
push 0
push ebx
push esi
push eax
push ecx
push 0
push 0
call edi
jmp 0x101f0e86
test esi, esi
je 0x101f0fcd
push 0x1ff
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jl 0x101f0f40
sub eax, ebx
push ebx
lea eax, [esp + eax + 0x34]
push eax
push esi
call dword [sym.imp.msvcr100.dll__mbsnicmp]
add esp, 0xc
test eax, eax
je 0x101f0f4b
push 2
push edi
call ebp
mov edi, eax
test edi, edi
jne 0x101f0f0d
test esi, esi
je 0x101f0fcd
push esi
call fcn.1000ac28
jmp 0x101f0fcd
push ebx
call fcn.1015692e
mov ebx, dword [sym.imp.USER32.dll_GetDesktopWindow]
push 5
mov esi, eax
call ebx
push eax
call ebp
mov edi, eax
test edi, edi
je 0x101f0fa9
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [esp + 0x14], esi
jne 0x101f0f9a
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x101f0f9a
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x101f0fa5
push 2
push edi
call ebp
mov edi, eax
test edi, edi
jne 0x101f0f72
test edi, edi
jne 0x101f0fcd
push 5
call ebx
push eax
jmp 0x101f0fc5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [esp + 0x14], esi
je 0x101f0fcd
push 2
push edi
call ebp
mov edi, eax
test edi, edi
jne 0x101f0fb0
mov ecx, 0x102391b8
call fcn.10014cf3
test edi, edi
jne 0x101f0fe2
push 5
call fcn.10089e37
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x101f0ff8
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x101f1043
push 0
push edi
call ebp
mov esi, eax
test esi, esi
je 0x101f103a
push 4
push esi
call ebp
cmp eax, edi
jne 0x101f102b
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x101f1022
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x101f1036
push 0
push esi
mov edi, esi
call ebp
mov esi, eax
push 2
push esi
call ebp
mov esi, eax
test esi, esi
jne 0x101f1003
test esi, esi
jne 0x101f1041
push 5
call fcn.10089e37
mov edi, esi
cmp word [esp + 0x18], 0
pop ebp
pop ebx
je 0x101f1058
mov eax, dword [0x102390a8]
call dword [eax + 0x94]
push 1
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push eax
push 0
call esi
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push edi
call dword [sym.imp.USER32.dll_SetFocus]
push 0
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
push 0
call esi
mov ecx, dword [esp + 0x228]
pop edi
pop esi
xor ecx, esp
call fcn.10001e57
add esp, 0x224
ret 8