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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4faa63
mov eax, dword fs:[0]
push eax
sub esp, 0x364
mov eax, dword [0x55a3d0]
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
lea eax, [ebp - 0x80]
push eax
call fcn.00457cb0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x80]
mov edi, 8
cmp dword [ebp - 0x6c], edi
jae 0x45872c
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x458750
cmp dword [ebp - 0x6c], edi
jb 0x458749
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.004b5907
add esp, 4
mov al, 1
jmp 0x4588d2
mov esi, dword [ebp - 0x80]
cmp dword [ebp - 0x6c], edi
jae 0x45875b
lea esi, [ebp - 0x80]
xor edx, edx
mov dword [ebp - 0x2d4], esi
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
mov eax, esi
mov byte [ebp - 4], 1
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x458780
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.004125c0
mov esi, dword [ebp - 0x1c]
cmp esi, ebx
jne 0x4587b6
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], edi
jb 0x458b98
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x458b90
mov edi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov eax, ecx
cmp edi, 8
jae 0x4587c6
lea eax, [ebp - 0x2c]
cmp word [eax + esi*2 - 2], 0x5c
lea eax, [eax + esi*2 - 2]
je 0x4587ea
push 1
push 0x51175c
lea ecx, [ebp - 0x2c]
call fcn.00411fc0
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp esi, ebx
jbe 0x458820
mov edx, ecx
cmp edi, 8
jae 0x4587fa
lea edx, [ebp - 0x2c]
cmp word [edx + eax*2], 0x2f
jne 0x45881b
cmp edi, 8
jae 0x458809
lea ecx, [ebp - 0x2c]
mov edx, 0x5c
mov word [ecx + eax*2], dx
mov edi, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x2c]
inc eax
cmp eax, esi
jb 0x4587f0
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2c]
xor eax, eax
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
call fcn.004121c0
push 3
push 0x51d640
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00411fc0
push 0x250
lea edx, [ebp - 0x2d0]
push ebx
push edx
call fcn.004b9c30
mov eax, dword [ebp - 0x48]
mov edi, 8
add esp, 0xc
cmp dword [ebp - 0x34], edi
jae 0x458877
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x2d0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4588ee
cmp dword [ebp - 0x34], edi
jb 0x45889d
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b5907
add esp, 4
xor eax, eax
cmp dword [ebp - 0x18], edi
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
jb 0x4588be
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b5907
add esp, 4
cmp dword [ebp - 0x6c], 8
jb 0x4588d0
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.004b5907
add esp, 4
xor al, al
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.004b58f8
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ebx, [ebx]
xor edx, edx
push 0xffffffffffffffff
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], dx
call fcn.004121c0
lea eax, [ebp - 0x2a4]
mov byte [ebp - 4], 3
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x458930
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x2a4]
push ecx
lea ecx, [ebp - 0x64]
call fcn.00411fc0
test byte [ebp - 0x2d0], 0x10
je 0x458996
lea edx, [ebp - 0x2a4]
push 0x51d648
push edx
call fcn.004bc988
add esp, 8
test eax, eax
je 0x4589f9
lea eax, [ebp - 0x2a4]
push 0x51d64c
push eax
call fcn.004bc988
add esp, 8
test eax, eax
je 0x4589f9
lea eax, [ebp - 0x64]
call fcn.0046bda8
jmp 0x4589f9
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x4589a2
lea eax, [ebp - 0x64]
push eax
call ebx
test eax, eax
jne 0x4589f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x4589f9
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x4589c0
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [ebp - 0x50], 8
mov ecx, dword [ebp - 0x64]
jae 0x4589d3
lea ecx, [ebp - 0x64]
and eax, 0xfffffffe
push eax
push ecx
call edi
test eax, eax
je 0x458ae5
cmp dword [ebp - 0x50], 8
mov eax, dword [ebp - 0x64]
jae 0x4589ee
lea eax, [ebp - 0x64]
push eax
call ebx
test eax, eax
je 0x458a8d
mov byte [ebp - 4], 2
cmp dword [ebp - 0x50], 8
jb 0x458a0f
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004b5907
add esp, 4
lea eax, [ebp - 0x2d0]
push eax
xor edx, edx
push esi
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], dx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x458900
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, dword [ebp - 0x2d4]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push ebx
call esi
test eax, eax
jne 0x458b5a
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push ebx
call edi
test eax, eax
je 0x458b2c
push ebx
call esi
test eax, eax
jne 0x458b5a
lea ecx, [ebp - 0x48]
call fcn.00412770
lea ecx, [ebp - 0x2c]
call fcn.00412770
jmp 0x4588be
mov esi, 8
cmp dword [ebp - 0x50], esi
jb 0x458aa3
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.004b5907
add esp, 4
xor ebx, ebx
xor edx, edx
mov edi, 7
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], dx
cmp dword [ebp - 0x34], esi
jb 0x458ac7
mov eax, dword [ebp - 0x48]
push eax
call fcn.004b5907
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x18], esi
jb 0x4588be
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x4588b6
mov esi, 8
cmp dword [ebp - 0x50], esi
jb 0x458afb
mov eax, dword [ebp - 0x64]
push eax
call fcn.004b5907
add esp, 4
xor ebx, ebx
xor ecx, ecx
mov edi, 7
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
cmp dword [ebp - 0x34], esi
jb 0x458b1f
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b5907
add esp, 4
xor eax, eax
cmp dword [ebp - 0x18], esi
mov dword [ebp - 0x34], edi
jmp 0x4588a9
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x458b42
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b5907
add esp, 4
xor eax, eax
cmp dword [ebp - 0x18], esi
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
jmp 0x4588ac
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x458b70
mov edx, dword [ebp - 0x48]
push edx
call fcn.004b5907
add esp, 4
xor eax, eax
mov byte [ebp - 4], al
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x18], esi
jb 0x458b98
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b5907
add esp, 4
lea edx, [ebp - 0x370]
push edx
call fcn.00403200
lea eax, [ebp - 0x370]
push str.NetworkService::DownloadTask::RemoveDownloadFolder:_Successfully_deleted_folder
push eax
mov byte [ebp - 4], 4
call fcn.00404d50
lea ecx, [ebp - 0x80]
push ecx
lea edx, [ebp - 0x370]
push edx
call fcn.0041b8e0
add esp, 0x10
lea esi, [ebp - 0x2c]
lea eax, [ebp - 0x370]
call fcn.00402e30
mov eax, esi
push eax
push 4
mov byte [ebp - 4], 5
call fcn.00423a40
mov esi, 8
add esp, 8
cmp dword [ebp - 0x18], esi
jb 0x458c01
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b5907
add esp, 4
xor edx, edx
lea ecx, [ebp - 0x370]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
mov byte [ebp - 4], dl
call fcn.00401690
cmp dword [ebp - 0x6c], esi
jb 0x458749
mov eax, dword [ebp - 0x80]
push eax
call fcn.004b5907
add esp, 4
mov al, 1
jmp 0x4588d2