Function at 0x4f5910
Capabilities:
Get graphical window text
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x268
push ebx
push ebp
mov ebp, dword [esp + 0x274]
mov eax, dword [ebp + 0x14]
push esi
push edi
push str.Parent
push eax
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
je 0x4f59eb
cmp byte [eax + 0x2d], 0
je 0x4f59eb
push ecx
mov eax, esp
lea esi, [esp + 0x54]
mov dword [eax], 0x4b4b4b
call fcn.00403200
mov eax, dword [esp + 0x54]
mov ecx, dword [ebp + 0x18]
push eax
lea esi, [ebp + 0x1c]
push esi
push ecx
call dword [sym.imp.USER32.dll_FillRect]
mov edx, dword [ebp + 0x14]
cmp edx, dword [0x7364e8]
jne 0x4f599a
mov ecx, dword [esi]
mov edx, dword [esi + 4]
sub esp, 0x10
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 4], edx
mov edx, dword [esi + 0xc]
mov esi, dword [ebp + 0x18]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, 0xb8f5
call fcn.004a3030
mov eax, dword [ebp + 0x18]
push 1
push eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov al, byte [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
and al, 4
neg al
sbb eax, eax
and eax, 0xffa0a0a1
add eax, 0xffffff
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esp + 0x60]
push edx
mov dword [esp + 0x60], 0x70c650
call sub.gdiplus.dll_GdipDeleteBrush
mov eax, dword [esp + 0x54]
push eax
mov dword [esp + 0x54], 0x6dbd38
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x4f59f2
mov edi, ebp
call fcn.004f4d70
mov ebx, dword [ebp + 0x20]
add ebx, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x1c]
push 0
push 1
push 0xf6
mov esi, 0x10
push ecx
add edi, 0xa
sar ebx, 1
mov dword [esp + 0x20], esi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
mov dword [esp + 0x14], eax
je 0x4f5a86
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
mov edx, dword [ebp + 0x10]
mov eax, dword [esp + 0x40]
mov esi, dword [esp + 0x44]
and edx, 4
add edx, edx
add edx, edx
add edx, edx
or edx, 3
push edx
mov edx, dword [ebp + 0x18]
push 0
lea ecx, [eax + eax]
push 0
add esi, esi
mov eax, ebx
sub eax, esi
push eax
push edi
push 0
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x2c]
push ecx
push 0
push 0
push edx
call dword [sym.imp.USER32.dll_DrawStateW]
mov eax, dword [esp + 0x4c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x48]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov edx, dword [esp + 0x10]
push 0x103
lea eax, [edi + edx + 8]
mov edx, dword [ebp + 0x14]
lea ecx, [esp + 0x74]
push ecx
push edx
sub ebx, esi
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor ecx, ecx
cmp word [esp + 0x70], cx
lea eax, [esp + 0x70]
mov dword [esp + 0x10], eax
je 0x4f5ad2
lea esp, [esp]
cmp word [eax], 0xd
je 0x4f5ad8
add eax, 2
cmp word [eax], cx
jne 0x4f5ac0
mov dword [esp + 0x10], eax
cmp word [eax], 0xd
jne 0x4f5ae2
mov word [eax], cx
add eax, 2
mov dword [esp + 0x10], eax
mov edi, dword [ebp + 0x14]
push ecx
push 1
push 2
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
call fcn.00402fd0
mov edi, dword [ebp + 0x14]
push 0
push 0
push 0
lea ecx, [esp + 0x3c]
push ecx
call fcn.00402fd0
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 0x18]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push edx
push eax
call edi
mov dword [esp + 0x38], eax
lea eax, [esp + 0x70]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4f5b33
sub eax, ecx
lea ecx, [esp + 0x68]
push ecx
sar eax, 1
push eax
mov eax, dword [ebp + 0x18]
lea edx, [esp + 0x78]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x20]
sub eax, 5
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x6c]
sub esi, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x28]
sar esi, 1
mov dword [esp + 0x1c], edx
add esi, ebx
lea edx, [esi + eax]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x70]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
lea edx, [eax + 2]
lea ebx, [ebx]
mov bx, word [eax]
add eax, 2
test bx, bx
jne 0x4f5ba0
push 0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x78]
push eax
mov eax, dword [ebp + 0x18]
lea edx, [esp + 0x24]
push edx
push 4
push esi
mov esi, dword [sym.imp.GDI32.dll_ExtTextOutW]
push ecx
push eax
call esi
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x30]
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x28]
push ebx
add ecx, 5
push eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], edx
call edi
mov edx, dword [esp + 0x10]
mov eax, edx
lea ecx, [eax + 2]
mov di, word [eax]
add eax, 2
test di, di
jne 0x4f5bf2
push 0
sub eax, ecx
sar eax, 1
push eax
mov eax, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [ebp + 0x18]
push 4
push edx
push eax
push ecx
call esi
mov edx, dword [esp + 0x38]
mov eax, dword [ebp + 0x18]
push edx
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call esi
mov ecx, dword [esp + 0x28]
push ecx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x268
ret 4