Function at 0x49ecf0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x260
push ebx
push ebp
push esi
mov ebx, dword [esp + 0x270]
mov esi, ecx
push edi
xor edi, edi
cmp word [esi + 0x30], di
lea ebp, [esi + 0x30]
mov dword [esp + 0x24], edi
je 0x49ee3d
mov eax, dword [esi + 0x24c]
cmp eax, edi
je 0x49ed34
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [esp + 0x20], eax
je 0x49ee3d
mov word [esp + 0x68], di
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x6a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x24c]
lea ecx, [esp + 0x68]
push 0x103
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 0x68], 0
jne 0x49ee3b
mov eax, dword [esi + 0x1354]
test eax, eax
je 0x49ee3b
lea edx, [esp + 0x10]
push 0
push edx
mov ecx, esi
call fcn.0049c690
mov eax, dword [esi + 0x1354]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [esi + 0x274]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
push ebp
call dword [sym.imp.MSVCRT.dll_wcslen]
mov edx, eax
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], 0x40
add esp, 4
rep stosd dword es:[edi], eax
mov dword [esp + 0x5c], eax
mov eax, dword [0x5d7578]
test eax, eax
mov dword [esp + 0x2c], 0x2800
je 0x49ee17
mov eax, dword [0x5d6c28]
test eax, eax
je 0x49ee17
mov eax, dword [0x5dc94c]
test eax, eax
je 0x49ee17
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x28
push edx
push ebp
push 0
push 3
push ebx
mov ecx, 0x5d7578
call fcn.00408bf0
jmp 0x49ee27
lea eax, [esp + 0x10]
push 0x28
push eax
push edx
push ebp
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x24], 1
xor edi, edi
mov eax, dword [esp + 0x24]
mov ecx, dword [esi + 0x26c]
cmp eax, ecx
je 0x49eefd
lea edx, [esp + 0x10]
push edi
push edx
mov ecx, esi
mov dword [esi + 0x26c], eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
call fcn.0049c690
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x49eefd
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x10]
sub eax, edx
sub ecx, ebp
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ebp, eax
test ebp, ebp
je 0x49eef6
push ebp
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
push 0xcc0020
push eax
sub edx, eax
mov eax, dword [esp + 0x20]
push ecx
push ebx
sub eax, ecx
push edx
push eax
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x268]
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x49eee6
push eax
call ebx
push ebp
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push ebp
mov dword [esi + 0x268], eax
call ebx
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x260
ret 4