Function at 0x481138
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 + 0xa4]
test eax, eax
je 0x4811f5
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 + 0xa4]
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 + 0xa4]
push eax
push edx
push ebx
call fcn.004bb040
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x481227
call fcn.004784d0
test eax, eax
je 0x481227
push 0
mov ecx, dword [esi + 0x98]
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x28]
push 3
push eax
push ebx
call fcn.00477ac0
lea ecx, [esp + 0x10]
push 1
push ecx
mov ecx, esi
call fcn.0047feb0
mov ecx, dword [esi + 0x9c]
test ecx, ecx
je 0x4812be
call fcn.004784d0
test eax, eax
je 0x4812be
mov ecx, dword [esi + 0x9c]
call fcn.004784f0
mov edx, dword [eax]
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 + 0x1100]
push ecx
push ebx
push edx
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
mov ecx, dword [esi + 0x9c]
call fcn.004784f0
mov ecx, dword [eax]
mov edx, dword [esp + 0x18]
push 0
push 0
add edx, ecx
mov ecx, dword [esp + 0x18]
push 0
push 0
mov dword [esp + 0x28], edx
push 0
add ecx, 0x10
push 0
lea edx, [esp + 0x28]
push 0
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x9c]
push edx
push ebx
call fcn.00477ac0
cmp word [esi + 0x30], 0
lea ebp, [esi + 0x30]
je 0x481385
mov eax, dword [esi + 0x6c]
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [esp + 0x20], eax
je 0x481385
mov edx, dword [esp + 0x20]
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x92]
mov word [esp + 0x90], 0
push 0x103
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x94]
push ecx
push edx
stosw word es:[edi], ax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 0x90], 0
jne 0x481381
lea eax, [esp + 0x30]
push 0
push eax
mov ecx, esi
call fcn.0047feb0
push 3
lea ecx, [esi + 0x24]
call fcn.004c6b80
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 ecx, dword [esi + 0x90]
push ecx
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea edx, [esp + 0x30]
push 0x28
push edx
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 eax, dword [esp + 0x20]
push eax
push ebx
call edi
mov edi, dword [esp + 0x24]
mov edx, dword [esi + 4]
lea ecx, [esp + 0x10]
push ecx
push edx
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