Function at 0x4916fc
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4d9ab4
call fcn.004a1664
sub esp, 0x140
cmp dword [ebp + 0x2c], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, ecx
jne 0x49173d
push 1
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
lea eax, [ebp + 0x1c]
push esi
push eax
push dword [ebp + 8]
call fcn.004627a6
add esp, 0x14
jmp 0x491755
push dword [ebx + 0xac]
mov ecx, ebx
push dword [ebp + 8]
push 0x1795
call fcn.0045d5d3
push eax
call edi
mov eax, dword [esi + 0x44]
push 0
add dword [ebp + 0x1c], eax
mov eax, dword [esi + 0x48]
add dword [ebp + 0x20], eax
mov eax, dword [esi + 0x4c]
sub dword [ebp + 0x24], eax
mov eax, dword [esi + 0x50]
sub dword [ebp + 0x28], eax
push 0
push 0x31
push dword [ebx + 0xac]
call edi
push eax
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp + 0x2c], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp + 0x28]
sub eax, dword [ebp + 0x20]
lea esi, [ebp + 0x1c]
mov ecx, ebx
push eax
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [ebp + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0049157b
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x34]
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp + 8]
call fcn.004782f4
mov ecx, dword [ebp - 0x10]
xor eax, eax
sub ecx, dword [ebp - 0x18]
mov dword [ebp - 4], eax
push ecx
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 0x1c]
push ecx
push eax
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004624f8
mov esi, eax
lea edi, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [ebx + 0x100]
push 1
lea eax, [ebp - 0x74]
push dword [esi]
push dword [ebp + 0x10]
push eax
push dword [ebp - 0x30]
call fcn.00462f0d
push dword [esi]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x2c]
push dword [ebp + 8]
call fcn.00463626
add esp, 0x38
lea eax, [ebp - 0x14c]
push 0xc8
push eax
push dword [ebx + 0xac]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [ebp + 0x14]
and byte [ebp - 0x85], 0
add eax, 4
push eax
call fcn.00463611
mov esi, dword [sym.imp.GDI32.dll_SetTextColor]
pop ecx
push eax
push dword [ebp + 8]
call esi
mov edi, dword [sym.imp.GDI32.dll_SetBkMode]
push 1
push dword [ebp + 8]
mov dword [ebp + 0x10], eax
call edi
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x14c]
push eax
mov ecx, ebx
push dword [ebp + 8]
call fcn.00491a31
push 0xfffffffffffffff0
push dword [ebx + 0xac]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x44]
push dword [ebp - 0x20]
mov ecx, ebx
push dword [ebp - 0x24]
push eax
call fcn.00491921
mov ecx, ebx
call fcn.00491a7e
push eax
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x14c]
mov ebx, dword [ebp + 8]
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0x14]
push ebx
call fcn.00464047
add esp, 0x18
push dword [ebp + 0x10]
push ebx
call esi
push dword [ebp + 0x2c]
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp + 0xc]
push ebx
call edi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.0047834e
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebx
leave
ret 0x28