Function at 0x5976a0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x5976a8
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x597983
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00597618
mov eax, dword [0x62cdc4]
mov eax, dword [eax]
call fcn.00484410
lea eax, [ebp - 4]
call fcn.00590ed8
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
mov eax, dword [ebx + 0x368]
call fcn.00464578
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.005972f8
mov edx, dword [ebp - 8]
pop eax
call fcn.00405060
mov eax, dword [ebp - 4]
call fcn.00405258
mov dword [0x63c474], eax
lea edx, [ebp - 0x10]
mov eax, dword [ebx + 0x368]
call fcn.00464578
mov eax, dword [ebp - 0x10]
call fcn.00405258
mov dword [0x63c478], eax
lea eax, [ebp - 0x14]
mov edx, dword [0x63c474]
call fcn.00404f90
mov eax, dword [ebp - 0x14]
call fcn.0040a0e8
test al, al
je 0x59776c
push 0x80
mov eax, dword [0x63c474]
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
lea eax, [ebp - 0x18]
mov edx, dword [0x63c474]
call fcn.00404f90
mov eax, dword [ebp - 0x18]
call fcn.0040a210
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
mov edx, dword [0x63c478]
call fcn.00404f90
mov eax, dword [ebp - 0x24]
call fcn.00405058
sub eax, 3
push eax
lea eax, [ebp - 0x28]
mov edx, dword [0x63c478]
call fcn.00404f90
mov eax, dword [ebp - 0x28]
mov ecx, 4
pop edx
call fcn.004052b8
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.004095d0
mov edx, dword [ebp - 0x1c]
mov eax, 0x63c480
call fcn.00404dec
mov eax, dword [0x63c480]
mov edx, 0x597998
call fcn.004051a4
je 0x597801
mov eax, dword [0x63c480]
mov edx, 0x5979a8
call fcn.004051a4
je 0x597801
mov eax, dword [0x63c480]
mov edx, 0x5979b8
call fcn.004051a4
je 0x597801
xor edx, edx
mov eax, dword [ebx + 0x80c]
mov ecx, dword [eax]
call dword [ecx + 0xcc]
mov eax, dword [ebx + 0x80c]
mov edx, dword [eax]
call dword [edx + 0xc8]
cmp al, 1
jne 0x597826
mov eax, dword [0x63c474]
mov dword [0x63c478], eax
mov edx, esi
mov eax, ebx
call fcn.0059ef7c
lea eax, [ebp - 0x2c]
mov edx, dword [0x63c478]
call fcn.00404f90
mov eax, dword [ebp - 0x2c]
call fcn.005973a8
test al, al
je 0x59790c
cmp dword [0x63c478], 0
je 0x597941
lea eax, [ebp - 0x30]
mov edx, dword [0x63c478]
call fcn.00404f90
mov eax, dword [ebp - 0x30]
call fcn.00590f60
test al, al
je 0x597941
xor eax, eax
call fcn.0059755c
lea edx, [ebp - 0x34]
mov eax, dword [0x63c45c]
mov eax, dword [eax + 0x368]
call fcn.00464578
mov eax, dword [ebp - 0x34]
call fcn.00591008
test al, al
je 0x5978a3
mov eax, ebx
call fcn.00597690
mov eax, ebx
call fcn.00597680
mov eax, dword [ebx + 0x820]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
jne 0x5978c7
mov eax, dword [ebx + 0x77c]
mov edx, dword [eax]
call dword [edx + 0xc8]
test al, al
je 0x5978da
mov eax, dword [0x63c45c]
mov eax, dword [eax + 0x804]
mov edx, dword [eax]
call dword [edx + 0xc4]
mov eax, dword [ebx + 0x778]
mov edx, dword [eax]
call dword [edx + 0xc8]
cmp al, 1
jne 0x5978fc
xor ecx, ecx
mov dl, 1
mov eax, dword [0x5f4f28]
call fcn.00423674
jmp 0x597941
xor ecx, ecx
mov dl, 1
mov eax, dword [0x5f4618]
call fcn.00423674
jmp 0x597941
lea edx, [ebp - 0x38]
mov eax, dword [0x63c45c]
mov eax, dword [eax + 0x36c]
call fcn.00464578
cmp dword [ebp - 0x38], 0
jne 0x59793a
mov eax, dword [0x63c45c]
mov eax, dword [eax + 0x36c]
mov edx, 0x5979c8
call fcn.004645a8
mov al, 1
call fcn.0059755c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59798a
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00404dbc
lea eax, [ebp - 0x30]
mov edx, 8
call fcn.00404dbc
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00404dbc
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404dbc
ret