Function at 0x4fce10
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x338
push ebx
push ebp
push esi
mov esi, dword [esp + 0x348]
mov ecx, dword [esi]
push edi
lea eax, [esp + 0x100]
push eax
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
mov ebp, eax
push 1
push ebp
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
test byte [0x7b7d54], 1
jne 0x4fce65
or dword [0x7b7d54], 1
mov dword [0x7b7d50], 0x4b4b4b
mov ecx, dword [0x7b7d50]
mov ebx, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push ecx
call ebx
mov edi, eax
push edi
lea edx, [esp + 0x24]
push edx
push ebp
call dword [sym.imp.USER32.dll_FillRect]
push edi
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
call edi
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esp + 0x1c], eax
call fcn.004fcd80
mov edx, dword [esp + 0x20]
mov ecx, eax
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x24]
mov dword [esp + 0x30], edx
sub eax, ecx
sar eax, 1
mov dword [esp + 0x34], eax
add edx, ecx
add eax, ecx
cmp byte [esi + 6], 0
mov dword [esp + 0x40], ecx
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], eax
je 0x4fced8
mov dword [esp + 0x18], 0x202020
jmp 0x4fcf28
cmp byte [esi + 4], 0
je 0x4fcf04
test byte [0x7b7d3c], 1
jne 0x4fcef8
or dword [0x7b7d3c], 1
mov dword [0x7b7d38], 0x404040
mov ecx, dword [0x7b7d38]
mov dword [esp + 0x18], ecx
jmp 0x4fcf28
test byte [0x7b7d44], 1
jne 0x4fcf1e
or dword [0x7b7d44], 1
mov dword [0x7b7d40], 0x303030
mov edx, dword [0x7b7d40]
mov dword [esp + 0x18], edx
lea eax, [esp + 0x18]
mov eax, dword [eax]
push eax
call ebx
mov esi, eax
push esi
lea ecx, [esp + 0x34]
push ecx
push ebp
call dword [sym.imp.USER32.dll_FillRect]
push esi
call edi
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x38]
add ecx, 1
test byte [0x7b7d24], 1
mov dword [esp + 0x48], edx
mov dword [esp + 0x50], eax
lea esi, [eax + 1]
mov dword [esp + 0x54], ecx
jne 0x4fcf83
or dword [0x7b7d24], 1
mov dword [0x7b7d20], 0x646464
mov ecx, dword [0x7b7d20]
push ecx
push 1
push 0
call dword [sym.imp.GDI32.dll_CreatePen]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push edi
push ebp
call ebx
mov edx, dword [esp + 0x4c]
push 0
push edx
add esi, 0xffffffff
push esi
push ebp
mov dword [esp + 0x20], eax
call dword [sym.imp.GDI32.dll_MoveToEx]
mov eax, dword [esp + 0x54]
add eax, 0xffffffff
push eax
push esi
mov esi, dword [sym.imp.GDI32.dll_LineTo]
push ebp
mov dword [esp + 0x24], eax
call esi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
push eax
add ecx, 0xffffffff
push ecx
push ebp
call esi
mov edx, dword [esp + 0x10]
push edx
push ebp
call ebx
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
push 0x404040
mov dword [esp + 0x4c], eax
push 1
add eax, 1
push 0
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
mov dword [esp + 0x54], eax
add edi, 1
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
push ebp
mov dword [esp + 0x20], eax
call ebx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x54]
push 0
add eax, 0xffffffff
push eax
push ecx
push ebp
call dword [sym.imp.GDI32.dll_MoveToEx]
mov edx, dword [esp + 0x48]
push edi
push edx
push ebp
call esi
mov eax, dword [esp + 0x50]
push edi
add eax, 0xffffffff
push eax
push ebp
call esi
mov ecx, dword [esp + 0x10]
push ecx
push ebp
call ebx
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x34c]
cmp byte [eax + 4], 0
je 0x4fd08e
lea eax, [esp + 0x10]
lea esi, [esp + 0x30]
mov edi, ebp
mov dword [esp + 0x10], 0x5c5c5c
call fcn.004f6f80
lea eax, [esp + 0x10]
lea esi, [esp + 0x30]
mov edi, ebp
mov dword [esp + 0x10], 0
call fcn.004f6f80
mov esi, dword [esp + 0x34c]
cmp byte [esi + 5], 0
je 0x4fd127
cmp dword [0x732e48], 0
je 0x4fd0d8
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push eax
push eax
push ecx
push edx
push ebp
push 0x732e44
call fcn.00506e50
jmp 0x4fd127
cmp dword [0x736c3c], 0
je 0x4fd127
fld dword [0x723ccc]
mov eax, dword [esp + 0x1c]
push ecx
fstp dword [esp]
push eax
call fcn.00517660
mov ecx, eax
mov eax, dword [esp + 0x40]
push 3
push 0
sub eax, ecx
push 0
push ecx
cdq
push ecx
mov ecx, dword [0x736c3c]
sub eax, edx
mov edx, dword [esp + 0x48]
push ecx
sar eax, 1
lea ecx, [eax + edx]
mov edx, dword [esp + 0x48]
push ecx
add eax, edx
push eax
push ebp
call dword [sym.imp.USER32.dll_DrawIconEx]
mov ecx, dword [esi]
push 0x103
lea eax, [esp + 0x144]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 0x140], 0
je 0x4fd255
mov edx, dword [esi]
push 0
push 0
push 0x31
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push ebp
call ebx
fld dword [0x723cc8]
push ecx
mov dword [esp + 0x1c], eax
fstp dword [esp]
mov eax, dword [esp + 0x20]
push eax
call fcn.00517660
mov ecx, dword [esp + 0x40]
add eax, ecx
add dword [esp + 0x20], eax
lea esi, [esp + 0x60]
mov dword [esp + 0x40], 0x50000000
mov dword [esp + 0x44], 0
call fcn.004062c0
mov eax, esi
mov dword [esp + 0x64], ebp
call fcn.0050f040
lea edx, [esp + 0x140]
push edx
mov edi, esi
call fcn.00406c40
mov esi, eax
push esi
lea eax, [esp + 0x144]
push eax
call fcn.00406cc0
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x24]
add eax, eax
cmp eax, ecx
jg 0x4fd1de
mov edx, dword [esp + 0x28]
sub edx, dword [esp + 0x20]
cmp esi, edx
jge 0x4fd1e6
mov dword [esp + 0x40], 0x50000200
lea esi, [esp + 0x60]
call fcn.0050f0d0
mov eax, dword [esp + 0x34c]
mov ecx, dword [eax]
push ecx
mov dword [esp + 0x20], 0xffffff
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x4fd213
mov dword [esp + 0x1c], 0xa0a0a0
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14c]
push edx
lea esi, [esp + 0x30]
mov eax, ebp
mov dword [esp + 0x20], 0x303030
call fcn.004f72b0
mov eax, dword [esp + 0x18]
push eax
push ebp
call ebx
lea eax, [esp + 0x60]
call fcn.00406370
mov esi, dword [esp + 0x34c]
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x4fd377
lea esi, [esp + 0x60]
call fcn.004062c0
mov dword [esp + 0x64], ebp
mov ecx, 0x10
lea esi, [esp + 0x100]
lea edi, [esp + 0x68]
lea eax, [esp + 0x60]
rep movsd dword es:[edi], dword [esi]
call fcn.0050f040
test byte [0x7b7d54], 1
jne 0x4fd2a8
or dword [0x7b7d54], 1
mov dword [0x7b7d50], 0x4b4b4b
mov edx, dword [0x7b7d50]
lea eax, [esp + 0x10]
push eax
lea esi, [esp + 0x4c]
mov dword [esp + 0x14], edx
mov byte [esp + 0x18], 0x96
call fcn.004032c0
mov edx, dword [esp + 0x34c]
mov eax, dword [edx]
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0xa8]
sub dword [esp + 0x20], 1
test esi, esi
je 0x4fd33b
mov ecx, dword [esp + 0x28]
fild dword [esp + 0x20]
sub ecx, dword [esp + 0x20]
fild dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
sub edx, dword [esp + 0x24]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x10], ecx
fild dword [esp + 0x10]
mov ecx, dword [eax + 4]
sub esp, 0x10
mov dword [esp + 0x20], edx
fild dword [esp + 0x20]
mov edx, dword [esi]
fstp dword [esp + 0xc]
fstp dword [esp + 8]
fstp dword [esp + 4]
fstp dword [esp]
push ecx
push edx
call sub.gdiplus.dll_GdipFillRectangle
test eax, eax
je 0x4fd33b
mov dword [esi + 4], eax
lea esi, [esp + 0x60]
call fcn.0050f0d0
mov eax, dword [esp + 0x58]
push eax
mov dword [esp + 0x58], 0x70c650
call sub.gdiplus.dll_GdipDeleteBrush
mov ecx, dword [esp + 0x4c]
push ecx
mov dword [esp + 0x4c], 0x6dbd38
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, esi
call fcn.00406370
mov esi, dword [esp + 0x34c]
mov eax, dword [esi]
lea edx, [esp + 0x100]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x338
ret 4