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

Disassembly:
push ebp
sub esp, 0x58
mov eax, 0x679284
call fcn.0062921c
sub esp, 0x74
push ebx
mov bl, byte [ebp + 0x68]
push esi
or esi, 0xffffffff
mov dword [ebp + 0x50], esi
push edi
cmp bl, 1
je 0x4febed
cmp bl, 4
je 0x4febed
xor bh, bh
jmp 0x4febef
mov bh, 1
and dword [ebp - 0x80], 0
lea eax, [ebp - 0x6c]
push 0x48
push 0
push eax
mov byte [ebp + 0x57], bh
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x78], 2
mov dword [ebp - 0x74], 3
mov dword [ebp - 0x70], 0xb
call fcn.0062e010
mov ecx, dword [ebp + 0x6c]
add esp, 0xc
mov edi, dword [ebp + 0x64]
movzx eax, bl
mov ecx, dword [ecx]
push edi
mov eax, dword [ebp + eax*4 - 0x80]
mov dword [ebp + 0x58], eax
lea eax, [ebp + 0x30]
push eax
call fcn.004faa30
and dword [ebp - 4], 0
lea eax, [ebp + 0x30]
push eax
lea ecx, [ebp + 0x18]
call fcn.00423207
mov eax, dword [ebp + 0x6c]
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
mov eax, dword [eax]
add eax, 0x40
push eax
call fcn.00423207
cmp dword [ebp + 0x2c], 8
mov eax, dword [ebp + 0x18]
mov byte [ebp - 4], 2
jae 0x4fec73
lea eax, [ebp + 0x18]
push eax
call fcn.0045ba5a
test al, al
jne 0x4feccc
cmp dword [ebp + 0x44], 8
mov eax, dword [ebp + 0x30]
jae 0x4fec89
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp]
push eax
call fcn.0046dfa2
push eax
lea ecx, [ebp + 0x18]
call fcn.004232e6
push 0
push 1
lea ecx, [ebp]
call fcn.0042386b
call fcn.0046db4e
push eax
lea eax, [ebp]
push eax
call fcn.004249d0
push eax
lea ecx, [ebp - 0x24]
call fcn.004232e6
push 0
push 1
lea ecx, [ebp]
call fcn.0042386b
cmp dword [ebp + 0x2c], 8
mov eax, dword [ebp + 0x18]
jae 0x4fecd8
lea eax, [ebp + 0x18]
push eax
call fcn.0045de26
cmp dword [edi + 0xc], edx
jb 0x4fecf8
ja 0x4fecea
cmp dword [edi + 8], eax
jbe 0x4fecf8
mov eax, dword [ebp + 0x70]
mov dword [eax], 0xdf
jmp 0x4fefc8
and dword [ebp + 0x48], 0
and dword [ebp + 0x4c], 0
cmp dword [ebp + 0x44], 8
mov eax, dword [ebp + 0x30]
jae 0x4fed0c
lea eax, [ebp + 0x30]
lea ecx, [ebp + 0x48]
push ecx
push eax
call fcn.0066745b
test al, al
je 0x4fed2a
mov eax, dword [ebp + 0x48]
cmp eax, dword [edi + 8]
jne 0x4fed2a
mov eax, dword [ebp + 0x4c]
cmp eax, dword [edi + 0xc]
je 0x4fed4a
mov dword [ebp + 0x48], esi
mov dword [ebp + 0x4c], esi
test bh, bh
je 0x4fedd4
cmp dword [ebp + 0x44], 8
mov eax, dword [ebp + 0x30]
jae 0x4fed44
lea eax, [ebp + 0x30]
push eax
call fcn.0045d180
test bh, bh
je 0x4fedd4
cmp byte [0x7792ac], 0
jne 0x4fed7b
cmp byte [0x7792ab], 0
je 0x4fed82
cmp dword [ebp + 0x2c], 8
mov eax, dword [ebp + 0x18]
jae 0x4fed70
lea eax, [ebp + 0x18]
push eax
call fcn.0051b62d
cmp eax, 1
jne 0x4fed82
mov dword [ebp + 0x58], 0xb
cmp dword [ebp + 0x44], 8
mov eax, dword [ebp + 0x30]
jae 0x4fed8e
lea eax, [ebp + 0x30]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, esi
je 0x4fedb4
test al, 1
je 0x4fedb4
cmp dword [ebp + 0x44], 8
mov ecx, dword [ebp + 0x30]
jae 0x4feda9
lea ecx, [ebp + 0x30]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
cmp byte [0x7792aa], 0
jne 0x4fedc7
mov eax, dword [ebp + 0x48]
and eax, dword [ebp + 0x4c]
cmp eax, esi
jne 0x4fee25
cmp bl, 4
je 0x4fee25
push 0xa
pop edx
mov dword [ebp + 0x58], edx
jmp 0x4fee28
cmp bl, 3
jne 0x4fee25
mov eax, dword [ebp + 0x48]
cmp eax, dword [edi + 8]
jne 0x4fede9
mov eax, dword [ebp + 0x4c]
cmp eax, dword [edi + 0xc]
je 0x4fee25
cmp dword [ebp + 0x44], 8
mov eax, dword [ebp + 0x30]
jae 0x4fedf5
lea eax, [ebp + 0x30]
push eax
call fcn.0045d180
push dword [ebp + 0x78]
mov ebx, dword [ebp + 0x70]
push 0
push ebx
push dword [ebp + 0x6c]
push 1
push edi
call fcn.004febc2
mov ecx, eax
mov dword [ebp + 0x50], ecx
cmp ecx, esi
jne 0x4fee4c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebx], eax
jmp 0x4fef02
mov edx, dword [ebp + 0x58]
mov ecx, dword [ebp + 0x50]
cmp ecx, esi
jne 0x4fee4c
cmp dword [ebp + 0x44], 8
mov eax, dword [ebp + 0x30]
jae 0x4fee3b
lea eax, [ebp + 0x30]
push 0x80
push edx
push eax
call fcn.0045c90d
mov ecx, eax
mov dword [ebp + 0x50], ecx
mov eax, dword [0x7792b4]
mov dword [ebp + 0x64], eax
cmp ecx, esi
jne 0x4fef52
mov ebx, dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x4feef7
call ebx
cmp dword [ebp + 0x58], 0xa
mov ecx, dword [ebp + 0x70]
mov dword [ecx], eax
jne 0x4feeb9
mov eax, dword [ebp + 0x48]
cmp eax, dword [edi + 8]
jne 0x4fee8c
mov eax, dword [ebp + 0x4c]
cmp eax, dword [edi + 0xc]
jne 0x4fee8c
xor ecx, ecx
inc ecx
jmp 0x4fee8f
push 6
pop ecx
cmp dword [ebp + 0x44], 8
mov eax, dword [ebp + 0x30]
mov dword [ebp + 0x58], ecx
jae 0x4fee9e
lea eax, [ebp + 0x30]
push 0x80
push ecx
push eax
call fcn.0045c90d
mov dword [ebp + 0x50], eax
call ebx
mov ecx, dword [ebp + 0x70]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x50]
jmp 0x4feee8
cmp eax, 0x20
jne 0x4fef0a
push 0xc8
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp dword [ebp + 0x44], 8
mov eax, dword [ebp + 0x30]
jae 0x4feed5
lea eax, [ebp + 0x30]
push 0x80
push dword [ebp + 0x58]
push eax
call fcn.0045c90d
mov ecx, eax
mov dword [ebp + 0x50], ecx
mov eax, dword [ebp + 0x64]
dec eax
mov dword [ebp + 0x64], eax
cmp ecx, esi
je 0x4fee62
cmp ecx, esi
jne 0x4fef52
call ebx
mov ecx, dword [ebp + 0x70]
mov dword [ecx], eax
mov esi, dword [ebp + 0x50]
jmp 0x4fefc8
cmp byte [ebp + 0x68], 3
je 0x4fef16
cmp byte [ebp + 0x74], 0
je 0x4fef27
cmp eax, 0x490
je 0x4fef42
cmp eax, 2
je 0x4fef42
cmp eax, 3
je 0x4fef42
cmp dword [ebp + 0x44], 8
mov ecx, dword [ebp + 0x30]
jae 0x4fef33
lea ecx, [ebp + 0x30]
push eax
push ecx
push str.Error_opening___s_:__E
call fcn.00477256
add esp, 0xc
mov eax, dword [ebp + 0x70]
cmp dword [eax], 0
jne 0x4fefc8
mov dword [eax], 2
jmp 0x4fefc8
mov bl, byte [ebp + 0x57]
test bl, bl
je 0x4fefbc
mov eax, dword [ebp + 0x48]
cmp eax, dword [edi + 8]
jne 0x4fef69
mov eax, dword [ebp + 0x4c]
cmp eax, dword [edi + 0xc]
je 0x4fefa2
mov eax, dword [ebp + 0x6c]
push dword [ebp + 0x78]
mov eax, dword [eax]
cmp dword [eax + 0xd8], 0
lea eax, [ebp + 0x30]
setne byte [ebp + 0x68]
push dword [ebp + 0x68]
push dword [ebp + 0x70]
push dword [ebp + 0x58]
push edi
push eax
push ecx
call fcn.005018a2
test eax, eax
jne 0x4fef9f
lea eax, [ebp + 0x50]
push eax
call fcn.0045c89d
jmp 0x4fefc8
mov ecx, dword [ebp + 0x50]
mov eax, dword [ebp + 0x6c]
mov eax, dword [eax]
cmp byte [eax + 0xd0], 0
jne 0x4fefbc
lea eax, [ebp + 0x30]
push eax
call fcn.00536eeb
mov ecx, dword [ebp + 0x50]
mov al, byte [edi + 0x66]
mov esi, ecx
and al, 0xfe
or al, bl
mov byte [edi + 0x66], al
xor ebx, ebx
lea ecx, [ebp - 0x24]
push ebx
push 1
call fcn.0042386b
push ebx
push 1
lea ecx, [ebp + 0x18]
call fcn.0042386b
push ebx
push 1
lea ecx, [ebp + 0x30]
call fcn.0042386b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x5c]
pop ebp
ret 0x18