Function at 0x420790
Capabilities:
Delete directory
Delete file
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578c0a
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x5d7ce0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x230], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x42080a
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x420803
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x420bc2
lea ecx, [ebp - 0x250]
call fcn.0045bece
mov byte [ebp - 4], 1
call fcn.0044d418
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x420833
push 0x80004005
call fcn.00407ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [ebp - 0x224], edi
push 0x5aba80
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp - 0x220]
push edx
mov byte [ebp - 4], 2
call fcn.0040d110
add esp, 0xc
mov byte [ebp - 4], 3
mov eax, dword [eax]
push 0
push eax
lea ecx, [ebp - 0x250]
call fcn.0045bf76
mov esi, eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42089d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x420b12
lea ecx, [ebp - 0x250]
call fcn.0045bb3e
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x250]
mov dword [ebp - 0x22c], eax
call fcn.0045c252
mov esi, eax
push 0x5ad338
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x234]
push eax
mov byte [ebp - 4], 4
call fcn.0040d110
push esi
push eax
lea ecx, [ebp - 0x220]
push ecx
mov byte [ebp - 4], 5
call fcn.004135f0
add esp, 0x18
mov byte [ebp - 4], 6
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea esi, [edi - 0x10]
cmp eax, esi
je 0x420959
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x420943
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x420943
push eax
call fcn.00407af0
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x420938
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
lea edi, [ebx + 0x10]
mov dword [ebp - 0x224], edi
jmp 0x420959
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x224]
call fcn.00407870
mov edi, dword [ebp - 0x224]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42097f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x234]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4209a5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4209cb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x250]
call fcn.0045be90
test eax, eax
jne 0x420b05
mov edx, dword [ebp - 0x250]
mov eax, dword [edx + 0x38]
push 0x10
lea ecx, [ebp - 0x250]
call eax
test eax, eax
je 0x420a36
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x420b05
mov ecx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x21c]
push ecx
push edx
push eax
push ecx
lea eax, [edi - 0x10]
mov dword [ebp - 0x254], esp
mov esi, esp
push eax
call fcn.00407af0
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.00420790
add esp, 0x10
jmp 0x420b05
mov eax, dword [ebp - 0x250]
mov edx, dword [eax + 0x38]
push 1
lea ecx, [ebp - 0x250]
call edx
test eax, eax
je 0x420a5f
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call ebx
test eax, eax
jne 0x420b05
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.00550f40
mov eax, dword [ebp + 8]
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
push 0
push 0x5ae6f8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x420b05
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
lea ecx, [ebp - 0x218]
push ecx
push edi
call esi
test eax, eax
jne 0x420adc
lea edx, [ebp - 0x218]
push edx
call ebx
push 4
push 0
push edi
call esi
mov eax, dword [ebp - 0x21c]
mov dword [eax], 1
jmp 0x420b05
lea ecx, [ebp - 0x218]
push ecx
call ebx
test eax, eax
jne 0x420b05
push 2
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 4
push 0
lea eax, [ebp - 0x218]
push eax
call esi
cmp dword [ebp - 0x22c], 0
jne 0x4208a5
lea ecx, [ebp - 0x250]
call fcn.0045ba58
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x420b40
and eax, 0xfffffffe
jne 0x420b35
mov eax, 0x80
mov edx, dword [ebp + 8]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x420b6b
mov ecx, dword [ebp + 8]
push 4
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x21c]
mov esi, eax
mov dword [edx], 1
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420b8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0
call fcn.0045bf00
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x420bc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054bd91
mov esp, ebp
pop ebp
ret