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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb84
mov eax, dword [0x5065d0]
xor eax, esp
mov dword [esp + 0xb80], eax
push ebx
push esi
push edi
mov esi, 0x103
push esi
xor ebx, ebx
lea eax, [esp + 0x17d]
push ebx
push eax
mov byte [esp + 0x184], 0
call fcn.004ab5d0
add esp, 0xc
push esi
lea eax, [esp + 0x75]
push ebx
push eax
mov byte [esp + 0x7c], bl
call fcn.004ab5d0
add esp, 0xc
push 0x7ff
lea eax, [esp + 0x38d]
push ebx
push eax
mov byte [esp + 0x394], bl
call fcn.004ab5d0
xor eax, eax
mov dword [esp + 0x24], ebx
lea edi, [esp + 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
push 0x40
stosd dword es:[edi], eax
lea eax, [esp + 0x30]
push ebx
push eax
mov dword [esp + 0x34], ebx
call fcn.004ab5d0
add esp, 0xc
push str.PAULA_Initialization...
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x519790]
cmp eax, ebx
mov dword [esp + 0xc], ebx
jle 0x40bcc2
mov edi, dword [esp + 0xc]
lea edi, [edi*4 + 0x519798]
push dword [edi]
mov esi, 0x4cbbac
call fcn.00476c7b
test eax, eax
pop ecx
je 0x40bd0d
push dword [edi]
mov esi, str._Spawned
call fcn.00476c7b
test eax, eax
pop ecx
je 0x40bd0d
push dword [edi]
mov esi, 0x4cbbc4
call fcn.00476c7b
test eax, eax
pop ecx
je 0x40c115
push dword [edi]
mov esi, str._CreateTerminal
call fcn.00476c7b
test eax, eax
pop ecx
je 0x40c115
inc dword [esp + 0xc]
mov eax, dword [0x519790]
cmp dword [esp + 0xc], eax
jl 0x40bc54
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
jle 0x40bd1c
mov edi, dword [esp + 0xc]
lea edi, [edi*4 + 0x519798]
push dword [edi]
mov esi, 0x4cbbe4
call fcn.00476c7b
test eax, eax
pop ecx
je 0x40bd14
push dword [edi]
mov esi, str._TelNet
call fcn.00476c7b
test eax, eax
pop ecx
je 0x40bd14
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, dword [0x519790]
jl 0x40bcce
jmp 0x40bd1c
xor eax, eax
jmp 0x40c118
mov dword [esp + 0x10], 1
push ebx
push ebx
call fcn.0045ac28
pop ecx
pop ecx
mov edi, eax
call fcn.0041a629
test eax, eax
jne 0x40bd42
push ebx
push ebx
push ebx
call fcn.0045ac28
pop ecx
pop ecx
mov ecx, eax
call fcn.0041a9b8
pop ecx
push ebx
push ebx
call fcn.0045aa3a
pop ecx
pop ecx
push eax
push ebx
push ebx
call fcn.0045ac28
pop ecx
pop ecx
push eax
call fcn.004777c9
test eax, eax
pop ecx
pop ecx
jne 0x40bd87
push ebx
push ebx
call fcn.0045aa3a
pop ecx
pop ecx
mov edi, eax
call fcn.0041a629
test eax, eax
jne 0x40bd87
push ebx
push ebx
push ebx
call fcn.0045aa3a
pop ecx
pop ecx
mov ecx, eax
call fcn.0041a9b8
pop ecx
push str.PAULA.exe
push ebx
push ebx
call fcn.0045aa3a
pop ecx
pop ecx
push eax
mov esi, 0x4ca4a0
push esi
mov ebx, 0x104
lea eax, [esp + 0x184]
push ebx
push eax
call fcn.004781b1
add esp, 0x14
lea edi, [esp + 0x178]
call fcn.0041a629
test eax, eax
jne 0x40bde9
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0041a629
test eax, eax
jne 0x40bde9
push 1
mov eax, edi
push eax
push dword [0x519798]
call fcn.00419fc7
add esp, 0xc
mov edi, dword [0x519798]
call fcn.0041a629
test eax, eax
je 0x40be9b
push dword [0x519798]
mov ecx, ebx
lea eax, [esp + 0x17c]
call fcn.00476b6c
pop ecx
push eax
mov ecx, ebx
lea eax, [esp + 0x74]
call fcn.00476b6c
pop ecx
mov esi, eax
call fcn.00476e69
mov eax, esi
push str.PAULA.st
push eax
call fcn.004ab3bf
test eax, eax
pop ecx
pop ecx
jne 0x40be8b
push str.PAULA.exe
push eax
push eax
call fcn.0045aa3a
pop ecx
pop ecx
push eax
mov esi, 0x4ca4a0
push esi
lea eax, [esp + 0x7c]
push ebx
push eax
call fcn.004781b1
add esp, 0x14
lea edi, [esp + 0x70]
call fcn.0041a629
test eax, eax
je 0x40be8b
push str.PAULA.exe
push 0
push 0
call fcn.0045aa3a
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x184]
push ebx
push eax
call fcn.004781b1
add esp, 0x14
lea eax, [esp + 0x70]
call fcn.00476abd
mov esi, 0x4ca4a0
jmp 0x40bebe
push str.PAULA.exe
push 0
push 0
call fcn.0045aa3a
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x184]
push ebx
push eax
call fcn.004781b1
add esp, 0x14
xor edi, edi
cmp dword [esp + 0x10], edi
je 0x40bf71
push str.ttcon.dat
push edi
push edi
mov dword [esp + 0x20], 1
call fcn.0045aa3a
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x184]
push ebx
push eax
call fcn.004781b1
add esp, 0x14
push edi
push edi
call fcn.0045ac28
push eax
push str._sTelKomm
lea eax, [esp + 0x80]
push ebx
push eax
call fcn.004781b1
add esp, 0x18
lea edi, [esp + 0x178]
call fcn.0041a629
test eax, eax
jne 0x40bf47
call fcn.0040ef45
test eax, eax
jne 0x40bf47
push 0x10
push str.__ERROR__
push str.The_TelKomm_dependency_file_is_missing_
call fcn.0040a9fc
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40c115
call fcn.0043f08e
push eax
lea eax, [esp + 0x74]
push eax
push str.__s___s__Spawned
lea eax, [esp + 0x394]
push 0x800
push eax
call fcn.004781b1
add esp, 0x14
jmp 0x40c009
mov ecx, str.PAULA.exe
call fcn.00477460
push eax
push edi
push edi
call fcn.0045ac28
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x7c]
push ebx
push eax
call fcn.004781b1
add esp, 0x14
lea eax, [esp + 0x70]
push eax
push str.__s___Spawned
mov edi, 0x800
lea eax, [esp + 0x390]
push edi
push eax
call fcn.004781b1
xor eax, eax
inc eax
add esp, 0x10
cmp dword [0x519790], eax
mov dword [esp + 0xc], eax
jle 0x40c009
push 0x4cbc70
mov eax, edi
lea esi, [esp + 0x38c]
call fcn.00476c3c
mov eax, dword [esp + 0x10]
pop ecx
push dword [eax*4 + 0x519798]
mov eax, edi
call fcn.00476c3c
mov eax, edi
mov dword [esp], 0x4cbc74
call fcn.00476c3c
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [0x519790]
pop ecx
jl 0x40bfc4
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x40c02d
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esp + 0x10], 0
je 0x40c050
cmp dword [esp + 0x14], 0
je 0x40c050
lea eax, [esp + 0x70]
push eax
mov edx, eax
lea ecx, [esp + 0x17c]
call fcn.0041a475
jmp 0x40c063
lea eax, [esp + 0x70]
push eax
mov edx, eax
lea ecx, [esp + 0x17c]
call fcn.0041a464
test eax, eax
pop ecx
je 0x40bd0d
lea edi, [esp + 0x70]
call fcn.0041a629
xor esi, esi
cmp dword [esp + 0x10], esi
je 0x40c12d
push esi
mov ecx, str.TelKomm
call fcn.0040b2f4
cmp eax, 0x19
pop ecx
jg 0x40bd0d
push 0x10
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.004ab5d0
add esp, 0xc
push 0x44
pop edi
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.004ab5d0
xor eax, eax
inc eax
mov dword [esp + 0x60], eax
mov word [esp + 0x64], ax
lea eax, [esp + 0x7c]
add esp, 0xc
push eax
mov dword [esp + 0x2c], edi
call fcn.0040b4e9
pop ecx
lea eax, [esp + 0x18]
push eax
push esi
push esi
call fcn.0045aa3a
pop ecx
pop ecx
push eax
lea eax, [esp + 0x390]
push eax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x38]
call fcn.0040eb49
add esp, 0x10
test eax, eax
je 0x40bd0d
mov esi, dword [esp + 0x1c]
call fcn.0041cef3
mov esi, dword [esp + 0x18]
call fcn.0041cef3
xor eax, eax
inc eax
mov ecx, dword [esp + 0xb8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004aaeb5
mov esp, ebp
pop ebp
ret
push 0x103
lea eax, [esp + 0x285]
push esi
push eax
mov byte [esp + 0x28c], 0
call fcn.004ab5d0
add esp, 0xc
mov ecx, str.PAULA.exe
call fcn.00477460
push eax
mov ecx, ebx
lea eax, [esp + 0x284]
call fcn.00476b6c
pop ecx
push esi
mov ecx, eax
call fcn.0040b2f4
cmp eax, 0x14
jmp 0x40c08f