Function at 0x40b99f
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 [0x5005d0]
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.004a7110
add esp, 0xc
push esi
lea eax, [esp + 0x75]
push ebx
push eax
mov byte [esp + 0x7c], bl
call fcn.004a7110
add esp, 0xc
push 0x7ff
lea eax, [esp + 0x38d]
push ebx
push eax
mov byte [esp + 0x394], bl
call fcn.004a7110
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.004a7110
add esp, 0xc
push str.PAULA_Initialization...
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [ebp + 8], ebx
jne 0x40babd
cmp dword [0x513790], ebx
mov dword [esp + 0xc], ebx
jle 0x40babd
mov edi, dword [esp + 0xc]
lea edi, [edi*4 + 0x513798]
push dword [edi]
mov esi, 0x4c7c9c
call fcn.00475992
test eax, eax
pop ecx
je 0x40bb0c
push dword [edi]
mov esi, str._Spawned
call fcn.00475992
test eax, eax
pop ecx
je 0x40bb0c
push dword [edi]
mov esi, 0x4c7cb4
call fcn.00475992
test eax, eax
pop ecx
je 0x40bf30
push dword [edi]
mov esi, str._CreateTerminal
call fcn.00475992
test eax, eax
pop ecx
je 0x40bf30
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, dword [0x513790]
jl 0x40ba4e
cmp dword [0x513790], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
jle 0x40bb1b
mov edi, dword [esp + 0xc]
lea edi, [edi*4 + 0x513798]
push dword [edi]
mov esi, 0x4c7cd4
call fcn.00475992
test eax, eax
pop ecx
je 0x40bb13
push dword [edi]
mov esi, str._TelNet
call fcn.00475992
test eax, eax
pop ecx
je 0x40bb13
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, dword [0x513790]
jl 0x40bacd
jmp 0x40bb1b
xor eax, eax
jmp 0x40bf33
mov dword [esp + 0x10], 1
cmp dword [ebp + 8], ebx
je 0x40bb28
mov dword [esp + 0x10], 1
push ebx
push ebx
call fcn.00459ede
pop ecx
pop ecx
mov edi, eax
call fcn.00418e6b
test eax, eax
jne 0x40bb4e
push ebx
push ebx
push ebx
call fcn.00459ede
pop ecx
pop ecx
mov ecx, eax
call fcn.004191f9
pop ecx
push ebx
push ebx
call fcn.00459cf0
pop ecx
pop ecx
push eax
push ebx
push ebx
call fcn.00459ede
pop ecx
pop ecx
push eax
call fcn.00476422
test eax, eax
pop ecx
pop ecx
jne 0x40bb93
push ebx
push ebx
call fcn.00459cf0
pop ecx
pop ecx
mov edi, eax
call fcn.00418e6b
test eax, eax
jne 0x40bb93
push ebx
push ebx
push ebx
call fcn.00459cf0
pop ecx
pop ecx
mov ecx, eax
call fcn.004191f9
pop ecx
push str.PAULA.exe
push ebx
push ebx
call fcn.00459cf0
pop ecx
pop ecx
push eax
mov esi, 0x4c64d0
push esi
mov ebx, 0x104
lea eax, [esp + 0x184]
push ebx
push eax
call fcn.00476e0a
add esp, 0x14
lea edi, [esp + 0x178]
call fcn.00418e6b
test eax, eax
jne 0x40bbf5
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00418e6b
test eax, eax
jne 0x40bbf5
push 1
mov eax, edi
push eax
push dword [0x513798]
call fcn.0041887a
add esp, 0xc
mov edi, dword [0x513798]
call fcn.00418e6b
test eax, eax
je 0x40bca7
push dword [0x513798]
mov ecx, ebx
lea eax, [esp + 0x17c]
call fcn.00475883
pop ecx
push eax
mov ecx, ebx
lea eax, [esp + 0x74]
call fcn.00475883
pop ecx
mov esi, eax
call fcn.00475b80
mov eax, esi
push str.PAULA.st
push eax
call fcn.004a6eff
test eax, eax
pop ecx
pop ecx
jne 0x40bc97
push str.PAULA.exe
push eax
push eax
call fcn.00459cf0
pop ecx
pop ecx
push eax
mov esi, 0x4c64d0
push esi
lea eax, [esp + 0x7c]
push ebx
push eax
call fcn.00476e0a
add esp, 0x14
lea edi, [esp + 0x70]
call fcn.00418e6b
test eax, eax
je 0x40bc97
push str.PAULA.exe
push 0
push 0
call fcn.00459cf0
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x184]
push ebx
push eax
call fcn.00476e0a
add esp, 0x14
lea eax, [esp + 0x70]
call fcn.004757d4
mov esi, 0x4c64d0
jmp 0x40bcca
push str.PAULA.exe
push 0
push 0
call fcn.00459cf0
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x184]
push ebx
push eax
call fcn.00476e0a
add esp, 0x14
xor edi, edi
cmp dword [esp + 0x10], edi
je 0x40bd83
push str.ttcon.dat
push edi
push edi
mov dword [esp + 0x20], 1
call fcn.00459cf0
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x184]
push ebx
push eax
call fcn.00476e0a
add esp, 0x14
push edi
push edi
call fcn.00459ede
push eax
push str._sTelKomm
lea eax, [esp + 0x80]
push ebx
push eax
call fcn.00476e0a
add esp, 0x18
lea edi, [esp + 0x178]
call fcn.00418e6b
test eax, eax
jne 0x40bd53
call fcn.0040ef2e
test eax, eax
jne 0x40bd53
push 0x10
push str.__ERROR__
push str.The_TelKomm_dependency_file_is_missing_
call fcn.0040a5a0
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40bf30
push 0
push 0
xor ecx, ecx
call fcn.0043c2a9
push eax
lea eax, [esp + 0x7c]
push eax
push str.__s___s__Spawned
lea eax, [esp + 0x39c]
push 0x800
push eax
call fcn.00476e0a
add esp, 0x1c
jmp 0x40be1b
mov ecx, str.PAULA.exe
call fcn.00476112
push eax
push edi
push edi
call fcn.00459ede
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x7c]
push ebx
push eax
call fcn.00476e0a
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.00476e0a
xor eax, eax
inc eax
add esp, 0x10
cmp dword [0x513790], eax
mov dword [esp + 0xc], eax
jle 0x40be1b
push 0x4c7d60
mov eax, edi
lea esi, [esp + 0x38c]
call fcn.00475953
mov eax, dword [esp + 0x10]
pop ecx
push dword [eax*4 + 0x513798]
mov eax, edi
call fcn.00475953
mov eax, edi
mov dword [esp], 0x4c7d64
call fcn.00475953
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [0x513790]
pop ecx
jl 0x40bdd6
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x40be3f
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esp + 0x10], 0
je 0x40be62
cmp dword [esp + 0x14], 0
je 0x40be62
lea eax, [esp + 0x70]
push eax
mov edx, eax
lea ecx, [esp + 0x17c]
call fcn.00418cb7
jmp 0x40be75
lea eax, [esp + 0x70]
push eax
mov edx, eax
lea ecx, [esp + 0x17c]
call fcn.00418ca6
test eax, eax
pop ecx
je 0x40bb0c
lea edi, [esp + 0x70]
call fcn.00418e6b
xor esi, esi
cmp dword [esp + 0x10], esi
je 0x40bf48
push esi
mov ecx, str.TelKomm
call fcn.0040b0ac
cmp eax, 0x19
pop ecx
jg 0x40bb0c
push 0x10
lea eax, [esp + 0x1c]
push esi
push eax
call fcn.004a7110
add esp, 0xc
push 0x44
pop edi
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call fcn.004a7110
xor eax, eax
inc eax
add esp, 0xc
mov dword [esp + 0x28], edi
mov dword [esp + 0x54], eax
mov word [esp + 0x58], ax
call fcn.0040ee13
test eax, eax
je 0x40beee
lea eax, [esp + 0x70]
push eax
call fcn.0040b2a1
pop ecx
lea eax, [esp + 0x18]
push eax
push esi
push esi
call fcn.00459cf0
pop ecx
pop ecx
push eax
lea eax, [esp + 0x390]
push eax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x38]
call fcn.0040e954
add esp, 0x10
test eax, eax
je 0x40bb0c
mov esi, dword [esp + 0x1c]
call fcn.0041b138
mov esi, dword [esp + 0x18]
call fcn.0041b138
xor eax, eax
inc eax
mov ecx, dword [esp + 0xb8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004a69f5
mov esp, ebp
pop ebp
ret
push 0x103
lea eax, [esp + 0x285]
push esi
push eax
mov byte [esp + 0x28c], 0
call fcn.004a7110
add esp, 0xc
mov ecx, str.PAULA.exe
call fcn.00476112
push eax
mov ecx, ebx
lea eax, [esp + 0x284]
call fcn.00475883
pop ecx
push esi
mov ecx, eax
call fcn.0040b0ac
cmp eax, 0x14
jmp 0x40bea1