Function at 0x4f54f0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x250
push ebx
push ebp
mov ebp, dword [esp + 0x25c]
push esi
push edi
mov edi, ebp
call fcn.004f4d70
mov ecx, dword [ebp + 0x14]
push 0x103
lea eax, [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [ebp + 0x14]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x31
push edx
call ebx
push eax
mov eax, dword [ebp + 0x18]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
push ecx
mov ecx, dword [ebp + 0x20]
sub esp, 0x10
mov eax, esp
mov dword [eax], edx
mov edx, dword [ebp + 0x24]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 0x28]
mov dword [eax + 8], edx
lea esi, [esp + 0x6c]
lea edi, [esp + 0x64]
mov dword [eax + 0xc], ecx
call fcn.004f4e60
mov eax, dword [ebp + 0x14]
lea edx, [esp + 0x1c]
xor esi, esi
push edx
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 4
mov dword [esp + 0x30], esi
call dword [sym.imp.USER32.dll_MapDialogRect]
mov ecx, dword [ebp + 0x14]
push esi
push 1
push 0xf6
push ecx
call ebx
cmp eax, esi
mov dword [esp + 0x18], eax
je 0x4f56e4
lea edx, [esp + 0x3c]
push edx
push eax
call dword [sym.imp.USER32.dll_GetIconInfo]
mov eax, dword [ebp + 0x1c]
mov edi, dword [esp + 0x24]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov esi, dword [ebp + 0x28]
mov ebx, dword [ebp + 0x10]
lea eax, [eax + edi*2]
lea edi, [edi + ecx*2]
mov dword [esp + 0x14], eax
add edi, eax
lea eax, [edx + edx]
sub esi, eax
sub esi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x14]
push str.Parent
shr ebx, 2
push eax
shr esi, 1
and bl, 1
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
je 0x4f5627
cmp byte [eax + 0x2d], 0
je 0x4f5627
test bl, bl
je 0x4f5627
mov ecx, dword [ebp + 0x14]
push str.ButtonIconPtr
push ecx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
je 0x4f5651
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp + 0x18]
push esi
push edx
push ecx
add eax, 8
push eax
call fcn.00506da0
jmp 0x4f5651
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
neg bl
mov ecx, dword [ebp + 0x18]
sbb ebx, ebx
and ebx, 0x20
or ebx, 3
push ebx
push 0
push 0
push esi
push edx
push 0
push eax
push 0
push 0
push ecx
call dword [sym.imp.USER32.dll_DrawStateW]
mov edx, dword [esp + 0x4c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push edx
call esi
mov eax, dword [esp + 0x48]
push eax
call esi
mov eax, dword [ebp + 0x28]
mov edx, dword [ebp + 0x24]
sub edx, dword [esp + 0x24]
mov ecx, eax
sub ecx, dword [ebp + 0x20]
mov dword [esp + 0x38], eax
sub ecx, dword [esp + 0x54]
mov eax, dword [ebp + 0x14]
push str.DropCommand
sar ecx, 1
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
je 0x4f56a7
mov ecx, dword [0x7364e4]
sub dword [esp + 0x34], ecx
xor edx, edx
test dword [ebp + 0x10], 0x100
je 0x4f56b7
mov edx, 0x100000
lea eax, [esp + 0x58]
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4f56c0
mov ecx, dword [ebp + 0x18]
push edx
sub eax, esi
lea edx, [esp + 0x30]
push edx
sar eax, 1
push eax
lea eax, [esp + 0x64]
push eax
push ecx
call fcn.004026d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x250
ret 4