Function at 0x420bd0
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 0x4a8146
mov eax, dword fs:[0]
push eax
sub esp, 0x4d0
mov eax, dword [0x4ff5e4]
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.004679d0
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 0x420c70
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x480]
call fcn.0040a4d0
push 8
push str.plugin_
lea ecx, [ebp - 0x480]
mov dword [ebp - 4], 0
call fcn.00426bf0
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 0x420cf8
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x450]
call fcn.00426bf0
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 0x420d87
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420d7d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4214df
push edx
push ecx
call fcn.0043b3b2
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 0x420de8
mov ecx, dword [ebp - 0x480]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420dde
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4214e4
push edx
push ecx
call fcn.0043b3b2
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 0x421012
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 0x420e50
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4c8]
call fcn.0040a4d0
push 8
push str.plugin_
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 5
call fcn.00426bf0
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 0x420ed5
mov edi, dword [edi]
push eax
push edi
lea ecx, [ebp - 0x4b0]
call fcn.00426bf0
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 0x420f6e
mov ecx, dword [ebp - 0x4b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420f64
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4214e9
push edx
push ecx
call fcn.0043b3b2
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 0x420fcf
mov ecx, dword [ebp - 0x4c8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420fc5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4214ee
push edx
push ecx
call fcn.0043b3b2
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 0x421022
lea ecx, [ebp - 0x438]
call fcn.00406ad0
lea ecx, [ebp - 0x498]
call fcn.00406ad0
jmp 0x4214c2
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 0x421007
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 0x421007
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 0x4210a5
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call esi
test eax, eax
jne 0x421007
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004679d0
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 0x4211ab
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x421007
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 0x421157
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x480]
call fcn.0040a4d0
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 0x421273
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 0x421201
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 0x42124f
or edi, 7
lea ecx, [ebp - 0x450]
cmp edi, edx
cmova edi, edx
lea eax, [edi + 1]
push eax
call fcn.00409f00
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.00466ed0
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 0x4212a4
mov ecx, dword [ecx]
mov dword [ebp - 0x4d0], ecx
cmp eax, 8
jae 0x4212bf
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x454], 7
movups xmmword [ebp - 0x468], xmm0
jmp 0x421310
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.00409f00
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.00466ed0
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 0x421369
and eax, 0xfffffffd
mov dword [ebp - 0x4cc], eax
cmp edi, 8
jb 0x421369
mov ecx, dword [ebp - 0x4dc]
lea edi, [edi*2 + 2]
mov eax, ecx
cmp edi, 0x1000
jb 0x421359
mov ecx, dword [ecx - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4214f3
push edi
push ecx
call fcn.0043b3b2
mov eax, dword [ebp - 0x4cc]
add esp, 8
test al, 1
je 0x4213ad
mov edx, dword [ebp - 0x46c]
cmp edx, 8
jb 0x4213ad
mov ecx, dword [ebp - 0x480]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4213a3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4214f8
push edx
push ecx
call fcn.0043b3b2
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 0x42140c
mov ecx, dword [ebp - 0x468]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421402
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4214fd
push edx
push ecx
call fcn.0043b3b2
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 0x421469
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42145f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421502
push edx
push ecx
call fcn.0043b3b2
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 0x4214c2
mov ecx, dword [ebp - 0x498]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4214b8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421507
push edx
push ecx
call fcn.0043b3b2
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.0043b668
mov esp, ebp
pop ebp
ret 8
call fcn.0046af28
call fcn.0046af28
call fcn.0046af28
call fcn.0046af28
call fcn.0046af28
call fcn.0046af28
call fcn.0046af28
call fcn.0046af28
call fcn.0046af28
int3