Function at 0x4213d0
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 0x4ac1b6
mov eax, dword fs:[0]
push eax
sub esp, 0x4d0
mov eax, dword [0x4ef6d4]
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.0046b3e0
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 0x421470
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x480]
call fcn.0040a8b0
push 8
push str.plugin_
lea ecx, [ebp - 0x480]
mov dword [ebp - 4], 0
call fcn.00428300
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 0x4214f8
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x450]
call fcn.00428300
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 0x421587
mov ecx, dword [ebp - 0x450]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42157d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421cdf
push edx
push ecx
call fcn.0043cf22
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 0x4215e8
mov ecx, dword [ebp - 0x480]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4215de
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421ce4
push edx
push ecx
call fcn.0043cf22
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 0x421812
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 0x421650
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4c8]
call fcn.0040a8b0
push 8
push str.plugin_
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 5
call fcn.00428300
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 0x4216d5
mov edi, dword [edi]
push eax
push edi
lea ecx, [ebp - 0x4b0]
call fcn.00428300
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 0x42176e
mov ecx, dword [ebp - 0x4b0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421764
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421ce9
push edx
push ecx
call fcn.0043cf22
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 0x4217cf
mov ecx, dword [ebp - 0x4c8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4217c5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421cee
push edx
push ecx
call fcn.0043cf22
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 0x421822
lea ecx, [ebp - 0x438]
call fcn.00406ea0
lea ecx, [ebp - 0x498]
call fcn.00406ea0
jmp 0x421cc2
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 0x421807
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 0x421807
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 0x4218a5
cmp dword [ebp - 0x424], 8
lea eax, [ebp - 0x438]
cmovae eax, dword [ebp - 0x438]
push eax
call esi
test eax, eax
jne 0x421807
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0046b3e0
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 0x4219ab
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x421807
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 0x421957
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x480]
call fcn.0040a8b0
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 0x421a73
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 0x421a01
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 0x421a4f
or edi, 7
lea ecx, [ebp - 0x450]
cmp edi, edx
cmova edi, edx
lea eax, [edi + 1]
push eax
call fcn.0040a2e0
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.0046a8e0
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 0x421aa4
mov ecx, dword [ecx]
mov dword [ebp - 0x4d0], ecx
cmp eax, 8
jae 0x421abf
movups xmm0, xmmword [ecx]
mov dword [ebp - 0x454], 7
movups xmmword [ebp - 0x468], xmm0
jmp 0x421b10
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.0040a2e0
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.0046a8e0
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 0x421b69
and eax, 0xfffffffd
mov dword [ebp - 0x4cc], eax
cmp edi, 8
jb 0x421b69
mov ecx, dword [ebp - 0x4dc]
lea edi, [edi*2 + 2]
mov eax, ecx
cmp edi, 0x1000
jb 0x421b59
mov ecx, dword [ecx - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421cf3
push edi
push ecx
call fcn.0043cf22
mov eax, dword [ebp - 0x4cc]
add esp, 8
test al, 1
je 0x421bad
mov edx, dword [ebp - 0x46c]
cmp edx, 8
jb 0x421bad
mov ecx, dword [ebp - 0x480]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421ba3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421cf8
push edx
push ecx
call fcn.0043cf22
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 0x421c0c
mov ecx, dword [ebp - 0x468]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421c02
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421cfd
push edx
push ecx
call fcn.0043cf22
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 0x421c69
mov ecx, dword [ebp - 0x438]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421c5f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421d02
push edx
push ecx
call fcn.0043cf22
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 0x421cc2
mov ecx, dword [ebp - 0x498]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421cb8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421d07
push edx
push ecx
call fcn.0043cf22
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.0043d1d8
mov esp, ebp
pop ebp
ret 8
call fcn.0046e938
call fcn.0046e938
call fcn.0046e938
call fcn.0046e938
call fcn.0046e938
call fcn.0046e938
call fcn.0046e938
call fcn.0046e938
call fcn.0046e938
int3