Function at 0x48a9d7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x470
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
je 0x48acbc
cmp byte [0x5e2e84], 0
je 0x48acbc
push ebx
lea eax, [ebp - 0x28]
push eax
sub eax, 4
push eax
call fcn.0048a27b
cmp dword [ebp - 0x2c], 0
jl 0x48acbc
mov edx, dword [0x5d25b8]
cmp edx, 0
jge 0x48aa30
cmp dword [0x5d25b4], 1
je 0x48aa30
cmp edx, reloc.gdi32.dll_AbortDoc
je 0x48acbc
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x50], eax
push eax
mov eax, dword [0x5d25b4]
add eax, edx
push eax
push 0x107
lea eax, reloc.gdi32.dll_AbortDoc
push eax
call fcn.004468a6
lea eax, reloc.gdi32.dll_AbortDoc
push eax
push dword [0x5d2578]
call sub.user32.dll_SetWindowTextW
cmp byte [ebp + 8], 0
je 0x48aacb
mov eax, dword [0x5d25b4]
push dword [ebp - 0x50]
add eax, dword [0x5d25b8]
push eax
push 0x107
lea eax, reloc.gdi32.dll_AbortDoc
push eax
lea eax, [ebp - 0x3e]
push eax
call fcn.004f8d04
push 0x108
lea eax, reloc.gdi32.dll_AbortDoc
push eax
push dword [0x5d257c]
call sub.user32.dll_GetWindowTextW
cmp word [ebp - 0x470], 0
jne 0x48aaba
cmp word [ebp - 0x260], 0
je 0x48aacb
push 0x107
lea eax, reloc.gdi32.dll_AbortDoc
push eax
call fcn.00489f8b
push 0
push ebx
lea eax, [ebp - 4]
push eax
call fcn.0048a0af
call fcn.0048967e
mov edx, dword [0x5d25b8]
add edx, 2
imul edx, dword [0x5d2568]
lea edi, [eax + edx]
push ebx
call fcn.0048a24a
mov dword [ebp - 8], 0
mov esi, eax
jmp 0x48ab19
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 8]
push eax
call fcn.004f98ac
inc eax
imul eax, dword [0x5d2558]
add esi, eax
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x2c]
jge 0x48ab32
mov edx, dword [0x5e8c50]
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 8]
dec edx
cmp eax, edx
jl 0x48ab00
push 5
call sub.gdi32.dll_GetStockObject
push eax
push dword [ebp - 4]
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 3
mov dword [ebp - 0x18], 3
push 0xf
call fcn.0040d061
mov dword [ebp - 0x14], eax
dec dword [ebp - 0x1c]
dec dword [ebp - 0x18]
inc esi
inc edi
lea eax, [ebp - 0x20]
push eax
call sub.gdi32.dll_CreatePenIndirect
mov dword [ebp - 0x44], eax
push eax
push dword [ebp - 4]
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x48], eax
push 6
push dword [ebp - 4]
call sub.gdi32.dll_SetROP2
mov dword [ebp - 0x24], eax
push dword [ebp - 0x50]
call fcn.004f98ac
inc eax
imul eax, dword [0x5d2558]
lea eax, [esi + eax + 1]
mov dword [ebp - 0xc], eax
mov edx, dword [0x5d2568]
lea eax, [edx + edi + 1]
mov dword [ebp - 0x10], eax
dec dword [ebp - 0xc]
dec eax
mov dword [ebp - 0x10], eax
call fcn.0048967e
add eax, edx
cmp edi, eax
jl 0x48abd4
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push edi
push esi
push dword [ebp - 4]
call sub.gdi32.dll_Rectangle
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], edi
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x30], eax
cmp ebx, dword [0x5d256c]
jne 0x48abfb
mov edi, 0x5d2614
lea esi, [ebp - 0x3c]
cld
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp ebx, dword [0x5d2570]
jne 0x48ac10
mov edi, 0x5d2624
lea esi, [ebp - 0x3c]
cld
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [0x5d25ac], ebx
mov eax, dword [ebp - 0xc]
mov dword [0x5d25a4], eax
mov eax, dword [ebp - 0x10]
mov dword [0x5d25a8], eax
push dword [ebp - 0x24]
push dword [ebp - 4]
call sub.gdi32.dll_SetROP2
push dword [ebp - 0x48]
push dword [ebp - 4]
call sub.gdi32.dll_SelectObject
push dword [ebp - 0x44]
call sub.gdi32.dll_DeleteObject
cmp ebx, dword [0x5d2570]
jne 0x48aca0
push 0x15
call sub.user32.dll_GetSysColor
push eax
push 1
push 0
call sub.gdi32.dll_CreatePen
mov esi, eax
push eax
push dword [ebp - 4]
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0x4c], eax
push 0
call fcn.0048967e
inc eax
push eax
push 0
push dword [ebp - 4]
call sub.gdi32.dll_MoveToEx
mov eax, dword [0x5d2564]
inc eax
push eax
push 0
push dword [ebp - 4]
call sub.gdi32.dll_LineTo
push dword [ebp - 0x4c]
push dword [ebp - 4]
call sub.gdi32.dll_SelectObject
push esi
call sub.gdi32.dll_DeleteObject
push 0
push ebx
push dword [ebp - 4]
call fcn.0048a19e
push dword [0x5d256c]
call fcn.0048a63c
push ebx
call fcn.0048a8a3
pop edi
pop esi
pop ebx
leave
ret 8