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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57dd01
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x5ef220]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
xor ebx, ebx
push esi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42a4cf
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004311d4
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x42a4eb
push 0x80004005
call fcn.0040fbb0
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push str._s
push eax
call fcn.0040f7d0
add esp, 0xc
lea ecx, [ebp - 0x50]
call fcn.00432d9e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
mov esi, dword [ebp - 0x14]
push 0
push esi
call fcn.0043303b
or edi, 0xffffffff
test eax, eax
je 0x42a6e3
lea ecx, [ebp - 0x50]
call fcn.004331e3
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x50]
lea eax, [ebp - 0x20]
push eax
call fcn.004332af
mov byte [ebp - 4], 2
or ebx, 1
mov eax, dword [eax]
mov ecx, 0x5cbc38
mov dword [ebp - 0x18], ebx
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x42a586
test dx, dx
je 0x42a582
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x42a586
add eax, 4
add ecx, 4
test dx, dx
jne 0x42a560
xor eax, eax
jmp 0x42a58b
sbb eax, eax
or eax, 1
test eax, eax
sete al
test al, al
jne 0x42a5e8
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x50]
call fcn.004332af
or ebx, 2
mov ecx, dword [eax]
mov eax, 0x5cbc3c
lea ebx, [ebx]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x42a5d6
test dx, dx
je 0x42a5d2
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x42a5d6
add ecx, 4
add eax, 4
test dx, dx
jne 0x42a5b0
xor eax, eax
jmp 0x42a5db
sbb eax, eax
or eax, 1
test eax, eax
mov byte [ebp - 0xd], 0
sete al
test al, al
je 0x42a5ec
mov byte [ebp - 0xd], 1
test bl, 2
je 0x42a613
mov edx, dword [ebp - 0x1c]
and ebx, 0xfffffffd
add edx, 0xfffffff0
mov dword [ebp - 0x18], ebx
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42a613
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 1
test bl, 1
je 0x42a63e
mov edx, dword [ebp - 0x20]
and ebx, 0xfffffffe
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42a63e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
jne 0x42a6d9
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x50]
call fcn.004332fc
push 0x80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edx, dword [ebp - 0x24]
mov ecx, edi
add edx, 0xfffffff0
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42a67d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x50]
push 0x10
call dword [eax + 0x38]
lea ecx, [ebp - 0x50]
test eax, eax
je 0x42a6ac
lea eax, [ebp - 0x28]
push eax
call fcn.004332fc
mov byte [ebp - 4], 3
mov ecx, dword [eax]
call fcn.0042a480
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x28]
jmp 0x42a6c0
lea eax, [ebp - 0x2c]
push eax
call fcn.004332fc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov ecx, edi
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x42a6d9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x30], 0
jne 0x42a536
lea ecx, [ebp - 0x50]
call fcn.00432fef
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call fcn.00432f4f
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x42a71e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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