Function at 0x478e4e
Capabilities:
Get graphical window text

Disassembly:
push 0x270
mov eax, 0x6e4644
call fcn.00682c92
mov esi, ecx
mov dword [ebp - 0x274], esi
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x270], ebx
test ebx, ebx
je 0x4791c3
cmp byte [esi + 0x39], 0
je 0x478ee6
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [esi + 4]
jne 0x478ee6
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x478ee6
push dword [ebp - 0x278]
mov edi, dword [esi + 4]
push dword [ebp - 0x27c]
call dword [sym.imp.USER32.dll_WindowFromPoint]
push 0
push 0
push 0xf2
push edi
cmp eax, edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
jne 0x478eda
call edi
test al, 4
jne 0x478ee6
push 0
push 1
push 0xf3
push dword [esi + 4]
call edi
jmp 0x4791c3
call edi
test al, 4
je 0x478ee6
push 0
push 0
jmp 0x478ecb
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00689b00
mov ebx, dword [ebx + 0x18]
add esp, 0xc
mov dword [ebp - 0x26c], ebx
mov esi, dword [ebp - 0x270]
lea edi, [ebp - 0x228]
add esi, 0x1c
and dword [ebp - 4], 0
push 0x103
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x21c]
sub eax, dword [ebp - 0x224]
mov esi, dword [ebp - 0x274]
mov edi, dword [ebp - 0x220]
sub edi, dword [ebp - 0x228]
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x218]
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 1
push ebx
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
lea eax, [ebp - 0x264]
push eax
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
lea eax, [ebp - 0x218]
push eax
call fcn.006a37ec
mov eax, dword [ebp - 0x270]
pop ecx
mov eax, dword [eax + 0x10]
test al, 4
je 0x47903c
mov eax, dword [esi + 0x48]
test eax, eax
jne 0x478fc3
cmp dword [esi + 0x70], eax
jne 0x478fc7
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x26c]
call fcn.0047921c
jmp 0x478fe0
cmp dword [esi + 0x70], 0
push dword [ebp - 0x268]
cmovne eax, dword [esi + 0x70]
push edi
push 0
push 0
push eax
push ebx
call fcn.00477855
add esp, 0x18
cmp dword [esi + 0x60], 0
je 0x478ff8
push 0xf
push 5
lea eax, [ebp - 0x228]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawEdge]
push 0x11
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [esi + 0x7c], 0
je 0x4791c3
lea eax, [ebp - 0x218]
push eax
call fcn.006a37ec
pop ecx
push 0x25
lea ecx, [ebp - 0x228]
push ecx
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x4791c3
test al, 1
je 0x4790a7
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x479069
cmp dword [esi + 0x70], eax
jne 0x47906d
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x26c]
call fcn.0047921c
jmp 0x479086
cmp dword [esi + 0x70], 0
push dword [ebp - 0x268]
cmovne eax, dword [esi + 0x70]
push edi
push 0
push 0
push eax
push ebx
call fcn.00477855
add esp, 0x18
cmp dword [esi + 0x60], 0
je 0x479149
push 0xf
push 0xa
lea eax, [ebp - 0x228]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawEdge]
jmp 0x479149
mov ecx, dword [esi + 0x40]
xor edx, edx
test ecx, ecx
jne 0x4790d2
cmp dword [esi + 0x70], edx
jne 0x4790d2
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x26c]
call fcn.0047921c
jmp 0x47910e
cmp byte [esi + 0x38], 0
je 0x4790f3
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4790f3
push dword [ebp - 0x268]
cmp dword [esi + 0x70], 0
push edi
cmovne eax, dword [esi + 0x70]
push edx
push edx
push eax
jmp 0x479105
push dword [ebp - 0x268]
cmp dword [esi + 0x70], 0
push edi
cmovne ecx, dword [esi + 0x70]
push edx
push edx
push ecx
push ebx
call fcn.00477855
add esp, 0x18
cmp dword [esi + 0x60], 0
je 0x479126
push 0xf
push 5
lea eax, [ebp - 0x228]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawEdge]
cmp dword [esi + 0x68], 0
je 0x479149
cmp dword [esi + 0x6c], 0
je 0x479149
push dword [ebp - 0x268]
push edi
push 0
push 0
push dword [esi + 0x68]
push ebx
call fcn.00477855
add esp, 0x18
mov ecx, dword [ebp - 0x270]
mov edi, dword [sym.imp.USER32.dll_DrawFocusRect]
test byte [ecx + 0x10], 0x10
je 0x479189
movzx eax, word [esi + 0x54]
test ax, ax
jle 0x479189
cwde
add dword [ebp - 0x228], eax
add dword [ebp - 0x224], eax
sub dword [ebp - 0x220], eax
sub dword [ebp - 0x21c], eax
lea eax, [ebp - 0x228]
push eax
push dword [ecx + 0x18]
call edi
cmp dword [esi + 0x7c], 0
je 0x4791ad
lea eax, [ebp - 0x228]
push eax
push ecx
lea eax, [ebp - 0x218]
mov ecx, esp
push eax
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t__
push ebx
mov ecx, esi
call fcn.00479cd1
cmp byte [esi + 0x3a], 0
je 0x4791c3
cmp dword [esi + 0x78], 0
je 0x4791c3
lea eax, [ebp - 0x228]
push eax
push ebx
call edi
call fcn.00682c3c
ret 8