Function at 0x407730
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5471e7
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x5a10e0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x27c]
call fcn.00421915
push esi
lea eax, [ebp - 0x21c]
push 0x104
push eax
mov dword [ebp - 4], 0
call fcn.0051641f
add esp, 0xc
push str..
lea ecx, [ebp - 0x21c]
push 0x104
push ecx
call fcn.0051725a
add esp, 0xc
push 0
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x27c]
call fcn.004219bc
test eax, eax
je 0x407a5e
lea esp, [esp]
lea ecx, [ebp - 0x27c]
call fcn.0042154d
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x258], eax
call fcn.004218d7
test eax, eax
jne 0x407a51
mov eax, dword [ebp - 0x27c]
mov edx, dword [eax + 0x38]
push 0x10
lea ecx, [ebp - 0x27c]
call edx
test eax, eax
je 0x40791d
xor eax, eax
mov dword [ebp - 0x240], 7
mov dword [ebp - 0x244], 0
mov word [ebp - 0x254], ax
lea ecx, [ebp - 0x260]
push ecx
mov bl, 1
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], bl
call fcn.00421c95
mov byte [ebp - 4], 2
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x407840
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x254]
call fcn.00403230
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x260]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407880
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x254]
mov esi, 8
cmp dword [ebp - 0x240], esi
jae 0x407899
lea eax, [ebp - 0x254]
push eax
call fcn.00407730
mov eax, dword [ebp - 0x254]
add esp, 4
cmp dword [ebp - 0x240], esi
jae 0x4078b6
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4078f9
cmp dword [ebp - 0x240], esi
mov esi, dword [ebp - 0x254]
jae 0x4078d5
lea esi, [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Error_in_deleting_folder__s._Error_Code:_d
call fcn.00415aa0
mov ebx, 0x576f68
call fcn.004160c0
add esp, 0xc
mov esi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x240], esi
jb 0x407a51
mov ecx, dword [ebp - 0x254]
push ecx
call fcn.004166f8
add esp, 4
jmp 0x407a51
xor edx, edx
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], dx
lea eax, [ebp - 0x25c]
mov bl, 3
push eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], bl
call fcn.00421c95
mov byte [ebp - 4], 4
mov eax, dword [eax]
mov ecx, eax
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x407960
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x238]
call fcn.00403230
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x25c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4079a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x238]
mov esi, 8
cmp dword [ebp - 0x224], esi
jae 0x4079b9
lea eax, [ebp - 0x238]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x238]
cmp dword [ebp - 0x224], esi
jae 0x4079d6
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x407a19
cmp dword [ebp - 0x224], esi
mov esi, dword [ebp - 0x238]
jae 0x4079f5
lea esi, [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.Error_in_deleting_file__s._Error_Code:_d
call fcn.00415aa0
mov ebx, 0x576f68
call fcn.004160c0
add esp, 0xc
mov esi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x224], esi
jb 0x407a34
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.004166f8
add esp, 4
xor edx, edx
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], 0
mov word [ebp - 0x238], dx
cmp dword [ebp - 0x258], 0
jne 0x4077c0
lea ecx, [ebp - 0x27c]
mov dword [ebp - 4], 0xffffffff
call fcn.00421947
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00515d64
mov esp, ebp
pop ebp
ret