Function at 0x469ca0
Capabilities:
Check if file exists
Copy file
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 0x53e3cc
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x596634]
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 esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x430], esi
test esi, esi
je 0x46a05c
test ebx, ebx
je 0x46a05c
call fcn.004126e0
mov ecx, eax
test ecx, ecx
je 0x46a07a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
push esi
lea ecx, [ebp - 0x424]
mov dword [ebp - 4], 0
call fcn.004155f0
lea eax, [ebp - 0x42c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00467a70
mov edx, dword [ebp - 0x424]
or edi, 0xffffffff
add esp, 8
mov byte [ebp - 4], 0
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x469d58
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp - 0x42c]
cmp dword [esi - 0xc], 0
jne 0x469d6e
xor edi, edi
or ebx, 0xffffffff
jmp 0x46a03c
call fcn.004126e0
mov ecx, eax
test ecx, ecx
je 0x46a084
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
push ebx
lea ecx, [ebp - 0x424]
mov byte [ebp - 4], 2
call fcn.004155f0
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00467a70
mov edx, dword [ebp - 0x424]
add esp, 8
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x469dd6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0x428]
push esi
push edi
call fcn.00507b5f
add esp, 8
test eax, eax
je 0x46a019
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004dcfa0
lea ecx, [ebp - 0x420]
mov eax, ebx
mov esi, ecx
add esp, 0xc
sub eax, esi
mov edx, 0x104
mov esi, eax
nop word [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x469e3e
movzx eax, word [esi + ecx]
test ax, ax
je 0x469e3e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x469e20
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x420]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [ebp - 0x42c]
test eax, eax
je 0x469ed9
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004dcfa0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0x5509b8
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x469ed9
push 4
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x469f9d
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x469f9d
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x469f9d
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x469f21
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x469f9d
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x469f3c
test al, 0x10
je 0x469f3c
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x469f9d
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004dcfa0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0x5509b8
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
lea eax, [ebp - 0x218]
je 0x469ffa
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
push ebx
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x46a019
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004dcfa0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0x5509b8
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x218]
push 0
push eax
push dword [ebp - 0x430]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
push ebx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
or ebx, 0xffffffff
mov byte [ebp - 4], 0
lea edx, [edi - 0x10]
mov eax, ebx
mov edi, 1
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x46a03c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x46a058
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
jmp 0x46a05e
xor eax, eax
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.00496d46
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040af60
push 0x80004005
call fcn.0040af60
int3