Function at 0x4013de
Capabilities:
Set console window title

Disassembly:
jmp 0x417985
push ebp
lea ebp, [esp - 0xae8]
sub esp, 0xb68
mov eax, dword [0x6294a0]
xor eax, ebp
mov dword [ebp + 0xae4], eax
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp + 0x8dd]
push ebx
push eax
mov byte [ebp + 0x8dc], bl
call fcn.00508d00
push esi
lea eax, [ebp + 0x9e1]
push ebx
push eax
mov byte [ebp + 0x9e0], bl
call fcn.00508d00
push 0x7ff
lea eax, [ebp - 0x27]
push ebx
push eax
mov byte [ebp - 0x28], bl
call fcn.00508d00
xor eax, eax
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x7c]
push ebx
push eax
mov dword [ebp - 0x80], ebx
call fcn.00508d00
add esp, 0x30
push str.PAULA_Initialization...
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [ebp + 0xaf0], ebx
jne 0x417a42
xor esi, esi
cmp dword [0x62f194], ebx
jle 0x417a42
push str._StartSp
push dword [esi*4 + 0x62f198]
call fcn.00402f86
test eax, eax
pop ecx
pop ecx
je 0x417c28
inc esi
cmp esi, dword [0x62f194]
jl 0x417a1e
push ebx
push ebx
call fcn.0040113b
push eax
call fcn.00402b5d
add esp, 0xc
test eax, eax
jne 0x417a68
push ebx
push ebx
push ebx
call fcn.0040113b
pop ecx
pop ecx
push eax
call fcn.0040291e
pop ecx
pop ecx
push ebx
push ebx
call fcn.004031fc
pop ecx
pop ecx
push eax
push ebx
push ebx
call fcn.0040113b
pop ecx
pop ecx
push eax
call fcn.004020db
test eax, eax
pop ecx
pop ecx
jne 0x417aad
push ebx
push ebx
call fcn.004031fc
push eax
call fcn.00402b5d
add esp, 0xc
test eax, eax
jne 0x417aad
push ebx
push ebx
push ebx
call fcn.004031fc
pop ecx
pop ecx
push eax
call fcn.0040291e
pop ecx
pop ecx
push dword [0x62f198]
call fcn.00402b5d
test eax, eax
pop ecx
mov esi, str.BETTY.exe
je 0x417b0b
mov edi, 0x104
push edi
push dword [0x62f198]
lea eax, [ebp + 0x8dc]
push eax
call fcn.00402abd
push edi
lea eax, [ebp + 0x8dc]
push eax
lea eax, [ebp + 0x9e0]
push eax
call fcn.00402abd
lea eax, [ebp + 0x9e0]
push eax
call fcn.00402a1d
lea eax, [ebp + 0x9e0]
push eax
call fcn.00401ff5
add esp, 0x20
jmp 0x417b30
push esi
push ebx
push ebx
call fcn.004031fc
pop ecx
pop ecx
push eax
push 0x586728
mov edi, 0x104
lea eax, [ebp + 0x8dc]
push edi
push eax
call fcn.00402dbf
add esp, 0x14
push esi
call fcn.00403008
pop ecx
push eax
push ebx
push ebx
call fcn.0040113b
pop ecx
pop ecx
push eax
push 0x586728
lea eax, [ebp + 0x9e0]
push edi
push eax
call fcn.00402dbf
lea eax, [ebp + 0x9e0]
push eax
push str.__s___StartSp
lea eax, [ebp - 0x28]
push 0x800
push eax
call fcn.00402dbf
xor eax, eax
inc eax
add esp, 0x24
cmp dword [0x62f194], eax
mov dword [ebp - 0x2c], eax
jle 0x417bce
push 0x800
lea eax, [ebp - 0x28]
push 0x58a828
push eax
call fcn.00402365
mov eax, dword [ebp - 0x2c]
push 0x800
push dword [eax*4 + 0x62f198]
lea eax, [ebp - 0x28]
push eax
call fcn.00402365
push 0x800
lea eax, [ebp - 0x28]
push 0x58a144
push eax
call fcn.00402365
add esp, 0x24
inc dword [ebp - 0x2c]
mov eax, dword [ebp - 0x2c]
cmp eax, dword [0x62f194]
jl 0x417b7f
lea eax, [ebp + 0x8dc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x417bf0
and eax, 0xfffffffe
push eax
lea eax, [ebp + 0x8dc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
lea eax, [ebp + 0x9e0]
push eax
push eax
lea eax, [ebp + 0x8dc]
push eax
call fcn.004016bd
add esp, 0x10
test eax, eax
lea eax, [ebp + 0x9e0]
push eax
jne 0x417c2f
lea eax, [ebp + 0x8dc]
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.004020c2
add esp, 0xc
xor eax, eax
jmp 0x417d36
call fcn.00402b5d
test eax, eax
pop ecx
jne 0x417c4c
lea eax, [ebp + 0x9e0]
push eax
push str.:8:SpawnPaulaExe___FAILED:_The_spawned_exe___s__did_not_exist_after_creation_
call fcn.004020c2
pop ecx
pop ecx
push 0x103
lea eax, [ebp + 0x7d9]
push ebx
push eax
mov byte [ebp + 0x7d8], bl
call fcn.00508d00
add esp, 0xc
push edi
push esi
call fcn.00403008
pop ecx
push eax
lea eax, [ebp + 0x7d8]
push eax
call fcn.00402abd
lea eax, [ebp + 0x7d8]
push ebx
push eax
call fcn.004019a1
add esp, 0x14
cmp eax, 0x14
jg 0x417c28
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.00508d00
push 0x44
pop esi
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00508d00
xor edi, edi
lea eax, [ebp + 0x9e0]
inc edi
push eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x50], di
call fcn.00401208
add esp, 0x1c
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
call fcn.004031fc
pop ecx
pop ecx
push eax
push ebx
push 0x28
push ebx
push ebx
push ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp + 0x9e0]
push eax
call fcn.00401a8c
add esp, 0x28
test eax, eax
jne 0x417d0c
push str._GetLastError_
lea eax, [ebp + 0x9e0]
push eax
push str.:8:SpawnPaulaExe___FAILED_to_start_the_Paula_Session_Process:___s__StartSp_:__s
jmp 0x417c20
push 0xd1e
mov ebx, str..Console.c
push ebx
mov esi, str.SpawnPaulaExe
push esi
push dword [ebp - 0x38]
call fcn.00403134
push 0xd1f
push ebx
push esi
push dword [ebp - 0x3c]
call fcn.00403134
mov eax, edi
mov ecx, dword [ebp + 0xae4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00508cf0
add ebp, 0xae8
leave
ret