Function at 0x4536f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
mov eax, dword [0x9c48d0]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [ebx + 0x20]
push esi
push edi
mov edi, ecx
push eax
mov dword [esp + 0x14], edi
mov esi, edx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
add esi, 8
push esi
push edi
mov dword [esp + 0x24], eax
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [ebx]
lea ecx, [esp + 0x3c]
push ecx
xor esi, esi
push eax
mov dword [esp + 0x3c], esi
call dword [sym.imp.USER32.dll_GetClientRect]
test eax, eax
je 0x453754
mov esi, dword [esp + 0x44]
mov eax, dword [esp + 0x48]
sub esi, dword [esp + 0x3c]
sub eax, dword [esp + 0x40]
mov dword [esp + 0x34], eax
mov edx, dword [ebx + 0x24]
mov edi, dword [ebx]
mov dword [esp + 0xc], edx
fild dword [esp + 0xc]
push ecx
fstp dword [esp]
call fcn.00452860
mov edi, dword [ebx]
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fstp dword [esp]
call fcn.00452860
add esp, 4
mov dword [esp + 0x38], eax
mov eax, dword [ebx]
push 0xffffffffffffffec
push eax
mov dword [esp + 0x1c], 2
call dword [sym.imp.USER32.dll_GetWindowLongW]
shr eax, 0x16
test al, 1
je 0x4537ac
mov dword [esp + 0x14], 0x82
mov eax, dword [ebx + 4]
mov edi, dword [esp + 0x10]
mov dword [esp + 0xc], 0
test eax, eax
je 0x4537cb
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0xc], eax
mov ecx, dword [ebx + 0x1c]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [ebx + 0x20]
push edx
push edi
call dword [sym.imp.GDI32.dll_SetBkColor]
mov eax, dword [ebx]
push 0
push 0
push 0xe
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x1c], eax
inc eax
push 2
push eax
call fcn.00658a3b
mov edi, eax
add esp, 8
test edi, edi
jne 0x4538f2
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
push 0
push eax
mov eax, dword [esp + 0x1c]
push edi
push 0
push eax
mov eax, dword [esp + 0x24]
push ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_ExtTextOutW]
push edi
call fcn.00658a01
fld dword [0x9adcc8]
mov edi, dword [ebx]
fstp dword [esp]
call fcn.00452860
mov ecx, dword [ebx + 0xc]
sub ecx, eax
sub esi, ecx
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x48], esi
add esp, 4
lea esi, [esp + 0x28]
lea edi, [esp + 0x3c]
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], ecx
call fcn.004207d0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x10]
add edx, eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x34]
add eax, ecx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x54], edx
push ecx
lea edx, [esp + 0x50]
push edx
push edi
mov dword [esp + 0x64], eax
call dword [sym.imp.USER32.dll_FillRect]
mov esi, ebx
call fcn.004534f0
movzx eax, al
push eax
lea eax, [ebx + 0xc]
mov ecx, edi
call fcn.00453560
mov ecx, dword [esp + 0x1c]
add esp, 4
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
cmp dword [ebx + 4], 0
je 0x4538e1
mov edx, dword [esp + 0xc]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
xor ecx, esp
call fcn.0065865c
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x1c]
push edi
inc eax
push eax
mov eax, dword [esp + 0x28]
push 0xd
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x1c]
xor ecx, ecx
mov eax, edi
mov word [edi + edx*2], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x453915
sub eax, edx
sar eax, 1
jmp 0x45380e