Function at 0x4a0d58
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 0x4a112d
push dword fs:[eax]
mov dword fs:[eax], esp
test dl, dl
je 0x4a0d81
mov byte [ebp - 5], 1
jmp 0x4a1112
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x548]
call fcn.00498978
xor eax, eax
push ebp
push 0x4a110b
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 6], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x382], 0
je 0x4a0e7e
mov eax, dword [ebp - 4]
call fcn.00499a08
test al, al
je 0x4a0e54
mov eax, dword [ebp - 4]
cmp word [eax + 0x40a], 0
je 0x4a0e28
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c0]
call fcn.004048c4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c0]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x40c]
call dword [ebx + 0x408]
cmp dword [ebp - 0xc], 0
je 0x4a0e28
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004099c8
mov eax, dword [ebp - 0x10]
call fcn.00492b3c
mov eax, dword [ebp - 4]
add eax, 0x4c0
mov edx, dword [ebp - 0xc]
call fcn.00404880
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4a0]
inc eax
push eax
lea eax, [ebp - 6]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c0]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x384]
call dword [ebx + 0x380]
jmp 0x4a0e7e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4a0]
inc eax
push eax
lea eax, [ebp - 6]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x31e0]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x384]
call dword [ebx + 0x380]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
test al, al
jne 0x4a0e90
cmp byte [ebp - 6], 0
jne 0x4a0e9e
mov byte [ebp - 5], 0
call fcn.004042f8
jmp 0x4a1112
mov eax, dword [ebp - 4]
call fcn.00499a08
test al, al
jne 0x4a0ec1
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
inc dword [eax + 0x4a0]
call fcn.004042f8
jmp 0x4a1112
mov eax, dword [ebp - 4]
cmp byte [eax + 0x35d], 0
jne 0x4a0ef4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x45c], 0
sete byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x4a0eea
mov eax, dword [ebp - 4]
inc dword [eax + 0x4a0]
call fcn.004042f8
jmp 0x4a1112
mov eax, dword [ebp - 4]
mov byte [eax + 0x45c], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c0]
call fcn.004095e8
test al, al
je 0x4a10b3
mov eax, dword [ebp - 4]
cmp word [eax + 0x31d2], 0
je 0x4a1086
lea eax, [ebp - 0xc]
call fcn.0040482c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
add eax, 0x45c
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c0]
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x31d4]
call dword [ebx + 0x31d0]
cmp dword [ebp - 0xc], 0
jne 0x4a0f6c
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c0]
call fcn.004048c4
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 0xc]
call fcn.004099c8
mov eax, dword [ebp - 0x14]
call fcn.00492b3c
mov eax, dword [ebp - 4]
cmp byte [eax + 0x45c], 0
jne 0x4a0fb6
cmp dword [ebp - 0xc], 0
je 0x4a0fb6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c0]
mov edx, dword [ebp - 0xc]
call fcn.00408e08
test eax, eax
je 0x4a0fe4
mov eax, dword [ebp - 4]
add eax, 0x4c0
mov edx, dword [ebp - 0xc]
call fcn.00404880
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
test al, al
jne 0x4a0fe4
mov eax, dword [ebp - 4]
cmp byte [eax + 0x45c], 1
je 0x4a0fe4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c0]
call fcn.00492654
test al, al
jne 0x4a0f25
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
test al, al
jne 0x4a10b3
mov eax, dword [ebp - 4]
cmp byte [eax + 0x45c], 1
je 0x4a10b3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c0]
call fcn.00404cdc
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
call sub.kernel32.dll_GetLastError_1
test eax, eax
jne 0x4a10b3
test ebx, 1
jle 0x4a10b3
test bl, 4
jne 0x4a1058
test bl, 0x10
jne 0x4a1058
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c0]
call fcn.00404cdc
push eax
call sub.kernel32.dll_SetFileAttributesA
jmp 0x4a10b3
push 0x4a1144
push 0x6230
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4c0]
xor ecx, ecx
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x98]
mov byte [ebp - 5], 0
call fcn.004042f8
jmp 0x4a1112
push 0x4a1144
push 0x62b6
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4c0]
mov ecx, 0x4a1150
mov eax, dword [ebp - 4]
mov ebx, dword [eax]
call dword [ebx + 0x98]
mov eax, dword [ebp - 4]
mov byte [eax + 0x45c], 1
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x40]
test al, al
jne 0x4a10d7
mov eax, dword [ebp - 4]
cmp byte [eax + 0x45c], 0
jne 0x4a10d7
mov eax, dword [ebp - 4]
cmp dword [eax + 0x4c0], 0
jne 0x4a10db
xor eax, eax
jmp 0x4a10dd
mov al, 1
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
je 0x4a10ef
mov eax, dword [ebp - 4]
inc dword [eax + 0x4a0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1112
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x548]
call fcn.0049898c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1134
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404850
ret