Function at 0x6054f30
Capabilities:
Check if file exists
Delete file
Get file attributes
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6106725
mov eax, dword fs:[0]
push eax
sub esp, 0x558
mov eax, dword [0x613b150]
xor eax, esp
mov dword [esp + 0x550], eax
push ebx
push esi
push edi
mov eax, dword [0x613b150]
xor eax, esp
push eax
lea eax, [esp + 0x568]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
mov word [esp + 0x154], ax
lea eax, [esp + 0x156]
push eax
call fcn.060eefa0
add esp, 0xc
lea eax, [esp + 0x14c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x6055926
lea ecx, [esp + 0x14c]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x6054fc0
sub ecx, edx
sar ecx, 1
add ecx, 0xfffffff2
je 0x6055926
lea esi, [esp + 0x14c]
push 0x6132e9c
lea esi, [esi + ecx*2]
push esi
call fcn.060ed919
add esp, 8
test eax, eax
jne 0x6055926
push str.SylinkDropCommand.xml
mov word [esi], ax
lea eax, [esp + 0x150]
push 0x104
push eax
call fcn.060ed2fe
add esp, 0xc
lea eax, [esp + 0x14c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x6055926
xor edi, edi
push edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x605585e
mov dword [esp + 0x6c], edi
lea eax, [esp + 0x6c]
push eax
push 0x6133bac
push 1
push edi
push 0x6133bec
mov dword [esp + 0x584], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x6055073
xor eax, eax
mov dword [esp + 0x6c], eax
jmp 0x605583a
mov eax, 8
mov word [esp + 0x54], ax
lea eax, [esp + 0x14c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x5c], eax
test eax, eax
jne 0x605509d
push 0x8007000e
call fcn.06104e60
mov byte [esp + 0x570], 1
mov ecx, dword [esp + 0x6c]
test ecx, ecx
jne 0x60550b7
push 0x80004003
call fcn.06104e60
lea eax, [esp + 0x54]
push eax
call fcn.06052d40
xor ecx, ecx
cmp cx, ax
lea eax, [esp + 0x54]
push eax
setne bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test bl, bl
je 0x6055836
mov dword [esp + 0x24], 0
mov byte [esp + 0x570], 2
mov ecx, dword [esp + 0x6c]
test ecx, ecx
jne 0x60550fe
push 0x80004003
call fcn.06104e60
lea eax, [esp + 0x68]
push eax
call fcn.06052cc0
push eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x574], 3
call fcn.06055c00
mov byte [esp + 0x570], 2
mov eax, dword [esp + 0x68]
test eax, eax
je 0x6055130
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x6132dd4
lea ecx, [esp + 0x20]
call fcn.06052890
mov ebx, eax
mov byte [esp + 0x570], 4
mov esi, dword [esp + 0x24]
test esi, esi
jne 0x605515a
push 0x80004003
call fcn.06104e60
lea eax, [esp + 0x68]
push eax
mov ecx, esi
call fcn.06052b80
mov ecx, dword [ebx]
test ecx, ecx
je 0x6055170
mov ecx, dword [ecx]
jmp 0x6055172
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
je 0x605517c
mov eax, dword [eax]
jmp 0x605517e
xor eax, eax
push ecx
push eax
call fcn.060ed919
add esp, 8
test eax, eax
lea ecx, [esp + 0x68]
sete bl
call fcn.06052940
lea ecx, [esp + 0x1c]
mov byte [esp + 0x570], 2
call fcn.06052940
test bl, bl
je 0x6055828
mov eax, dword [esi]
lea ecx, [esp + 0x74]
push ecx
push esi
mov dword [esp + 0x7c], 0
call dword [eax + 0x58]
test eax, eax
jns 0x60551d2
push 0x6133bdc
push esi
push eax
call fcn.06104e80
cmp word [esp + 0x74], 0
je 0x6055828
lea eax, [esp + 0x20]
push eax
mov ecx, esi
mov dword [esp + 0x24], 0
call fcn.06052a80
mov byte [esp + 0x570], 5
mov ebx, dword [esp + 0x20]
xor edi, edi
mov dword [esp + 0x74], edi
test ebx, ebx
je 0x60550ad
lea esp, [esp]
mov eax, dword [ebx]
lea ecx, [esp + 0x70]
push ecx
push ebx
mov dword [esp + 0x78], 0
call dword [eax + 0x20]
test eax, eax
jns 0x6055233
push 0x6133bcc
push ebx
push eax
call fcn.06104e80
cmp edi, dword [esp + 0x70]
jge 0x6055812
lea eax, [esp + 0x70]
push eax
mov ecx, ebx
mov dword [esp + 0x74], 0
call fcn.06052c40
mov byte [esp + 0x570], 6
mov esi, dword [esp + 0x70]
test esi, esi
je 0x60557f6
push str.Parameters
lea ecx, [esp + 0x50]
call fcn.06052890
mov edi, eax
lea eax, [esp + 0x3c]
push eax
mov ecx, esi
mov byte [esp + 0x574], 7
call fcn.06052b80
mov ecx, dword [edi]
test ecx, ecx
je 0x6055293
mov ecx, dword [ecx]
jmp 0x6055295
xor ecx, ecx
mov eax, dword [eax]
test eax, eax
je 0x605529f
mov eax, dword [eax]
jmp 0x60552a1
xor eax, eax
push ecx
push eax
call fcn.060ed919
add esp, 8
test eax, eax
lea ecx, [esp + 0x3c]
sete byte [esp + 0x17]
call fcn.06052940
lea ecx, [esp + 0x4c]
mov byte [esp + 0x570], 6
call fcn.06052940
cmp byte [esp + 0x17], 0
je 0x60557f2
lea eax, [esp + 0x44]
push eax
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.06052b00
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x574], 8
call fcn.06055ca0
mov byte [esp + 0x570], 0xa
mov eax, dword [esp + 0x44]
test eax, eax
je 0x6055313
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ebx, dword [esp + 0x30]
test ebx, ebx
je 0x60550ad
mov eax, dword [ebx]
lea ecx, [esp + 0x68]
push ecx
push ebx
call dword [eax + 0x2c]
xor edi, edi
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x68], edi
jle 0x60557e0
lea ebx, [ebx]
lea ecx, [esp + 0x78]
push ecx
mov byte [esp + 0x574], 0xb
mov dword [esp + 0x7c], 0
mov eax, dword [ebx]
push edi
push ebx
call dword [eax + 0x28]
test eax, eax
js 0x60557b7
mov dword [esp + 0x28], 0
mov byte [esp + 0x570], 0xc
mov edi, dword [esp + 0x78]
test edi, edi
je 0x60550ad
push ecx
lea ecx, [esp + 0x2c]
call fcn.060529a0
mov esi, dword [esp + 0x28]
mov eax, dword [edi]
push esi
push edi
call dword [eax + 0x1c]
test eax, eax
js 0x60557aa
mov eax, dword [esp + 0x78]
test eax, eax
je 0x60550ad
mov ecx, dword [eax]
lea edx, [esp + 0x54]
push edx
push eax
call dword [ecx + 0x20]
test eax, eax
js 0x60557aa
mov eax, 8
cmp ax, word [esp + 0x54]
jne 0x60557aa
push str.Silent
lea ecx, [esp + 0x3c]
call fcn.06052890
mov eax, dword [eax]
test eax, eax
je 0x60553e4
mov ecx, dword [eax]
jmp 0x60553e6
xor ecx, ecx
test esi, esi
je 0x60553ee
mov eax, dword [esi]
jmp 0x60553f0
xor eax, eax
push ecx
push eax
call fcn.060ed919
add esp, 8
test eax, eax
lea ecx, [esp + 0x38]
sete byte [esp + 0x17]
call fcn.06052940
cmp byte [esp + 0x17], 0
je 0x6055481
push 0x61339a0
push dword [esp + 0x60]
call fcn.060ed919
add esp, 8
test eax, eax
je 0x6055475
push 0x61339a4
push dword [esp + 0x60]
call fcn.060ed919
add esp, 8
test eax, eax
je 0x6055475
push 0x613350c
push dword [esp + 0x60]
call fcn.060ed919
add esp, 8
test eax, eax
je 0x6055469
push str.false
push dword [esp + 0x60]
call fcn.060ed919
add esp, 8
test eax, eax
jne 0x60557aa
mov byte [0x613ff05], 0
jmp 0x60557a6
mov byte [0x613ff05], 1
jmp 0x60557a6
push str.SmcPassword
lea ecx, [esp + 0x44]
call fcn.06052890
mov eax, dword [eax]
test eax, eax
je 0x6055499
mov ecx, dword [eax]
jmp 0x605549b
xor ecx, ecx
test esi, esi
je 0x60554a3
mov eax, dword [esi]
jmp 0x60554a5
xor eax, eax
push ecx
push eax
call fcn.060ed919
add esp, 8
test eax, eax
lea ecx, [esp + 0x40]
sete byte [esp + 0x17]
call fcn.06052940
cmp byte [esp + 0x17], 0
je 0x60554e5
push dword [esp + 0x5c]
push 0x103
push 0x6140320
call fcn.060ed36a
mov byte [0x613ff08], 1
jmp 0x60557a3
push str.EncrSmcPassword
lea ecx, [esp + 0x4c]
call fcn.06052890
mov eax, dword [eax]
test eax, eax
je 0x60554fd
mov ecx, dword [eax]
jmp 0x60554ff
xor ecx, ecx
test esi, esi
je 0x6055507
mov eax, dword [esi]
jmp 0x6055509
xor eax, eax
push ecx
push eax
call fcn.060ed919
add esp, 8
test eax, eax
lea ecx, [esp + 0x48]
sete byte [esp + 0x17]
call fcn.06052940
cmp byte [esp + 0x17], 0
je 0x605561d
push dword [esp + 0x5c]
push 0x103
push 0x6140320
call fcn.060ed36a
add esp, 0xc
lea eax, [esp + 0xc8]
push 3
push 0x6140320
lea ecx, [esp + 0xcc]
mov dword [esp + 0xcc], eax
call fcn.06051ae0
lea ecx, [esp + 0x7c]
call fcn.06051450
xor esi, esi
mov dword [esp + 0x2c], esi
mov byte [esp + 0x570], 0xf
call fcn.060514d0
test eax, eax
js 0x60555dd
sub esp, 8
lea ecx, [esp + 0x84]
call fcn.06051520
test eax, eax
js 0x60555dd
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0xc8]
lea ecx, [esp + 0x84]
call fcn.06051670
mov esi, dword [esp + 0x2c]
test eax, eax
js 0x60555dd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
push eax
push 0x103
push 0x6140320
call fcn.060ed36a
add esp, 0xc
inc dword [esp + 0x18]
mov byte [0x613ff08], 1
mov byte [esp + 0x570], 0xe
test esi, esi
je 0x60555f0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
lea ecx, [esp + 0x7c]
call fcn.06051490
mov eax, dword [esp + 0xc4]
lea ecx, [esp + 0xc8]
cmp eax, ecx
je 0x60557aa
push eax
call fcn.060ebabe
add esp, 4
jmp 0x60557aa
push str.SylinkFile
lea ecx, [esp + 0x54]
call fcn.06052890
mov eax, dword [eax]
test eax, eax
je 0x6055635
mov ecx, dword [eax]
jmp 0x6055637
xor ecx, ecx
test esi, esi
je 0x605563f
mov eax, dword [esi]
jmp 0x6055641
xor eax, eax
push ecx
push eax
call fcn.060ed919
add esp, 8
test eax, eax
lea ecx, [esp + 0x50]
sete byte [esp + 0x17]
call fcn.06052940
cmp byte [esp + 0x17], 0
je 0x60556e8
push 0x5c
push dword [esp + 0x60]
call fcn.060ede90
add esp, 8
test eax, eax
jne 0x60556c9
push 0x104
push 0x6140118
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x60557aa
mov ecx, 0x6140118
call fcn.060530d0
test al, al
je 0x60557aa
push dword [esp + 0x5c]
push 0x104
push 0x6140118
call fcn.060ed2fe
mov byte [0x613ff06], 1
jmp 0x60557a3
push dword [esp + 0x5c]
push 0x103
push 0x6140118
call fcn.060ed36a
mov byte [0x613ff06], 1
jmp 0x60557a3
push str.StatusFile
lea ecx, [esp + 0x38]
call fcn.06052890
mov eax, dword [eax]
test eax, eax
je 0x6055700
mov ecx, dword [eax]
jmp 0x6055702
xor ecx, ecx
test esi, esi
je 0x605570a
mov eax, dword [esi]
jmp 0x605570c
xor eax, eax
push ecx
push eax
call fcn.060ed919
add esp, 8
test eax, eax
lea ecx, [esp + 0x34]
sete byte [esp + 0x17]
call fcn.06052940
cmp byte [esp + 0x17], 0
je 0x60557aa
push 0x5c
push dword [esp + 0x60]
call fcn.060ede90
add esp, 8
test eax, eax
jne 0x6055790
push 0x104
push 0x613ff10
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x60557aa
mov ecx, 0x613ff10
call fcn.060530d0
test al, al
je 0x60557aa
push dword [esp + 0x5c]
push 0x104
push 0x613ff10
call fcn.060ed2fe
add esp, 0xc
push 0x613ff10
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x60557a6
push dword [esp + 0x5c]
push 0x103
push 0x613ff10
call fcn.060ed36a
add esp, 0xc
inc dword [esp + 0x18]
lea ecx, [esp + 0x28]
call fcn.06052940
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x570], 0xa
mov eax, dword [esp + 0x78]
test eax, eax
je 0x60557cd
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc edi
mov dword [esp + 0x1c], edi
cmp edi, dword [esp + 0x68]
jl 0x6055340
mov esi, dword [esp + 0x70]
mov byte [esp + 0x570], 6
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x74]
mov byte [esp + 0x570], 5
test esi, esi
je 0x6055808
mov eax, dword [esi]
push esi
call dword [eax + 8]
inc edi
mov dword [esp + 0x74], edi
jmp 0x6055210
mov byte [esp + 0x570], 2
mov eax, dword [ebx]
push ebx
call dword [eax + 8]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x18]
mov byte [esp + 0x570], 0
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x570], 0xffffffff
test eax, eax
je 0x605584f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp edi, 4
je 0x6055926
xor eax, eax
push 0x206
push eax
mov word [esp + 0x35c], ax
lea eax, [esp + 0x35e]
push eax
call fcn.060eefa0
add esp, 0xc
lea eax, [esp + 0x354]
push str.File:__
push 0x104
push eax
call fcn.060ed2fe
add esp, 0xc
lea eax, [esp + 0x14c]
push eax
lea eax, [esp + 0x358]
push 0x104
push eax
call fcn.060ed2fe
add esp, 0xc
lea eax, [esp + 0x354]
push str.___exists_but_could_not_be_successfully_decoded_
push 0x104
push eax
call fcn.060ed2fe
add esp, 0xc
cmp byte [0x613ff05], 0
lea eax, [esp + 0x354]
je 0x60558ea
push eax
call fcn.060ed86d
add esp, 4
jmp 0x60558fe
push 0
push 0x6132dd4
push eax
push dword [0x6140938]
call dword [sym.imp.USER32.dll_MessageBoxW]
lea eax, [esp + 0x354]
push eax
push 0x1ff
push 0x613fb00
mov dword [0x613ff00], 0xc
call fcn.060ed36a
add esp, 0xc
xor al, al
jmp 0x6055928
mov al, 1
mov ecx, dword [esp + 0x568]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x550]
xor ecx, esp
call fcn.060eb877
mov esp, ebp
pop ebp
ret