Function at 0x42ad70
Capabilities:
Check if file exists
Delete directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493dae
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x4b81bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42afdc
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
je 0x42afdc
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x42adde
xor eax, eax
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 dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push ecx
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 1
push eax
lea edx, [ebp - 0x30]
mov ecx, ebx
call fcn.0042acc0
mov eax, dword [ebp - 0x20]
add esp, 8
mov ecx, dword [ebp - 0x24]
xor esi, esi
sub eax, ecx
or edi, 0xffffffff
sar eax, 2
test eax, eax
je 0x42aedd
nop dword [eax]
lea eax, [ecx + esi*4]
mov edx, ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.0042b340
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
call fcn.0042b140
mov ebx, eax
mov eax, dword [0x4bda58]
test eax, eax
jne 0x42ae89
push 0x2c
call fcn.00439955
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, eax
mov byte [ebp - 4], 3
call fcn.0040d140
mov byte [ebp - 4], 2
mov dword [0x4bda58], eax
push ebx
push dword [ebp - 0x10]
push str.SafeDeleteFile__s__Result__d_
push 0x4ab12c
push eax
call fcn.0040d770
mov byte [ebp - 4], 1
add esp, 0x14
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
test ebx, ebx
je 0x42afc6
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42aec6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
inc esi
mov ecx, dword [ebp - 0x24]
sub eax, ecx
mov ebx, dword [ebp - 0x14]
sar eax, 2
cmp esi, eax
jb 0x42ae40
mov eax, dword [ebp - 0x2c]
xor esi, esi
mov ecx, dword [ebp - 0x30]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x42af8b
lea eax, [ecx + esi*4]
mov edx, ebx
push eax
lea ecx, [ebp - 0x10]
call fcn.0042b340
add esp, 4
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0042ad70
mov ebx, eax
mov eax, dword [0x4bda58]
test eax, eax
jne 0x42af3b
push 0x2c
call fcn.00439955
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.0040d140
mov byte [ebp - 4], 4
mov dword [0x4bda58], eax
push ebx
push dword [ebp - 0x10]
push str.DeleteDirectoryTree__s__Result__d_
push 0x4ab12c
push eax
call fcn.0040d770
mov byte [ebp - 4], 1
add esp, 0x14
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
test ebx, ebx
je 0x42afc6
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42af74
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x2c]
inc esi
mov ecx, dword [ebp - 0x30]
sub eax, ecx
mov ebx, dword [ebp - 0x14]
sar eax, 2
cmp esi, eax
jb 0x42aef2
mov esi, dword [ebp - 0x14]
push 0x20
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
lea ecx, [ebp - 0x24]
call fcn.0041f700
lea ecx, [ebp - 0x30]
call fcn.0041f700
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x42afd8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
jmp 0x42afa2
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