Function at 0x65cd390
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x65d1113
mov eax, dword fs:[0]
push eax
sub esp, 0x550
mov eax, dword [0x65e4e2c]
xor eax, esp
mov dword [esp + 0x548], eax
push ebx
push esi
push edi
mov eax, dword [0x65e4e2c]
xor eax, esp
push eax
lea eax, [esp + 0x560]
mov dword fs:[0], eax
push 0x206
xor edi, edi
lea ecx, [esp + 0x14a]
xor eax, eax
push edi
push ecx
mov word [esp + 0x150], ax
call fcn.065b84a0
add esp, 0xc
push 0x104
lea edx, [esp + 0x148]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x65cdd8b
lea eax, [esp + 0x144]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x65cd420
sub eax, edx
sar eax, 1
add eax, 0xfffffff2
cmp eax, edi
jbe 0x65cdd8b
lea esi, [esp + eax*2 + 0x144]
push 0x65d90c4
push esi
call fcn.065b795e
add esp, 8
test eax, eax
jne 0x65cdd8b
push str.SylinkDropCommand.xml
lea ecx, [esp + 0x148]
push 0x104
push ecx
mov word [esi], ax
call fcn.065b767c
add esp, 0xc
lea edx, [esp + 0x144]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x65cdd8b
push edi
mov dword [esp + 0x18], edi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x65cdcbd
mov dword [esp + 0x20], edi
lea eax, [esp + 0x20]
push eax
push 0x65d9dd8
push 1
push edi
push 0x65d8f94
mov dword [esp + 0x57c], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jge 0x65cd4d0
xor eax, eax
mov dword [esp + 0x20], eax
jmp 0x65cdc95
lea edx, [esp + 0x144]
mov ecx, 8
push edx
mov word [esp + 0x38], cx
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x3c], eax
cmp eax, edi
jne 0x65cd4fa
push 0x8007000e
call fcn.065cb0c0
mov byte [esp + 0x568], 1
mov esi, dword [esp + 0x20]
cmp esi, edi
jne 0x65cd514
push 0x80004003
call fcn.065cb0c0
lea ecx, [esp + 0x34]
call fcn.06572390
xor ecx, ecx
lea edx, [esp + 0x34]
cmp cx, ax
push edx
setne bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test bl, bl
je 0x65cdc91
mov dword [esp + 0x44], edi
mov byte [esp + 0x568], 2
mov esi, dword [esp + 0x20]
cmp esi, edi
jne 0x65cd556
push 0x80004003
call fcn.065cb0c0
lea edi, [esp + 0x24]
call fcn.06572340
lea ebx, [esp + 0x44]
mov byte [esp + 0x568], 3
call fcn.06572430
mov byte [esp + 0x568], 2
mov eax, dword [esp + 0x24]
test eax, eax
je 0x65cd588
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x30]
push eax
mov edi, 0x65d8ffc
call fcn.06571fe0
mov edi, eax
mov byte [esp + 0x568], 4
mov esi, dword [esp + 0x44]
test esi, esi
jne 0x65cd5b3
push 0x80004003
call fcn.065cb0c0
lea ebx, [esp + 0x24]
mov ecx, esi
call fcn.06572240
mov ecx, dword [edi]
test ecx, ecx
je 0x65cd5c8
mov ecx, dword [ecx]
jmp 0x65cd5ca
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
je 0x65cd5d4
mov eax, dword [eax]
jmp 0x65cd5d6
xor eax, eax
push ecx
push eax
call fcn.065b795e
add esp, 8
test eax, eax
lea edi, [esp + 0x24]
sete bl
call fcn.06572080
lea edi, [esp + 0x30]
mov byte [esp + 0x568], 2
call fcn.06572080
test bl, bl
je 0x65cdc7f
mov ecx, dword [esi]
mov eax, dword [ecx + 0x58]
lea edx, [esp + 0x1c]
push edx
push esi
mov dword [esp + 0x24], 0
call eax
test eax, eax
jns 0x65cd62c
push 0x65d9df8
push esi
push eax
call fcn.065cb0e0
cmp word [esp + 0x1c], 0
je 0x65cdc7f
lea edi, [esp + 0x48]
call fcn.065721a0
mov byte [esp + 0x568], 5
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x1c], 0
test ebx, ebx
je 0x65cd50a
lea ecx, [ecx]
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x20]
lea edx, [esp + 0x28]
push edx
push ebx
mov dword [esp + 0x30], 0
call eax
test eax, eax
jns 0x65cd685
push 0x65d9e08
push ebx
push eax
call fcn.065cb0e0
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x28]
jge 0x65cdc6b
lea edi, [esp + 0x24]
mov esi, ebx
call fcn.065722f0
mov byte [esp + 0x568], 6
mov esi, dword [esp + 0x24]
test esi, esi
je 0x65cdc4e
lea edx, [esp + 0x60]
push edx
mov edi, str.Parameters
call fcn.06571fe0
mov edi, eax
lea ebx, [esp + 0x54]
mov ecx, esi
mov byte [esp + 0x568], 7
call fcn.06572240
mov ecx, dword [edi]
test ecx, ecx
je 0x65cd6e0
mov ecx, dword [ecx]
jmp 0x65cd6e2
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
je 0x65cd6ec
mov eax, dword [eax]
jmp 0x65cd6ee
xor eax, eax
push ecx
push eax
call fcn.065b795e
add esp, 8
test eax, eax
lea edi, [esp + 0x54]
sete bl
call fcn.06572080
lea edi, [esp + 0x60]
mov byte [esp + 0x568], 6
call fcn.06572080
test bl, bl
je 0x65cdc4a
lea edi, [esp + 0x5c]
call fcn.065721f0
lea ebx, [esp + 0x4c]
mov byte [esp + 0x568], 8
call fcn.065724c0
mov byte [esp + 0x568], 0xa
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x65cd751
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov esi, dword [esp + 0x4c]
xor ebx, ebx
cmp esi, ebx
je 0x65cd50a
mov eax, dword [esi]
mov edx, dword [eax + 0x2c]
lea ecx, [esp + 0x30]
push ecx
push esi
call edx
xor edi, edi
mov dword [esp + 0x50], edi
cmp dword [esp + 0x30], ebx
jle 0x65cdc36
lea esp, [esp]
mov byte [esp + 0x568], 0xb
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], ebx
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
push edi
push esi
call edx
test eax, eax
js 0x65cdc0f
mov dword [esp + 0x18], ebx
mov byte [esp + 0x568], 0xc
mov esi, dword [esp + 0x2c]
cmp esi, ebx
je 0x65cd50a
lea edi, [esp + 0x18]
call fcn.065720d0
mov ebx, dword [esp + 0x18]
mov eax, dword [esi]
mov ecx, dword [eax + 0x1c]
push ebx
push esi
call ecx
test eax, eax
js 0x65cdbfc
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x65cd50a
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
lea ecx, [esp + 0x34]
push ecx
push eax
call edx
test eax, eax
js 0x65cdbfc
mov eax, 8
cmp ax, word [esp + 0x34]
jne 0x65cdbfc
lea ecx, [esp + 0x68]
push ecx
mov edi, str.Silent
call fcn.06571fe0
mov eax, dword [eax]
test eax, eax
je 0x65cd822
mov eax, dword [eax]
jmp 0x65cd824
xor eax, eax
test ebx, ebx
je 0x65cd82c
mov ecx, dword [ebx]
jmp 0x65cd82e
xor ecx, ecx
push eax
push ecx
call fcn.065b795e
add esp, 8
test eax, eax
lea edi, [esp + 0x68]
sete bl
call fcn.06572080
test bl, bl
je 0x65cd8c5
mov edx, dword [esp + 0x3c]
push 0x65d9c68
push edx
call fcn.065b795e
add esp, 8
test eax, eax
je 0x65cd8b2
mov eax, dword [esp + 0x3c]
push 0x65d9c6c
push eax
call fcn.065b795e
add esp, 8
test eax, eax
je 0x65cd8b2
mov ecx, dword [esp + 0x3c]
push 0x65d97d4
push ecx
call fcn.065b795e
add esp, 8
test eax, eax
je 0x65cd8a6
mov edx, dword [esp + 0x3c]
push 0x65d9c78
push edx
call fcn.065b795e
add esp, 8
test eax, eax
jne 0x65cdbfc
mov byte [0x65e7f57], 0
jmp 0x65cdbf8
mov eax, 1
add dword [esp + 0x14], eax
mov byte [0x65e7f57], al
jmp 0x65cdbfc
lea eax, [esp + 0x64]
push eax
mov edi, str.SmcPassword
call fcn.06571fe0
mov eax, dword [eax]
test eax, eax
je 0x65cd8de
mov eax, dword [eax]
jmp 0x65cd8e0
xor eax, eax
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x65cd8ec
mov ecx, dword [ecx]
jmp 0x65cd8ee
xor ecx, ecx
push eax
push ecx
call fcn.065b795e
add esp, 8
test eax, eax
lea edi, [esp + 0x64]
sete bl
call fcn.06572080
test bl, bl
je 0x65cd934
mov ecx, dword [esp + 0x3c]
push ecx
push 0x103
push 0x65e8368
call fcn.065b76f1
mov eax, 1
add esp, 0xc
add dword [esp + 0x14], eax
mov byte [0x65e7f54], al
jmp 0x65cdbfc
lea edx, [esp + 0x70]
push edx
mov edi, str.EncrSmcPassword
call fcn.06571fe0
mov eax, dword [eax]
test eax, eax
je 0x65cd94d
mov eax, dword [eax]
jmp 0x65cd94f
xor eax, eax
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x65cd95b
mov ecx, dword [ecx]
jmp 0x65cd95d
xor ecx, ecx
push eax
push ecx
call fcn.065b795e
add esp, 8
test eax, eax
lea edi, [esp + 0x70]
sete bl
call fcn.06572080
test bl, bl
je 0x65cda69
mov eax, dword [esp + 0x3c]
push eax
push 0x103
push 0x65e8368
call fcn.065b76f1
add esp, 0xc
lea ecx, [esp + 0xc0]
push 3
mov dword [esp + 0xc0], ecx
push 0x65e8368
lea ecx, [esp + 0xc4]
call fcn.06571390
lea eax, [esp + 0x74]
call fcn.065cef40
xor edi, edi
mov dword [esp + 0x28], edi
mov esi, eax
mov byte [esp + 0x568], 0xf
call fcn.065ceeb0
test eax, eax
js 0x65cda27
mov ecx, esi
call fcn.065cef90
test eax, eax
js 0x65cda27
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0xc0]
mov ecx, esi
call fcn.065cf0a0
mov edi, dword [esp + 0x28]
test eax, eax
js 0x65cda27
mov eax, dword [edi]
mov edx, dword [eax + 0x28]
mov ecx, edi
call edx
push eax
push 0x103
push 0x65e8368
call fcn.065b76f1
mov eax, 1
add esp, 0xc
add dword [esp + 0x14], eax
mov byte [0x65e7f54], al
mov byte [esp + 0x568], 0xe
test edi, edi
je 0x65cda3c
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov ecx, edi
call edx
lea esi, [esp + 0x74]
call fcn.065cef00
mov eax, dword [esp + 0xbc]
lea ecx, [esp + 0xc0]
cmp eax, ecx
je 0x65cdbfc
push eax
call fcn.065b6b02
add esp, 4
jmp 0x65cdbfc
lea edx, [esp + 0x6c]
push edx
mov edi, str.SylinkFile
call fcn.06571fe0
mov eax, dword [eax]
test eax, eax
je 0x65cda82
mov eax, dword [eax]
jmp 0x65cda84
xor eax, eax
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x65cda90
mov ecx, dword [ecx]
jmp 0x65cda92
xor ecx, ecx
push eax
push ecx
call fcn.065b795e
add esp, 8
test eax, eax
lea edi, [esp + 0x6c]
sete bl
call fcn.06572080
test bl, bl
je 0x65cdb37
mov eax, dword [esp + 0x3c]
push 0x5c
push eax
call fcn.065b7df6
add esp, 8
test eax, eax
jne 0x65cdb0d
push 0x104
push 0x65e8570
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x65cdbfc
mov eax, 0x65e8570
call fcn.065cc160
test al, al
je 0x65cdbfc
mov ecx, dword [esp + 0x3c]
push ecx
push 0x104
push 0x65e8570
call fcn.065b767c
jmp 0x65cdb21
mov edx, dword [esp + 0x3c]
push edx
push 0x103
push 0x65e8570
call fcn.065b76f1
mov eax, 1
add esp, 0xc
add dword [esp + 0x14], eax
mov byte [0x65e7f56], al
jmp 0x65cdbfc
lea eax, [esp + 0x58]
push eax
mov edi, str.StatusFile
call fcn.06571fe0
mov eax, dword [eax]
test eax, eax
je 0x65cdb50
mov eax, dword [eax]
jmp 0x65cdb52
xor eax, eax
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x65cdb5e
mov ecx, dword [ecx]
jmp 0x65cdb60
xor ecx, ecx
push eax
push ecx
call fcn.065b795e
add esp, 8
test eax, eax
lea edi, [esp + 0x58]
sete bl
call fcn.06572080
test bl, bl
je 0x65cdbfc
mov ecx, dword [esp + 0x3c]
push 0x5c
push ecx
call fcn.065b7df6
add esp, 8
test eax, eax
jne 0x65cdbe1
push 0x104
push 0x65e8778
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x65cdbfc
mov eax, 0x65e8778
call fcn.065cc160
test al, al
je 0x65cdbfc
mov edx, dword [esp + 0x3c]
push edx
push 0x104
push 0x65e8778
call fcn.065b767c
add esp, 0xc
push 0x65e8778
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x65cdbf8
mov eax, dword [esp + 0x3c]
push eax
push 0x103
push 0x65e8778
call fcn.065b76f1
add esp, 0xc
inc dword [esp + 0x14]
lea edi, [esp + 0x18]
call fcn.06572080
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
xor ebx, ebx
mov byte [esp + 0x568], 0xa
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x65cdc27
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
inc edi
mov dword [esp + 0x50], edi
cmp edi, dword [esp + 0x30]
jl 0x65cd780
mov byte [esp + 0x568], 6
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov esi, dword [esp + 0x24]
mov ebx, dword [esp + 0x48]
mov byte [esp + 0x568], 5
test esi, esi
je 0x65cdc62
mov edx, dword [esi]
mov eax, dword [edx + 8]
push esi
call eax
inc dword [esp + 0x1c]
jmp 0x65cd660
mov byte [esp + 0x568], 2
mov ecx, dword [ebx]
mov edx, dword [ecx + 8]
push ebx
call edx
mov esi, dword [esp + 0x44]
mov byte [esp + 0x568], 0
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
xor edi, edi
mov eax, dword [esp + 0x20]
mov dword [esp + 0x568], 0xffffffff
cmp eax, edi
je 0x65cdcac
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x14], 4
je 0x65cdd8b
push 0x206
lea edx, [esp + 0x352]
xor ecx, ecx
push edi
push edx
mov word [esp + 0x358], cx
call fcn.065b84a0
add esp, 0xc
push str.File:__
lea eax, [esp + 0x350]
push 0x104
push eax
call fcn.065b767c
add esp, 0xc
lea ecx, [esp + 0x144]
push ecx
lea edx, [esp + 0x350]
push 0x104
push edx
call fcn.065b767c
add esp, 0xc
push str.___exists_but_could_not_be_successfully_decoded_
lea eax, [esp + 0x350]
push 0x104
push eax
call fcn.065b767c
add esp, 0xc
cmp byte [0x65e7f57], 0
je 0x65cdd49
lea ecx, [esp + 0x34c]
push ecx
call fcn.065b77b4
add esp, 4
jmp 0x65cdd63
mov eax, dword [0x65e7f50]
push edi
push 0x65d8ffc
lea edx, [esp + 0x354]
push edx
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x34c]
push ecx
push 0x1ff
push 0x65e7b48
mov dword [0x65e8984], 0xc
call fcn.065b76f1
add esp, 0xc
xor al, al
jmp 0x65cdd8d
mov al, 1
mov ecx, dword [esp + 0x560]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x548]
xor ecx, esp
call fcn.065b6645
mov esp, ebp
pop ebp
ret