Function at 0x4072b0
Capabilities:
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571520
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x5d2614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor edi, edi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
mov dword [ebp - 0x18], edi
jg 0x4072fe
push 0x5c38d0
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], edi
call fcn.00544c32
push esi
call fcn.00406f80
add esp, 4
cmp eax, edi
jne 0x407349
push esi
call fcn.00406ee0
xor edx, edx
add esp, 4
cmp eax, edi
sete dl
mov eax, edx
cmp eax, edi
jne 0x407332
push 0x5c38d0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], edi
call fcn.00544c32
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x407332
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00402000
lea ecx, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
mov edx, dword [ecx - 0xc]
lea eax, [edx - 1]
cmp eax, edi
jl 0x407546
cmp eax, edx
jg 0x407546
movzx eax, word [ecx + eax*2]
cmp ax, 0x5c
je 0x40739b
push 0x5a12d4
lea ecx, [ebp - 0x14]
call fcn.00403ff0
push 0x5a1678
lea ecx, [ebp - 0x14]
call fcn.00403ff0
lea ecx, [ebp - 0x44]
call fcn.00453a0c
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
push edi
push ecx
lea ecx, [ebp - 0x44]
call fcn.00453aa4
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
lea esp, [esp]
test edi, edi
je 0x4074d4
call fcn.00451b96
mov ecx, dword [eax + 4]
call fcn.00450ee8
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.00453783
lea ecx, [ebp - 0x44]
mov edi, eax
call fcn.004539cd
test eax, eax
je 0x40740d
lea ecx, [ebp + 0xb]
mov byte [ebp - 4], 2
call fcn.0040b450
jmp 0x4073d0
mov edx, dword [ebp - 0x44]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x44]
call eax
test eax, eax
jne 0x407482
xor eax, eax
je 0x407468
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x44]
call fcn.00453ca3
mov esi, eax
mov eax, dword [esi]
push eax
call ebx
test al, 1
je 0x407446
mov esi, dword [esi]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x24]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407465
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x44]
call fcn.00453ca3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x28]
jmp 0x4074a7
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x44]
call fcn.00453ca3
push 0
push eax
mov byte [ebp - 4], 4
call fcn.004072b0
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2c]
add esp, 8
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4074c3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp + 0xb]
mov byte [ebp - 4], 2
call fcn.0040b450
jmp 0x4073d0
lea ecx, [ebp - 0x44]
call fcn.0045369d
xor eax, eax
je 0x4074f6
mov eax, dword [esi]
push eax
call ebx
test al, 1
je 0x4074f6
mov ecx, dword [esi]
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
call fcn.00453a35
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407531
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401fd0
mov eax, 0x407531
ret