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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aaa66
mov eax, dword fs:[0]
push eax
sub esp, 0x4d0
mov eax, dword [0x5036c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x420]
mov esi, dword [ebp + 0xc]
push 0x208
push 0
push eax
mov dword [ebp - 0x4d8], 0
call fcn.00469cf0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
xor eax, eax
mov dword [ebp - 0x470], 0
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x46c], 7
mov word [ebp - 0x480], ax
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421040
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x480]
call fcn.0040a8a0
push 8
push str.plugin_
lea ecx, [ebp - 0x480]
mov dword [ebp - 4], 0
call fcn.00426fc0
mov dword [ebp - 0x440], 0
xor ecx, ecx
mov dword [ebp - 0x43c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x450], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x440], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
mov byte [ebp - 4], 1
jb 0x4210c8
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x450]
call fcn.00426fc0
mov dword [ebp - 0x488], 0
xor ecx, ecx
mov dword [ebp - 0x484], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x498], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x488], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x43c]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x421157
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42114d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4218af
push edx
push ecx
call fcn.0043b7c2
add esp, 8
xor eax, eax
mov dword [ebp - 0x440], 0
mov dword [ebp - 0x43c], 7
mov word [ebp - 0x450], ax
mov edx, dword [ebp - 0x46c]
mov byte [ebp - 4], 4
cmp edx, 8
jb 0x4211b8
mov ecx, dword [ebp - 0x480]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4211ae
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4218b4
push edx
push ecx
call fcn.0043b7c2
add esp, 8
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor eax, eax
cmp dword [ebp - 0x484], 8
mov word [ebp - 0x480], ax
lea eax, [ebp - 0x498]
cmovae eax, dword [ebp - 0x498]
push eax
mov dword [ebp - 0x470], 0
mov dword [ebp - 0x46c], 7
call esi
test eax, eax
je 0x4213e2
xor eax, eax
mov dword [ebp - 0x4b8], 0
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x4b4], 7
mov word [ebp - 0x4c8], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421220
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4c8]
call fcn.0040a8a0
push 8
push str.plugin_
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 5
call fcn.00426fc0
mov dword [ebp - 0x4a0], 0
xor ecx, ecx
mov dword [ebp - 0x49c], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x4b0], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x4a0], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
mov byte [ebp - 4], 6
jb 0x4212a5
mov edi, dword [edi]
push eax
push edi
lea ecx, [ebp - 0x4b0]
call fcn.00426fc0
mov dword [ebp - 0x428], 0
xor ecx, ecx
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x4d8], 0x3c
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x438], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x428], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
mov edx, dword [ebp - 0x49c]
mov byte [ebp - 4], 8
cmp edx, 8
jb 0x42133e
mov ecx, dword [ebp - 0x4b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421334
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4218b9
push edx
push ecx
call fcn.0043b7c2
add esp, 8
xor eax, eax
mov dword [ebp - 0x4a0], 0
mov dword [ebp - 0x49c], 7
mov word [ebp - 0x4b0], ax
mov edx, dword [ebp - 0x4b4]
mov byte [ebp - 4], 9
cmp edx, 8
jb 0x42139f
mov ecx, dword [ebp - 0x4c8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421395
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4218be
push edx
push ecx
call fcn.0043b7c2
add esp, 8
xor eax, eax
mov dword [ebp - 0x4b8], 0
cmp dword [ebp - 0x424], 8
mov word [ebp - 0x4c8], ax
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
mov dword [ebp - 0x4b4], 7
call esi
test eax, eax
jne 0x4213f2
lea ecx, [ebp - 0x438]
call fcn.00406ea0
lea ecx, [ebp - 0x498]
call fcn.00406ea0
jmp 0x421892
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmovae eax, dword [ebp - 0x438]
push eax
call esi
test eax, eax
jne 0x4213d7
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4213d7
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
push 0x80
cmovae eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x421475
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call esi
test eax, eax
jne 0x4213d7
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00469cf0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
call esi
cmp dword [ebp - 0x424], 8
lea ecx, [ebp - 0x218]
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, SysReAllocString
test eax, eax
je 0x42157b
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x4213d7
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x46c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x480], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x421527
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x480]
call fcn.0040a8a0
mov edi, dword [ebp - 0x43c]
lea ecx, [ebp - 0x480]
mov eax, 0x3d
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x4cc], eax
mov dword [ebp - 0x4d8], eax
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0x4dc], eax
jmp 0x421643
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
mov ecx, dword [ebp - 0x428]
mov edi, ecx
cmovae eax, dword [ebp - 0x438]
mov dword [ebp - 0x4d4], ecx
mov dword [ebp - 0x4cc], edi
mov dword [ebp - 0x4d0], eax
cmp edi, 8
jae 0x4215d1
movups xmm0, xmmword [eax]
mov dword [ebp - 0x440], ecx
mov edi, 7
movups xmmword [ebp - 0x450], xmm0
mov eax, dword [ebp - 0x450]
mov dword [ebp - 0x4dc], eax
jmp 0x42161f
or edi, 7
lea ecx, [ebp - 0x450]
cmp edi, edx
cmova edi, edx
lea eax, [edi + 1]
push eax
call fcn.0040a2d0
mov ecx, dword [ebp - 0x4d4]
mov esi, eax
mov dword [ebp - 0x4dc], esi
mov dword [ebp - 0x450], esi
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x4d0]
push esi
call fcn.004691f0
mov eax, dword [ebp - 0x4cc]
add esp, 0xc
mov dword [ebp - 0x440], eax
mov dword [ebp - 0x43c], edi
mov eax, 0x3e
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x4cc], eax
mov dword [ebp - 0x4d8], eax
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x4d0], ecx
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 0
mov dword [ebp - 0x4d4], eax
jb 0x421674
mov ecx, dword [ecx]
mov dword [ebp - 0x4d0], ecx
cmp eax, 8
jae 0x42168f
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x454], 7
movups xmmword [ebp - 0x468], xmm0
jmp 0x4216e0
mov esi, eax
lea ecx, [ebp - 0x468]
or esi, 7
mov eax, SysReAllocString
cmp esi, 0x7ffffffe
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.0040a2d0
mov ecx, dword [ebp - 0x4d4]
mov dword [ebp - 0x468], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x4d0]
push eax
call fcn.004691f0
mov eax, dword [ebp - 0x4d4]
add esp, 0xc
mov dword [ebp - 0x454], esi
mov dword [ebp - 0x458], eax
mov eax, dword [ebp - 0x4cc]
test al, 2
je 0x421739
and eax, 0xfffffffd
mov dword [ebp - 0x4cc], eax
cmp edi, 8
jb 0x421739
mov ecx, dword [ebp - 0x4dc]
lea edi, [edi*2 + 2]
mov eax, ecx
cmp edi, 0x1000
jb 0x421729
mov ecx, dword [ecx - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4218c3
push edi
push ecx
call fcn.0043b7c2
mov eax, dword [ebp - 0x4cc]
add esp, 8
test al, 1
je 0x42177d
mov edx, dword [ebp - 0x46c]
cmp edx, 8
jb 0x42177d
mov ecx, dword [ebp - 0x480]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421773
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4218c8
push edx
push ecx
call fcn.0043b7c2
add esp, 8
cmp dword [ebp - 0x454], 8
lea eax, [ebp - 0x468]
push 4
cmovae eax, dword [ebp - 0x468]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x454]
cmp edx, 8
jb 0x4217dc
mov ecx, dword [ebp - 0x468]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4217d2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4218cd
push edx
push ecx
call fcn.0043b7c2
add esp, 8
mov edx, dword [ebp - 0x424]
xor eax, eax
mov dword [ebp - 0x458], 0
mov dword [ebp - 0x454], 7
mov word [ebp - 0x468], ax
cmp edx, 8
jb 0x421839
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42182f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4218d2
push edx
push ecx
call fcn.0043b7c2
add esp, 8
mov edx, dword [ebp - 0x484]
xor eax, eax
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 7
mov word [ebp - 0x438], ax
cmp edx, 8
jb 0x421892
mov ecx, dword [ebp - 0x498]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421888
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4218d7
push edx
push ecx
call fcn.0043b7c2
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043ba78
mov esp, ebp
pop ebp
ret 8
call fcn.0046d258
call fcn.0046d258
call fcn.0046d258
call fcn.0046d258
call fcn.0046d258
call fcn.0046d258
call fcn.0046d258
call fcn.0046d258
call fcn.0046d258
int3