Function at 0x420950
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 0x4a7396
mov eax, dword fs:[0]
push eax
sub esp, 0x4d0
mov eax, dword [0x4ff4f4]
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.00466d80
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 0x4209f0
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x480]
call fcn.0040a320
push 8
push str.plugin_
lea ecx, [ebp - 0x480]
mov dword [ebp - 4], 0
call fcn.004258d0
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 0x420a78
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x450]
call fcn.004258d0
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 0x420b07
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420afd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42125f
push edx
push ecx
call fcn.0043ac72
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 0x420b68
mov ecx, dword [ebp - 0x480]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420b5e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421264
push edx
push ecx
call fcn.0043ac72
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 0x420d92
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 0x420bd0
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4c8]
call fcn.0040a320
push 8
push str.plugin_
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 5
call fcn.004258d0
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 0x420c55
mov edi, dword [edi]
push eax
push edi
lea ecx, [ebp - 0x4b0]
call fcn.004258d0
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 0x420cee
mov ecx, dword [ebp - 0x4b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420ce4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421269
push edx
push ecx
call fcn.0043ac72
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 0x420d4f
mov ecx, dword [ebp - 0x4c8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x420d45
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42126e
push edx
push ecx
call fcn.0043ac72
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 0x420da2
lea ecx, [ebp - 0x438]
call fcn.00406910
lea ecx, [ebp - 0x498]
call fcn.00406910
jmp 0x421242
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 0x420d87
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 0x420d87
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 0x420e25
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call esi
test eax, eax
jne 0x420d87
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00466d80
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 0x420f2b
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x420d87
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 0x420ed7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x480]
call fcn.0040a320
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 0x420ff3
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 0x420f81
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 0x420fcf
or edi, 7
lea ecx, [ebp - 0x450]
cmp edi, edx
cmova edi, edx
lea eax, [edi + 1]
push eax
call fcn.00409d50
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.00466280
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 0x421024
mov ecx, dword [ecx]
mov dword [ebp - 0x4d0], ecx
cmp eax, 8
jae 0x42103f
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x454], 7
movups xmmword [ebp - 0x468], xmm0
jmp 0x421090
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.00409d50
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.00466280
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 0x4210e9
and eax, 0xfffffffd
mov dword [ebp - 0x4cc], eax
cmp edi, 8
jb 0x4210e9
mov ecx, dword [ebp - 0x4dc]
lea edi, [edi*2 + 2]
mov eax, ecx
cmp edi, 0x1000
jb 0x4210d9
mov ecx, dword [ecx - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421273
push edi
push ecx
call fcn.0043ac72
mov eax, dword [ebp - 0x4cc]
add esp, 8
test al, 1
je 0x42112d
mov edx, dword [ebp - 0x46c]
cmp edx, 8
jb 0x42112d
mov ecx, dword [ebp - 0x480]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421123
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421278
push edx
push ecx
call fcn.0043ac72
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 0x42118c
mov ecx, dword [ebp - 0x468]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421182
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42127d
push edx
push ecx
call fcn.0043ac72
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 0x4211e9
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4211df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421282
push edx
push ecx
call fcn.0043ac72
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 0x421242
mov ecx, dword [ebp - 0x498]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421238
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421287
push edx
push ecx
call fcn.0043ac72
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.0043af28
mov esp, ebp
pop ebp
ret 8
call fcn.0046a2d8
call fcn.0046a2d8
call fcn.0046a2d8
call fcn.0046a2d8
call fcn.0046a2d8
call fcn.0046a2d8
call fcn.0046a2d8
call fcn.0046a2d8
call fcn.0046a2d8
int3