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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb90
mov eax, dword [0x51f5d0]
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.004c05d0
add esp, 0xc
push esi
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.004c05d0
add esp, 0xc
push 0x7ff
lea eax, [ebp - 0xb23]
push ebx
push eax
mov byte [ebp - 0xb24], bl
call fcn.004c05d0
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.004c05d0
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 0x40c989
cmp dword [0x525cb0], ebx
mov dword [ebp - 0xb28], ebx
jle 0x40c989
mov edi, dword [ebp - 0xb28]
lea edi, [edi*4 + 0x525cb8]
push dword [edi]
mov esi, 0x4e10c0
call fcn.00485895
test eax, eax
pop ecx
je 0x40c9e2
push dword [edi]
mov esi, str._Spawned
call fcn.00485895
test eax, eax
pop ecx
je 0x40c9e2
push dword [edi]
mov esi, 0x4e10d8
call fcn.00485895
test eax, eax
pop ecx
je 0x40ce72
push dword [edi]
mov esi, str._CreateTerminal
call fcn.00485895
test eax, eax
pop ecx
je 0x40ce72
inc dword [ebp - 0xb28]
mov eax, dword [ebp - 0xb28]
cmp eax, dword [0x525cb0]
jl 0x40c914
cmp dword [0x525cb0], ebx
mov dword [ebp - 0xb2c], ebx
mov dword [ebp - 0xb28], ebx
jle 0x40c9f3
mov edi, dword [ebp - 0xb28]
lea edi, [edi*4 + 0x525cb8]
push dword [edi]
mov esi, 0x4e10f8
call fcn.00485895
test eax, eax
pop ecx
je 0x40c9e9
push dword [edi]
mov esi, str._TelNet
call fcn.00485895
test eax, eax
pop ecx
je 0x40c9e9
inc dword [ebp - 0xb28]
mov eax, dword [ebp - 0xb28]
cmp eax, dword [0x525cb0]
jl 0x40c99d
jmp 0x40c9f3
xor eax, eax
jmp 0x40ce75
mov dword [ebp - 0xb2c], 1
cmp dword [ebp + 8], ebx
je 0x40ca02
mov dword [ebp - 0xb2c], 1
push ebx
push ebx
call fcn.0045f7e3
pop ecx
pop ecx
mov edi, eax
call fcn.0041a56b
test eax, eax
jne 0x40ca28
push ebx
push ebx
push ebx
call fcn.0045f7e3
pop ecx
pop ecx
mov ecx, eax
call fcn.0041a8fa
pop ecx
push ebx
push ebx
call fcn.0045f646
pop ecx
pop ecx
push eax
push ebx
push ebx
call fcn.0045f7e3
pop ecx
pop ecx
push eax
call fcn.00486428
test eax, eax
pop ecx
pop ecx
jne 0x40ca6d
push ebx
push ebx
call fcn.0045f646
pop ecx
pop ecx
mov edi, eax
call fcn.0041a56b
test eax, eax
jne 0x40ca6d
push ebx
push ebx
push ebx
call fcn.0045f646
pop ecx
pop ecx
mov ecx, eax
call fcn.0041a8fa
pop ecx
push str.PAULA.exe
push ebx
push ebx
call fcn.0045f646
pop ecx
pop ecx
push eax
mov esi, 0x4df748
push esi
mov ebx, 0x104
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.00486e10
add esp, 0x14
lea edi, [ebp - 0x21c]
call fcn.0041a56b
test eax, eax
jne 0x40cacd
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0041a56b
test eax, eax
jne 0x40cacd
push 1
mov eax, edi
push eax
push dword [0x525cb8]
call fcn.00419f7a
add esp, 0xc
mov edi, dword [0x525cb8]
call fcn.0041a56b
test eax, eax
je 0x40cb8c
push dword [0x525cb8]
mov ecx, ebx
lea eax, [ebp - 0x21c]
call fcn.00485786
pop ecx
push eax
mov ecx, ebx
lea eax, [ebp - 0x114]
call fcn.00485786
pop ecx
mov esi, eax
call fcn.00485a88
mov eax, esi
push str.PAULA.st
push eax
call fcn.004c03bf
test eax, eax
pop ecx
pop ecx
jne 0x40cb7a
mov esi, str.PAULA.exe
push esi
push eax
push eax
call fcn.0045f646
pop ecx
pop ecx
push eax
push 0x4df748
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.00486e10
add esp, 0x14
lea edi, [ebp - 0x114]
call fcn.0041a56b
test eax, eax
je 0x40cb7a
call fcn.0045fba0
test eax, eax
jne 0x40cb7a
push esi
push eax
push eax
call fcn.0045f646
pop ecx
pop ecx
push eax
push 0x4df748
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.00486e10
add esp, 0x14
lea eax, [ebp - 0x114]
call fcn.004856d7
mov esi, 0x4df748
jmp 0x40cbae
push str.PAULA.exe
push 0
push 0
call fcn.0045f646
pop ecx
pop ecx
push eax
push esi
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.00486e10
add esp, 0x14
xor edi, edi
cmp dword [ebp - 0xb2c], edi
je 0x40cc9e
push str.ttcon.dat
push edi
push edi
mov dword [ebp - 0xb30], 1
call fcn.0045f646
pop ecx
pop ecx
push eax
push esi
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.00486e10
add esp, 0x14
push edi
push edi
call fcn.0045f7e3
push eax
push str._sTelKomm
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.00486e10
add esp, 0x18
lea edi, [ebp - 0x21c]
call fcn.0041a56b
test eax, eax
jne 0x40cc38
call fcn.0040ffd6
test eax, eax
jne 0x40cc38
push 0x10
push str.__ERROR__
push str.The_TelKomm_dependency_file_is_missing_
call fcn.0040adda
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40ce72
call fcn.0045fba0
test eax, eax
push 0
je 0x40cc6f
call fcn.0045fad4
pop ecx
push eax
lea eax, [ebp - 0x114]
push eax
push str.__s___s__Spawned
lea eax, [ebp - 0xb24]
push 0x800
push eax
call fcn.00486e10
add esp, 0x14
jmp 0x40cd40
push 0
xor ecx, ecx
call fcn.004407ab
push eax
lea eax, [ebp - 0x114]
push eax
push str.__s___s__Spawned
lea eax, [ebp - 0xb24]
push 0x800
push eax
call fcn.00486e10
add esp, 0x1c
jmp 0x40cd40
mov ecx, str.PAULA.exe
call fcn.004860e6
push eax
push edi
push edi
call fcn.0045f7e3
pop ecx
pop ecx
push eax
push esi
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.00486e10
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.00486e10
xor eax, eax
inc eax
add esp, 0x10
cmp dword [0x525cb0], eax
mov dword [ebp - 0xb28], eax
jle 0x40cd40
push 0x4e1184
mov eax, edi
lea esi, [ebp - 0xb24]
call fcn.00485856
mov eax, dword [ebp - 0xb28]
pop ecx
push dword [eax*4 + 0x525cb8]
mov eax, edi
call fcn.00485856
mov eax, edi
mov dword [esp], 0x4e1188
call fcn.00485856
inc dword [ebp - 0xb28]
mov eax, dword [ebp - 0xb28]
cmp eax, dword [0x525cb0]
pop ecx
jl 0x40ccf6
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x40cd62
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0xb2c], 0
je 0x40cd8a
cmp dword [ebp - 0xb30], 0
je 0x40cd8a
lea eax, [ebp - 0x114]
push eax
mov edx, eax
lea ecx, [ebp - 0x21c]
call fcn.0041a3b7
jmp 0x40cd9e
lea eax, [ebp - 0x114]
push eax
mov edx, eax
lea ecx, [ebp - 0x21c]
call fcn.0041a3a6
test eax, eax
pop ecx
je 0x40c9e2
lea edi, [ebp - 0x114]
call fcn.0041a56b
xor esi, esi
cmp dword [ebp - 0xb2c], esi
je 0x40ce84
push esi
mov ecx, str.TelKomm
call fcn.0040bb8b
cmp eax, 0x19
pop ecx
jg 0x40c9e2
push 0x10
lea eax, [ebp - 0xb40]
push esi
push eax
call fcn.004c05d0
add esp, 0xc
push 0x44
pop edi
push edi
lea eax, [ebp - 0xb8c]
push esi
push eax
call fcn.004c05d0
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.0040fd96
test eax, eax
je 0x40ce27
lea eax, [ebp - 0x114]
push eax
call fcn.0040bea5
pop ecx
lea eax, [ebp - 0xb40]
push eax
push esi
push esi
call fcn.0045f646
pop ecx
pop ecx
push eax
lea eax, [ebp - 0xb24]
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xb8c]
call fcn.0040f89c
add esp, 0x10
test eax, eax
je 0x40c9e2
mov esi, dword [ebp - 0xb3c]
call fcn.0041cc21
mov esi, dword [ebp - 0xb40]
call fcn.0041cc21
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004bfeb5
leave
ret
push 0x103
lea eax, [ebp - 0x323]
push esi
push eax
mov byte [ebp - 0x324], 0
call fcn.004c05d0
add esp, 0xc
mov ecx, str.PAULA.exe
call fcn.004860e6
push eax
mov ecx, ebx
lea eax, [ebp - 0x324]
call fcn.00485786
pop ecx
push esi
mov ecx, eax
call fcn.0040bb8b
cmp eax, 0x14
jmp 0x40cdce