Function at 0x40c61d
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 0x432a25
call fcn.0040c892
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov bl, al
pop ecx
pop ecx
call edi
test bl, bl
jne 0x40c886
xor ebx, ebx
cmp eax, 5
jne 0x40c877
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40c662
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 0x40c683
xor al, al
jmp 0x40c88a
test al, 1
je 0x40c877
and eax, 0xfffffffe
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x40c698
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x40c780
push ebx
call fcn.0040e8e5
mov ecx, eax
call fcn.0040eaa0
test al, al
je 0x40c766
push esi
lea ecx, [ebp + 0x50]
mov dword [ebp + 0x50], ebx
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], ebx
call fcn.00402c5e
push 1
lea ecx, [ebp - 0x60]
call fcn.00401c1f
lea eax, [ebp - 0x60]
push 0x4319a8
push eax
call fcn.00401227
lea eax, [ebp + 0x50]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004011f3
mov eax, dword [ebp + 0x64]
add esp, 0x10
cmp eax, 0x10
jb 0x40c72e
mov ecx, dword [ebp + 0x50]
inc eax
mov dword [ebp + 0x68], eax
mov dword [ebp + 0x6c], ecx
cmp eax, 0x1000
jb 0x40c725
lea eax, [ebp + 0x68]
push eax
lea eax, [ebp + 0x6c]
push eax
call fcn.00402b57
mov eax, dword [ebp + 0x68]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x6c]
push eax
push ecx
call fcn.0041010a
pop ecx
pop ecx
lea eax, [ebp - 0x60]
push 0x4317ac
push eax
call fcn.00401227
pop ecx
pop ecx
lea eax, [ebp - 0x60]
push eax
push 0x431944
push 0x290
push 0x431720
push ebx
call fcn.0040e8e5
mov ecx, eax
call fcn.00403d6c
lea ecx, [ebp - 0x60]
call fcn.00402881
push esi
push 0x432a25
call fcn.0040c892
pop ecx
pop ecx
test al, al
jne 0x40c886
jmp 0x40c877
push 2
call fcn.0040e8e5
mov ecx, eax
call fcn.0040eaa0
test al, al
je 0x40c86f
push 0x42f5d4
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.00402c5e
push 1
lea ecx, [ebp - 0x60]
call fcn.00401c1f
lea eax, [ebp - 0x60]
push 0x4319c8
push eax
call fcn.00401227
lea eax, [ebp + 0x38]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004011f3
mov eax, dword [ebp + 0x4c]
add esp, 0x10
cmp eax, 0x10
jb 0x40c815
mov ecx, dword [ebp + 0x38]
inc eax
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x68], ecx
cmp eax, 0x1000
jb 0x40c80c
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x68]
push eax
call fcn.00402b57
mov eax, dword [ebp + 0x6c]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x68]
push eax
push ecx
call fcn.0041010a
pop ecx
pop ecx
lea eax, [ebp - 0x60]
push 0x4319f0
push eax
call fcn.00401227
pop ecx
pop ecx
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp + 0x5c]
call fcn.00407ded
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 4]
push eax
push 0x431944
push 0x296
push 0x431720
push 2
call fcn.0040e8e5
mov ecx, eax
call fcn.00403d28
lea eax, [ebp + 0x60]
mov dword [ebp + 0x5c], vtable.std::exception.0
push eax
call fcn.00412fc3
pop ecx
lea ecx, [ebp - 0x60]
call fcn.00402881
push 5
call dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
push eax
call fcn.0040d945
add esp, 4
test al, al
je 0x40c888
mov bl, 1
mov al, bl
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret