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

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xd0
push ebx
push esi
mov esi, dword [ebp + 0x78]
push edi
push esi
push 0x435ac5
call fcn.0040c967
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov bl, al
pop ecx
pop ecx
call edi
test bl, bl
jne 0x40c95b
xor ebx, ebx
cmp eax, 5
jne 0x40c94c
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40c737
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 5
mov dword [ebp + 0x6c], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0x6c]
cmp eax, 0xffffffff
jne 0x40c758
xor al, al
jmp 0x40c95f
test al, 1
je 0x40c94c
and eax, 0xfffffffe
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x40c76d
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x40c855
push ebx
call fcn.0040ef1f
mov ecx, eax
call fcn.0040f188
test al, al
je 0x40c83b
push esi
lea ecx, [ebp + 0x50]
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
call fcn.00402bfe
push 1
lea ecx, [ebp - 0x60]
call fcn.00401bbf
lea eax, [ebp - 0x60]
push 0x434a20
push eax
call fcn.004011c7
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00401193
mov eax, dword [ebp + 0x64]
add esp, 0x10
cmp eax, 0x10
jb 0x40c803
mov ecx, dword [ebp + 0x50]
inc eax
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x6c], ecx
cmp eax, 0x1000
jb 0x40c7fa
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.00402af7
mov eax, dword [ebp + 0x68]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
call fcn.00410724
pop ecx
pop ecx
lea eax, [ebp - 0x60]
push 0x434824
push eax
call fcn.004011c7
pop ecx
pop ecx
lea eax, [ebp - 0x60]
push eax
push 0x4349bc
push 0x290
push 0x434798
push ebx
call fcn.0040ef1f
mov ecx, eax
call fcn.00403d0c
lea ecx, [ebp - 0x60]
call fcn.00402821
push esi
push 0x435ac5
call fcn.0040c967
pop ecx
pop ecx
test al, al
jne 0x40c95b
jmp 0x40c94c
push 2
call fcn.0040ef1f
mov ecx, eax
call fcn.0040f188
test al, al
je 0x40c944
push 0x4325e4
call edi
push eax
push dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp + 0x38]
mov dword [ebp + 0x38], ebx
push esi
mov dword [ebp + 0x48], ebx
mov dword [ebp + 0x4c], ebx
call fcn.00402bfe
push 1
lea ecx, [ebp - 0x60]
call fcn.00401bbf
lea eax, [ebp - 0x60]
push 0x434a40
push eax
call fcn.004011c7
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00401193
mov eax, dword [ebp + 0x4c]
add esp, 0x10
cmp eax, 0x10
jb 0x40c8ea
mov ecx, dword [ebp + 0x38]
inc eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x68], ecx
cmp eax, 0x1000
jb 0x40c8e1
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x68]
push eax
call fcn.00402af7
mov eax, dword [ebp + 0x6c]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x68]
push eax
push ecx
call fcn.00410724
pop ecx
pop ecx
lea eax, [ebp - 0x60]
push 0x434a68
push eax
call fcn.004011c7
pop ecx
pop ecx
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp + 0x5c]
call fcn.00407da2
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
push eax
push 0x4349bc
push 0x296
push 0x434798
push 2
call fcn.0040ef1f
mov ecx, eax
call fcn.00403cc8
lea eax, [ebp + 0x60]
mov dword [ebp + 0x5c], vtable.std::exception.0
push eax
call fcn.004135e3
pop ecx
lea ecx, [ebp - 0x60]
call fcn.00402821
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
push eax
call fcn.0040da1a
add esp, 4
test al, al
je 0x40c95d
mov bl, 1
mov al, bl
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret