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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb90
mov eax, dword [0x6fb448]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x930], 0
push 0x103
push 0
lea eax, [ebp - 0x92f]
push eax
call fcn.005b02a0
add esp, 0xc
mov byte [ebp - 0xa38], 0
push 0x103
push 0
lea ecx, [ebp - 0xa37]
push ecx
call fcn.005b02a0
add esp, 0xc
mov byte [ebp - 0x808], 0
push 0x7ff
push 0
lea edx, [ebp - 0x807]
push edx
call fcn.005b02a0
add esp, 0xc
mov dword [ebp - 0x824], 0
xor eax, eax
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x81c], eax
mov dword [ebp - 0x818], eax
mov dword [ebp - 0xa80], 0
push 0x40
push 0
lea ecx, [ebp - 0xa7c]
push ecx
call fcn.005b02a0
add esp, 0xc
mov dword [ebp - 0x814], 0
mov dword [ebp - 0xa84], 0
mov dword [ebp - 0x810], 0
mov dword [ebp - 0x80c], 0
push str.PAULA_Initialization...
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [ebp + 8], 0
jne 0x41e86f
mov dword [ebp - 0x814], 0
jmp 0x41e839
mov edx, dword [ebp - 0x814]
add edx, 1
mov dword [ebp - 0x814], edx
mov eax, dword [ebp - 0x814]
cmp eax, dword [0x70115c]
jge 0x41e86f
push str._StartSp
mov ecx, dword [ebp - 0x814]
mov edx, dword [ecx*4 + 0x701160]
push edx
call fcn.00403125
add esp, 8
test eax, eax
jne 0x41e86d
xor eax, eax
jmp 0x41ec55
jmp 0x41e82a
push 0
push 0
call fcn.00401474
add esp, 8
push eax
call fcn.004028ab
add esp, 4
test eax, eax
jne 0x41e89f
push 0
push 0
push 0
call fcn.00401474
add esp, 8
push eax
call fcn.004023ec
add esp, 8
push 0
push 0
call fcn.004022b6
add esp, 8
push eax
push 0
push 0
call fcn.00401474
add esp, 8
push eax
call fcn.00401041
add esp, 8
test eax, eax
jne 0x41e8f5
push 0
push 0
call fcn.004022b6
add esp, 8
push eax
call fcn.004028ab
add esp, 4
test eax, eax
jne 0x41e8f5
push 0
push 0
push 0
call fcn.004022b6
add esp, 8
push eax
call fcn.004023ec
add esp, 8
mov eax, dword [0x701160]
push eax
call fcn.004028ab
add esp, 4
test eax, eax
je 0x41e95d
push 0x104
mov ecx, dword [0x701160]
push ecx
lea edx, [ebp - 0x930]
push edx
call fcn.00402725
add esp, 0xc
push 0x104
lea eax, [ebp - 0x930]
push eax
lea ecx, [ebp - 0xa38]
push ecx
call fcn.00402725
add esp, 0xc
lea edx, [ebp - 0xa38]
push edx
call fcn.00402608
add esp, 4
lea eax, [ebp - 0xa38]
push eax
call fcn.00402158
add esp, 4
jmp 0x41e988
push 0x64b9bc
push 0
push 0
call fcn.004022b6
add esp, 8
push eax
push 0x64b9c8
push 0x104
lea ecx, [ebp - 0x930]
push ecx
call fcn.00402dc9
add esp, 0x14
push 0x64b9d0
call fcn.004031fc
add esp, 4
push eax
push 0
push 0
call fcn.00401474
add esp, 8
push eax
push 0x64b9dc
push 0x104
lea edx, [ebp - 0xa38]
push edx
call fcn.00402dc9
add esp, 0x14
lea eax, [ebp - 0xa38]
push eax
push str.__s___StartSp
push 0x800
lea ecx, [ebp - 0x808]
push ecx
call fcn.00402dc9
add esp, 0x10
mov dword [ebp - 0x814], 1
jmp 0x41e9f7
mov edx, dword [ebp - 0x814]
add edx, 1
mov dword [ebp - 0x814], edx
mov eax, dword [ebp - 0x814]
cmp eax, dword [0x70115c]
jge 0x41ea5b
push 0x800
push 0x64b9f4
lea ecx, [ebp - 0x808]
push ecx
call fcn.004014f1
add esp, 0xc
push 0x800
mov edx, dword [ebp - 0x814]
mov eax, dword [edx*4 + 0x701160]
push eax
lea ecx, [ebp - 0x808]
push ecx
call fcn.004014f1
add esp, 0xc
push 0x800
push 0x64b9f8
lea edx, [ebp - 0x808]
push edx
call fcn.004014f1
add esp, 0xc
jmp 0x41e9e8
lea eax, [ebp - 0x930]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0xa84], eax
mov ecx, dword [ebp - 0xa84]
and ecx, 1
je 0x41ea90
mov edx, dword [ebp - 0xa84]
and edx, 0xfffffffe
push edx
lea eax, [ebp - 0x930]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
lea ecx, [ebp - 0xa38]
push ecx
lea edx, [ebp - 0xa38]
push edx
lea eax, [ebp - 0x930]
push eax
call fcn.0040206d
add esp, 0x10
mov dword [ebp - 0x80c], eax
cmp dword [ebp - 0x80c], 0
jne 0x41eae0
lea ecx, [ebp - 0xa38]
push ecx
lea edx, [ebp - 0x930]
push edx
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.00401014
add esp, 0xc
xor eax, eax
jmp 0x41ec55
lea eax, [ebp - 0xa38]
push eax
call fcn.004028ab
add esp, 4
test eax, eax
jne 0x41eb07
lea ecx, [ebp - 0xa38]
push ecx
push str.:8:SpawnPaulaExe___FAILED:_The_spawned_exe___s__did_not_exist_after_creation_
call fcn.00401014
add esp, 8
mov byte [ebp - 0xb90], 0
push 0x103
push 0
lea edx, [ebp - 0xb8f]
push edx
call fcn.005b02a0
add esp, 0xc
push 0x104
push 0x64bae8
call fcn.004031fc
add esp, 4
push eax
lea eax, [ebp - 0xb90]
push eax
call fcn.00402725
add esp, 0xc
push 0
lea ecx, [ebp - 0xb90]
push ecx
call fcn.00402851
add esp, 8
cmp eax, 0x14
jle 0x41eb63
xor eax, eax
jmp 0x41ec55
push 0x10
push 0
lea edx, [ebp - 0x824]
push edx
call fcn.005b02a0
add esp, 0xc
push 0x44
push 0
lea eax, [ebp - 0xa80]
push eax
call fcn.005b02a0
add esp, 0xc
mov dword [ebp - 0xa80], 0x44
mov dword [ebp - 0xa54], 1
mov word [ebp - 0xa50], 1
mov ecx, 1
test ecx, ecx
je 0x41ebbe
lea edx, [ebp - 0xa38]
push edx
call fcn.004015ff
add esp, 4
lea eax, [ebp - 0x824]
push eax
lea ecx, [ebp - 0xa80]
push ecx
push 0
push 0
call fcn.004022b6
add esp, 8
push eax
push 0
push 0x28
push 0
push 0
push 0
lea edx, [ebp - 0x808]
push edx
lea eax, [ebp - 0xa38]
push eax
call fcn.00402a2c
add esp, 0x28
test eax, eax
jne 0x41ec1a
push 0x64baf4
lea ecx, [ebp - 0xa38]
push ecx
push str.:8:SpawnPaulaExe___FAILED_to_start_the_Paula_Session_Process:___s__StartSp_:__s
call fcn.00401014
add esp, 0xc
xor eax, eax
jmp 0x41ec55
push 0xd1e
push 0x64bb58
push 0x64bb64
mov edx, dword [ebp - 0x820]
push edx
call fcn.00401f5a
push 0xd1f
push 0x64bb74
push str.SpawnPaulaExe
mov eax, dword [ebp - 0x824]
push eax
call fcn.00401f5a
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b0290
mov esp, ebp
pop ebp
ret