Function at 0x40a960
Capabilities:
Check if file exists
Copy file
Delete file
Move file
Read .ini file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf318
mov eax, dword fs:[0]
push eax
sub esp, 0x150
mov eax, dword [0x4f7458]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x154], ecx
push str.EstNotes.dll111
mov eax, dword [ebp - 0x154]
push eax
lea ecx, [ebp - 0x28]
push ecx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x60], edx
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40aa4c
push str.EstNotes.dll
mov ecx, dword [ebp - 0x154]
push ecx
lea edx, [ebp - 0x2c]
push edx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x158]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x28]
call fcn.004118e0
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x2c]
sub edx, 0x10
mov dword [ebp - 0x68], edx
mov ecx, dword [ebp - 0x68]
call fcn.00403de0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40aa4c
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x28]
sub edx, 0x10
mov dword [ebp - 0x70], edx
mov ecx, dword [ebp - 0x70]
call fcn.00403de0
mov eax, dword [ebp - 0x30]
jmp 0x40af9d
push str.C:Program_Files__x86_IBMNotes_
lea ecx, [ebp - 0x14]
call fcn.00411290
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x7c], eax
mov ecx, dword [ebp - 0x7c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ab0a
mov edx, str.C:Program_Files__x86_IBMLotusNotes_
test edx, edx
jne 0x40aa87
mov dword [ebp - 0x80], 0
jmp 0x40aa97
push str.C:Program_Files__x86_IBMLotusNotes_
call fcn.0048bb5c
add esp, 4
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
push eax
push str.C:Program_Files__x86_IBMLotusNotes_
lea ecx, [ebp - 0x14]
call fcn.00411b20
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x84], ecx
mov edx, dword [ebp - 0x84]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40ab0a
mov dword [ebp - 0x34], 0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
sub eax, 0x10
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
call fcn.00403de0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x28]
sub ecx, 0x10
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebp - 0x8c]
call fcn.00403de0
mov eax, dword [ebp - 0x34]
jmp 0x40af9d
push str.EstNotes.dll
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.0040f970
add esp, 0xc
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x90], ecx
mov edx, dword [ebp - 0x90]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40ad04
push 0x80
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x4caa50
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x38]
push edx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x94]
mov ecx, dword [eax]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x98]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x38]
sub eax, 0x10
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
call fcn.00403de0
push 0x4caa50
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
mov ecx, dword [eax]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp - 0xa4]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.0048c89b
add esp, 8
mov ecx, dword [ebp - 0x3c]
sub ecx, 0x10
mov dword [ebp - 0xa8], ecx
mov ecx, dword [ebp - 0xa8]
call fcn.00403de0
push 0x4caa50
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x44]
push eax
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0xac]
mov edx, dword [ecx]
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x3d], al
mov ecx, dword [ebp - 0x44]
sub ecx, 0x10
mov dword [ebp - 0xb4], ecx
mov ecx, dword [ebp - 0xb4]
call fcn.00403de0
movzx edx, byte [ebp - 0x3d]
test edx, edx
je 0x40aca0
push 0x4caa50
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x48]
push ecx
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0xb8], eax
mov edx, dword [ebp - 0xb8]
mov eax, dword [edx]
mov dword [ebp - 0xbc], eax
push 4
push 0
mov ecx, dword [ebp - 0xbc]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x48]
sub edx, 0x10
mov dword [ebp - 0xc0], edx
mov ecx, dword [ebp - 0xc0]
call fcn.00403de0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0xc8], ecx
push 0
mov edx, dword [ebp - 0xc4]
push edx
mov eax, dword [ebp - 0xc8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40ad02
mov dword [ebp - 0x4c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00402470
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402470
mov eax, dword [ebp - 0x4c]
jmp 0x40af9d
jmp 0x40ad66
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0xd8], ecx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0xdc], edx
push 0
mov eax, dword [ebp - 0xd8]
push eax
mov ecx, dword [ebp - 0xdc]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40ad66
mov dword [ebp - 0x50], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00402470
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402470
mov eax, dword [ebp - 0x50]
jmp 0x40af9d
call fcn.00447437
push eax
lea ecx, [ebp - 0x24]
call fcn.00411850
mov byte [ebp - 4], 4
lea edx, [ebp - 0x1c]
push edx
call fcn.0040a5e0
add esp, 4
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax - 0xc]
mov dword [ebp - 0xec], ecx
xor edx, edx
cmp dword [ebp - 0xec], 0
sete dl
movzx eax, dl
test eax, eax
je 0x40adf5
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00402470
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00402470
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00402470
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402470
mov eax, dword [ebp - 0x54]
jmp 0x40af9d
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x104], ecx
mov edx, dword [ebp - 0x104]
push edx
push 0x104
push 0x105
lea ecx, [ebp - 0x24]
call fcn.00411420
push eax
push 0x4c83b4
push str.EXTMGR_ADDINS
push str.Notes
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [ebp - 0x18], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x24]
call fcn.00411480
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0040f7f0
mov dword [ebp - 0x15c], eax
mov edx, dword [ebp - 0x15c]
mov dword [ebp - 0x11c], edx
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x11c]
push eax
lea ecx, [ebp - 0x24]
call fcn.004118e0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x58]
call fcn.00402470
push 0
push str.ESTNOTES
lea ecx, [ebp - 0x24]
call fcn.0040f610
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x40af54
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx - 0xc]
mov dword [ebp - 0x130], edx
xor eax, eax
cmp dword [ebp - 0x130], 0
sete al
movzx ecx, al
test ecx, ecx
je 0x40aef4
mov edx, str.ESTNOTES
test edx, edx
jne 0x40aecb
mov dword [ebp - 0x134], 0
jmp 0x40aede
push str.ESTNOTES
call fcn.0048bb5c
add esp, 4
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
push eax
push str.ESTNOTES
lea ecx, [ebp - 0x24]
call fcn.00411b20
jmp 0x40af30
mov ecx, str._ESTNOTES
test ecx, ecx
jne 0x40af09
mov dword [ebp - 0x138], 0
jmp 0x40af1c
push str._ESTNOTES
call fcn.0048bb5c
add esp, 4
mov dword [ebp - 0x138], eax
mov edx, dword [ebp - 0x138]
push edx
push str._ESTNOTES
lea ecx, [ebp - 0x24]
call fcn.00410800
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x13c]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push str.EXTMGR_ADDINS
push str.Notes
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov dword [ebp - 0x5c], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00402470
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.00402470
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00402470
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402470
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402470
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret