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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb64
mov eax, dword [0x496980]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00440bf0
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00440bf0
push 0x800
lea eax, [ebp - 0xb10]
push ebx
push eax
call fcn.00440bf0
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.00440bf0
add esp, 0x30
push str.PAULA_Initialization...
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
cmp dword [ebp + 8], ebx
jne 0x4077eb
mov esi, ebx
cmp dword [0x49a340], ebx
jle 0x4077e6
push 0x4666e0
push dword [esi*4 + 0x49a348]
call fcn.0042f0a3
pop ecx
pop ecx
test eax, eax
je 0x407a67
push str._Spawned
push dword [esi*4 + 0x49a348]
call fcn.0042f0a3
pop ecx
pop ecx
test eax, eax
je 0x407a67
push 0x4666f8
push dword [esi*4 + 0x49a348]
call fcn.0042f0a3
pop ecx
pop ecx
test eax, eax
je 0x407b8d
push str._CreateTerminal
push dword [esi*4 + 0x49a348]
call fcn.0042f0a3
pop ecx
pop ecx
test eax, eax
je 0x407b8d
inc esi
cmp esi, dword [0x49a340]
jl 0x407771
mov esi, 0x104
push ebx
push ebx
call fcn.00427507
push eax
call fcn.0041007a
add esp, 0xc
test eax, eax
jne 0x407811
push ebx
push ebx
push ebx
call fcn.00427507
pop ecx
pop ecx
push eax
call fcn.0040f36d
pop ecx
pop ecx
push ebx
push ebx
call fcn.0042734e
pop ecx
pop ecx
push eax
push ebx
push ebx
call fcn.00427507
pop ecx
pop ecx
push eax
call fcn.0042f0d8
pop ecx
pop ecx
test eax, eax
jne 0x407856
push ebx
push ebx
call fcn.0042734e
push eax
call fcn.0041007a
add esp, 0xc
test eax, eax
jne 0x407856
push ebx
push ebx
push ebx
call fcn.0042734e
pop ecx
pop ecx
push eax
call fcn.0040f36d
pop ecx
pop ecx
push str.BETTY.exe
push ebx
push ebx
call fcn.0042734e
pop ecx
pop ecx
push eax
push 0x465c7c
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0042ef5e
lea eax, [ebp - 0x108]
push eax
call fcn.0041007a
xor edi, edi
add esp, 0x18
inc edi
test eax, eax
jne 0x4078f4
push 0x5dc
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x108]
push eax
call fcn.0041007a
pop ecx
test eax, eax
jne 0x4078f4
lea eax, [ebp - 0x108]
push eax
push dword [0x49a348]
push str.:8:SpawnPaulaExe___has_determined_that_the_default_PAULA_exe_does_not_exist___Had_to_CopyFile___s_____s___TRUE__
call fcn.0040d7f3
push edi
lea eax, [ebp - 0x108]
push eax
push dword [0x49a348]
call fcn.00410b39
add esp, 0x18
test eax, eax
jne 0x4078f4
lea eax, [ebp - 0x108]
push eax
push dword [0x49a348]
push str.:9:SpawnPaulaExe___FAILED:_CopyFile___s_____s___TRUE__FAILED:_Could_not_create_the_default_PAULA_exe_
call fcn.0040d7f3
add esp, 0xc
push dword [0x49a348]
call fcn.0041007a
pop ecx
test eax, eax
je 0x407948
push esi
push dword [0x49a348]
lea eax, [ebp - 0x108]
push eax
call fcn.0042f204
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0042f204
lea eax, [ebp - 0x20c]
push eax
call fcn.0042e4f7
lea eax, [ebp - 0x20c]
push eax
call fcn.0042d261
add esp, 0x20
jmp 0x40796c
push str.BETTY.exe
push ebx
push ebx
call fcn.0042734e
pop ecx
pop ecx
push eax
push 0x465c7c
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0042ef5e
add esp, 0x14
push str.BETTY.exe
call fcn.0042d4dc
pop ecx
push eax
push ebx
push ebx
call fcn.00427507
pop ecx
pop ecx
push eax
push 0x465c7c
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042ef5e
lea eax, [ebp - 0x20c]
push eax
push str.__s___Spawned
lea eax, [ebp - 0xb10]
push 0x800
push eax
call fcn.0042ef5e
add esp, 0x24
mov esi, edi
cmp dword [0x49a340], edi
jle 0x407a0e
push 0x800
lea eax, [ebp - 0xb10]
push 0x466808
push eax
call fcn.0042f170
push 0x800
push dword [esi*4 + 0x49a348]
lea eax, [ebp - 0xb10]
push eax
call fcn.0042f170
push 0x800
lea eax, [ebp - 0xb10]
push 0x46680c
push eax
call fcn.0042f170
add esp, 0x24
inc esi
cmp esi, dword [0x49a340]
jl 0x4079be
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x407a30
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
lea eax, [ebp - 0x20c]
push eax
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0040e95d
add esp, 0x10
test eax, eax
lea eax, [ebp - 0x20c]
push eax
jne 0x407a6e
lea eax, [ebp - 0x108]
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.0040d324
add esp, 0xc
xor eax, eax
jmp 0x407b90
call fcn.0041007a
pop ecx
test eax, eax
jne 0x407a8b
lea eax, [ebp - 0x20c]
push eax
push str.:8:SpawnPaulaExe___FAILED:_The_spawned_exe___s__did_not_exist_after_creation_
call fcn.0040d324
pop ecx
pop ecx
mov esi, 0x104
lea eax, [ebp - 0x310]
push esi
push ebx
push eax
call fcn.00440bf0
add esp, 0xc
push esi
push str.BETTY.exe
call fcn.0042d4dc
pop ecx
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.0042f204
lea eax, [ebp - 0x310]
push ebx
push eax
call fcn.004052a6
add esp, 0x14
cmp eax, 0x14
jg 0x407a67
push 0x10
lea eax, [ebp - 0xb20]
push ebx
push eax
call fcn.00440bf0
push 0x44
pop esi
push esi
lea eax, [ebp - 0xb64]
push ebx
push eax
call fcn.00440bf0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0xb64], esi
push eax
mov dword [ebp - 0xb38], edi
mov word [ebp - 0xb34], di
call fcn.00406988
add esp, 0x1c
lea eax, [ebp - 0xb20]
push eax
lea eax, [ebp - 0xb64]
push eax
push ebx
push ebx
call fcn.0042734e
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 - 0x20c]
push eax
call fcn.004053b4
add esp, 0x28
test eax, eax
jne 0x407b5f
push str._GetLastError_
lea eax, [ebp - 0x20c]
push eax
push str.:8:SpawnPaulaExe___FAILED_to_start_the_Paula_Session_Process:___s__Spawned_:__s
jmp 0x407a5f
push 0xd6e
mov edi, str.C:UsersOfficeDocumentsVisual_StudioHoodSoftUpdateConsole.c
mov esi, str.SpawnPaulaExe
push edi
push esi
push dword [ebp - 0xb1c]
call fcn.0040e841
push 0xd6f
push edi
push esi
push dword [ebp - 0xb20]
call fcn.0040e841
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043f5c5
leave
ret