Function at 0x40cbcd
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 [0x5385d0]
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.004b7880
add esp, 0xc
push esi
lea eax, [esp + 0x75]
push ebx
push eax
mov byte [esp + 0x7c], bl
call fcn.004b7880
add esp, 0xc
push 0x7ff
lea eax, [esp + 0x38d]
push ebx
push eax
mov byte [esp + 0x394], bl
call fcn.004b7880
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.004b7880
add esp, 0xc
push str.PAULA_Initialization...
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x54b790]
cmp eax, ebx
mov dword [esp + 0xc], ebx
jle 0x40cce6
mov edi, dword [esp + 0xc]
lea edi, [edi*4 + 0x54b798]
push dword [edi]
mov esi, 0x4db480
call fcn.0047ecf0
test eax, eax
pop ecx
je 0x40d0e1
push dword [edi]
mov esi, str._Spawned
call fcn.0047ecf0
test eax, eax
pop ecx
je 0x40d0e1
push dword [edi]
mov esi, 0x4db498
call fcn.0047ecf0
test eax, eax
pop ecx
je 0x40cf9e
push dword [edi]
mov esi, str._CreateTerminal
call fcn.0047ecf0
test eax, eax
pop ecx
je 0x40cf9e
inc dword [esp + 0xc]
mov eax, dword [0x54b790]
cmp dword [esp + 0xc], eax
jl 0x40cc78
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
jle 0x40cd39
mov edi, dword [esp + 0xc]
lea edi, [edi*4 + 0x54b798]
push dword [edi]
mov esi, 0x4db4b8
call fcn.0047ecf0
test eax, eax
pop ecx
je 0x40cd31
push dword [edi]
mov esi, str._TelNet
call fcn.0047ecf0
test eax, eax
pop ecx
je 0x40cd31
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, dword [0x54b790]
jl 0x40ccf2
jmp 0x40cd39
mov dword [esp + 0x10], 1
push ebx
push ebx
call fcn.004610ab
pop ecx
pop ecx
mov edi, eax
call fcn.0041c5ff
test eax, eax
jne 0x40cd5f
push ebx
push ebx
push ebx
call fcn.004610ab
pop ecx
pop ecx
mov ecx, eax
call fcn.0041c9b8
pop ecx
push ebx
push ebx
call fcn.00460e8a
pop ecx
pop ecx
push eax
push ebx
push ebx
call fcn.004610ab
pop ecx
pop ecx
push eax
call fcn.0047f83d
test eax, eax
pop ecx
pop ecx
jne 0x40cda4
push ebx
push ebx
call fcn.00460e8a
pop ecx
pop ecx
mov edi, eax
call fcn.0041c5ff
test eax, eax
jne 0x40cda4
push ebx
push ebx
push ebx
call fcn.00460e8a
pop ecx
pop ecx
mov ecx, eax
call fcn.0041c9b8
pop ecx
push str.PAULA.exe
push ebx
push ebx
call fcn.00460e8a
pop ecx
pop ecx
push eax
mov esi, 0x4d8920
push esi
mov ebx, 0x104
lea eax, [esp + 0x184]
push ebx
push eax
call fcn.00480225
add esp, 0x14
lea edi, [esp + 0x178]
call fcn.0041c5ff
test eax, eax
jne 0x40ce36
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0041c5ff
test eax, eax
jne 0x40ce36
mov eax, edi
push eax
push dword [0x54b798]
push str.:8:SpawnPaulaExe___has_determined_that_the_default_PAULA_exe_does_not_exist___Had_to_CopyFile___s_____s___TRUE__
call fcn.0041936e
add esp, 0xc
push 1
mov eax, edi
push eax
push dword [0x54b798]
call fcn.0041be47
add esp, 0xc
test eax, eax
jne 0x40ce36
mov eax, edi
push eax
push dword [0x54b798]
push str.:9:SpawnPaulaExe___FAILED:_CopyFile___s_____s___TRUE__FAILED:_Could_not_create_the_default_PAULA_exe_
call fcn.0041936e
add esp, 0xc
mov edi, dword [0x54b798]
call fcn.0041c5ff
test eax, eax
je 0x40cee8
push dword [0x54b798]
mov ecx, ebx
lea eax, [esp + 0x17c]
call fcn.0047ebe1
pop ecx
push eax
mov ecx, ebx
lea eax, [esp + 0x74]
call fcn.0047ebe1
pop ecx
mov esi, eax
call fcn.0047eede
mov eax, esi
push str.PAULA.st
push eax
call fcn.004b763f
test eax, eax
pop ecx
pop ecx
jne 0x40ced8
mov esi, str.PAULA.exe
push esi
push eax
push eax
call fcn.00460e8a
pop ecx
pop ecx
push eax
push 0x4d8920
lea eax, [esp + 0x7c]
push ebx
push eax
call fcn.00480225
add esp, 0x14
lea edi, [esp + 0x70]
call fcn.0041c5ff
test eax, eax
je 0x40ced8
push esi
push 0
push 0
call fcn.00460e8a
pop ecx
pop ecx
push eax
push 0x4d8920
lea eax, [esp + 0x184]
push ebx
push eax
call fcn.00480225
add esp, 0x14
lea eax, [esp + 0x70]
call fcn.0047eb32
mov esi, 0x4d8920
jmp 0x40cf0b
push str.PAULA.exe
push 0
push 0
call fcn.00460e8a
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x184]
push ebx
push eax
call fcn.00480225
add esp, 0x14
xor edi, edi
cmp dword [esp + 0x10], edi
je 0x40cfd0
push str.ttcon.dat
push edi
push edi
mov dword [esp + 0x20], 1
call fcn.00460e8a
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x184]
push ebx
push eax
call fcn.00480225
add esp, 0x14
push edi
push edi
call fcn.004610ab
push eax
push str._sTelKomm
lea eax, [esp + 0x80]
push ebx
push eax
call fcn.00480225
add esp, 0x18
lea edi, [esp + 0x178]
call fcn.0041c5ff
test eax, eax
jne 0x40cfa6
mov eax, edi
push eax
push str.:7:SpawnPaulaExe___FAILED:___s__does_not_exist_to_create_TelKomm_session.
call fcn.00418e96
pop ecx
pop ecx
call fcn.00410123
test eax, eax
jne 0x40cfa6
push 0x10
push str.__ERROR__
push str.The_TelKomm_dependency_file_is_missing_
call fcn.0040b8f5
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
inc eax
jmp 0x40d1fc
call fcn.00442376
push eax
lea eax, [esp + 0x74]
push eax
push str.__s___s__Spawned
lea eax, [esp + 0x394]
push 0x800
push eax
call fcn.00480225
add esp, 0x14
jmp 0x40d068
mov ecx, str.PAULA.exe
call fcn.0047f4d5
push eax
push edi
push edi
call fcn.004610ab
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x7c]
push ebx
push eax
call fcn.00480225
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.00480225
xor eax, eax
inc eax
add esp, 0x10
cmp dword [0x54b790], eax
mov dword [esp + 0xc], eax
jle 0x40d068
push 0x4db684
mov eax, edi
lea esi, [esp + 0x38c]
call fcn.0047ecb1
mov eax, dword [esp + 0x10]
pop ecx
push dword [eax*4 + 0x54b798]
mov eax, edi
call fcn.0047ecb1
mov eax, edi
mov dword [esp], 0x4db688
call fcn.0047ecb1
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [0x54b790]
pop ecx
jl 0x40d023
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x40d08c
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esp + 0x10], 0
je 0x40d0af
cmp dword [esp + 0x14], 0
je 0x40d0af
lea eax, [esp + 0x70]
push eax
mov edx, eax
lea ecx, [esp + 0x17c]
call fcn.0041c427
jmp 0x40d0c2
lea eax, [esp + 0x70]
push eax
mov edx, eax
lea ecx, [esp + 0x17c]
call fcn.0041c416
test eax, eax
pop ecx
jne 0x40d0e8
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x17c]
push eax
push str.:9:SpawnPaulaExe___CRITICALLY_FAILED:_CopyFileEnumerated___s_____s___TRUE__FAILED:_The_real_PAULA_exe_will_have_to_be_used_instead_of_the_spawn___
call fcn.00418e96
add esp, 0xc
xor eax, eax
jmp 0x40d1fc
lea edi, [esp + 0x70]
call fcn.0041c5ff
test eax, eax
jne 0x40d104
mov eax, edi
push eax
push str.:8:SpawnPaulaExe___FAILED:_The_spawned_exe___s__did_not_exist_after_creation_
call fcn.00418e96
pop ecx
pop ecx
xor esi, esi
cmp dword [esp + 0x10], esi
je 0x40d1a0
push esi
mov esi, str.TelKomm
call fcn.0040c2c6
cmp eax, 0x19
pop ecx
jg 0x40d0e1
push 0x10
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.004b7880
add esp, 0xc
push 0x44
pop esi
push esi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.004b7880
mov dword [esp + 0x34], esi
xor esi, esi
lea eax, [esp + 0x7c]
add esp, 0xc
inc esi
push eax
mov dword [esp + 0x58], esi
mov word [esp + 0x5c], si
call fcn.0040c3c2
pop ecx
lea eax, [esp + 0x18]
push eax
push edi
push edi
call fcn.00460e8a
pop ecx
pop ecx
push eax
lea eax, [esp + 0x390]
push eax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x38]
call fcn.0040fcc8
add esp, 0x10
test eax, eax
jne 0x40d1e8
push str._GetLastError_
lea eax, [esp + 0x74]
push eax
push str.:8:SpawnPaulaExe___FAILED_to_start_the_Paula_Session_Process:___s__Spawned_:__s
jmp 0x40d0d9
push 0x103
lea eax, [esp + 0x285]
push esi
push eax
mov byte [esp + 0x28c], 0
call fcn.004b7880
add esp, 0xc
mov ecx, str.PAULA.exe
call fcn.0047f4d5
push eax
mov ecx, ebx
lea eax, [esp + 0x284]
call fcn.0047ebe1
pop ecx
push esi
mov esi, eax
call fcn.0040c2c6
cmp eax, 0x14
jmp 0x40d11e
mov edi, dword [esp + 0x1c]
call fcn.0041ed31
mov edi, dword [esp + 0x18]
call fcn.0041ed31
mov eax, esi
mov ecx, dword [esp + 0xb8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b7140
mov esp, ebp
pop ebp
ret