Function at 0x450ea0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x484db8]
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 0x450ee8
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e8f7
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.0043e970
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.00451360
mov ecx, eax
call fcn.004543e0
mov ecx, ebx
call fcn.00451360
mov ecx, dword [ebp - 0x818]
cmp ecx, dword [eax]
jne 0x450fce
lea eax, [ebp - 0x818]
push eax
mov ecx, ebx
mov dword [ebp - 0x818], 0
call fcn.00451360
mov ecx, eax
call fcn.004507f0
mov esi, dword [eax]
jmp 0x450fd1
mov esi, dword [ecx + 0x14]
test dword [edi + 0xc], 0xfffffffb
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
je 0x451048
test byte [edi + 0x10], 1
je 0x450fee
mov eax, dword [esi + 0x80]
jmp 0x450ff1
mov eax, dword [esi + 0x7c]
push dword [eax + 4]
push dword [edi + 0x18]
push dword [eax]
call fcn.0045be90
mov eax, dword [edi + 0x10]
add esp, 0xc
test al, 1
je 0x451010
add dword [edi + 0x20], 2
add dword [edi + 0x1c], 2
test al, 4
je 0x451019
push dword [esi + 0x74]
jmp 0x45101c
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 0x451058
test byte [edi + 0x10], 0x10
je 0x4510e7
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.0043e8f7
mov esp, ebp
pop ebp
ret 8