Function at 0x4fd820
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x368
push ebx
push ebp
mov ebp, dword [esp + 0x374]
mov ecx, dword [ebp]
push esi
push edi
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
mov edi, eax
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [ebp]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
test byte [0x7b7d54], 1
jne 0x4fd874
or dword [0x7b7d54], 1
mov dword [0x7b7d50], 0x4b4b4b
mov ecx, dword [0x7b7d50]
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov esi, eax
push esi
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.USER32.dll_FillRect]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp]
push eax
call dword [sym.imp.USER32.dll_GetParent]
mov esi, ebp
mov dword [esp + 0x28], eax
call fcn.004fe200
mov esi, dword [esp + 0x24]
sub esi, dword [esp + 0x1c]
mov ebx, eax
mov eax, dword [esp + 0x18]
sub esi, ebx
sar esi, 1
cmp dword [0x732e58], 0
mov dword [esp + 0x2c], eax
je 0x4fd8da
cmp byte [ebp + 4], 0
jne 0x4fd8da
push esi
push eax
mov eax, 0x732e58
jmp 0x4fd8f0
cmp dword [0x732e60], 0
je 0x4fd8f6
cmp byte [ebp + 4], 0
je 0x4fd8f6
push esi
push eax
mov eax, 0x732e60
push edi
call fcn.004984b0
cmp byte [ebp + 5], 0
je 0x4fd941
cmp dword [0x732e50], 0
je 0x4fd918
mov eax, dword [esp + 0x2c]
push esi
push eax
push edi
push 0x732e4c
call fcn.00506da0
jmp 0x4fd941
mov ecx, dword [0x736bb8]
test ecx, ecx
je 0x4fd941
push 3
push 0
push 0
lea eax, [ebx + 7]
push eax
push eax
push ecx
mov ecx, dword [esp + 0x44]
add esi, 0xfffffffd
push esi
add ecx, 0xfffffffd
push ecx
push edi
call dword [sym.imp.USER32.dll_DrawIconEx]
mov eax, dword [ebp]
push 0x103
lea edx, [esp + 0x174]
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor esi, esi
cmp word [esp + 0x170], si
je 0x4fda4a
mov ecx, dword [ebp]
push esi
push esi
push 0x31
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
fld1
mov edx, dword [esp + 0x28]
push ecx
fstp dword [esp]
push edx
mov dword [esp + 0x18], eax
call fcn.00517660
add eax, ebx
add dword [esp + 0x18], eax
mov eax, 0x8000
push 0xc00
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x30]
push eax
push 0xffffffffffffffff
lea ecx, [esp + 0x17c]
push ecx
push edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
call fcn.004026d0
mov edx, dword [esp + 0x20]
sub edx, dword [esp + 0x18]
mov dword [esp + 0x48], 0x50000000
cmp dword [esp + 0x34], edx
mov dword [esp + 0x4c], esi
jge 0x4fd9eb
mov dword [esp + 0x48], 0x50000200
jmp 0x4fda0c
lea eax, [esp + 0x134]
push eax
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov eax, dword [esp + 0x134]
sub eax, ebx
cdq
sub eax, edx
sar eax, 1
add dword [esp + 0x1c], eax
lea ecx, [esp + 0x48]
push ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x17c]
push ecx
lea esi, [esp + 0x28]
mov eax, edi
mov dword [esp + 0x38], 0x303030
mov dword [esp + 0x54], 0xffffff
call fcn.004f72b0
mov edx, dword [esp + 0x10]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp]
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x4fdb6c
lea esi, [esp + 0x90]
call fcn.004062c0
mov dword [esp + 0x94], edi
mov ecx, 0x10
lea esi, [esp + 0x50]
lea edi, [esp + 0x98]
lea eax, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
call fcn.0050f040
test byte [0x7b7d54], 1
jne 0x4fdaa7
or dword [0x7b7d54], 1
mov dword [0x7b7d50], 0x4b4b4b
mov ecx, dword [0x7b7d50]
lea edx, [esp + 0x10]
push edx
lea esi, [esp + 0x30]
mov dword [esp + 0x14], ecx
mov byte [esp + 0x18], 0x96
call fcn.004032c0
mov ecx, dword [ebp]
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov esi, dword [esp + 0xd8]
sub dword [esp + 0x18], 1
test esi, esi
je 0x4fdb34
mov edx, dword [esp + 0x20]
fild dword [esp + 0x18]
sub edx, dword [esp + 0x18]
fild dword [esp + 0x1c]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
mov edx, dword [ecx + 4]
sub esp, 0x10
mov dword [esp + 0x20], eax
fild dword [esp + 0x20]
mov eax, dword [esi]
fstp dword [esp + 0xc]
fstp dword [esp + 8]
fstp dword [esp + 4]
fstp dword [esp]
push edx
push eax
call sub.gdiplus.dll_GdipFillRectangle
test eax, eax
je 0x4fdb34
mov dword [esi + 4], eax
lea esi, [esp + 0x90]
call fcn.0050f0d0
mov ecx, dword [esp + 0x3c]
push ecx
mov dword [esp + 0x3c], 0x70c650
call sub.gdiplus.dll_GdipDeleteBrush
mov edx, dword [esp + 0x30]
push edx
mov dword [esp + 0x30], 0x6dbd38
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, esi
call fcn.00406370
mov ecx, dword [ebp]
lea eax, [esp + 0x50]
push eax
push ecx
call dword [sym.imp.USER32.dll_EndPaint]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x368
ret 4