Function at 0x4af796
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 [0x5092e4]
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.00401f80
add esp, 0xc
push esi
lea eax, [esp + 0x75]
push ebx
push eax
mov byte [esp + 0x7c], bl
call fcn.00401f80
add esp, 0xc
push 0x7ff
lea eax, [esp + 0x38d]
push ebx
push eax
mov byte [esp + 0x394], bl
call fcn.00401f80
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.00401f80
add esp, 0xc
push str.PAULA_Initialization...
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x51c5ec]
mov dword [esp + 0xc], ebx
cmp eax, ebx
jle 0x4af8af
mov edi, dword [esp + 0xc]
lea edi, [edi*4 + 0x51c5f0]
push dword [edi]
mov esi, 0x4cf12c
call fcn.0044489a
pop ecx
test eax, eax
je 0x4af8fa
push dword [edi]
mov esi, str._Spawned
call fcn.0044489a
pop ecx
test eax, eax
je 0x4af8fa
push dword [edi]
mov esi, 0x4cf144
call fcn.0044489a
pop ecx
test eax, eax
je 0x4afd05
push dword [edi]
mov esi, str._CreateTerminal
call fcn.0044489a
pop ecx
test eax, eax
je 0x4afd05
inc dword [esp + 0xc]
mov eax, dword [0x51c5ec]
cmp dword [esp + 0xc], eax
jl 0x4af841
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
cmp eax, ebx
jle 0x4af909
mov edi, dword [esp + 0xc]
lea edi, [edi*4 + 0x51c5f0]
push dword [edi]
mov esi, 0x4cf164
call fcn.0044489a
pop ecx
test eax, eax
je 0x4af901
push dword [edi]
mov esi, str._TelNet
call fcn.0044489a
pop ecx
test eax, eax
je 0x4af901
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, dword [0x51c5ec]
jl 0x4af8bb
jmp 0x4af909
xor eax, eax
jmp 0x4afd08
mov dword [esp + 0x10], 1
push ebx
push ebx
call fcn.004623aa
pop ecx
pop ecx
mov edi, eax
call fcn.004a142a
test eax, eax
jne 0x4af92f
push ebx
push ebx
push ebx
call fcn.004623aa
pop ecx
pop ecx
mov ecx, eax
call fcn.004a1173
pop ecx
push ebx
push ebx
call fcn.0046209e
pop ecx
pop ecx
push eax
push ebx
push ebx
call fcn.004623aa
pop ecx
pop ecx
push eax
call fcn.004454c3
pop ecx
pop ecx
test eax, eax
jne 0x4af974
push ebx
push ebx
call fcn.0046209e
pop ecx
pop ecx
mov edi, eax
call fcn.004a142a
test eax, eax
jne 0x4af974
push ebx
push ebx
push ebx
call fcn.0046209e
pop ecx
pop ecx
mov ecx, eax
call fcn.004a1173
pop ecx
push str.PAULA.exe
push ebx
push ebx
call fcn.0046209e
pop ecx
pop ecx
push eax
mov esi, 0x4cda20
push esi
mov ebx, 0x104
lea eax, [esp + 0x184]
push ebx
push eax
call fcn.004451a8
add esp, 0x14
lea edi, [esp + 0x178]
call fcn.004a142a
test eax, eax
jne 0x4af9d6
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004a142a
test eax, eax
jne 0x4af9d6
push 1
mov eax, edi
push eax
push dword [0x51c5f0]
call fcn.004a152f
add esp, 0xc
mov edi, dword [0x51c5f0]
call fcn.004a142a
test eax, eax
je 0x4afa88
push dword [0x51c5f0]
mov ecx, ebx
lea eax, [esp + 0x17c]
call fcn.00444961
pop ecx
push eax
mov ecx, ebx
lea eax, [esp + 0x74]
call fcn.00444961
pop ecx
mov esi, eax
call fcn.00444789
mov eax, esi
push str.PAULA.st
push eax
call fcn.00401811
pop ecx
pop ecx
test eax, eax
jne 0x4afa78
mov esi, str.PAULA.exe
push esi
push eax
push eax
call fcn.0046209e
pop ecx
pop ecx
push eax
push 0x4cda20
lea eax, [esp + 0x7c]
push ebx
push eax
call fcn.004451a8
add esp, 0x14
lea edi, [esp + 0x70]
call fcn.004a142a
test eax, eax
je 0x4afa78
push esi
push 0
push 0
call fcn.0046209e
pop ecx
pop ecx
push eax
push 0x4cda20
lea eax, [esp + 0x184]
push ebx
push eax
call fcn.004451a8
add esp, 0x14
lea eax, [esp + 0x70]
call fcn.004449db
mov esi, 0x4cda20
jmp 0x4afaab
push str.PAULA.exe
push 0
push 0
call fcn.0046209e
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x184]
push ebx
push eax
call fcn.004451a8
add esp, 0x14
xor edi, edi
cmp dword [esp + 0x10], edi
je 0x4afb5e
push str.ttcon.dat
push edi
push edi
mov dword [esp + 0x20], 1
call fcn.0046209e
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x184]
push ebx
push eax
call fcn.004451a8
add esp, 0x14
push edi
push edi
call fcn.004623aa
push eax
push str._sTelKomm
lea eax, [esp + 0x80]
push ebx
push eax
call fcn.004451a8
add esp, 0x18
lea edi, [esp + 0x178]
call fcn.004a142a
test eax, eax
jne 0x4afb34
call fcn.004ac065
test eax, eax
jne 0x4afb34
push 0x10
push str.__ERROR__
push str.The_TelKomm_dependency_file_is_missing_
call fcn.004abd07
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4afd05
call fcn.00478589
push eax
lea eax, [esp + 0x74]
push eax
push str.__s___s__Spawned
lea eax, [esp + 0x394]
push 0x800
push eax
call fcn.004451a8
add esp, 0x14
jmp 0x4afbf6
mov ecx, str.PAULA.exe
call fcn.00446c1f
push eax
push edi
push edi
call fcn.004623aa
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x7c]
push ebx
push eax
call fcn.004451a8
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.004451a8
xor eax, eax
inc eax
add esp, 0x10
mov dword [esp + 0xc], eax
cmp dword [0x51c5ec], eax
jle 0x4afbf6
push 0x4cf1f0
mov eax, edi
lea esi, [esp + 0x38c]
call fcn.00445aee
mov eax, dword [esp + 0x10]
pop ecx
push dword [eax*4 + 0x51c5f0]
mov eax, edi
call fcn.00445aee
mov eax, edi
mov dword [esp], 0x4cf1f4
call fcn.00445aee
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
pop ecx
cmp eax, dword [0x51c5ec]
jl 0x4afbb1
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x4afc1a
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esp + 0x10], 0
je 0x4afc3d
cmp dword [esp + 0x14], 0
je 0x4afc3d
lea eax, [esp + 0x70]
push eax
mov edx, eax
lea ecx, [esp + 0x17c]
call fcn.004a1e60
jmp 0x4afc50
lea eax, [esp + 0x70]
push eax
mov edx, eax
lea ecx, [esp + 0x17c]
call fcn.004a1e76
pop ecx
test eax, eax
je 0x4af8fa
lea edi, [esp + 0x70]
call fcn.004a142a
xor esi, esi
cmp dword [esp + 0x10], esi
je 0x4afd1d
push esi
mov edi, str.TelKomm
call fcn.004adeea
cmp eax, 0x19
pop ecx
jg 0x4af8fa
push 0x10
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.00401f80
add esp, 0xc
push 0x44
pop edi
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.00401f80
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.004ace5a
pop ecx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push esi
push esi
call fcn.0046209e
pop ecx
pop ecx
push eax
lea eax, [esp + 0x394]
push eax
lea ecx, [esp + 0x80]
call fcn.004ae5b4
add esp, 0x10
test eax, eax
je 0x4af8fa
mov esi, dword [esp + 0x1c]
call fcn.0049ff62
mov esi, dword [esp + 0x18]
call fcn.0049ff62
xor eax, eax
inc eax
mov ecx, dword [esp + 0xb8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401317
mov esp, ebp
pop ebp
ret
push 0x103
lea eax, [esp + 0x285]
push esi
push eax
mov byte [esp + 0x28c], 0
call fcn.00401f80
add esp, 0xc
mov ecx, str.PAULA.exe
call fcn.00446c1f
push eax
mov ecx, ebx
lea eax, [esp + 0x284]
call fcn.00444961
pop ecx
push esi
mov edi, eax
call fcn.004adeea
cmp eax, 0x14
jmp 0x4afc7c