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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4a58bf
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0x319], 0
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
call fcn.0040aca8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
call fcn.004050e8
mov ebx, eax
push ebx
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0x14], eax
push 0x80
push ebx
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 8]
call fcn.0040ad10
test al, al
je 0x4a5862
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004a290c
mov dl, 1
mov eax, dword [0x46fbac]
call fcn.0046fdc0
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x4a585b
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
call fcn.004700a0
test al, al
je 0x4a5845
xor eax, eax
push ebp
push 0x4a56db
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004a2328
mov ecx, eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004a2330
mov dword [ebp - 0x1c], eax
push 8
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0x1c]
add edx, 0x770
mov eax, dword [ebp - 0x18]
call fcn.0047051c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a56f4
cmp dword [ebp - 0x1c], 0
jne 0x4a5704
call fcn.004046a4
jmp 0x4a58a9
mov al, byte [ebp - 0x20]
mov byte [ebp - 0x28], al
mov al, byte [ebp - 0x21]
mov byte [ebp - 0x27], al
mov al, byte [ebp - 0x22]
mov byte [ebp - 0x26], al
mov al, byte [ebp - 0x23]
mov byte [ebp - 0x25], al
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004a2328
mov ecx, eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004a2330
mov edx, eax
mov eax, dword [ebp - 0x18]
call fcn.004702ac
mov ebx, eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x28]
mov edi, dword [eax + 0x50]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x2c]
call fcn.00406268
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x2c]
mov esi, dword [edx + eax*8 + 0x14]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x2c]
call fcn.00406268
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x2c]
add esi, dword [edx + eax*8 + 0x10]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
sub eax, esi
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x2c]
call fcn.00406268
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x2c]
mov edx, dword [edx + eax*8 + 0x14]
mov eax, dword [ebp - 0x18]
pop ecx
call fcn.00470310
movzx eax, bx
lea eax, [eax + eax*4]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x2c]
mov esi, dword [edx + eax*8 + 0x10]
push 0
xor ecx, ecx
mov edx, ebx
mov eax, dword [ebp - 0x18]
call fcn.0047039c
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1c]
mov edx, esi
mov eax, dword [ebp - 0x18]
call fcn.0046fe2c
mov edx, edi
sub edx, eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.0046fe2c
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x28]
mov dword [edx + 0x50], eax
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x28]
mov ecx, 3
mov eax, dword [ebp - 4]
call fcn.004a2424
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.004a2370
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x14]
sub edx, eax
mov eax, dword [ebp - 0x18]
call fcn.004701c4
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x18]
call fcn.00470124
test al, al
jne 0x4a5837
call fcn.004046a4
jmp 0x4a58a9
mov byte [ebp - 9], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x319], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a5862
mov eax, dword [ebp - 0x18]
call fcn.00403d68
ret
mov eax, dword [ebp - 8]
call fcn.0040ad10
test al, al
je 0x4a5880
push ebp
mov eax, dword [ebp - 8]
call fcn.004a5514
pop ecx
test al, al
jne 0x4a5641
mov eax, dword [ebp - 8]
call fcn.0040ad10
test al, al
je 0x4a58a9
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0040ad44
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
call fcn.004050e8
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a58c6
lea eax, [ebp - 0x2c]
call fcn.00404c1c
ret