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

Disassembly:
sub esp, 0x224
mov eax, dword [0x100436e0]
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.1000d09b
test ax, ax
je 0x10017e02
and dword [esp + 0x10], 0
jmp 0x10017e0f
push esi
call fcn.1000839c
movzx eax, ax
mov dword [esp + 0x10], eax
push ebx
push ebp
lea eax, [esp + 0x20]
push eax
push edi
call fcn.10010227
mov ebp, dword [sym.imp.user32.dll_GetWindow]
mov ebx, eax
cmp word [ebx], 8
jne 0x10017f43
push dword [ebx + 8]
push 0
call fcn.10009d62
mov edi, eax
test edi, edi
jne 0x10017fb9
mov ecx, dword [ebx + 8]
test ecx, ecx
je 0x10017e4e
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 0x10017ec6
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 0x10017ebb
test esi, esi
je 0x10017eb7
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 0x10017eb7
push 2
push edi
call ebp
mov edi, eax
test edi, edi
jne 0x10017e83
test edi, edi
jne 0x10017f37
push 5
call dword [sym.imp.user32.dll_GetDesktopWindow]
push eax
jmp 0x10017f2f
push eax
call fcn.10008870
mov esi, eax
test esi, esi
je 0x10017e6e
mov ecx, dword [ebx + 8]
test ecx, ecx
jne 0x10017edd
xor eax, eax
jmp 0x10017ee2
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 0x10017e72
test esi, esi
je 0x10017fb9
push 0x1ff
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.user32.dll_GetWindowTextA]
cmp eax, ebx
jl 0x10017f2c
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 0x10017f37
push 2
push edi
call ebp
mov edi, eax
test edi, edi
jne 0x10017ef9
test esi, esi
je 0x10017fb9
push esi
call fcn.100088c0
jmp 0x10017fb9
push ebx
call fcn.1000839c
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 0x10017f95
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.user32.dll_GetWindowThreadProcessId]
cmp dword [esp + 0x14], esi
jne 0x10017f86
push edi
call dword [sym.imp.user32.dll_IsWindowEnabled]
test eax, eax
je 0x10017f86
push edi
call dword [sym.imp.user32.dll_IsWindowVisible]
test eax, eax
jne 0x10017f91
push 2
push edi
call ebp
mov edi, eax
test edi, edi
jne 0x10017f5e
test edi, edi
jne 0x10017fb9
push 5
call ebx
push eax
jmp 0x10017fb1
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.user32.dll_GetWindowThreadProcessId]
cmp dword [esp + 0x14], esi
je 0x10017fb9
push 2
push edi
call ebp
mov edi, eax
test edi, edi
jne 0x10017f9c
mov ecx, 0x10043888
call sym.EXPSRV.dll___vbaFreeVar
test edi, edi
jne 0x10017fce
push 5
call fcn.1000c0de
push edi
call dword [sym.imp.user32.dll_IsWindowEnabled]
test eax, eax
je 0x10017fe4
push edi
call dword [sym.imp.user32.dll_IsWindowVisible]
test eax, eax
jne 0x1001802f
push 0
push edi
call ebp
mov esi, eax
test esi, esi
je 0x10018026
push 4
push esi
call ebp
cmp eax, edi
jne 0x10018017
push esi
call dword [sym.imp.user32.dll_IsWindowEnabled]
test eax, eax
je 0x1001800e
push esi
call dword [sym.imp.user32.dll_IsWindowVisible]
test eax, eax
jne 0x10018022
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 0x10017fef
test esi, esi
jne 0x1001802d
push 5
call fcn.1000c0de
mov edi, esi
cmp word [esp + 0x18], 0
pop ebp
pop ebx
je 0x10018041
mov eax, dword [0x10043900]
call dword [eax + 0x14]
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.10029dae
add esp, 0x224
ret 8