Function at 0x40a5e0
Capabilities:
Check if file exists
Get session user name
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bf2b2
mov eax, dword fs:[0]
push eax
sub esp, 0x518
mov eax, dword [0x4f7458]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x444], 0
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.0048ac80
add esp, 0xc
mov dword [ebp - 0x42c], 0x104
push 0xff
lea edx, [ebp - 0x21c]
push edx
push str.LOCALAPPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x430]
call fcn.00411290
mov dword [ebp - 0x50c], eax
mov ecx, dword [ebp - 0x50c]
mov dword [ebp - 0x510], ecx
mov dword [ebp - 4], 0
push str.LotusNotesData_notes.ini
mov edx, dword [ebp - 0x510]
push edx
lea eax, [ebp - 0x428]
push eax
call fcn.0040f970
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x430]
call fcn.00402470
lea ecx, [ebp - 0x42c]
push ecx
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x434]
push eax
call fcn.0040a490
add esp, 4
mov dword [ebp - 0x514], eax
mov ecx, dword [ebp - 0x514]
mov dword [ebp - 0x454], ecx
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x454]
mov eax, dword [edx]
mov dword [ebp - 0x458], eax
mov ecx, dword [ebp - 0x458]
push ecx
lea edx, [ebp - 0x424]
push edx
lea ecx, [ebp - 0x428]
call fcn.0040f0e0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x434]
sub eax, 0x10
mov dword [ebp - 0x498], eax
mov ecx, dword [ebp - 0x498]
call fcn.00403de0
mov ecx, dword [ebp - 0x428]
mov dword [ebp - 0x49c], ecx
mov edx, dword [ebp - 0x49c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a78c
lea eax, [ebp - 0x428]
push eax
mov ecx, dword [ebp + 8]
call fcn.004118a0
mov ecx, dword [ebp - 0x444]
or ecx, 1
mov dword [ebp - 0x444], ecx
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x428]
sub edx, 0x10
mov dword [ebp - 0x4a0], edx
mov ecx, dword [ebp - 0x4a0]
call fcn.00403de0
mov eax, dword [ebp + 8]
jmp 0x40a93e
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x438]
call fcn.00411290
mov dword [ebp - 0x518], eax
mov ecx, dword [ebp - 0x518]
mov dword [ebp - 0x51c], ecx
mov byte [ebp - 4], 4
push str.IBMNotesData_notes.ini
mov edx, dword [ebp - 0x51c]
push edx
lea eax, [ebp - 0x43c]
push eax
call fcn.0040f970
add esp, 0xc
mov dword [ebp - 0x520], eax
mov ecx, dword [ebp - 0x520]
mov dword [ebp - 0x4ac], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x4ac]
push edx
lea ecx, [ebp - 0x428]
call fcn.004118e0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x43c]
sub eax, 0x10
mov dword [ebp - 0x4b0], eax
mov ecx, dword [ebp - 0x4b0]
call fcn.00403de0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x438]
sub ecx, 0x10
mov dword [ebp - 0x4b4], ecx
mov ecx, dword [ebp - 0x4b4]
call fcn.00403de0
lea edx, [ebp - 0x440]
push edx
call fcn.0040a490
add esp, 4
mov dword [ebp - 0x524], eax
mov eax, dword [ebp - 0x524]
mov dword [ebp - 0x4b8], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x4b8]
mov edx, dword [ecx]
mov dword [ebp - 0x4bc], edx
mov eax, dword [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x424]
push ecx
lea ecx, [ebp - 0x428]
call fcn.0040f0e0
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x440]
sub edx, 0x10
mov dword [ebp - 0x4fc], edx
mov ecx, dword [ebp - 0x4fc]
call fcn.00403de0
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x500], eax
mov ecx, dword [ebp - 0x500]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a8fe
lea edx, [ebp - 0x428]
push edx
mov ecx, dword [ebp + 8]
call fcn.00411250
mov eax, dword [ebp - 0x444]
or eax, 1
mov dword [ebp - 0x444], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x428]
sub ecx, 0x10
mov dword [ebp - 0x504], ecx
mov ecx, dword [ebp - 0x504]
call fcn.00403de0
mov eax, dword [ebp + 8]
jmp 0x40a93e
push 0x4c83b4
mov ecx, dword [ebp + 8]
call fcn.00411290
mov edx, dword [ebp - 0x444]
or edx, 1
mov dword [ebp - 0x444], edx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x428]
sub eax, 0x10
mov dword [ebp - 0x508], eax
mov ecx, dword [ebp - 0x508]
call fcn.00403de0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048abfc
mov esp, ebp
pop ebp
ret