Function at 0x452600
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x487db8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, dword [ebp + 0xc]
push str.PROP_PSKIN
push eax
mov dword [ebp - 0x824], eax
call dword [sym.imp.USER32.dll_GetPropW]
cmp dword [edi], 4
mov ebx, eax
je 0x452648
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440060
mov esp, ebp
pop ebp
ret 8
push esi
push 0
push 0
push 0x31
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
lea eax, [edi + 0x1c]
push eax
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov eax, dword [edi + 0x18]
push dword [edi + 0x14]
mov dword [ebp - 0x828], eax
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [edi + 0x18], eax
call dword [sym.imp.GDI32.dll_SaveDC]
push esi
push dword [edi + 0x18]
mov dword [ebp - 0x820], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push dword [edi + 0x18]
call dword [sym.imp.GDI32.dll_SetBkMode]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call fcn.004400d0
add esp, 0xc
lea eax, [ebp - 0x804]
push 0x400
push eax
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi + 4]
mov dword [ebp - 0x82c], eax
lea eax, [ebp - 0x82c]
push eax
lea eax, [ebp - 0x818]
push eax
mov ecx, ebx
call fcn.00452ac0
mov ecx, eax
call fcn.00455b40
mov ecx, ebx
call fcn.00452ac0
mov ecx, dword [ebp - 0x818]
cmp ecx, dword [eax]
jne 0x45272e
lea eax, [ebp - 0x818]
push eax
mov ecx, ebx
mov dword [ebp - 0x818], 0
call fcn.00452ac0
mov ecx, eax
call fcn.00451f50
mov esi, dword [eax]
jmp 0x452731
mov esi, dword [ecx + 0x14]
test dword [edi + 0xc], 0xfffffffb
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
je 0x4527a8
test byte [edi + 0x10], 1
je 0x45274e
mov eax, dword [esi + 0x80]
jmp 0x452751
mov eax, dword [esi + 0x7c]
push dword [eax + 4]
push dword [edi + 0x18]
push dword [eax]
call fcn.0045d620
mov eax, dword [edi + 0x10]
add esp, 0xc
test al, 1
je 0x452770
add dword [edi + 0x20], 2
add dword [edi + 0x1c], 2
test al, 4
je 0x452779
push dword [esi + 0x74]
jmp 0x45277c
push dword [esi + 0x70]
push dword [edi + 0x18]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0x25
lea eax, [ebp - 0x814]
push eax
lea eax, [ebp - 0x804]
push eax
call ebx
push eax
lea eax, [ebp - 0x804]
push eax
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_DrawTextW]
test byte [edi + 0xc], 4
jne 0x4527b8
test byte [edi + 0x10], 0x10
je 0x452847
lea eax, [ebp - 0x81c]
push eax
lea eax, [ebp - 0x804]
push eax
call ebx
push eax
lea eax, [ebp - 0x804]
push eax
push dword [edi + 0x18]
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [ebp - 0x808]
sub eax, dword [ebp - 0x818]
mov esi, 2
sub eax, dword [ebp - 0x810]
mov ecx, esi
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [ebp - 0x80c]
sub eax, dword [ebp - 0x81c]
push ecx
sub eax, dword [ebp - 0x814]
cdq
sub eax, edx
sar eax, 1
sub esi, eax
push esi
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
lea eax, [ebp - 0x814]
push eax
push dword [edi + 0x18]
call dword [sym.imp.USER32.dll_DrawFocusRect]
push 0
push dword [edi + 4]
push 0x401
push dword [ebp - 0x824]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x820]
push dword [edi + 0x18]
call dword [sym.imp.GDI32.dll_RestoreDC]
push dword [edi + 0x18]
push dword [edi + 0x14]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x828]
mov ecx, dword [ebp - 4]
pop esi
mov dword [edi + 0x18], eax
pop edi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.00440060
mov esp, ebp
pop ebp
ret 8