Function at 0x4509f0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x82c
push ebx
push esi
push 0x47dfb8
push eax
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, dword [esp + 0x83c]
mov ebx, eax
cmp dword [esi], 4
je 0x450a23
pop esi
xor al, al
pop ebx
add esp, 0x82c
ret 8
mov ecx, dword [esi + 0x14]
push ebp
push edi
push 0
push 0
push 0x31
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
lea ebp, [esi + 0x1c]
lea edx, [esp + 0x24]
push ebp
push edx
mov edi, eax
call dword [sym.imp.USER32.dll_CopyRect]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
push ecx
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 0x18], eax
call dword [sym.imp.GDI32.dll_SaveDC]
mov edx, dword [esi + 0x18]
push edi
push edx
mov dword [esp + 0x24], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esi + 0x18]
push 1
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esi + 0x14]
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x3e]
mov word [esp + 0x3c], 0
push 0x400
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x40]
push ecx
push edx
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 4]
mov ecx, ebx
mov dword [esp + 0x18], eax
call fcn.00451ba0
lea ecx, [esp + 0x18]
mov edi, eax
push ecx
mov ecx, edi
call fcn.00457be0
mov edi, dword [edi + 4]
mov dword [esp + 0x34], eax
cmp eax, edi
je 0x450ade
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + 0xc]
cmp edx, ecx
jl 0x450ade
lea eax, [esp + 0x34]
jmp 0x450ae6
mov dword [esp + 0x10], edi
lea eax, [esp + 0x10]
mov edi, dword [eax]
mov ecx, ebx
call fcn.00451ba0
cmp edi, dword [eax + 4]
jne 0x450b1f
mov ecx, ebx
call fcn.00451ba0
xor ecx, ecx
lea edx, [esp + 0x34]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x10]
push ecx
push edx
mov ecx, eax
call fcn.00455500
mov eax, dword [esp + 0x34]
mov edi, dword [eax + 0x10]
jmp 0x450b22
mov edi, dword [edi + 0x10]
mov eax, dword [esi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, 0xfffffffb
je 0x450ba6
test byte [esi + 0x10], 1
je 0x450b3d
mov eax, dword [edi + 0x70]
jmp 0x450b40
mov eax, dword [edi + 0x6c]
mov ecx, dword [eax + 4]
mov edx, dword [esi + 0x18]
mov eax, dword [eax]
push ecx
push edx
push eax
call fcn.0045a250
mov eax, dword [esi + 0x10]
add esp, 0xc
test al, 1
je 0x450b6c
mov edx, dword [esi + 0x20]
mov ecx, dword [ebp]
add edx, 2
add ecx, 2
mov dword [esi + 0x20], edx
mov dword [ebp], ecx
test al, 4
je 0x450b7a
mov ecx, dword [edi + 0x64]
mov edx, dword [esi + 0x18]
push ecx
push edx
jmp 0x450b82
mov eax, dword [edi + 0x60]
mov ecx, dword [esi + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea edx, [esp + 0x24]
push 0x25
lea eax, [esp + 0x40]
push edx
push eax
call ebx
mov edx, dword [esi + 0x18]
lea ecx, [esp + 0x44]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextW]
test byte [esi + 0xc], 4
jne 0x450bb6
test byte [esi + 0x10], 0x10
je 0x450c3f
lea eax, [esp + 0x10]
lea ecx, [esp + 0x3c]
push eax
push ecx
call ebx
push eax
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x44]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
sub eax, ebp
sub eax, ebx
mov edi, dword [esp + 0x10]
cdq
sub eax, edx
mov edx, dword [esp + 0x24]
sar eax, 1
mov ecx, 2
sub ecx, eax
mov eax, dword [esp + 0x2c]
sub eax, edi
push ecx
sub eax, edx
cdq
sub eax, edx
mov edx, 2
sar eax, 1
sub edx, eax
lea eax, [esp + 0x28]
push edx
push eax
call dword [sym.imp.USER32.dll_InflateRect]
mov edx, dword [esi + 0x18]
lea ecx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawFocusRect]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x840]
push 0
push eax
push 0x401
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 0x18]
push edx
push eax
call dword [sym.imp.GDI32.dll_RestoreDC]
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [esp + 0x20]
pop edi
mov dword [esi + 0x18], eax
pop ebp
pop esi
mov al, 1
pop ebx
add esp, 0x82c
ret 8