Function at 0x442870
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5599de
mov eax, dword fs:[0]
push eax
sub esp, 0x858
mov eax, dword [0x5d7b20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0x848], eax
mov eax, 7
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x84c], edi
mov dword [ebp - 0x860], ebx
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x244], esi
mov word [ebp - 0x254], cx
xor edx, edx
mov dword [ebp - 4], esi
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x260], esi
mov word [ebp - 0x270], dx
mov dword [ebp - 0x844], esi
mov dword [ebp - 0x840], esi
mov dword [ebp - 0x83c], esi
mov dword [ebp - 0x85c], esi
mov dword [ebp - 0x858], esi
mov dword [ebp - 0x854], esi
push str.CShortcut::DeleteShortcut__________________________IN._n
push 5
mov byte [ebp - 4], 3
mov dword [ebp - 0x830], 1
call fcn.00403ab0
add esp, 8
cmp dword [ebp + 0x10], esi
jne 0x442952
cmp ebx, esi
jne 0x442952
cmp dword [ebp - 0x848], esi
jne 0x442952
push str.CShortcut::DeleteShortcut_pName_and_pTarget_are_NULL_on_not_DeadLinkOnly._n
push 5
call fcn.00403ab0
add esp, 8
jmp 0x4429f2
cmp dword [edi + 0x58], 1
jne 0x442bfb
lea ecx, [ebp - 0x820]
call fcn.004489d0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x81c], esi
je 0x442aba
lea ecx, [ebp - 0x298]
call fcn.0043f760
push str..DEFAULTSOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocStringLen
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 5
call fcn.0043f030
test eax, eax
jne 0x4429a6
push str.CShortcut::DeleteShortcut_Open_registry_failed._n
jmp 0x4429ca
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
jb 0x4429b1
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x298]
call fcn.0043f460
cmp eax, esi
jne 0x442a6a
push str.CShortcut::DeleteShortcut_Open_Get_registry_value_failed._n
push 2
call fcn.00403ab0
add esp, 8
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 4
call fcn.0043f790
lea ecx, [ebp - 0x820]
mov byte [ebp - 4], 3
call fcn.004488b0
push str.CShortcut::DeleteShortcut__________________________ERROR_OUT._n
push 5
call fcn.00403ab0
add esp, 8
lea ecx, [ebp - 0x85c]
call fcn.00406a50
lea ecx, [ebp - 0x844]
call fcn.00406a50
mov edi, 8
cmp dword [ebp - 0x25c], edi
jb 0x442a33
mov eax, dword [ebp - 0x270]
push eax
call fcn.00449b7c
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x25c], 7
mov dword [ebp - 0x260], esi
mov word [ebp - 0x270], cx
cmp dword [ebp - 0x240], edi
jb 0x442a63
mov edx, dword [ebp - 0x254]
push edx
call fcn.00449b7c
add esp, 4
xor eax, eax
jmp 0x4432d3
push eax
lea ecx, [ebp - 0x238]
call fcn.0040c650
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x844]
mov byte [ebp - 4], 6
call fcn.00423c70
lea ecx, [ebp - 0x238]
call fcn.00418450
lea ecx, [ebp - 0x298]
mov byte [ebp - 4], 4
call fcn.0043f790
lea ecx, [ebp - 0x820]
mov byte [ebp - 4], 3
call fcn.004488b0
jmp 0x442c1a
push str.Shell32.dll
mov edi, 0x17
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
push str.CShortcut::DeleteShortcut_CShortcut::user_all._n
push 5
mov dword [ebp - 0x828], ebx
call fcn.00403ab0
add esp, 8
push str.SHGetSpecialFolderPathW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
cmp ebx, esi
je 0x442bca
mov esi, dword [ebp - 0x84c]
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x442b0a
mov eax, dword [esi]
jmp 0x442b0c
mov eax, esi
push str.Desktop
push eax
call fcn.0053e2bf
add esp, 8
test eax, eax
jne 0x442b23
lea edi, [eax + 0x19]
jmp 0x442b83
cmp dword [esi + 0x14], 8
jb 0x442b2d
mov eax, dword [esi]
jmp 0x442b2f
mov eax, esi
push str.Programs
push eax
call fcn.0053e2bf
add esp, 8
test eax, eax
je 0x442b83
cmp dword [esi + 0x14], 8
jb 0x442b4b
mov eax, dword [esi]
jmp 0x442b4d
mov eax, esi
push str.Start_Menu
push eax
call fcn.0053e2bf
add esp, 8
test eax, eax
jne 0x442b64
lea edi, [eax + 0x16]
jmp 0x442b83
cmp dword [esi + 0x14], 8
jb 0x442b6c
mov esi, dword [esi]
push str.Startup
push esi
call fcn.0053e2bf
add esp, 8
test eax, eax
jne 0x442b83
mov edi, 0x18
push 0
push edi
lea ecx, [ebp - 0x21c]
push ecx
push 0
call ebx
test eax, eax
je 0x442bd9
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x238]
call fcn.0040c650
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x844]
mov byte [ebp - 4], 7
call fcn.00423c70
lea ecx, [ebp - 0x238]
call fcn.00418450
jmp 0x442bd9
push str.CShortcut::DeleteShortcut_cannot_get_SHGetSpecialFolderPath_pointer._n
push 5
call fcn.00403ab0
add esp, 8
mov eax, dword [ebp - 0x828]
test eax, eax
je 0x442bea
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x820]
mov byte [ebp - 4], 3
call fcn.004488b0
jmp 0x442c1a
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
jb 0x442c06
mov eax, dword [eax]
lea ecx, [ebp - 0x844]
push ecx
push eax
push 0x575400
mov ecx, edi
call fcn.00441ae0
mov edx, dword [ebp - 0x844]
mov dword [ebp - 0x828], edx
cmp edx, dword [ebp - 0x840]
je 0x4430ec
cmp dword [edx + 0x14], 8
jb 0x442c3a
mov edx, dword [edx]
mov eax, edx
lea esi, [eax + 2]
xor ebx, ebx
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x442c41
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x254]
call fcn.004021b0
push 1
push 0x56825c
lea ecx, [ebp - 0x254]
call fcn.00402090
mov esi, dword [ebp - 0x84c]
cmp dword [esi + 0x30], ebx
je 0x442d4f
lea ecx, [ebp - 0x234]
call fcn.004479b0
cmp dword [esi + 0x34], 8
lea eax, [esi + 0x20]
mov byte [ebp - 4], 8
jb 0x442c98
mov eax, dword [eax]
push 0x5c
push eax
lea ecx, [ebp - 0x234]
call fcn.00447da0
lea ecx, [ebp - 0x234]
xor edi, edi
call fcn.00445fe0
test eax, eax
je 0x442d40
jmp 0x442cc0
push edi
lea ecx, [ebp - 0x234]
call fcn.00446210
cmp eax, ebx
je 0x442d30
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x442cd5
sub ecx, esi
sar ecx, 1
je 0x442d30
mov ecx, eax
lea esi, [ecx + 2]
jmp 0x442cf0
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x442cf0
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x254]
call fcn.00402090
lea edx, [ebp - 0x254]
push edx
lea ecx, [ebp - 0x85c]
call fcn.00423c70
push 1
push 0x56825c
lea ecx, [ebp - 0x254]
call fcn.00402090
lea ecx, [ebp - 0x234]
inc edi
call fcn.00445fe0
cmp edi, eax
jb 0x442cc0
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 3
call fcn.004479c0
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x254]
push eax
lea ecx, [ebp - 0x270]
call fcn.00401f90
push 5
push str..lnk
lea ecx, [ebp - 0x254]
call fcn.00402090
mov eax, dword [ebp - 0x254]
mov esi, 8
cmp dword [ebp - 0x240], esi
jae 0x442d8f
lea eax, [ebp - 0x254]
push eax
push str.CShortcut::DeleteShortcut_ShortCut_Folder___1_s__n
push 4
call fcn.00403ab0
mov eax, dword [ebp - 0x254]
add esp, 0xc
cmp dword [ebp - 0x240], esi
jae 0x442db3
lea eax, [ebp - 0x254]
lea ecx, [ebp - 0x56c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x834], eax
cmp eax, 0xffffffff
jne 0x442de0
push str.CShortcut::DeleteShortcut______Not_found._n
push 4
call fcn.00403ab0
add esp, 8
jmp 0x4430d1
xor edx, edx
mov dword [ebp - 0x824], ebx
mov dword [ebp - 0x82c], ebx
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], dx
mov edi, dword [ebp - 0x860]
mov esi, dword [ebp - 0x848]
mov byte [ebp - 4], 9
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x238]
call fcn.00401f90
lea eax, [ebp - 0x540]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x442e33
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x540]
push ecx
lea ecx, [ebp - 0x238]
call fcn.00402090
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x442e6a
lea eax, [ebp - 0x238]
push eax
push str.CShortcut::DeleteShortcut_FindFilePath___1_s__n
push 4
call fcn.00403ab0
add esp, 0xc
cmp edi, ebx
je 0x442ebc
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x442e83
sub eax, edx
sar eax, 1
je 0x442ebc
lea edx, [ebp - 0x540]
push edi
push edx
call fcn.0053e2bf
add esp, 8
test eax, eax
je 0x442ebc
push str.CShortcut::DeleteShortcut_Specified_name_is_not_matched._n
push 5
call fcn.00403ab0
add esp, 8
jmp 0x44308c
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x824]
push eax
push 0x5b3a5c
push 1
push ebx
push 0x5b3d8c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x443056
mov eax, dword [ebp - 0x824]
mov ecx, dword [eax]
lea edx, [ebp - 0x82c]
push edx
push 0x5b3d3c
push eax
mov eax, dword [ecx]
call eax
cmp eax, ebx
jl 0x443056
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x442f1b
lea eax, [ebp - 0x238]
lea ecx, [ebp - 0x318]
push 3
mov dword [ebp - 0x31c], ecx
push eax
lea ecx, [ebp - 0x31c]
call fcn.0040b3a0
mov eax, dword [ebp - 0x31c]
push 0x105
lea edx, [ebp - 0x778]
push edx
push 0xffffffffffffffff
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x31c]
lea ecx, [ebp - 0x318]
cmp eax, ecx
je 0x442f6c
push eax
call fcn.0053f854
add esp, 4
mov eax, dword [ebp - 0x82c]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ebx
lea ecx, [ebp - 0x778]
push ecx
push eax
call edx
cmp eax, ebx
jl 0x443056
lea eax, [ebp - 0x540]
push eax
push str.CShortcut::DeleteShortcut__1_s__Loading._n
push 4
call fcn.00403ab0
mov eax, dword [ebp - 0x824]
mov ecx, dword [eax]
add esp, 0xc
push 2
push ebx
push 0x105
lea edx, [ebp - 0x21c]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
lea ecx, [ebp - 0x21c]
push ecx
push str.CShortcut::DeleteShortcut_The_shell_link_object_is__1_s_._n
push 4
call fcn.00403ab0
add esp, 0xc
cmp esi, ebx
je 0x44301b
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x442fe0
sub eax, edx
sar eax, 1
je 0x44301b
lea edx, [ebp - 0x21c]
push esi
push edx
call fcn.0053e2bf
add esp, 8
test eax, eax
jne 0x443056
lea eax, [ebp - 0x21c]
push eax
push str.CShortcut::DeleteShortcut_The_target___1_s___is_matched._n
push 4
call fcn.00403ab0
add esp, 0xc
cmp dword [ebp + 0x10], ebx
je 0x443119
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x443119
lea edx, [ebp - 0x540]
push edx
push str.CShortcut::DeleteShortcut__1_s__find_the_target_of_a_Shell_link._n
push 4
call fcn.00403ab0
add esp, 0xc
mov dword [ebp - 0x830], ebx
mov eax, dword [ebp - 0x824]
cmp eax, ebx
je 0x44306e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x824], ebx
mov eax, dword [ebp - 0x82c]
cmp eax, ebx
je 0x443086
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 0x82c], ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0x834]
lea eax, [ebp - 0x56c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x442e15
mov edx, dword [ebp - 0x834]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x224], 8
mov byte [ebp - 4], 3
jb 0x4430d1
mov eax, dword [ebp - 0x238]
push eax
call fcn.00449b7c
add esp, 4
mov edx, dword [ebp - 0x828]
add edx, 0x1c
mov dword [ebp - 0x828], edx
cmp edx, dword [ebp - 0x840]
jne 0x442c32
mov edi, dword [ebp - 0x858]
mov ebx, dword [ebp - 0x85c]
cmp edi, ebx
je 0x44320e
lea esi, [edi - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, 8
mov edi, edi
cmp dword [esi + 0x14], ebx
jb 0x443179
mov eax, dword [esi]
jmp 0x44317b
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x44312e
lea eax, [ebp - 0x238]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x44314f
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x443050
lea eax, [ebp - 0x540]
push eax
push str.CShortcut::DeleteShortcut__1_s__is_deleted._n
push 4
call fcn.00403ab0
add esp, 0xc
jmp 0x443056
mov eax, esi
push eax
call edi
cmp eax, 0xffffffff
je 0x4431f0
cmp dword [esi + 0x14], ebx
jb 0x44318c
mov eax, dword [esi]
jmp 0x44318e
mov eax, esi
push eax
call edi
test al, 0x10
je 0x4431f0
cmp dword [esi + 0x14], ebx
jb 0x44319e
mov eax, dword [esi]
jmp 0x4431a0
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4431c8
cmp dword [esi + 0x14], ebx
jb 0x4431b4
mov eax, dword [esi]
jmp 0x4431b6
mov eax, esi
push eax
push str.CShortcut::DeleteShortcut__1_s__empty._removed._n
push 4
call fcn.00403ab0
add esp, 0xc
jmp 0x4431f0
cmp dword [esi + 0x14], ebx
jb 0x4431d1
mov edi, dword [esi]
jmp 0x4431d3
mov edi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.CShortcut::DeleteShortcut__1_s__cannot_be_deleted.__0x_2_lx___n
push 2
call fcn.00403ab0
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x10
sub esi, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, dword [ebp - 0x85c]
jne 0x443110
mov edi, dword [ebp - 0x858]
mov ebx, dword [ebp - 0x85c]
push str.CShortcut::DeleteShortcut__________________________OUT._n
push 5
call fcn.00403ab0
add esp, 8
test ebx, ebx
je 0x443247
mov esi, ebx
cmp ebx, edi
je 0x44323e
lea edx, [ebp - 0x850]
push esi
push edx
call fcn.00405d20
add esi, 0x1c
add esp, 8
cmp esi, edi
jne 0x443227
push ebx
call fcn.00449b7c
add esp, 4
mov ebx, dword [ebp - 0x844]
test ebx, ebx
je 0x443280
mov edi, dword [ebp - 0x840]
mov esi, ebx
cmp ebx, edi
je 0x443277
lea ecx, [ecx]
lea eax, [ebp - 0x838]
push esi
push eax
call fcn.00405d20
add esi, 0x1c
add esp, 8
cmp esi, edi
jne 0x443260
push ebx
call fcn.00449b7c
add esp, 4
cmp dword [ebp - 0x25c], 8
jb 0x443298
mov ecx, dword [ebp - 0x270]
push ecx
call fcn.00449b7c
add esp, 4
xor edx, edx
cmp dword [ebp - 0x240], 8
mov dword [ebp - 0x25c], 7
mov dword [ebp - 0x260], 0
mov word [ebp - 0x270], dx
jb 0x4432cd
mov eax, dword [ebp - 0x254]
push eax
call fcn.00449b7c
add esp, 4
mov eax, dword [ebp - 0x830]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053e1ad
mov esp, ebp
pop ebp
ret 0xc