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

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x492bc7
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x492811
mov byte [ebp - 5], 1
jmp 0x492bac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3208]
call fcn.0048ff74
xor eax, eax
push ebp
push 0x492ba5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x38a], 0
je 0x49290e
mov eax, dword [ebp - 4]
call fcn.00490218
test al, al
je 0x4928e4
mov eax, dword [ebp - 4]
cmp word [eax + 0x412], 0
je 0x4928b8
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4f0]
call fcn.004046e4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4f0]
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 0x4928b8
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00409718
mov eax, dword [ebp - 0x10]
call fcn.00494398
mov eax, dword [ebp - 4]
add eax, 0x4f0
mov edx, dword [ebp - 0xc]
call fcn.004046a0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d8]
inc eax
push eax
lea eax, [ebp - 6]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4f0]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x38c]
call dword [ebx + 0x388]
jmp 0x49290e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d8]
inc eax
push eax
lea eax, [ebp - 6]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x3230]
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 0x492920
cmp byte [ebp - 6], 0
jne 0x49292e
mov byte [ebp - 5], 0
call fcn.0040406c
jmp 0x492bac
mov eax, dword [ebp - 4]
call fcn.00490218
test al, al
jne 0x492951
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
inc dword [eax + 0x4d8]
call fcn.0040406c
jmp 0x492bac
mov eax, dword [ebp - 4]
cmp byte [eax + 0x365], 0
jne 0x492984
mov eax, dword [ebp - 4]
cmp byte [eax + 0x480], 0
sete byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x49297a
mov eax, dword [ebp - 4]
inc dword [eax + 0x4d8]
call fcn.0040406c
jmp 0x492bac
mov eax, dword [ebp - 4]
mov byte [eax + 0x480], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4f0]
call fcn.004094c8
test al, al
je 0x492b4d
mov eax, dword [ebp - 4]
cmp word [eax + 0x3222], 0
je 0x492b1b
lea eax, [ebp - 0xc]
call fcn.0040464c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
add eax, 0x480
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4f0]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x3224]
call dword [ebx + 0x3220]
cmp dword [ebp - 0xc], 0
jne 0x4929fc
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4f0]
call fcn.004046e4
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00409718
mov eax, dword [ebp - 0x14]
call fcn.00494398
mov eax, dword [ebp - 4]
cmp byte [eax + 0x480], 0
jne 0x492a46
cmp dword [ebp - 0xc], 0
je 0x492a46
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4f0]
mov edx, dword [ebp - 0xc]
call fcn.004088f4
test eax, eax
je 0x492a74
mov eax, dword [ebp - 4]
add eax, 0x4f0
mov edx, dword [ebp - 0xc]
call fcn.004046a0
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
test al, al
jne 0x492a74
mov eax, dword [ebp - 4]
cmp byte [eax + 0x480], 1
je 0x492a74
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4f0]
call fcn.004941a0
test al, al
jne 0x4929b5
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
test al, al
jne 0x492b4d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x480], 1
je 0x492b4d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4f0]
call fcn.00404b0c
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x492b4d
test ebx, 1
jle 0x492b4d
test bl, 4
jne 0x492ae8
test bl, 0x10
jne 0x492ae8
push 0x80
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4f0]
call fcn.00404b0c
push eax
call sub.kernel32.dll_SetFileAttributesA
jmp 0x492b4d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x550]
push eax
push 0x6230
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4f0]
xor ecx, ecx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x94]
mov byte [ebp - 5], 0
call fcn.0040406c
jmp 0x492bac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x550]
push eax
push 0x62b6
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4f0]
mov ecx, 0x492be0
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x94]
mov eax, dword [ebp - 4]
mov byte [eax + 0x480], 1
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
test al, al
jne 0x492b71
mov eax, dword [ebp - 4]
cmp byte [eax + 0x480], 0
jne 0x492b71
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4f0], 0
jne 0x492b75
xor eax, eax
jmp 0x492b77
mov al, 1
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x492b89
mov eax, dword [ebp - 4]
inc dword [eax + 0x4d8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492bac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3208]
call fcn.0048ff88
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x492bce
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404670
ret