Function at 0x47a0b0
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 0x557563
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x5c5244]
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 ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x47a44a
test esi, esi
je 0x47a44a
call fcn.00430a50
mov ecx, eax
test ecx, ecx
je 0x47a468
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x424]
push ebx
call fcn.0042b850
mov byte [ebp - 4], 2
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00452330
add esp, 8
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x424]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47a162
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x428]
cmp dword [eax - 0xc], 0
jne 0x47a175
xor esi, esi
jmp 0x47a424
lea ecx, [ebp - 0x42c]
call fcn.004426c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x424]
push esi
call fcn.0042b850
mov byte [ebp - 4], 5
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x424]
push eax
call fcn.00452330
add esp, 8
mov byte [ebp - 4], 4
mov eax, edi
mov edx, dword [ebp - 0x424]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47a1cb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x47a472
push eax
push dword [ebp - 0x42c]
call fcn.0051070a
add esp, 8
test eax, eax
je 0x47a3fe
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004f39e0
lea ecx, [ebp - 0x420]
mov edi, esi
mov eax, ecx
add esp, 0xc
mov edx, 0x104
sub edi, eax
nop word [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x47a23e
movzx eax, word [edi + ecx]
test ax, ax
je 0x47a23e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x47a220
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 esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x47a2d5
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004f39e0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0x574f00
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x47a2d5
push 4
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47a38d
push esi
call edi
test eax, eax
jne 0x47a38d
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x47a38d
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x47a315
push esi
call edi
test eax, eax
jne 0x47a38d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47a330
test al, 0x10
je 0x47a330
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x47a38d
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004f39e0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0x574f00
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
lea eax, [ebp - 0x218]
je 0x47a3e1
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 0
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x47a3fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004f39e0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0
push 0x574f00
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
call edi
lea eax, [ebp - 0x218]
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 5
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
or edi, 0xffffffff
mov byte [ebp - 4], 1
mov esi, 1
mov edx, dword [ebp - 0x42c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x47a424
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x428]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x47a446
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
jmp 0x47a44c
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.004da3bd
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004225f0
push 0x80004005
call fcn.004225f0
int3