Function at 0x481918
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x288
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x4c]
push edi
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
mov edi, eax
mov eax, dword [esi + 4]
lea edx, [esp + 0x10]
mov dword [esp + 0x24], edi
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub ecx, ebp
push ecx
mov ecx, dword [esp + 0x14]
sub edx, ecx
mov ebx, eax
push edx
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x4819d5
mov ecx, dword [esi + 4]
mov ebp, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [esp + 0x40]
push eax
push ecx
call ebp
mov eax, dword [esi + 0xcc]
lea edx, [esp + 0x30]
push edx
mov ecx, dword [eax + 4]
push ecx
call ebp
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x34]
sub eax, edx
mov edx, dword [esp + 0x14]
add eax, ecx
mov ecx, dword [esp + 0x44]
sub ecx, ebp
add ecx, edx
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 0xcc]
push eax
push edx
push ebx
call fcn.004ba250
lea ebp, [esi + 0x98]
mov ecx, ebp
call fcn.0047a250
test eax, eax
je 0x481a01
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x28]
push 3
push eax
push ebx
mov ecx, ebp
call fcn.004798a0
lea ecx, [esp + 0x10]
push 1
push ecx
mov ecx, esi
call fcn.004808d0
mov edx, dword [esi + 0xb4]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 0x64]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x10]
push 1
push eax
mov eax, dword [esi + 0x1128]
push ecx
push ebx
push edx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
mov ecx, dword [esi + 0xb4]
mov edx, dword [esp + 0x18]
add edx, ecx
mov ecx, dword [esp + 0x10]
lea ebp, [esi + 0x30]
add ecx, 0x10
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], ecx
cmp word [ebp], 0
je 0x481b1f
mov edx, dword [esi + 0x6c]
mov dword [esp + 0x20], edx
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [esp + 0x20], eax
je 0x481b1f
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x92]
mov word [esp + 0x90], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x20]
push 0x103
stosw word es:[edi], ax
lea eax, [esp + 0x94]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 0x90], 0
jne 0x481b1b
lea edx, [esp + 0x30]
push 0
push edx
mov ecx, esi
call fcn.004808d0
push 3
lea ecx, [esi + 0x24]
call fcn.004bfb00
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push ebx
call edi
push 1
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x90]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea ecx, [esp + 0x30]
push 0x28
push ecx
push ebp
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
push eax
push ebp
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
mov edx, dword [esp + 0x20]
push edx
push ebx
call edi
mov edi, dword [esp + 0x24]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
push 0xcc0020
push eax
push ecx
sub edx, eax
push ebx
push edx
mov edx, dword [esp + 0x2c]
sub edx, ecx
push edx
push eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esp + 0x2c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 4]
lea edx, [esp + 0x50]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x288
ret