Function at 0x40c662
Capabilities:
Get file attributes
Set console window title
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb90
mov eax, dword [0x5025d0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov esi, 0x103
push esi
xor ebx, ebx
lea eax, [ebp - 0x21b]
push ebx
push eax
mov byte [ebp - 0x21c], 0
call fcn.004a8c80
add esp, 0xc
push esi
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.004a8c80
add esp, 0xc
push 0x7ff
lea eax, [ebp - 0xb23]
push ebx
push eax
mov byte [ebp - 0xb24], bl
call fcn.004a8c80
xor eax, eax
mov dword [ebp - 0xb40], ebx
lea edi, [ebp - 0xb3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0xb88]
push ebx
push eax
mov dword [ebp - 0xb8c], ebx
call fcn.004a8c80
add esp, 0xc
push str.PAULA_Initialization...
mov dword [ebp - 0xb30], ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [ebp + 8], ebx
jne 0x40c78f
cmp dword [0x515790], ebx
mov dword [ebp - 0xb28], ebx
jle 0x40c78f
mov edi, dword [ebp - 0xb28]
lea edi, [edi*4 + 0x515798]
push dword [edi]
mov esi, 0x4c9d28
call fcn.00477b57
test eax, eax
pop ecx
je 0x40c7e8
push dword [edi]
mov esi, str._Spawned
call fcn.00477b57
test eax, eax
pop ecx
je 0x40c7e8
push dword [edi]
mov esi, 0x4c9d40
call fcn.00477b57
test eax, eax
pop ecx
je 0x40cc3c
push dword [edi]
mov esi, str._CreateTerminal
call fcn.00477b57
test eax, eax
pop ecx
je 0x40cc3c
inc dword [ebp - 0xb28]
mov eax, dword [ebp - 0xb28]
cmp eax, dword [0x515790]
jl 0x40c71a
cmp dword [0x515790], ebx
mov dword [ebp - 0xb2c], ebx
mov dword [ebp - 0xb28], ebx
jle 0x40c7f9
mov edi, dword [ebp - 0xb28]
lea edi, [edi*4 + 0x515798]
push dword [edi]
mov esi, 0x4c9d60
call fcn.00477b57
test eax, eax
pop ecx
je 0x40c7ef
push dword [edi]
mov esi, str._TelNet
call fcn.00477b57
test eax, eax
pop ecx
je 0x40c7ef
inc dword [ebp - 0xb28]
mov eax, dword [ebp - 0xb28]
cmp eax, dword [0x515790]
jl 0x40c7a3
jmp 0x40c7f9
xor eax, eax
jmp 0x40cc3f
mov dword [ebp - 0xb2c], 1
cmp dword [ebp + 8], ebx
je 0x40c808
mov dword [ebp - 0xb2c], 1
push ebx
push ebx
call fcn.0045bc06
pop ecx
pop ecx
mov edi, eax
call fcn.00419e19
test eax, eax
jne 0x40c82e
push ebx
push ebx
push ebx
call fcn.0045bc06
pop ecx
pop ecx
mov ecx, eax
call fcn.0041a1a7
pop ecx
push ebx
push ebx
call fcn.0045ba18
pop ecx
pop ecx
push eax
push ebx
push ebx
call fcn.0045bc06
pop ecx
pop ecx
push eax
call fcn.004785e7
test eax, eax
pop ecx
pop ecx
jne 0x40c873
push ebx
push ebx
call fcn.0045ba18
pop ecx
pop ecx
mov edi, eax
call fcn.00419e19
test eax, eax
jne 0x40c873
push ebx
push ebx
push ebx
call fcn.0045ba18
pop ecx
pop ecx
mov ecx, eax
call fcn.0041a1a7
pop ecx
push str.PAULA.exe
push ebx
push ebx
call fcn.0045ba18
pop ecx
pop ecx
push eax
mov esi, 0x4c8500
push esi
mov ebx, 0x104
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.00478fcf
add esp, 0x14
lea edi, [ebp - 0x21c]
call fcn.00419e19
test eax, eax
jne 0x40c8d3
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00419e19
test eax, eax
jne 0x40c8d3
push 1
mov eax, edi
push eax
push dword [0x515798]
call fcn.00419828
add esp, 0xc
mov edi, dword [0x515798]
call fcn.00419e19
test eax, eax
je 0x40c98b
push dword [0x515798]
mov ecx, ebx
lea eax, [ebp - 0x21c]
call fcn.00477a48
pop ecx
push eax
mov ecx, ebx
lea eax, [ebp - 0x114]
call fcn.00477a48
pop ecx
mov esi, eax
call fcn.00477d45
mov eax, esi
push str.PAULA.st
push eax
call fcn.004a8a6f
test eax, eax
pop ecx
pop ecx
jne 0x40c979
push str.PAULA.exe
push eax
push eax
call fcn.0045ba18
pop ecx
pop ecx
push eax
mov esi, 0x4c8500
push esi
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.00478fcf
add esp, 0x14
lea edi, [ebp - 0x114]
call fcn.00419e19
test eax, eax
je 0x40c979
push str.PAULA.exe
push 0
push 0
call fcn.0045ba18
pop ecx
pop ecx
push eax
push esi
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.00478fcf
add esp, 0x14
lea eax, [ebp - 0x114]
call fcn.00477999
mov esi, 0x4c8500
jmp 0x40c9ad
push str.PAULA.exe
push 0
push 0
call fcn.0045ba18
pop ecx
pop ecx
push eax
push esi
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.00478fcf
add esp, 0x14
xor edi, edi
cmp dword [ebp - 0xb2c], edi
je 0x40ca68
push str.ttcon.dat
push edi
push edi
mov dword [ebp - 0xb30], 1
call fcn.0045ba18
pop ecx
pop ecx
push eax
push esi
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.00478fcf
add esp, 0x14
push edi
push edi
call fcn.0045bc06
push eax
push str._sTelKomm
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.00478fcf
add esp, 0x18
lea edi, [ebp - 0x21c]
call fcn.00419e19
test eax, eax
jne 0x40ca37
call fcn.0040fd38
test eax, eax
jne 0x40ca37
push 0x10
push str.__ERROR__
push str.The_TelKomm_dependency_file_is_missing_
call fcn.0040af64
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40cc3c
push 0
push 0
xor ecx, ecx
call fcn.0043dc09
push eax
lea eax, [ebp - 0x114]
push eax
push str.__s___s__Spawned
lea eax, [ebp - 0xb24]
push 0x800
push eax
call fcn.00478fcf
add esp, 0x1c
jmp 0x40cb0a
mov ecx, str.PAULA.exe
call fcn.004782d7
push eax
push edi
push edi
call fcn.0045bc06
pop ecx
pop ecx
push eax
push esi
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.00478fcf
add esp, 0x14
lea eax, [ebp - 0x114]
push eax
push str.__s___Spawned
mov edi, 0x800
lea eax, [ebp - 0xb24]
push edi
push eax
call fcn.00478fcf
xor eax, eax
inc eax
add esp, 0x10
cmp dword [0x515790], eax
mov dword [ebp - 0xb28], eax
jle 0x40cb0a
push 0x4c9dec
mov eax, edi
lea esi, [ebp - 0xb24]
call fcn.00477b18
mov eax, dword [ebp - 0xb28]
pop ecx
push dword [eax*4 + 0x515798]
mov eax, edi
call fcn.00477b18
mov eax, edi
mov dword [esp], 0x4c9df0
call fcn.00477b18
inc dword [ebp - 0xb28]
mov eax, dword [ebp - 0xb28]
cmp eax, dword [0x515790]
pop ecx
jl 0x40cac0
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x40cb2c
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0xb2c], 0
je 0x40cb54
cmp dword [ebp - 0xb30], 0
je 0x40cb54
lea eax, [ebp - 0x114]
push eax
mov edx, eax
lea ecx, [ebp - 0x21c]
call fcn.00419c65
jmp 0x40cb68
lea eax, [ebp - 0x114]
push eax
mov edx, eax
lea ecx, [ebp - 0x21c]
call fcn.00419c54
test eax, eax
pop ecx
je 0x40c7e8
lea edi, [ebp - 0x114]
call fcn.00419e19
xor esi, esi
cmp dword [ebp - 0xb2c], esi
je 0x40cc4e
push esi
mov ecx, str.TelKomm
call fcn.0040bd15
cmp eax, 0x19
pop ecx
jg 0x40c7e8
push 0x10
lea eax, [ebp - 0xb40]
push esi
push eax
call fcn.004a8c80
add esp, 0xc
push 0x44
pop edi
push edi
lea eax, [ebp - 0xb8c]
push esi
push eax
call fcn.004a8c80
xor eax, eax
inc eax
add esp, 0xc
mov dword [ebp - 0xb8c], edi
mov dword [ebp - 0xb60], eax
mov word [ebp - 0xb5c], ax
call fcn.0040faf0
test eax, eax
je 0x40cbf1
lea eax, [ebp - 0x114]
push eax
call fcn.0040bf5e
pop ecx
lea eax, [ebp - 0xb40]
push eax
push esi
push esi
call fcn.0045ba18
pop ecx
pop ecx
push eax
lea eax, [ebp - 0xb24]
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xb8c]
call fcn.0040f631
add esp, 0x10
test eax, eax
je 0x40c7e8
mov esi, dword [ebp - 0xb3c]
call fcn.0041c426
mov esi, dword [ebp - 0xb40]
call fcn.0041c426
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8565
leave
ret
push 0x103
lea eax, [ebp - 0x323]
push esi
push eax
mov byte [ebp - 0x324], 0
call fcn.004a8c80
add esp, 0xc
mov ecx, str.PAULA.exe
call fcn.004782d7
push eax
mov ecx, ebx
lea eax, [ebp - 0x324]
call fcn.00477a48
pop ecx
push esi
mov ecx, eax
call fcn.0040bd15
cmp eax, 0x14
jmp 0x40cb98