Function at 0x486114
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 0x4864f3
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x48613d
mov byte [ebp - 5], 1
jmp 0x4864d8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31e0]
call fcn.00482834
xor eax, eax
push ebp
push 0x4864d1
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 0x48623a
mov eax, dword [ebp - 4]
call fcn.0048309c
test al, al
je 0x486210
mov eax, dword [ebp - 4]
cmp word [eax + 0x412], 0
je 0x4861e4
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4d8]
call fcn.00404408
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 0x4861e4
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00409f14
mov eax, dword [ebp - 0x10]
call fcn.0048b6ec
mov eax, dword [ebp - 4]
add eax, 0x4d8
mov edx, dword [ebp - 0xc]
call fcn.004043c4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4b8]
inc eax
push eax
lea eax, [ebp - 6]
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 0x48623a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4b8]
inc eax
push eax
lea eax, [ebp - 6]
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 0x48624c
cmp byte [ebp - 6], 0
jne 0x48625a
mov byte [ebp - 5], 0
call fcn.00403d98
jmp 0x4864d8
mov eax, dword [ebp - 4]
call fcn.0048309c
test al, al
jne 0x48627d
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
inc dword [eax + 0x4b8]
call fcn.00403d98
jmp 0x4864d8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x365], 0
jne 0x4862b0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x468], 0
sete byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x4862a6
mov eax, dword [ebp - 4]
inc dword [eax + 0x4b8]
call fcn.00403d98
jmp 0x4864d8
mov eax, dword [ebp - 4]
mov byte [eax + 0x468], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d8]
call fcn.00409c3c
test al, al
je 0x486479
mov eax, dword [ebp - 4]
cmp word [eax + 0x31fa], 0
je 0x486447
lea eax, [ebp - 0xc]
call fcn.00404370
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 0x486328
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4d8]
call fcn.00404408
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.00409f14
mov eax, dword [ebp - 0x14]
call fcn.0048b6ec
mov eax, dword [ebp - 4]
cmp byte [eax + 0x468], 0
jne 0x486372
cmp dword [ebp - 0xc], 0
je 0x486372
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d8]
mov edx, dword [ebp - 0xc]
call fcn.00408ebc
test eax, eax
je 0x4863a0
mov eax, dword [ebp - 4]
add eax, 0x4d8
mov edx, dword [ebp - 0xc]
call fcn.004043c4
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
test al, al
jne 0x4863a0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x468], 1
je 0x4863a0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d8]
call fcn.0048b4b4
test al, al
jne 0x4862e1
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
test al, al
jne 0x486479
mov eax, dword [ebp - 4]
cmp byte [eax + 0x468], 1
je 0x486479
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d8]
call fcn.0040485c
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
call sub.kernel32.dll_GetLastError
test eax, eax
jne 0x486479
test ebx, 1
jle 0x486479
test bl, 4
jne 0x486414
test bl, 0x10
jne 0x486414
push 0x80
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d8]
call fcn.0040485c
push eax
call sub.kernel32.dll_SetFileAttributesA
jmp 0x486479
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 - 5], 0
call fcn.00403d98
jmp 0x4864d8
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, 0x48650c
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 0x48649d
mov eax, dword [ebp - 4]
cmp byte [eax + 0x468], 0
jne 0x48649d
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4d8], 0
jne 0x4864a1
xor eax, eax
jmp 0x4864a3
mov al, 1
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x4864b5
mov eax, dword [ebp - 4]
inc dword [eax + 0x4b8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4864d8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x31e0]
call fcn.00482848
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4864fa
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404394
ret