Function at 0x40b634
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 [0x5345d0]
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.004b53e0
add esp, 0xc
push esi
lea eax, [esp + 0x75]
push ebx
push eax
mov byte [esp + 0x7c], bl
call fcn.004b53e0
add esp, 0xc
push 0x7ff
lea eax, [esp + 0x38d]
push ebx
push eax
mov byte [esp + 0x394], bl
call fcn.004b53e0
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.004b53e0
add esp, 0xc
push str.PAULA_Initialization...
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x547790]
cmp eax, ebx
mov dword [esp + 0xc], ebx
jle 0x40b74d
mov edi, dword [esp + 0xc]
lea edi, [edi*4 + 0x547798]
push dword [edi]
mov esi, 0x4d88b0
call fcn.0047c50b
test eax, eax
pop ecx
je 0x40bb48
push dword [edi]
mov esi, str._Spawned
call fcn.0047c50b
test eax, eax
pop ecx
je 0x40bb48
push dword [edi]
mov esi, 0x4d88c8
call fcn.0047c50b
test eax, eax
pop ecx
je 0x40ba05
push dword [edi]
mov esi, str._CreateTerminal
call fcn.0047c50b
test eax, eax
pop ecx
je 0x40ba05
inc dword [esp + 0xc]
mov eax, dword [0x547790]
cmp dword [esp + 0xc], eax
jl 0x40b6df
cmp eax, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], ebx
jle 0x40b7a0
mov edi, dword [esp + 0xc]
lea edi, [edi*4 + 0x547798]
push dword [edi]
mov esi, 0x4d88e8
call fcn.0047c50b
test eax, eax
pop ecx
je 0x40b798
push dword [edi]
mov esi, str._TelNet
call fcn.0047c50b
test eax, eax
pop ecx
je 0x40b798
inc dword [esp + 0xc]
mov eax, dword [esp + 0xc]
cmp eax, dword [0x547790]
jl 0x40b759
jmp 0x40b7a0
mov dword [esp + 0x10], 1
push ebx
push ebx
call fcn.0045e8df
pop ecx
pop ecx
mov edi, eax
call fcn.0041b048
test eax, eax
jne 0x40b7c6
push ebx
push ebx
push ebx
call fcn.0045e8df
pop ecx
pop ecx
mov ecx, eax
call fcn.0041b401
pop ecx
push ebx
push ebx
call fcn.0045e70f
pop ecx
pop ecx
push eax
push ebx
push ebx
call fcn.0045e8df
pop ecx
pop ecx
push eax
call fcn.0047d058
test eax, eax
pop ecx
pop ecx
jne 0x40b80b
push ebx
push ebx
call fcn.0045e70f
pop ecx
pop ecx
mov edi, eax
call fcn.0041b048
test eax, eax
jne 0x40b80b
push ebx
push ebx
push ebx
call fcn.0045e70f
pop ecx
pop ecx
mov ecx, eax
call fcn.0041b401
pop ecx
push str.BETTY.exe
push ebx
push ebx
call fcn.0045e70f
pop ecx
pop ecx
push eax
mov esi, 0x4d5d50
push esi
mov ebx, 0x104
lea eax, [esp + 0x184]
push ebx
push eax
call fcn.0047da40
add esp, 0x14
lea edi, [esp + 0x178]
call fcn.0041b048
test eax, eax
jne 0x40b89d
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0041b048
test eax, eax
jne 0x40b89d
mov eax, edi
push eax
push dword [0x547798]
push str.:8:SpawnPaulaExe___has_determined_that_the_default_PAULA_exe_does_not_exist___Had_to_CopyFile___s_____s___TRUE__
call fcn.00417db7
add esp, 0xc
push 1
mov eax, edi
push eax
push dword [0x547798]
call fcn.0041a890
add esp, 0xc
test eax, eax
jne 0x40b89d
mov eax, edi
push eax
push dword [0x547798]
push str.:9:SpawnPaulaExe___FAILED:_CopyFile___s_____s___TRUE__FAILED:_Could_not_create_the_default_PAULA_exe_
call fcn.00417db7
add esp, 0xc
mov edi, dword [0x547798]
call fcn.0041b048
test eax, eax
je 0x40b94f
push dword [0x547798]
mov ecx, ebx
lea eax, [esp + 0x17c]
call fcn.0047c3fc
pop ecx
push eax
mov ecx, ebx
lea eax, [esp + 0x74]
call fcn.0047c3fc
pop ecx
mov esi, eax
call fcn.0047c6f9
mov eax, esi
push str.PAULA.st
push eax
call fcn.004b519f
test eax, eax
pop ecx
pop ecx
jne 0x40b93f
mov esi, str.BETTY.exe
push esi
push eax
push eax
call fcn.0045e70f
pop ecx
pop ecx
push eax
push 0x4d5d50
lea eax, [esp + 0x7c]
push ebx
push eax
call fcn.0047da40
add esp, 0x14
lea edi, [esp + 0x70]
call fcn.0041b048
test eax, eax
je 0x40b93f
push esi
push 0
push 0
call fcn.0045e70f
pop ecx
pop ecx
push eax
push 0x4d5d50
lea eax, [esp + 0x184]
push ebx
push eax
call fcn.0047da40
add esp, 0x14
lea eax, [esp + 0x70]
call fcn.0047c34d
mov esi, 0x4d5d50
jmp 0x40b972
push str.BETTY.exe
push 0
push 0
call fcn.0045e70f
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x184]
push ebx
push eax
call fcn.0047da40
add esp, 0x14
xor edi, edi
cmp dword [esp + 0x10], edi
je 0x40ba37
push str.ttcon.dat
push edi
push edi
mov dword [esp + 0x20], 1
call fcn.0045e70f
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x184]
push ebx
push eax
call fcn.0047da40
add esp, 0x14
push edi
push edi
call fcn.0045e8df
push eax
push str._sTelKomm
lea eax, [esp + 0x80]
push ebx
push eax
call fcn.0047da40
add esp, 0x18
lea edi, [esp + 0x178]
call fcn.0041b048
test eax, eax
jne 0x40ba0d
mov eax, edi
push eax
push str.:7:SpawnPaulaExe___FAILED:___s__does_not_exist_to_create_TelKomm_session.
call fcn.004178df
pop ecx
pop ecx
call fcn.0040eb6c
test eax, eax
jne 0x40ba0d
push 0x10
push str.__ERROR__
push str.The_TelKomm_dependency_file_is_missing_
call fcn.0040a328
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
inc eax
jmp 0x40bc63
call fcn.0044045e
push eax
lea eax, [esp + 0x74]
push eax
push str.__s___s__Spawned
lea eax, [esp + 0x394]
push 0x800
push eax
call fcn.0047da40
add esp, 0x14
jmp 0x40bacf
mov ecx, str.BETTY.exe
call fcn.0047ccf0
push eax
push edi
push edi
call fcn.0045e8df
pop ecx
pop ecx
push eax
push esi
lea eax, [esp + 0x7c]
push ebx
push eax
call fcn.0047da40
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.0047da40
xor eax, eax
inc eax
add esp, 0x10
cmp dword [0x547790], eax
mov dword [esp + 0xc], eax
jle 0x40bacf
push 0x4d8ab4
mov eax, edi
lea esi, [esp + 0x38c]
call fcn.0047c4cc
mov eax, dword [esp + 0x10]
pop ecx
push dword [eax*4 + 0x547798]
mov eax, edi
call fcn.0047c4cc
mov eax, edi
mov dword [esp], 0x4d8ab8
call fcn.0047c4cc
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [0x547790]
pop ecx
jl 0x40ba8a
lea eax, [esp + 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x40baf3
and eax, 0xfffffffe
push eax
lea eax, [esp + 0x17c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esp + 0x10], 0
je 0x40bb16
cmp dword [esp + 0x14], 0
je 0x40bb16
lea eax, [esp + 0x70]
push eax
mov edx, eax
lea ecx, [esp + 0x17c]
call fcn.0041ae70
jmp 0x40bb29
lea eax, [esp + 0x70]
push eax
mov edx, eax
lea ecx, [esp + 0x17c]
call fcn.0041ae5f
test eax, eax
pop ecx
jne 0x40bb4f
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.004178df
add esp, 0xc
xor eax, eax
jmp 0x40bc63
lea edi, [esp + 0x70]
call fcn.0041b048
test eax, eax
jne 0x40bb6b
mov eax, edi
push eax
push str.:8:SpawnPaulaExe___FAILED:_The_spawned_exe___s__did_not_exist_after_creation_
call fcn.004178df
pop ecx
pop ecx
xor esi, esi
cmp dword [esp + 0x10], esi
je 0x40bc07
push esi
mov esi, str.TelKomm
call fcn.0040ad2d
cmp eax, 0x19
pop ecx
jg 0x40bb48
push 0x10
xor edi, edi
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.004b53e0
add esp, 0xc
push 0x44
pop esi
push esi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.004b53e0
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.0040ae29
pop ecx
lea eax, [esp + 0x18]
push eax
push edi
push edi
call fcn.0045e70f
pop ecx
pop ecx
push eax
lea eax, [esp + 0x390]
push eax
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x38]
call fcn.0040e72f
add esp, 0x10
test eax, eax
jne 0x40bc4f
push str._GetLastError_
lea eax, [esp + 0x74]
push eax
push str.:8:SpawnPaulaExe___FAILED_to_start_the_Paula_Session_Process:___s__Spawned_:__s
jmp 0x40bb40
push 0x103
lea eax, [esp + 0x285]
push esi
push eax
mov byte [esp + 0x28c], 0
call fcn.004b53e0
add esp, 0xc
mov ecx, str.BETTY.exe
call fcn.0047ccf0
push eax
mov ecx, ebx
lea eax, [esp + 0x284]
call fcn.0047c3fc
pop ecx
push esi
mov esi, eax
call fcn.0040ad2d
cmp eax, 0x14
jmp 0x40bb85
mov edi, dword [esp + 0x1c]
call fcn.0041d762
mov edi, dword [esp + 0x18]
call fcn.0041d762
mov eax, esi
mov ecx, dword [esp + 0xb8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b4c95
mov esp, ebp
pop ebp
ret