Function at 0x1004c7f0
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x10059950
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1006e020]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 0xb14]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0xf0
push eax
call esi
cmp eax, 1
mov eax, 0x1005de1c
je 0x1004c842
mov eax, 0x1005de20
mov ecx, dword [edi + 0x198]
push eax
push ecx
mov ebx, str.ACAD_IE_REQUIRED
call fcn.1004a850
mov edx, dword [edi + 0xb18]
add esp, 8
push 0
push 0
push 0xf0
push edx
call esi
cmp eax, 1
mov eax, 0x1005e684
je 0x1004c878
mov eax, 0x1005e68c
push eax
mov eax, dword [edi + 0x198]
push eax
mov ebx, str.ACAD_DWFX_FORMAT
call fcn.1004a850
mov ecx, dword [0x1006eb44]
add esp, 8
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], 0
mov edx, dword [edi + 0xb1c]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
add esi, 1
mov ecx, esi
lea ebx, [esp + 0x18]
call fcn.10015350
push esi
push eax
mov eax, dword [edi + 0xb1c]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, ebx
call fcn.10011c20
mov ebp, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebp
call esi
mov dword [ebp - 8], eax
mov word [ebp + eax*2], 0
cmp dword [ebp - 8], 0
je 0x1004cb04
cmp dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
mov dword [esp + 0x20], eax
jl 0x1004c90f
mov edi, ebp
push eax
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x1004c92c
mov ecx, dword [0x1006eb44]
push ebp
mov dword [esp + 0x18], ecx
call esi
push ebp
mov ebx, eax
lea esi, [esp + 0x18]
call fcn.100158a0
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
mov ecx, 2
lea ebx, [esp + 0x18]
mov byte [esp + 0x30], 1
call fcn.10015a20
mov eax, dword [eax]
mov esi, dword [sym.imp.MSVCR80.dll__wcsicmp]
push 0x100616d4
push eax
call esi
add esp, 8
test eax, eax
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0xc]
sete bl
cmp ecx, 0x1006eb34
je 0x1004c989
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1004c989
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
test bl, bl
je 0x1004c9e8
mov edi, dword [edi - 8]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
lea ecx, [edi - 2]
push eax
call fcn.10015170
mov edi, eax
lea eax, [esp + 0x14]
mov byte [esp + 0x2c], 2
call fcn.10015ac0
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x1004c9e4
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1004c9e4
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
mov ecx, 2
call fcn.10015170
mov eax, dword [eax]
push 0x100616dc
push eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0xc]
sete bl
cmp ecx, 0x1006eb34
je 0x1004ca3d
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x1004ca3d
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff4
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
test bl, bl
je 0x1004ca95
mov edi, dword [edi - 8]
lea edx, [esp + 0x1c]
lea ecx, [edi - 2]
push edx
lea ebx, [esp + 0x18]
call fcn.10015a20
mov edi, eax
mov eax, ebx
mov byte [esp + 0x2c], 3
call fcn.10015ac0
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, 0x1006eb34
je 0x1004ca91
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x1004ca91
mov edx, dword [esp + 0x1c]
add edx, 0xfffffff4
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov edi, dword [esp + 0x14]
cmp dword [edi - 8], 0
je 0x1004cac3
call fcn.1004a5d0
test al, al
je 0x1004cac3
lea eax, [edi - 0xc]
cmp eax, 0x1006eb34
je 0x1004cb0a
add edi, 0xfffffff4
push edi
call esi
test eax, eax
jg 0x1004cb0a
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
jmp 0x1004cb0a
lea ecx, [edi - 0xc]
cmp ecx, 0x1006eb34
je 0x1004cae1
add edi, 0xfffffff4
push edi
call esi
test eax, eax
jg 0x1004cae1
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
add ebp, 0xfffffff4
cmp ebp, 0x1006eb34
je 0x1004cb00
mov edi, dword [esp + 0x20]
push edi
call esi
test eax, eax
jg 0x1004cb00
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
xor al, al
jmp 0x1004cb43
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 0x198]
push ebp
push eax
mov ebx, str.ACADDEFAULTPROFILENAME
call fcn.1004a850
lea ecx, [ebp - 0xc]
add esp, 8
cmp ecx, 0x1006eb34
je 0x1004cb41
add ebp, 0xfffffff4
push ebp
call esi
test eax, eax
jg 0x1004cb41
push ebp
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4