Function at 0x477768
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x477770
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040580c
xor eax, eax
push ebp
push 0x477af6
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebp - 4]
mov eax, esi
call fcn.00422bb8
test al, al
je 0x4777cf
mov eax, dword [ebp - 4]
call fcn.0040581c
mov ebx, eax
mov edx, ebx
lea eax, [ebp - 0x10]
call fcn.00405584
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00462294
push 0x20
push ebx
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
jmp 0x4777e2
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.00422c38
mov eax, dword [ebp - 0x14]
call fcn.00422f44
call fcn.004261fc
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x477acc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, 0x477b0c
call fcn.00424250
mov eax, dword [ebp - 0xc]
mov edx, 0x477b1c
call fcn.00424250
mov eax, dword [ebp - 0xc]
mov edx, 0x477b30
call fcn.00424250
mov eax, dword [ebp - 0xc]
mov edx, 0x477b48
call fcn.00424250
mov eax, dword [ebp - 0xc]
mov edx, 0x477b5c
call fcn.00424250
push 0x477b74
mov eax, dword [0x59d8ec]
push dword [eax + 0x155]
push 0x477b84
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00405720
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00424250
mov eax, dword [ebp - 0xc]
mov edx, 0x477b90
call fcn.00424250
push 0x477ba8
mov eax, dword [0x59d8ec]
push dword [eax + 0x159]
push 0x477b84
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00405720
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00424250
mov eax, dword [ebp - 0xc]
mov edx, 0x477bb8
call fcn.00424250
push 0x477bcc
mov eax, dword [0x59d8ec]
push dword [eax + 0x14]
push 0x477b84
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00405720
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00424250
mov eax, dword [ebp - 0xc]
mov edx, 0x477be0
call fcn.00424250
push 0x477b74
mov eax, dword [0x59d8ec]
push dword [eax]
push 0x477b84
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00405720
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00424250
mov eax, dword [ebp - 0xc]
mov edx, 0x477bf4
call fcn.00424250
lea edx, [ebp - 0x2c]
mov eax, dword [0x59d8ec]
mov eax, dword [eax + 0x85]
call fcn.00421f58
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x28]
mov edx, 0x477c08
call fcn.004056a4
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00424250
xor esi, esi
mov edi, dword [0x59d8ec]
mov edi, dword [edi + 0x85]
dec edi
test edi, edi
jl 0x4779ae
inc edi
mov dword [ebp - 8], 0
mov eax, dword [0x59d8ec]
add eax, 0x65
mov edx, dword [ebp - 8]
call fcn.00423c2c
mov ebx, eax
inc esi
push 0x477c20
lea edx, [ebp - 0x34]
mov eax, esi
call fcn.00421f58
push dword [ebp - 0x34]
push 0x477c30
push dword [ebx + 4]
lea eax, [ebp - 0x30]
mov edx, 4
call fcn.00405720
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
call fcn.00424250
inc dword [ebp - 8]
dec edi
jne 0x477963
xor esi, esi
mov edi, dword [0x59d8ec]
mov edi, dword [edi + 0x85]
dec edi
test edi, edi
jl 0x477aa7
inc edi
mov dword [ebp - 8], 0
mov eax, dword [0x59d8ec]
add eax, 0x65
mov edx, dword [ebp - 8]
call fcn.00423c2c
mov ebx, eax
inc esi
push 0x477c3c
lea edx, [ebp - 0x3c]
mov eax, esi
call fcn.00421f58
push dword [ebp - 0x3c]
push 0x477c4c
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.00405720
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00424250
mov eax, dword [ebp - 0xc]
mov edx, 0x477c58
call fcn.00424250
mov ecx, dword [ebx + 8]
lea eax, [ebp - 0x40]
mov edx, 0x477c70
call fcn.004056a4
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0xc]
call fcn.00424250
push 0x477c84
lea edx, [ebp - 0x48]
mov eax, dword [ebx + 0xc]
call fcn.0046ea5c
push dword [ebp - 0x48]
push 0x477c94
lea edx, [ebp - 0x4c]
mov eax, dword [ebx + 0x14]
call fcn.00421f58
push dword [ebp - 0x4c]
lea eax, [ebp - 0x44]
mov edx, 4
call fcn.00405720
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0xc]
call fcn.00424250
mov eax, dword [ebp - 0xc]
mov edx, 0x477ca0
call fcn.00424250
mov ecx, dword [ebx + 0x60]
lea eax, [ebp - 0x50]
mov edx, 0x477cb8
call fcn.004056a4
mov edx, dword [ebp - 0x50]
mov eax, dword [ebp - 0xc]
call fcn.00424250
inc dword [ebp - 8]
dec edi
jne 0x4779cd
test esi, esi
jle 0x477ab6
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00424654
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477ad3
lea eax, [ebp - 0xc]
call fcn.00421d98
ret