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

Disassembly:
mov eax, 0x4ce08e
call fcn.004c7e20
sub esp, 0x14
push esi
xor esi, esi
cmp dword [ebx + 0x344], esi
push edi
je 0x413749
mov eax, dword [ebx + 0x64]
mov eax, dword [eax + 4]
cmp eax, esi
mov dword [ebp - 0x14], eax
jle 0x413749
lea edi, [ebx + 0x310]
mov ecx, dword [ebx + 0x64]
mov eax, esi
call fcn.004553ae
push dword [eax]
call fcn.0040ec69
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x413732
cmp dword [ebp + 8], 0
jne 0x41388a
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4
mov eax, dword [ebx + 0x64]
xor esi, esi
cmp dword [eax + 4], esi
jbe 0x413960
mov eax, dword [eax]
mov eax, dword [eax]
push 1
lea ecx, [ebx + 0x148]
push ecx
push eax
call fcn.0048df00
mov eax, dword [ebx + 0x64]
cmp dword [eax + 4], esi
jbe 0x413960
mov eax, dword [eax]
push dword [eax]
call fcn.0048f922
cmp eax, esi
mov dword [ebp - 0x14], eax
jge 0x413949
mov eax, dword [ebx + 0x64]
cmp dword [eax + 4], esi
jbe 0x413960
mov eax, dword [eax]
push dword [eax]
lea eax, [ebp - 0x20]
call fcn.004040fe
mov ecx, eax
lea esi, [ebp - 0x18]
call fcn.00402eaa
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x4137e0
push eax
call fcn.004013aa
mov eax, dword [ebx + 0x64]
cmp dword [eax + 4], 0
jbe 0x413960
mov eax, dword [eax]
push dword [eax]
call fcn.0040e038
test eax, eax
mov esi, dword [ebp - 0x18]
jne 0x4138ad
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4138ad
test al, 1
je 0x4138ad
mov eax, dword [0x4f0980]
push 0x814f
push dword [0x4f2800]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00403692
mov edi, dword [ebp - 0x10]
push 0x34
push dword [0x4f2c74]
push edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x41389c
and dword [ebp + 8], 0xfffffffe
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41389c
lea eax, [edi - 0xc]
cmp eax, dword [0x4f0984]
je 0x413875
push eax
call fcn.004013aa
or dword [ebp - 4], 0xffffffff
lea eax, [esi - 0xc]
cmp eax, dword [0x4f0984]
je 0x41388a
push eax
call fcn.004013aa
cmp dword [ebx + 0x340], 0
je 0x413765
jmp 0x413753
lea eax, [edi - 0xc]
cmp eax, dword [0x4f0984]
je 0x4138ad
push eax
call fcn.004013aa
mov eax, dword [0x4f0980]
push 0x814e
push dword [0x4f2800]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.00403692
lea eax, [ebp - 0x18]
push eax
xor edi, edi
inc edi
lea eax, [ebp + 8]
mov dword [ebp - 0x18], 0xa
call fcn.00403377
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
and eax, 0xffff
push ecx
call fcn.0049ee36
pop ecx
lea ecx, [ebp + 8]
push ecx
call fcn.0040588c
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x4f0984]
je 0x41390e
push eax
call fcn.004013aa
mov edi, dword [ebp + 8]
push 0x10
push dword [0x4f2c74]
push edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [edi - 0xc]
cmp eax, dword [0x4f0984]
je 0x413934
push eax
call fcn.004013aa
or dword [ebp - 4], 0xffffffff
lea eax, [esi - 0xc]
cmp eax, dword [0x4f0984]
je 0x413949
push eax
call fcn.004013aa
lea eax, [ebx + 0x300]
cmp dword [eax + 4], 0
jbe 0x413960
mov ecx, dword [eax]
mov eax, dword [ebx + 0x64]
cmp dword [eax + 4], 0
ja 0x41396a
push 0x80070057
call fcn.004010ca
mov eax, dword [eax]
push ecx
push dword [eax]
call fcn.0040e1b4
push dword [ebx + 0x33c]
mov eax, dword [ebx + 0x68]
call fcn.004630d4
mov eax, dword [ebp - 0x14]
jmp 0x413755