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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51bc70
mov eax, dword fs:[0]
push eax
sub esp, 0x298
mov eax, dword [0x580b30]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push esi
push edi
mov eax, dword [0x580b30]
xor eax, esp
push eax
lea eax, [esp + 0x2a8]
mov dword fs:[0], eax
lea eax, [esp + 0x20c]
push eax
mov esi, ecx
call fcn.004588f0
xor edi, edi
mov dword [esp + 0x2b0], edi
mov eax, dword [esp + 0x20c]
mov ebx, 8
cmp dword [esp + 0x220], ebx
jae 0x45ab64
lea eax, [esp + 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45af71
mov eax, dword [esp + 0x20c]
cmp dword [esp + 0x220], ebx
jae 0x45ab8b
lea eax, [esp + 0x20c]
lea ecx, [esp + 0x27c]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
xor ebx, ebx
test eax, eax
je 0x45abb5
mov edi, dword [esp + 0x29c]
mov ecx, dword [esp + 0x298]
xor eax, eax
add edi, eax
adc ebx, ecx
cmp edi, dword [esi + 0xe8]
jne 0x45abd2
cmp ebx, dword [esi + 0xec]
jne 0x45abd2
cmp dword [esp + 0x220], 8
jmp 0x45af90
lea eax, [esp + 0xbc]
push eax
call fcn.00402bd0
push str._bytes._Deleting_corrupt_file.
push ecx
push ebx
push edi
push str._bytes._Actual_size:
push ecx
mov byte [esp + 0x2c8], 1
mov ecx, dword [esi + 0xec]
mov edx, dword [esi + 0xe8]
push ecx
push edx
push str.Expected_size_of_file_on_disk:
push ecx
lea eax, [esp + 0xf4]
push str.NetworkService::DownloadTask::PrepareDownloadPath
push eax
call fcn.004050c0
add esp, 0xc
push eax
call fcn.00413190
add esp, 8
push eax
call fcn.004444f0
add esp, 4
push eax
call fcn.00413190
add esp, 8
push eax
call fcn.004444f0
add esp, 4
push eax
call fcn.00413190
add esp, 8
lea ecx, [esp + 0x14]
push ecx
call fcn.00402bd0
mov ebx, 2
lea ecx, [esp + 0x228]
lea eax, [esp + 0xbc]
mov byte [esp + 0x2b0], bl
call fcn.00402c70
push eax
lea edx, [esp + 0x28]
push edx
mov byte [esp + 0x2b8], 3
call fcn.00413550
mov edi, 8
add esp, 8
mov byte [esp + 0x2b0], bl
cmp dword [esp + 0x23c], edi
jb 0x45acaf
mov eax, dword [esp + 0x228]
push eax
call fcn.00469e1a
add esp, 4
lea ecx, [esp + 0x228]
lea eax, [esp + 0x14]
call fcn.00402c70
push eax
push 1
mov byte [esp + 0x2b8], 4
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [esp + 0x23c], edi
jb 0x45acef
mov ecx, dword [esp + 0x228]
push ecx
call fcn.00469e1a
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x2b0], 1
call fcn.00401820
mov eax, dword [esp + 0x20c]
cmp dword [esp + 0x220], edi
jae 0x45ad17
lea eax, [esp + 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45af58
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x45af58
lea edx, [esp + 0x228]
push edx
push esi
call fcn.0044b8d0
mov esi, eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x2b4], 6
call fcn.00405d70
lea ecx, [esp + 0x14]
push str.NetworkService::DownloadTask::PrepareDownloadPath
mov ebx, 7
push ecx
mov byte [esp + 0x2b8], bl
call fcn.004050c0
lea edx, [esp + 0x1c]
push 0x53e254
push edx
call fcn.004050c0
lea eax, [esp + 0x24]
push esi
push eax
call fcn.00413550
lea ecx, [esp + 0x2c]
push str.:_Cannot_remove_unmatched_partial_download_file
push ecx
call fcn.004050c0
lea edx, [esp + 0x22c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00413550
add esp, 0x28
lea esi, [esp + 0x260]
lea eax, [esp + 0x14]
call fcn.0041bd50
push 0xffffffffffffffff
mov byte [esp + 0x2b4], 8
xor esi, esi
xor ecx, ecx
push esi
lea edx, [esp + 0x268]
mov word [esp + 0x24c], cx
push edx
lea ecx, [esp + 0x250]
mov dword [esp + 0x264], ebx
mov dword [esp + 0x260], esi
call fcn.0040a8b0
cmp dword [esp + 0x274], edi
jb 0x45ae11
mov eax, dword [esp + 0x260]
push eax
call fcn.00469e1a
add esp, 4
xor ecx, ecx
mov dword [esp + 0x274], ebx
mov dword [esp + 0x270], esi
mov word [esp + 0x260], cx
lea ecx, [esp + 0x14]
mov byte [esp + 0x2b0], 0xb
call fcn.00419d40
mov byte [esp + 0x2b0], 0xc
cmp dword [esp + 0x23c], edi
jb 0x45ae5b
mov edx, dword [esp + 0x228]
push edx
call fcn.00469e1a
add esp, 4
lea ecx, [esp + 0x164]
xor eax, eax
push ecx
mov dword [esp + 0x240], ebx
mov dword [esp + 0x23c], esi
mov word [esp + 0x22c], ax
call fcn.00402bd0
lea edx, [esp + 0x244]
push edx
lea eax, [esp + 0x178]
push eax
mov byte [esp + 0x2b8], 0xd
call fcn.00413550
add esp, 8
lea ecx, [esp + 0x27c]
lea eax, [esp + 0x164]
call fcn.00402c70
push eax
push 1
mov byte [esp + 0x2b8], 0xe
call fcn.00409e90
mov ecx, eax
call fcn.004688b0
cmp dword [esp + 0x290], edi
jb 0x45aee3
mov ecx, dword [esp + 0x27c]
push ecx
call fcn.00469e1a
add esp, 4
lea ecx, [esp + 0x164]
mov byte [esp + 0x2b0], 0xc
call fcn.00401820
cmp dword [esp + 0x258], edi
jb 0x45af10
mov edx, dword [esp + 0x244]
push edx
call fcn.00469e1a
add esp, 4
xor eax, eax
lea ecx, [esp + 0xbc]
mov dword [esp + 0x258], ebx
mov dword [esp + 0x254], esi
mov word [esp + 0x244], ax
mov byte [esp + 0x2b0], al
call fcn.00401820
cmp dword [esp + 0x220], edi
jb 0x45af54
mov ecx, dword [esp + 0x20c]
push ecx
call fcn.00469e1a
add esp, 4
xor al, al
jmp 0x45afa4
lea ecx, [esp + 0xbc]
mov byte [esp + 0x2b0], 0
call fcn.00401820
xor edi, edi
lea ebx, [edi + 8]
cmp dword [esp + 0x220], ebx
mov dword [esi + 0xe8], edi
mov dword [esi + 0xec], edi
mov dword [esi + 0xf0], edi
mov dword [esi + 0xf4], edi
jb 0x45afa2
mov edx, dword [esp + 0x20c]
push edx
call fcn.00469e1a
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x2a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.004d31b7
mov esp, ebp
pop ebp
ret