Function at 0x493ca0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ee7b
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x610304]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
test edi, edi
mov esi, ecx
je 0x494044
cmp byte [esi + 0x39], 0
je 0x493d47
lea ebx, [esi + 4]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebx]
jne 0x493d47
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x493d47
mov ecx, dword [ebp - 0x238]
mov edx, dword [ebp - 0x23c]
push ecx
push edx
call dword [sym.imp.USER32.dll_WindowFromPoint]
cmp eax, dword [ebx]
mov ecx, ebx
jne 0x493d30
call fcn.00492c40
test al, 4
jne 0x493d47
push 1
mov ecx, ebx
call fcn.00492c60
jmp 0x494044
call fcn.00492c40
test al, 4
je 0x493d47
push 0
mov ecx, ebx
call fcn.00492c60
jmp 0x494044
push 0x206
lea eax, [ebp - 0x216]
push 0
push eax
mov word [ebp - 0x218], 0
call sub.MSVCR80.dll_memset
mov ebx, dword [edi + 0x18]
add esp, 0xc
mov dword [ebp - 0x234], ebx
mov edx, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
mov dword [ebp - 0x22c], ecx
mov ecx, dword [edi + 0x28]
mov dword [ebp - 0x228], eax
sub eax, edx
mov dword [ebp - 0x230], edx
push 0x103
lea edx, [ebp - 0x218]
mov dword [ebp - 0x224], ecx
sub ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x21c], eax
mov eax, dword [esi + 4]
push edx
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], ecx
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 ecx, [ebp - 0x278]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [edi + 0x10]
test al, 4
je 0x493eac
mov eax, dword [esi + 0x48]
test eax, eax
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
jne 0x493e22
cmp dword [esi + 0x70], 0
jne 0x493e22
push 0xf
call edi
push eax
lea edx, [ebp - 0x230]
push edx
lea ecx, [ebp - 0x234]
call fcn.00456000
jmp 0x493e47
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x493e2b
mov eax, ecx
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x21c]
push ecx
push edx
push 0
push 0
push eax
push ebx
call fcn.00491e20
add esp, 0x18
cmp dword [esi + 0x60], 0
je 0x493e5f
push 0xf
push 5
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawEdge]
push 0x11
call edi
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
cmp dword [esi + 0x7c], 0
je 0x494044
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x493e80
push 0x25
sub eax, edx
lea ecx, [ebp - 0x230]
push ecx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
jmp 0x494044
test al, 1
je 0x493f1f
mov ecx, dword [esi + 0x44]
test ecx, ecx
jne 0x493ed9
cmp dword [esi + 0x70], ecx
jne 0x493ed9
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x234]
call fcn.00456000
jmp 0x493efe
mov eax, dword [esi + 0x70]
test eax, eax
jne 0x493ee2
mov eax, ecx
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x21c]
push ecx
push edx
push 0
push 0
push eax
push ebx
call fcn.00491e20
add esp, 0x18
cmp dword [esi + 0x60], 0
je 0x493fc6
push 0xf
push 0xa
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.USER32.dll_DrawEdge]
jmp 0x493fc6
mov edx, dword [esi + 0x40]
test edx, edx
jne 0x493f48
cmp dword [esi + 0x70], edx
jne 0x493f48
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x234]
call fcn.00456000
jmp 0x493f85
cmp byte [esi + 0x38], 0
je 0x493f60
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x493f60
mov eax, dword [esi + 0x70]
test eax, eax
jne 0x493f69
mov eax, ecx
jmp 0x493f69
mov eax, dword [esi + 0x70]
test eax, eax
jne 0x493f69
mov eax, edx
mov edx, dword [ebp - 0x220]
mov ecx, dword [ebp - 0x21c]
push edx
push ecx
push 0
push 0
push eax
push ebx
call fcn.00491e20
add esp, 0x18
cmp dword [esi + 0x60], 0
je 0x493f9d
push 0xf
push 5
lea edx, [ebp - 0x230]
push edx
push ebx
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [esi + 0x68]
test eax, eax
je 0x493fc6
cmp dword [esi + 0x6c], 0
je 0x493fc6
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x21c]
push ecx
push edx
push 0
push 0
push eax
push ebx
call fcn.00491e20
add esp, 0x18
test byte [edi + 0x10], 0x10
je 0x494000
cmp word [esi + 0x54], 0
jle 0x494000
movsx eax, word [esi + 0x54]
add dword [ebp - 0x230], eax
add dword [ebp - 0x22c], eax
sub dword [ebp - 0x228], eax
sub dword [ebp - 0x224], eax
mov ecx, dword [edi + 0x18]
lea eax, [ebp - 0x230]
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawFocusRect]
cmp dword [esi + 0x7c], 0
je 0x49402a
lea edx, [ebp - 0x230]
push edx
push ecx
lea eax, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x21c], esp
push eax
call sym.txupd.exe_public:_void___thiscall_CTXStringW::constructor_wchar_t__
push ebx
mov ecx, esi
call fcn.00493a50
cmp byte [esi + 0x3a], 0
je 0x494044
cmp dword [esi + 0x78], 0
je 0x494044
lea ecx, [ebp - 0x230]
push ecx
push ebx
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00584870
mov esp, ebp
pop ebp
ret 8