Function at 0x72a1ce42
Capabilities:
Get graphical window text
Get thread local storage value
Log keystrokes

Disassembly:
sub esp, 0x224
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
cmp word [edi], 0xa
jne 0x72a1cf41
cmp dword [edi + 8], 0x80020004
jne 0x72a1cf41
or esi, 0xffffffff
xor ebp, ebp
push dword [0x72a4ef9c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add eax, 0x50
cmp si, bp
mov dword [esp + 0x1c], eax
mov word [esp + 0x24], 1
je 0x72a1cf4a
mov dword [esp + 0x18], ebp
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x23c]
call fcn.72a218ab
mov edi, dword [sym.imp.USER32.dll_GetWindow]
mov ebx, eax
cmp word [ebx], 8
jne 0x72a1d0ac
push dword [ebx + 8]
push ebp
call fcn.72a21fa0
mov esi, eax
cmp esi, ebp
jne 0x72a1cff1
mov ecx, dword [ebx + 8]
cmp ecx, ebp
jne 0x72a1cf59
xor eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
push ebp
push ebp
push eax
push ecx
push ebp
push ebp
call esi
mov ebp, eax
test ebp, ebp
jne 0x72a1cf63
and dword [esp + 0x10], eax
mov ebx, dword [sym.imp.USER32.dll_GetDesktopWindow]
push 5
call ebx
push eax
call edi
mov esi, eax
test esi, esi
je 0x72a1cf99
cmp dword [esp + 0x10], 0
je 0x72a1cf95
lea eax, [esp + 0x34]
push 0x1ff
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea eax, [esp + 0x34]
push ebp
push eax
push dword [esp + 0x18]
call fcn.72a1e58f
add esp, 0xc
test eax, eax
je 0x72a1cf95
push 2
push esi
jmp 0x72a1cefe
xor ebp, ebp
xor esi, esi
jmp 0x72a1ce6f
push edi
call fcn.72a20050
mov dword [esp + 0x18], eax
jmp 0x72a1ce96
mov eax, dword [ecx - 4]
shr eax, 1
jmp 0x72a1ced9
push ebp
call fcn.72945484
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x10], eax
je 0x72a1cef3
mov ebx, dword [ebx + 8]
cmp ebx, ecx
jne 0x72a1cf8e
xor eax, eax
push ecx
push ecx
push ebp
push dword [esp + 0x1c]
push eax
push ebx
push ecx
push ecx
call esi
jmp 0x72a1cef3
mov eax, dword [ebx - 4]
shr eax, 1
jmp 0x72a1cf7c
test esi, esi
jne 0x72a1cfdf
push 5
call ebx
push eax
call edi
mov esi, eax
test esi, esi
je 0x72a1cfdf
cmp dword [esp + 0x10], 0
je 0x72a1cfef
lea eax, [esp + 0x34]
push 0x1ff
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebp
jl 0x72a1cfda
lea eax, [esp + eax + 0x34]
push ebp
sub eax, ebp
push eax
push dword [esp + 0x18]
call fcn.72a1e58f
add esp, 0xc
test eax, eax
je 0x72a1cfdf
push 2
push esi
jmp 0x72a1cf9e
cmp dword [esp + 0x10], 0
je 0x72a1cfef
push dword [esp + 0x10]
call fcn.7294d14e
xor ebp, ebp
mov ecx, dword [esp + 0x1c]
call sym.MSVBVM60.DLL___vbaFreeVar
cmp esi, ebp
jne 0x72a1d005
push 5
call fcn.72a0e22c
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x72a1d01b
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x72a1d05e
push ebp
push esi
call edi
mov ebx, eax
cmp ebx, ebp
je 0x72a1d055
push 4
push ebx
call edi
cmp eax, esi
jne 0x72a1d04c
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x72a1d044
push ebx
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x72a1d051
push ebp
push ebx
mov esi, ebx
call edi
mov ebx, eax
push 2
push ebx
jmp 0x72a1d01d
cmp ebx, ebp
jne 0x72a1d05c
push 5
call fcn.72a0e22c
mov esi, ebx
cmp word [esp + 0x18], bp
je 0x72a1d06a
call fcn.729a33e1
mov ebx, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea eax, [esp + 0x20]
push 1
push eax
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
push eax
push ebp
call edi
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
lea eax, [esp + 0x20]
push ebp
push eax
push esi
call ebx
push eax
push ebp
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x224
ret 8
push ebx
call fcn.72a200a1
mov ebx, dword [sym.imp.USER32.dll_GetDesktopWindow]
push 5
mov dword [esp + 0x14], eax
call ebx
push eax
call edi
mov esi, eax
cmp esi, ebp
je 0x72a1d102
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jne 0x72a1d0f5
push esi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x72a1d0f5
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x72a1d0fa
push 2
push esi
jmp 0x72a1d0c1
cmp esi, ebp
jne 0x72a1cff1
push 5
call ebx
push eax
call edi
mov esi, eax
cmp esi, ebp
je 0x72a1cff1
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
je 0x72a1cff1
push 2
push esi
jmp 0x72a1d107