Function at 0x4f1988
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4f1d7f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 5], 0
je 0x4f19bd
mov byte [ebp - 6], 1
jmp 0x4f1d5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31e0]
call fcn.004ed080
xor eax, eax
push ebp
push 0x4f1d55
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 7], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x38a], 0
je 0x4f1aba
mov eax, dword [ebp - 4]
call fcn.004ee048
test al, al
je 0x4f1a90
mov eax, dword [ebp - 4]
cmp word [eax + 0x412], 0
je 0x4f1a64
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4d8]
call fcn.0040481c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4d8]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x414]
call dword [ebx + 0x410]
cmp dword [ebp - 0xc], 0
je 0x4f1a64
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00409660
mov eax, dword [ebp - 0x14]
call fcn.004e7080
mov eax, dword [ebp - 4]
add eax, 0x4d8
mov edx, dword [ebp - 0xc]
call fcn.004047d8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4b8]
inc eax
push eax
lea eax, [ebp - 7]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4d8]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x38c]
call dword [ebx + 0x388]
jmp 0x4f1aba
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4b8]
inc eax
push eax
lea eax, [ebp - 7]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3208]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x38c]
call dword [ebx + 0x388]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
test al, al
jne 0x4f1acc
cmp byte [ebp - 7], 0
jne 0x4f1ada
mov byte [ebp - 6], 0
call fcn.00404274
jmp 0x4f1d5c
mov eax, dword [ebp - 4]
call fcn.004ee048
test al, al
jne 0x4f1afd
mov byte [ebp - 6], 1
mov eax, dword [ebp - 4]
inc dword [eax + 0x4b8]
call fcn.00404274
jmp 0x4f1d5c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x365], 0
jne 0x4f1b30
mov eax, dword [ebp - 4]
cmp byte [eax + 0x468], 0
sete byte [ebp - 6]
cmp byte [ebp - 6], 0
je 0x4f1b26
mov eax, dword [ebp - 4]
inc dword [eax + 0x4b8]
call fcn.00404274
jmp 0x4f1d5c
mov eax, dword [ebp - 4]
mov byte [eax + 0x468], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d8]
call fcn.004094cc
test al, al
je 0x4f1cfd
mov eax, dword [ebp - 4]
cmp word [eax + 0x31fa], 0
je 0x4f1ccb
lea eax, [ebp - 0xc]
call fcn.00404784
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
add eax, 0x468
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4d8]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x31fc]
call dword [ebx + 0x31f8]
cmp dword [ebp - 0xc], 0
jne 0x4f1ba8
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4d8]
call fcn.0040481c
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00409660
mov eax, dword [ebp - 0x18]
call fcn.004e7080
mov eax, dword [ebp - 4]
cmp byte [eax + 0x468], 0
jne 0x4f1bf2
cmp dword [ebp - 0xc], 0
je 0x4f1bf2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d8]
mov edx, dword [ebp - 0xc]
call fcn.00408cec
test eax, eax
je 0x4f1c20
mov eax, dword [ebp - 4]
add eax, 0x4d8
mov edx, dword [ebp - 0xc]
call fcn.004047d8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
test al, al
jne 0x4f1c20
mov eax, dword [ebp - 4]
cmp byte [eax + 0x468], 1
je 0x4f1c20
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d8]
call fcn.004e6d78
test al, al
jne 0x4f1b61
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
test al, al
jne 0x4f1cfd
mov eax, dword [ebp - 4]
cmp byte [eax + 0x468], 1
je 0x4f1cfd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d8]
call fcn.00404c34
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov dword [ebp - 0x10], eax
call sub.KERNEL32.DLL_GetLastError_1
test eax, eax
jne 0x4f1cfd
test dword [ebp - 0x10], 1
jle 0x4f1cfd
test byte [ebp - 0x10], 4
jne 0x4f1c98
test byte [ebp - 0x10], 0x10
jne 0x4f1c98
push 0x80
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d8]
call fcn.00404c34
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
jmp 0x4f1cfd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x524]
push eax
push 0x6230
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4d8]
xor ecx, ecx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x98]
mov byte [ebp - 6], 0
call fcn.00404274
jmp 0x4f1d5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x524]
push eax
push 0x62b6
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4d8]
mov ecx, 0x4f1d98
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x98]
mov eax, dword [ebp - 4]
mov byte [eax + 0x468], 1
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
test al, al
jne 0x4f1d21
mov eax, dword [ebp - 4]
cmp byte [eax + 0x468], 0
jne 0x4f1d21
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4d8], 0
jne 0x4f1d25
xor eax, eax
jmp 0x4f1d27
mov al, 1
mov byte [ebp - 6], al
cmp byte [ebp - 6], 0
je 0x4f1d39
mov eax, dword [ebp - 4]
inc dword [eax + 0x4b8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f1d5c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31e0]
call fcn.004ed0a0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f1d86
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.004047a8
lea eax, [ebp - 0xc]
call fcn.00404784
ret