Function at 0x4103c0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43fdc0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 4]
cmp dword [eax - 8], edi
jne 0x41040f
mov ecx, dword [ebp + 8]
push str.CRfOptions::Save:_empty_file_name
call fcn.00436ae0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x24]
cmp eax, edi
jne 0x410422
push str.CRfOptions::Save:_options_file_was_not_loaded_n
push str.OSF:_options_was_not_loaded_n
jmp 0x410431
cmp eax, 2
jne 0x410439
push str.CRfOptions::Save:_options_file_is_corrupt_n
push str.OSF:_options_file_is_corrupt_n
call fcn.0040b8a0
add esp, 8
mov ecx, dword [0x4804ec]
mov dword [ebp - 0x10], ecx
mov eax, dword [esi + 0x14]
mov dword [ebp - 4], edi
neg eax
sbb eax, eax
cmp eax, edi
mov dword [ebp - 0x2c], eax
je 0x410585
mov bl, 6
mov edx, dword [0x4804ec]
mov dword [ebp - 0x18], edx
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
lea edx, [ebp - 0x2c]
push ecx
push edx
lea ecx, [esi + 8]
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], edi
call fcn.00431750
cmp dword [ebp - 0x14], edi
je 0x4105ed
lea eax, [ebp - 0x18]
push 0x47ab48
lea ecx, [ebp - 0x30]
push eax
push ecx
call fcn.00436c50
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00436e50
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.004368f0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
neg eax
sbb eax, eax
cmp eax, edi
mov dword [ebp - 0x28], eax
je 0x410570
mov eax, dword [0x4804ec]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x28]
push ecx
push edx
lea ecx, [eax + 4]
mov byte [ebp - 4], 4
call fcn.004319c0
lea ecx, [ebp - 0x24]
push 0x3d
lea edx, [ebp - 0x3c]
push ecx
push edx
call fcn.0042fad0
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x38]
push ecx
push eax
push edx
mov byte [ebp - 4], 5
call fcn.00436bc0
push 0x47ab4c
push eax
lea eax, [ebp - 0x34]
mov byte [ebp - 4], bl
push eax
call fcn.00436c50
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 7
call fcn.00436e50
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.004368f0
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call fcn.004368f0
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.004368f0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.004368f0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.004368f0
cmp dword [ebp - 0x28], edi
jne 0x4104c6
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.004368f0
cmp dword [ebp - 0x2c], edi
jne 0x410459
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ebx
push ecx
mov ecx, esi
call fcn.00410300
mov esi, eax
cmp esi, edi
jne 0x41062a
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x410663
test al, 0x10
jne 0x410663
mov eax, dword [ebp - 0x1c]
push 0x80
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x410663
push ebx
mov ebx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push ecx
mov ecx, ebx
call fcn.00410300
mov esi, eax
cmp esi, edi
je 0x410663
jmp 0x41062d
mov ecx, dword [ebp + 8]
push str.inner_fault
call fcn.00436ae0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.004368f0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004368f0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x1c]
mov dword [ebx + 0x28], edi
mov ebx, dword [ebx + 4]
mov dword [ebp + 8], edi
push edi
lea ecx, [ebp + 8]
mov byte [ebp - 4], 8
call fcn.004134c0
push 1
push ebx
lea ecx, [ebp + 8]
mov byte [ebp - 4], 9
call fcn.00413530
mov eax, dword [ebp + 8]
cmp eax, edi
je 0x410660
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp + 8], edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.004368f0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4