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

Disassembly:
mov eax, 0x4c82ea
call fcn.004c2540
sub esp, 0x14
push esi
xor esi, esi
cmp dword [ebx + 0x344], esi
push edi
je 0x41387e
mov eax, dword [ebx + 0x64]
mov eax, dword [eax + 4]
cmp eax, esi
mov dword [ebp - 0x14], eax
jle 0x41387e
lea edi, [ebx + 0x310]
mov ecx, dword [ebx + 0x64]
mov eax, esi
call fcn.0046cd11
push dword [eax]
call fcn.0040ed92
inc esi
cmp esi, dword [ebp - 0x14]
jl 0x413867
cmp dword [ebp + 8], 0
jne 0x4139bf
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 0x413a95
mov eax, dword [eax]
mov eax, dword [eax]
push 1
lea ecx, [ebx + 0x148]
push ecx
push eax
call fcn.0048b3a2
mov eax, dword [ebx + 0x64]
cmp dword [eax + 4], esi
jbe 0x413a95
mov eax, dword [eax]
push dword [eax]
call fcn.0048cc9e
cmp eax, esi
mov dword [ebp - 0x14], eax
jge 0x413a7e
mov eax, dword [ebx + 0x64]
cmp dword [eax + 4], esi
jbe 0x413a95
mov eax, dword [eax]
push dword [eax]
lea eax, [ebp - 0x20]
call fcn.00404408
mov ecx, eax
lea esi, [ebp - 0x18]
call fcn.00402de7
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x413915
push eax
call fcn.004013aa
mov eax, dword [ebx + 0x64]
cmp dword [eax + 4], 0
jbe 0x413a95
mov eax, dword [eax]
push dword [eax]
call fcn.0040e159
test eax, eax
mov esi, dword [ebp - 0x18]
jne 0x4139e2
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x4139e2
test al, 1
je 0x4139e2
mov eax, dword [0x4e9150]
push 0x814f
push dword [0x4eaf68]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.004035cf
mov edi, dword [ebp - 0x10]
push 0x34
push dword [0x4eb3dc]
push edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x4139d1
and dword [ebp + 8], 0xfffffffe
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4139d1
lea eax, [edi - 0xc]
cmp eax, dword [0x4e9154]
je 0x4139aa
push eax
call fcn.004013aa
or dword [ebp - 4], 0xffffffff
lea eax, [esi - 0xc]
cmp eax, dword [0x4e9154]
je 0x4139bf
push eax
call fcn.004013aa
cmp dword [ebx + 0x340], 0
je 0x41389a
jmp 0x413888
lea eax, [edi - 0xc]
cmp eax, dword [0x4e9154]
je 0x4139e2
push eax
call fcn.004013aa
mov eax, dword [0x4e9150]
push 0x814e
push dword [0x4eaf68]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call fcn.004035cf
lea eax, [ebp - 0x18]
push eax
xor edi, edi
inc edi
lea eax, [ebp + 8]
mov dword [ebp - 0x18], 0xa
call fcn.00403284
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
and eax, 0xffff
push ecx
call fcn.0049c353
pop ecx
lea ecx, [ebp + 8]
push ecx
call fcn.00405b3e
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x413a43
push eax
call fcn.004013aa
mov edi, dword [ebp + 8]
push 0x10
push dword [0x4eb3dc]
push edi
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [edi - 0xc]
cmp eax, dword [0x4e9154]
je 0x413a69
push eax
call fcn.004013aa
or dword [ebp - 4], 0xffffffff
lea eax, [esi - 0xc]
cmp eax, dword [0x4e9154]
je 0x413a7e
push eax
call fcn.004013aa
lea eax, [ebx + 0x300]
cmp dword [eax + 4], 0
jbe 0x413a95
mov ecx, dword [eax]
mov eax, dword [ebx + 0x64]
cmp dword [eax + 4], 0
ja 0x413a9f
push 0x80070057
call fcn.004010ca
mov eax, dword [eax]
push ecx
push dword [eax]
call fcn.0040e2d5
push dword [ebx + 0x33c]
mov eax, dword [ebx + 0x68]
call fcn.0046054e
mov eax, dword [ebp - 0x14]
jmp 0x41388a