Function at 0x493028
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 + 0x34], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x284]
test eax, eax
je 0x4930e8
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 + 0x284]
lea edx, [esp + 0x30]
push edx
mov ecx, dword [eax + 4]
push ecx
call ebp
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
sub eax, ebp
mov ebp, dword [esp + 0x14]
add eax, edx
mov edx, dword [esp + 0x44]
sub edx, ecx
mov ecx, dword [esi + 0x284]
add edx, ebp
add ecx, 0x28
push edx
lea edx, [esp + 0x14]
mov ebp, dword [ecx]
push eax
push edx
push ebx
call dword [ebp + 4]
mov ecx, dword [esi + 0x278]
test ecx, ecx
je 0x49311a
call fcn.004843f0
test eax, eax
je 0x49311a
push 0
mov ecx, dword [esi + 0x278]
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x28]
push 3
push eax
push ebx
call fcn.00483a00
lea ecx, [esp + 0x10]
push 1
push ecx
mov ecx, esi
call fcn.004918f0
mov ecx, dword [esi + 0x27c]
test ecx, ecx
je 0x4931db
call fcn.004843f0
test eax, eax
je 0x4931db
mov ecx, dword [esi + 0x27c]
call fcn.004844b0
mov edx, dword [eax]
mov ebp, dword [esp + 0x18]
mov eax, dword [esi + 0x12e4]
sub ebp, edx
test eax, eax
mov dword [esp + 0x18], ebp
je 0x49317a
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push 1
push ecx
mov ecx, dword [esi + 0x244]
push edx
push ebx
push ecx
jmp 0x493193
mov eax, dword [esi + 0x12e0]
test eax, eax
je 0x49319a
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push 1
push edx
push ecx
push ebx
push 0
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_Draw]
mov ecx, dword [esi + 0x27c]
call fcn.004844b0
mov ecx, dword [esp + 0x10]
mov edx, dword [eax]
mov ebp, dword [esp + 0x18]
push 0
push 0
push 0
push 0
push 0
add ecx, 0x10
push 0
lea eax, [esp + 0x28]
push 0
add ebp, edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 0x27c]
push eax
push ebx
mov dword [esp + 0x3c], ebp
call fcn.00483a00
cmp word [esi + 0x30], 0
lea ebp, [esi + 0x30]
je 0x4932b3
mov eax, dword [esi + 0x24c]
test eax, eax
je 0x493209
mov ecx, eax
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.dll_GetFocus]
cmp dword [esp + 0x20], eax
je 0x4932b3
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x92]
mov word [esp + 0x90], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x24c]
lea edx, [esp + 0x90]
push 0x103
push edx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp word [esp + 0x90], 0
jne 0x4932af
mov eax, dword [esi + 0x1350]
test eax, eax
je 0x4932af
lea eax, [esp + 0x30]
push 0
push eax
mov ecx, esi
call fcn.004918f0
mov ecx, dword [esi + 0x1350]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push ecx
push ebx
call edi
push 1
push ebx
mov dword [esp + 0x28], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov edx, dword [esi + 0x270]
push edx
push ebx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea eax, [esp + 0x30]
push 0x28
push eax
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 ecx, dword [esp + 0x20]
push ecx
push ebx
call edi
mov edi, dword [esp + 0x24]
mov eax, dword [esi + 4]
lea edx, [esp + 0x10]
push edx
push eax
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 + 0x28]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x2c]
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