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

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x4a7dc8
push ecx
push ebx
push esi
push edi
mov byte [ebp - 2], dl
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x4a81ba
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4c9314], 0
je 0x4a7e02
lea eax, [ebp - 0x18]
mov edx, dword [0x4c9314]
call fcn.00403c5c
mov bl, 1
jmp 0x4a7e12
lea eax, [ebp - 0x18]
mov edx, dword [0x4c9318]
call fcn.00403c5c
xor ebx, ebx
mov eax, 0x4c950c
mov ecx, 0x4a81d0
mov edx, dword [0x4bc4c0]
call fcn.00403e90
mov eax, 0x4c9510
mov ecx, 0x4a81f0
mov edx, dword [0x4bc4c0]
call fcn.00403e90
cmp dword [0x4bc66c], 0
jne 0x4a7fb1
test bl, bl
je 0x4a7e6f
mov eax, dword [0x4bc4c0]
call fcn.0044bb6c
test al, al
jne 0x4a7e6f
mov eax, dword [0x4bc888]
mov byte [eax], 1
mov eax, dword [0x4bccdc]
mov eax, dword [eax]
call fcn.0042ee04
mov dl, 1
mov eax, dword [0x4550b8]
call fcn.00402e6c
mov dword [0x4bc66c], eax
push 0x4a8210
push dword [ebp - 0x18]
push 0x4a8234
push 0x4a8240
push 0x4a8268
push 0x4a8280
push dword [0x4c926c]
push 0x4a8294
lea eax, [ebp - 0x1c]
mov edx, 8
call fcn.00403f04
mov edx, dword [ebp - 0x1c]
mov eax, dword [0x4bc66c]
call fcn.0045599c
xor eax, eax
mov dword [0x4bc670], eax
cmp dword [0x4c937c], 0
je 0x4a7fa0
mov dl, 1
mov eax, dword [0x4550b8]
call fcn.00402e6c
mov dword [0x4bc670], eax
mov eax, 0x7fffffff
call fcn.00402ba4
lea ecx, [ebp - 0x20]
mov edx, 8
call fcn.00408d44
mov ecx, dword [ebp - 0x20]
mov edx, dword [0x4bcce8]
mov edx, dword [edx]
lea eax, [ebp - 0x10]
call fcn.00403e90
mov edx, 0x20
mov eax, dword [ebp - 0x10]
call fcn.00408fe0
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x10]
call fcn.00404350
mov eax, dword [ebp - 0x24]
push eax
push 0
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x18]
call fcn.00404350
mov eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
mov edx, dword [0x4c937c]
call fcn.00404350
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
pop edx
call fcn.0049e9a0
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 0x10]
call fcn.00404350
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [0x4bc670]
push eax
call fcn.0045828c
test al, al
je 0x4a7f7e
mov eax, dword [ebp - 0x10]
call fcn.004090fc
jmp 0x4a7fa0
mov eax, 0x4bc670
call fcn.0040cbc8
test bl, bl
je 0x4a7fa0
mov eax, dword [0x4bc888]
mov byte [eax], 1
mov eax, dword [0x4bccdc]
mov eax, dword [eax]
call fcn.0042ee04
mov dl, 1
mov eax, dword [0x4550b8]
call fcn.00402e6c
mov dword [0x4bc678], eax
cmp byte [ebp - 2], 0
jne 0x4a7fc0
cmp dword [0x4bc670], 0
jne 0x4a7fe4
lea eax, [ebp - 8]
mov edx, dword [0x4c950c]
call fcn.00403c5c
mov esi, dword [0x4bc66c]
lea eax, [ebp - 0xc]
mov edx, dword [0x4c9510]
call fcn.00403c5c
jmp 0x4a8006
lea eax, [ebp - 8]
mov edx, dword [0x4c9510]
call fcn.00403c5c
mov esi, dword [0x4bc670]
lea eax, [ebp - 0xc]
mov edx, dword [0x4c950c]
call fcn.00403c5c
mov eax, dword [ebp - 0xc]
call fcn.00408f78
test al, al
je 0x4a8020
mov eax, dword [ebp - 0xc]
call fcn.004090fc
mov byte [ebp - 0x11], 1
jmp 0x4a8024
mov byte [ebp - 0x11], 0
lea eax, [ebp - 8]
call fcn.00404014
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x4a80ec
cmp byte [ebp - 1], 0
je 0x4a80e1
test bl, bl
je 0x4a8061
cmp dword [0x4bc67c], 0x10
jle 0x4a8061
mov edx, 5
mov eax, 0x4a82b4
call fcn.004b3964
inc dword [0x4bc67c]
cmp dword [0x4bc674], 0
je 0x4a8081
mov eax, dword [0x4bc674]
call fcn.00402e9c
xor eax, eax
mov dword [0x4bc674], eax
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 8]
call fcn.00404350
mov eax, dword [ebp - 0x34]
push eax
push esi
call fcn.004581e4
test al, al
je 0x4a8185
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 8]
call fcn.00404350
mov eax, dword [ebp - 0x38]
mov edx, 0x3aa21b88
call fcn.00455778
push 0x20
lea eax, [ebp - 8]
call fcn.00404014
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0x20
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x40f4dc]
call fcn.0041330c
mov dword [0x4bc674], eax
jmp 0x4a8185
cmp byte [ebp - 0x11], 0
jne 0x4a8067
jmp 0x4a8185
test al, 6
je 0x4a8105
push 0x20
lea eax, [ebp - 8]
call fcn.00404014
push eax
call sub.kernel32.dll_SetFileAttributesA
jmp 0x4a8045
lea eax, [ebp - 0x3c]
mov edx, dword [ebp - 8]
call fcn.00404350
mov eax, dword [ebp - 0x3c]
push eax
mov eax, dword [0x4bc678]
push eax
call fcn.0045828c
test al, al
je 0x4a8045
mov eax, dword [0x4bc678]
call fcn.00413104
mov edi, eax
mov eax, esi
call fcn.00413104
cmp edi, eax
jne 0x4a8045
mov eax, dword [0x4bc678]
call fcn.00413104
mov ecx, eax
mov eax, dword [0x4bc678]
mov eax, dword [eax + 4]
mov edx, dword [esi + 4]
call fcn.00458420
test eax, eax
jne 0x4a8045
cmp dword [0x4bc674], 0
jne 0x4a8185
push 0x20
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x40f4dc]
call fcn.0041330c
mov dword [0x4bc674], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a81c1
lea eax, [ebp - 0x3c]
mov edx, 7
call fcn.0040420c
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00403be8
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00403be8
ret