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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb64
mov eax, dword [0x4cc8c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x20c]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00466ad0
push esi
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.00466ad0
push 0x800
lea eax, [ebp - 0xb10]
push ebx
push eax
call fcn.00466ad0
xor eax, eax
lea edi, [ebp - 0xb20]
stosd dword es:[edi], eax
push 0x44
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xb64]
push eax
call fcn.00466ad0
add esp, 0x30
push str.PAULA_Initialization...
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [ebp + 8], ebx
jne 0x408dd2
mov esi, ebx
cmp dword [0x4d0280], ebx
jle 0x408dcd
push 0x48c100
push dword [esi*4 + 0x4d0288]
call fcn.004529a0
pop ecx
pop ecx
test eax, eax
je 0x4090c0
push str._Spawned
push dword [esi*4 + 0x4d0288]
call fcn.004529a0
pop ecx
pop ecx
test eax, eax
je 0x4090c0
push 0x48c140
push dword [esi*4 + 0x4d0288]
call fcn.004529a0
pop ecx
pop ecx
test eax, eax
je 0x4091e6
push str._CreateTerminal
push dword [esi*4 + 0x4d0288]
call fcn.004529a0
pop ecx
pop ecx
test eax, eax
je 0x4091e6
inc esi
cmp esi, dword [0x4d0280]
jl 0x408d58
mov esi, 0x104
push ebx
push ebx
call fcn.0043e284
push eax
call fcn.00410961
add esp, 0xc
test eax, eax
jne 0x408df8
push ebx
push ebx
push ebx
call fcn.0043e284
pop ecx
pop ecx
push eax
call fcn.0040fb2d
pop ecx
pop ecx
push ebx
push ebx
call fcn.0043e0cb
pop ecx
pop ecx
push eax
push ebx
push ebx
call fcn.0043e284
pop ecx
pop ecx
push eax
call fcn.004529d5
pop ecx
pop ecx
test eax, eax
jne 0x408e3d
push ebx
push ebx
call fcn.0043e0cb
push eax
call fcn.00410961
add esp, 0xc
test eax, eax
jne 0x408e3d
push ebx
push ebx
push ebx
call fcn.0043e0cb
pop ecx
pop ecx
push eax
call fcn.0040fb2d
pop ecx
pop ecx
push str.BETTY.exe
push ebx
push ebx
call fcn.0043e0cb
pop ecx
pop ecx
push eax
push 0x48b250
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0045285b
lea eax, [ebp - 0x20c]
push eax
call fcn.00410961
xor edi, edi
add esp, 0x18
inc edi
test eax, eax
jne 0x408edb
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x20c]
push eax
call fcn.00410961
pop ecx
test eax, eax
jne 0x408edb
lea eax, [ebp - 0x20c]
push eax
push dword [0x4d0288]
push str.:8:SpawnPaulaExe___has_determined_that_the_default_PAULA_exe_does_not_exist___Had_to_CopyFile___s_____s___TRUE__
call fcn.0040d9e1
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [0x4d0288]
call fcn.004114e9
add esp, 0x18
test eax, eax
jne 0x408edb
lea eax, [ebp - 0x20c]
push eax
push dword [0x4d0288]
push str.:9:SpawnPaulaExe___FAILED:_CopyFile___s_____s___TRUE__FAILED:_Could_not_create_the_default_PAULA_exe_
call fcn.0040d9e1
add esp, 0xc
push dword [0x4d0288]
call fcn.00410961
pop ecx
test eax, eax
je 0x408fa1
push esi
push dword [0x4d0288]
lea eax, [ebp - 0x20c]
push eax
call fcn.00452b01
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.00452b01
lea eax, [ebp - 0x108]
push eax
call fcn.00451e92
lea eax, [ebp - 0x108]
push str.PAULA.st
push eax
call fcn.00470487
add esp, 0x24
test eax, eax
jne 0x408f92
push str.BETTY.exe
push ebx
push ebx
call fcn.0043e0cb
pop ecx
pop ecx
push eax
push 0x48b250
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0045285b
lea eax, [ebp - 0x108]
push eax
call fcn.00410961
add esp, 0x18
test eax, eax
je 0x408f92
push str.BETTY.exe
push ebx
push ebx
call fcn.0043e0cb
pop ecx
pop ecx
push eax
push 0x48b250
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0045285b
add esp, 0x14
lea eax, [ebp - 0x108]
push eax
call fcn.00450a50
pop ecx
jmp 0x408fc5
push str.BETTY.exe
push ebx
push ebx
call fcn.0043e0cb
pop ecx
pop ecx
push eax
push 0x48b250
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0045285b
add esp, 0x14
push str.BETTY.exe
call fcn.00450d84
pop ecx
push eax
push ebx
push ebx
call fcn.0043e284
pop ecx
pop ecx
push eax
push 0x48b250
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0045285b
lea eax, [ebp - 0x108]
push eax
push str.__s___Spawned
lea eax, [ebp - 0xb10]
push 0x800
push eax
call fcn.0045285b
add esp, 0x24
mov esi, edi
cmp dword [0x4d0280], edi
jle 0x409067
push 0x800
lea eax, [ebp - 0xb10]
push 0x48c26c
push eax
call fcn.00452a6d
push 0x800
push dword [esi*4 + 0x4d0288]
lea eax, [ebp - 0xb10]
push eax
call fcn.00452a6d
push 0x800
lea eax, [ebp - 0xb10]
push 0x48ba1c
push eax
call fcn.00452a6d
add esp, 0x24
inc esi
cmp esi, dword [0x4d0280]
jl 0x409017
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x409089
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
lea eax, [ebp - 0x108]
push eax
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0040ecdb
add esp, 0x10
test eax, eax
lea eax, [ebp - 0x108]
push eax
jne 0x4090c7
lea eax, [ebp - 0x20c]
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.0040d511
add esp, 0xc
xor eax, eax
jmp 0x4091e9
call fcn.00410961
pop ecx
test eax, eax
jne 0x4090e4
lea eax, [ebp - 0x108]
push eax
push str.:8:SpawnPaulaExe___FAILED:_The_spawned_exe___s__did_not_exist_after_creation_
call fcn.0040d511
pop ecx
pop ecx
mov esi, 0x104
lea eax, [ebp - 0x310]
push esi
push ebx
push eax
call fcn.00466ad0
add esp, 0xc
push esi
push str.BETTY.exe
call fcn.00450d84
pop ecx
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.00452b01
lea eax, [ebp - 0x310]
push ebx
push eax
call fcn.004058a3
add esp, 0x14
cmp eax, 0x14
jg 0x4090c0
push 0x10
lea eax, [ebp - 0xb20]
push ebx
push eax
call fcn.00466ad0
push 0x44
pop esi
push esi
lea eax, [ebp - 0xb64]
push ebx
push eax
call fcn.00466ad0
lea eax, [ebp - 0x108]
mov dword [ebp - 0xb64], esi
push eax
mov dword [ebp - 0xb38], edi
mov word [ebp - 0xb34], di
call fcn.00407c34
add esp, 0x1c
lea eax, [ebp - 0xb20]
push eax
lea eax, [ebp - 0xb64]
push eax
push ebx
push ebx
call fcn.0043e0cb
pop ecx
pop ecx
push eax
push ebx
push 0x28
push ebx
push ebx
push ebx
lea eax, [ebp - 0xb10]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004059b1
add esp, 0x28
test eax, eax
jne 0x4091b8
push str._GetLastError_
lea eax, [ebp - 0x108]
push eax
push str.:8:SpawnPaulaExe___FAILED_to_start_the_Paula_Session_Process:___s__Spawned_:__s
jmp 0x4090b8
push 0xd63
mov edi, str.C:UsersOfficeDocumentsVisual_StudioPAULAConsole.c
mov esi, str.SpawnPaulaExe
push edi
push esi
push dword [ebp - 0xb1c]
call fcn.0040eb13
push 0xd64
push edi
push esi
push dword [ebp - 0xb20]
call fcn.0040eb13
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004654a8
leave
ret