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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb90
mov eax, dword [0x5f2e68]
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.005306b0
add esp, 0xc
push esi
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.005306b0
add esp, 0xc
push 0x7ff
lea eax, [ebp - 0xb23]
push ebx
push eax
mov byte [ebp - 0xb24], bl
call fcn.005306b0
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.005306b0
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 0x414192
cmp dword [0x607ce4], ebx
mov dword [ebp - 0xb28], ebx
jle 0x414192
mov edi, dword [ebp - 0xb28]
lea edi, [edi*4 + 0x607ce8]
push dword [edi]
mov esi, 0x558ea0
call fcn.004ccd4e
test eax, eax
pop ecx
je 0x414607
push dword [edi]
mov esi, str._Spawned
call fcn.004ccd4e
test eax, eax
pop ecx
je 0x414607
push dword [edi]
mov esi, 0x558eb8
call fcn.004ccd4e
test eax, eax
pop ecx
je 0x414474
push dword [edi]
mov esi, str._CreateTerminal
call fcn.004ccd4e
test eax, eax
pop ecx
je 0x414474
inc dword [ebp - 0xb28]
mov eax, dword [ebp - 0xb28]
cmp eax, dword [0x607ce4]
jl 0x41411d
cmp dword [0x607ce4], ebx
mov dword [ebp - 0xb2c], ebx
mov dword [ebp - 0xb28], ebx
jle 0x4141f5
mov edi, dword [ebp - 0xb28]
lea edi, [edi*4 + 0x607ce8]
push dword [edi]
mov esi, 0x558ed8
call fcn.004ccd4e
test eax, eax
pop ecx
je 0x4141eb
push dword [edi]
mov esi, str._TelNet
call fcn.004ccd4e
test eax, eax
pop ecx
je 0x4141eb
inc dword [ebp - 0xb28]
mov eax, dword [ebp - 0xb28]
cmp eax, dword [0x607ce4]
jl 0x4141a6
jmp 0x4141f5
mov dword [ebp - 0xb2c], 1
cmp dword [ebp + 8], ebx
je 0x414204
mov dword [ebp - 0xb2c], 1
push ebx
push ebx
call fcn.00493154
pop ecx
pop ecx
mov edi, eax
call fcn.00432263
test eax, eax
jne 0x41422a
push ebx
push ebx
push ebx
call fcn.00493154
pop ecx
pop ecx
mov ecx, eax
call fcn.0043262d
pop ecx
push ebx
push ebx
call fcn.00493030
pop ecx
pop ecx
push eax
push ebx
push ebx
call fcn.00493154
pop ecx
pop ecx
push eax
call fcn.004cd9f0
test eax, eax
pop ecx
pop ecx
jne 0x41426f
push ebx
push ebx
call fcn.00493030
pop ecx
pop ecx
mov edi, eax
call fcn.00432263
test eax, eax
jne 0x41426f
push ebx
push ebx
push ebx
call fcn.00493030
pop ecx
pop ecx
mov ecx, eax
call fcn.0043262d
pop ecx
push 0x558744
push ebx
push ebx
call fcn.00493030
pop ecx
pop ecx
push eax
mov esi, 0x553c34
push esi
mov ebx, 0x104
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.004ce4e5
add esp, 0x14
lea edi, [ebp - 0x21c]
call fcn.00432263
test eax, eax
jne 0x4142ff
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00432263
test eax, eax
jne 0x4142ff
mov eax, edi
push eax
push dword [0x607ce8]
push str.:8:SpawnPaulaExe___has_determined_that_the_default_PAULA_exe_does_not_exist___Had_to_CopyFile___s_____s___TRUE__
call fcn.0042bd38
add esp, 0xc
push 1
mov eax, edi
push eax
push dword [0x607ce8]
call fcn.00431386
add esp, 0xc
test eax, eax
jne 0x4142ff
mov eax, edi
push eax
push dword [0x607ce8]
push str.:9:SpawnPaulaExe___FAILED:_CopyFile___s_____s___TRUE__FAILED:_Could_not_create_the_default_PAULA_exe_
call fcn.0042bd38
add esp, 0xc
mov edi, dword [0x607ce8]
call fcn.00432263
test eax, eax
je 0x4143be
push dword [0x607ce8]
mov ecx, ebx
lea eax, [ebp - 0x21c]
call fcn.004ccc3f
pop ecx
push eax
mov ecx, ebx
lea eax, [ebp - 0x114]
call fcn.004ccc3f
pop ecx
mov esi, eax
call fcn.004ccf41
mov eax, esi
push str.PAULA.st
push eax
call fcn.005318fe
test eax, eax
pop ecx
pop ecx
jne 0x4143ac
push 0x558744
push eax
push eax
call fcn.00493030
pop ecx
pop ecx
push eax
mov esi, 0x553c34
push esi
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.004ce4e5
add esp, 0x14
lea edi, [ebp - 0x114]
call fcn.00432263
test eax, eax
je 0x4143ac
call fcn.004935a3
test eax, eax
jne 0x4143ac
push 0x558744
push eax
push eax
call fcn.00493030
pop ecx
pop ecx
push eax
push esi
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.004ce4e5
add esp, 0x14
lea eax, [ebp - 0x114]
call fcn.004ccb8b
mov esi, 0x553c34
jmp 0x4143e0
push 0x558744
push 0
push 0
call fcn.00493030
pop ecx
pop ecx
push eax
push esi
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.004ce4e5
add esp, 0x14
xor edi, edi
cmp dword [ebp - 0xb2c], edi
je 0x4144e2
push str.ttcon.dat
push edi
push edi
mov dword [ebp - 0xb30], 1
call fcn.00493030
pop ecx
pop ecx
push eax
push esi
lea eax, [ebp - 0x21c]
push ebx
push eax
call fcn.004ce4e5
add esp, 0x14
push edi
push edi
call fcn.00493154
push eax
push str._sTelKomm
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.004ce4e5
add esp, 0x18
lea edi, [ebp - 0x21c]
call fcn.00432263
test eax, eax
jne 0x41447c
mov eax, edi
push eax
push str.:7:SpawnPaulaExe___FAILED:___s__does_not_exist_to_create_TelKomm_session.
call fcn.0042b70b
pop ecx
pop ecx
call fcn.004187ab
test eax, eax
jne 0x41447c
push 0x10
push str.__ERROR__
push str.The_TelKomm_dependency_file_is_missing_
call fcn.00411df1
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
inc eax
jmp 0x414743
call fcn.004935a3
test eax, eax
push 0
je 0x4144b3
call fcn.004934c9
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.004ce4e5
add esp, 0x14
jmp 0x414584
push 0
xor ecx, ecx
call fcn.0046aecb
push eax
lea eax, [ebp - 0x114]
push eax
push str.__s___s__Spawned
lea eax, [ebp - 0xb24]
push 0x800
push eax
call fcn.004ce4e5
add esp, 0x1c
jmp 0x414584
mov ecx, 0x558744
call fcn.004cd5dc
push eax
push edi
push edi
call fcn.00493154
pop ecx
pop ecx
push eax
push esi
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.004ce4e5
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.004ce4e5
xor eax, eax
inc eax
add esp, 0x10
cmp dword [0x607ce4], eax
mov dword [ebp - 0xb28], eax
jle 0x414584
push 0x559094
mov eax, edi
lea esi, [ebp - 0xb24]
call fcn.004ccd0f
mov eax, dword [ebp - 0xb28]
pop ecx
push dword [eax*4 + 0x607ce8]
mov eax, edi
call fcn.004ccd0f
mov eax, edi
mov dword [esp], 0x559098
call fcn.004ccd0f
inc dword [ebp - 0xb28]
mov eax, dword [ebp - 0xb28]
cmp eax, dword [0x607ce4]
pop ecx
jl 0x41453a
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x4145a6
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [ebp - 0xb2c], 0
je 0x4145cf
cmp dword [ebp - 0xb30], 0
je 0x4145cf
lea eax, [ebp - 0x114]
push eax
mov edx, eax
lea ecx, [ebp - 0x21c]
call fcn.00431973
pop ecx
jmp 0x4145e8
push 1
lea eax, [ebp - 0x114]
push eax
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.00431953
add esp, 0x10
test eax, eax
jne 0x41460e
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x21c]
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.0042b70b
add esp, 0xc
xor eax, eax
jmp 0x414743
lea edi, [ebp - 0x114]
call fcn.00432263
test eax, eax
jne 0x41462c
mov eax, edi
push eax
push str.:8:SpawnPaulaExe___FAILED:_The_spawned_exe___s__did_not_exist_after_creation_
call fcn.0042b70b
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0xb2c], esi
je 0x4146e6
push esi
mov esi, str.TelKomm
call fcn.00412f38
cmp eax, 0x19
pop ecx
jg 0x414607
push 0x10
xor edi, edi
lea eax, [ebp - 0xb40]
push edi
push eax
call fcn.005306b0
add esp, 0xc
push 0x44
pop esi
push esi
lea eax, [ebp - 0xb8c]
push edi
push eax
call fcn.005306b0
mov dword [ebp - 0xb8c], esi
xor esi, esi
inc esi
add esp, 0xc
mov dword [ebp - 0xb60], esi
mov word [ebp - 0xb5c], si
call fcn.00418444
test eax, eax
je 0x41469f
lea eax, [ebp - 0x114]
push eax
call fcn.0041352d
pop ecx
lea eax, [ebp - 0xb40]
push eax
push edi
push edi
call fcn.00493030
pop ecx
pop ecx
push eax
lea eax, [ebp - 0xb24]
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0xb8c]
call fcn.004175d9
add esp, 0x10
test eax, eax
jne 0x41472b
push str._GetLastError_
lea eax, [ebp - 0x114]
push eax
push str.:8:SpawnPaulaExe___FAILED_to_start_the_Paula_Session_Process:___s__Spawned_:__s
jmp 0x4145ff
push 0x103
lea eax, [ebp - 0x323]
push esi
push eax
mov byte [ebp - 0x324], 0
call fcn.005306b0
add esp, 0xc
mov ecx, 0x558744
call fcn.004cd5dc
push eax
mov ecx, ebx
lea eax, [ebp - 0x324]
call fcn.004ccc3f
pop ecx
push esi
mov esi, eax
call fcn.00412f38
cmp eax, 0x14
jmp 0x414648
mov edi, dword [ebp - 0xb3c]
call fcn.00435716
mov edi, dword [ebp - 0xb40]
call fcn.00435716
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005317e7
leave
ret