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

Disassembly:
push 0xffffffffffffffff
push 0x4c8f18
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebp
push esi
push edi
mov eax, dword [0x4fcb54]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x1c]
call fcn.00490a52
xor ebp, ebp
push ebp
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x38]
mov dword [esp + 0x54], ebp
call fcn.00410fd0
mov byte [esp + 0x48], 1
call fcn.00484590
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x410d23
push 0x80004005
call fcn.004021e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0x48], 2
call fcn.00484590
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x410d52
push 0x80004005
call fcn.004021e0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x50]
add esi, 0xc
cmp edi, ebp
mov byte [esp + 0x48], 3
jne 0x410d76
xor eax, eax
jmp 0x410d8b
mov eax, edi
lea edx, [eax + 1]
jmp 0x410d80
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x410d80
sub eax, edx
push eax
push edi
mov ecx, esi
call fcn.00402430
mov eax, dword [esi]
push 0x5c
push eax
call fcn.004a4635
add esp, 8
cmp eax, ebp
je 0x410dfb
sub eax, dword [esi]
cmp eax, 0xffffffff
je 0x410dfb
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.004061a0
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x4c], 4
call fcn.004028f0
mov byte [esp + 0x48], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x410ded
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4e2d74
lea eax, [esp + 0x14]
call fcn.0040d3b0
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00402860
add esp, 4
lea edi, [eax + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x410e21
test al, 1
je 0x410e21
mov ebp, 1
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410e3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
je 0x410e4f
mov eax, dword [esi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edi, dword [esp + 0x10]
push ecx
add edi, 0xfffffff0
mov dword [esp + 0x18], esp
mov ebp, esp
push edi
call fcn.00402860
add eax, 0x10
add esp, 4
mov dword [ebp], eax
call fcn.00416670
mov esi, dword [esi]
add esp, 4
cmp dword [esp + 0x54], 0
je 0x410e89
lea ecx, [esp + 0x2c]
push ecx
push 0x1002
jmp 0x410e93
lea edx, [esp + 0x2c]
push edx
push 0x3002
push esi
lea ecx, [esp + 0x28]
call fcn.00490e5e
mov esi, eax
test esi, esi
jne 0x410eac
mov eax, dword [esp + 0x50]
mov dword [eax + 8], esi
jmp 0x410ec0
lea ecx, [esp + 0x1c]
call fcn.004909f0
mov ecx, dword [esp + 0x50]
mov dword [ecx + 8], 1
mov byte [esp + 0x48], 2
lea edx, [edi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x410ede
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
mov byte [esp + 0x48], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410f03
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 0
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov dword [esp + 0x2c], vtable.CFileException.0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410f30
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], 0xffffffff
call fcn.00490b26
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x3c
ret 8