Function at 0x420f10
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 0x4aa206
mov eax, dword fs:[0]
push eax
sub esp, 0x4d0
mov eax, dword [0x5026c4]
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.00469a40
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 0x420fb0
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x480]
call fcn.0040a7f0
push 8
push str.plugin_
lea ecx, [ebp - 0x480]
mov dword [ebp - 4], 0
call fcn.00426f40
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 0x421038
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x450]
call fcn.00426f40
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 0x4210c7
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4210bd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42181f
push edx
push ecx
call fcn.0043b702
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 0x421128
mov ecx, dword [ebp - 0x480]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42111e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421824
push edx
push ecx
call fcn.0043b702
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 0x421352
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 0x421190
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4c8]
call fcn.0040a7f0
push 8
push str.plugin_
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 5
call fcn.00426f40
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 0x421215
mov edi, dword [edi]
push eax
push edi
lea ecx, [ebp - 0x4b0]
call fcn.00426f40
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 0x4212ae
mov ecx, dword [ebp - 0x4b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4212a4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421829
push edx
push ecx
call fcn.0043b702
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 0x42130f
mov ecx, dword [ebp - 0x4c8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421305
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42182e
push edx
push ecx
call fcn.0043b702
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 0x421362
lea ecx, [ebp - 0x438]
call fcn.00406df0
lea ecx, [ebp - 0x498]
call fcn.00406df0
jmp 0x421802
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 0x421347
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 0x421347
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 0x4213e5
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call esi
test eax, eax
jne 0x421347
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00469a40
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 0x4214eb
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x421347
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 0x421497
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x480]
call fcn.0040a7f0
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 0x4215b3
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 0x421541
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 0x42158f
or edi, 7
lea ecx, [ebp - 0x450]
cmp edi, edx
cmova edi, edx
lea eax, [edi + 1]
push eax
call fcn.0040a220
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.00468f40
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 0x4215e4
mov ecx, dword [ecx]
mov dword [ebp - 0x4d0], ecx
cmp eax, 8
jae 0x4215ff
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x454], 7
movups xmmword [ebp - 0x468], xmm0
jmp 0x421650
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.0040a220
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.00468f40
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 0x4216a9
and eax, 0xfffffffd
mov dword [ebp - 0x4cc], eax
cmp edi, 8
jb 0x4216a9
mov ecx, dword [ebp - 0x4dc]
lea edi, [edi*2 + 2]
mov eax, ecx
cmp edi, 0x1000
jb 0x421699
mov ecx, dword [ecx - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421833
push edi
push ecx
call fcn.0043b702
mov eax, dword [ebp - 0x4cc]
add esp, 8
test al, 1
je 0x4216ed
mov edx, dword [ebp - 0x46c]
cmp edx, 8
jb 0x4216ed
mov ecx, dword [ebp - 0x480]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4216e3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421838
push edx
push ecx
call fcn.0043b702
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 0x42174c
mov ecx, dword [ebp - 0x468]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421742
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42183d
push edx
push ecx
call fcn.0043b702
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 0x4217a9
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42179f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421842
push edx
push ecx
call fcn.0043b702
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 0x421802
mov ecx, dword [ebp - 0x498]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4217f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421847
push edx
push ecx
call fcn.0043b702
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.0043b9b8
mov esp, ebp
pop ebp
ret 8
call fcn.0046cf98
call fcn.0046cf98
call fcn.0046cf98
call fcn.0046cf98
call fcn.0046cf98
call fcn.0046cf98
call fcn.0046cf98
call fcn.0046cf98
call fcn.0046cf98
int3