Function at 0x46c330
Capabilities:
Check if file exists
Delete file
Get common file path
Get file attributes
Move file
Set file attributes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb01b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x468
mov eax, dword [0x530010]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x46c6f1
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x46c387
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x46c398
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46c6f1
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x46c3b1
mov eax, dword [esi]
push 0x104
lea ecx, [ebp - 0x428]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
push 0x208
lea eax, [ebp - 0x220]
push 0
push eax
call fcn.004c6550
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [ebp - 0x440], 0
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x440], ax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c420
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x440]
call fcn.004014e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x428]
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
push 2
cmovae eax, dword [ebp - 0x440]
push ecx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x46c4a2
lea ecx, [ebp - 0x428]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c480
sub ecx, edx
lea eax, [ebp - 0x428]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x440]
call fcn.004014e0
cmp dword [ebp - 0x42c], 8
lea eax, [ebp - 0x440]
cmovae eax, dword [ebp - 0x440]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov edx, dword [ebp - 0x42c]
lea ecx, [ebp - 0x440]
mov edi, dword [ebp - 0x440]
cmp edx, 8
cmovae ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 0x45c], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46c4e0
sub ecx, dword [ebp - 0x45c]
mov eax, dword [ebp - 0x430]
sar ecx, 1
cmp ecx, eax
ja 0x46c517
cmp edx, 8
mov dword [ebp - 0x430], ecx
lea eax, [ebp - 0x440]
cmovae eax, edi
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x46c527
sub ecx, eax
push 0
push ecx
lea ecx, [ebp - 0x440]
call fcn.00409900
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x46c531
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0x80
push eax
call edi
lea ecx, [ebp - 0x474]
call fcn.0046c1f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x440]
cmp dword [ebp - 0x42c], 8
push dword [ebp - 0x430]
cmovae ecx, dword [ebp - 0x440]
push ecx
push ecx
mov ecx, eax
call fcn.0042a3b0
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x458], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x448], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x460]
cmp edx, 8
jb 0x46c5db
mov ecx, dword [ebp - 0x474]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c5d1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c70f
push edx
push ecx
call fcn.00476a87
add esp, 8
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
cmp dword [esi + 0x14], 8
jb 0x46c5f7
mov esi, dword [esi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x46c658
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
cmovae eax, dword [ebp - 0x458]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [ebp - 0x444], 8
lea ecx, [ebp - 0x458]
cmovae ecx, dword [ebp - 0x458]
or eax, 2
push eax
push ecx
call edi
cmp dword [ebp - 0x444], 8
lea eax, [ebp - 0x458]
push 4
cmovae eax, dword [ebp - 0x458]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x444]
cmp edx, 8
jb 0x46c698
mov ecx, dword [ebp - 0x458]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c68e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c714
push edx
push ecx
call fcn.00476a87
add esp, 8
mov edx, dword [ebp - 0x42c]
xor eax, eax
mov dword [ebp - 0x448], 0
mov dword [ebp - 0x444], 7
mov word [ebp - 0x458], ax
cmp edx, 8
jb 0x46c6f1
mov ecx, dword [ebp - 0x440]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x46c6e7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46c714
push edx
push ecx
call fcn.00476a87
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00476a44
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004ca66d
call fcn.004ca66d
int3