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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4fb914
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x55a3d0]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push esi
push edi
mov eax, dword [0x55a3d0]
xor eax, esp
push eax
lea eax, [esp + 0x1d8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x158]
push eax
mov ecx, ebx
call fcn.00457db0
mov dword [esp + 0x1e0], 0
mov eax, dword [esp + 0x158]
mov esi, 8
cmp dword [esp + 0x16c], esi
jae 0x45a109
lea eax, [esp + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45a45e
mov eax, dword [esp + 0x158]
cmp dword [esp + 0x16c], esi
jae 0x45a130
lea eax, [esp + 0x158]
lea edx, [esp + 0x1ac]
push edx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x45a45e
mov esi, dword [esp + 0x1cc]
xor eax, eax
xor edi, edi
add esi, eax
adc edi, dword [esp + 0x1c8]
mov eax, esi
or eax, edi
je 0x45a459
cmp esi, dword [ebx + 0xd8]
jne 0x45a17b
cmp edi, dword [ebx + 0xdc]
je 0x45a459
lea ecx, [esp + 0xac]
push ecx
call fcn.004026c0
push str._bytes._Deleting_corrupt_file.
push ecx
push edi
push esi
push str._bytes._Actual_size:
push ecx
mov byte [esp + 0x1f8], 1
mov edx, dword [ebx + 0xdc]
mov eax, dword [ebx + 0xd8]
push edx
push eax
push str.Expected_size_of_file_on_disk:
push ecx
lea ecx, [esp + 0xe4]
push str.NetworkService::DownloadTask::PrepareDownloadPath
push ecx
call fcn.00404d50
add esp, 0xc
push eax
call fcn.004058a0
add esp, 8
push eax
call fcn.0043c460
add esp, 4
push eax
call fcn.004058a0
add esp, 8
push eax
call fcn.0043c460
add esp, 4
push eax
call fcn.004058a0
add esp, 8
lea ecx, [esp + 0x190]
lea eax, [esp + 0xac]
call fcn.004027f0
mov esi, eax
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x1e4], 2
call fcn.00403200
lea eax, [esp + 0x14]
push esi
push eax
mov byte [esp + 0x1e8], 3
call fcn.0041b8e0
add esp, 8
lea esi, [esp + 0x174]
lea eax, [esp + 0x14]
call fcn.00402e30
mov ecx, esi
push ecx
push 1
mov byte [esp + 0x1e8], 4
call fcn.00423a40
mov esi, 8
add esp, 8
cmp dword [esp + 0x188], esi
jb 0x45a274
mov edx, dword [esp + 0x174]
push edx
call fcn.004b5907
add esp, 4
xor eax, eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x188], 7
mov dword [esp + 0x184], 0
mov word [esp + 0x174], ax
mov byte [esp + 0x1e0], 2
call fcn.00401690
mov byte [esp + 0x1e0], 1
cmp dword [esp + 0x1a4], esi
jb 0x45a2c6
mov ecx, dword [esp + 0x190]
push ecx
call fcn.004b5907
add esp, 4
mov eax, dword [esp + 0x158]
cmp dword [esp + 0x16c], esi
jae 0x45a2dd
lea eax, [esp + 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45a41c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x45a41c
push ebx
lea edi, [esp + 0x1b0]
call fcn.00454960
mov esi, eax
lea edx, [esp + 0x14]
push edx
mov byte [esp + 0x1e4], 6
call fcn.00403200
lea eax, [esp + 0x14]
push str.NetworkService::DownloadTask::PrepareDownloadPath
push eax
mov byte [esp + 0x1e8], 7
call fcn.00404d50
lea ecx, [esp + 0x1c]
push 0x51438c
push ecx
call fcn.00404d50
lea edx, [esp + 0x24]
push esi
push edx
call fcn.0041b8e0
lea eax, [esp + 0x2c]
push str.:_Cannot_remove_unmatched_partial_download_file
push eax
call fcn.00404d50
lea ecx, [esp + 0x178]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.0041b8e0
add esp, 0x28
lea esi, [esp + 0x190]
lea eax, [esp + 0x14]
call fcn.00402e30
mov eax, esi
push eax
lea ecx, [esp + 0x178]
mov byte [esp + 0x1e4], 8
call fcn.00411e40
mov ecx, esi
call fcn.00412770
lea ecx, [esp + 0x14]
mov byte [esp + 0x1e0], 0xb
call fcn.00401690
mov ecx, edi
mov byte [esp + 0x1e0], 0xc
call fcn.00412770
lea ecx, [esp + 0x174]
push ecx
push 1
call fcn.00423a40
add esp, 8
lea ecx, [esp + 0x174]
call fcn.00412770
lea ecx, [esp + 0x10c]
mov byte [esp + 0x1e0], 0
call fcn.00402760
lea edx, [esp + 0x10c]
push edx
mov dword [esp + method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::ios_base.0
call fcn.0049cb21
add esp, 4
lea ecx, [esp + 0x158]
call fcn.00412770
xor al, al
jmp 0x45a479
lea ecx, [esp + 0x10c]
mov byte [esp + 0x1e0], 0
call fcn.00402760
lea eax, [esp + 0x10c]
push eax
mov dword [esp + method.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.virtual_0], vtable.std::ios_base.0
call fcn.0049cb21
add esp, 4
lea ecx, [esp + 0x158]
call fcn.00412770
jmp 0x45a477
mov esi, 8
cmp dword [esp + 0x16c], esi
jb 0x45a477
mov ecx, dword [esp + 0x158]
push ecx
call fcn.004b5907
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x1d8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.004b58f8
mov esp, ebp
pop ebp
ret 4