Function at 0x401b90
Capabilities:
Check if file exists
Delete file
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x4c9890]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
je 0x401e4b
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x401bb7
sub edx, ecx
sar edx, 1
je 0x401e4b
push str.MultiBlockDownloader::ChangeTarget__
call fcn.004010d0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x418], 0x80004005
call fcn.004866f0
push 0x103
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00487152
xor eax, eax
add esp, 0x1c
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x401cbd
lea eax, [ebp - 0x418]
push str.GetDiskFreeSpaceEx
push eax
call fcn.004015b0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.004866f0
push esi
push str._ERROR_GetDiskFreeSpaceEx_failed___dwErrorCode___.8X
lea eax, [ebp - 0x414]
push 0x103
push eax
call fcn.00401690
lea eax, [ebp - 0x414]
push eax
call fcn.004010d0
add esp, 0x20
mov eax, 0x80070005
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x388]
sub ecx, dword [edi + 0x398]
mov eax, dword [edi + 0x38c]
sbb eax, dword [edi + 0x39c]
cmp dword [ebp - 0x41c], eax
ja 0x401d0b
jb 0x401ce7
cmp dword [ebp - 0x420], ecx
jae 0x401d0b
push str._ERROR__E_MBD_NO_DISK_SPACE_
call fcn.004010d0
add esp, 4
mov eax, 0x80700007
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401d3d
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret 4
push 0x4a2a0c
push esi
call fcn.00487587
add esp, 8
test eax, eax
jne 0x401d73
push str._ERROR___wfopen_failed__E_ACCESSDENIED
call fcn.004010d0
add esp, 4
mov eax, 0x80070005
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret 4
push ebx
push eax
call fcn.00487717
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x103
lea eax, [edi + 0x3c8]
push esi
push eax
call fcn.00487152
push 0x103
xor eax, eax
lea ebx, [edi + 0x5d0]
push esi
push ebx
mov word [edi + 0x5ce], ax
call fcn.00487152
add esp, 0x18
xor eax, eax
push ebx
mov word [edi + 0x7d6], ax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov eax, dword [edi + 0x3c0]
sub eax, dword [edi + 0x3bc]
xor ebx, ebx
sar eax, 2
test eax, eax
je 0x401e33
lea esp, [esp]
mov ecx, dword [edi + 0x3bc]
lea esi, [ebx*4]
lea eax, [edi + 0x5d0]
mov ecx, dword [ecx + esi]
push eax
call fcn.00403200
mov ecx, dword [edi + 0x3bc]
push 0x10
mov ecx, dword [ecx + esi]
call fcn.00404b40
mov ecx, dword [edi + 0x3c0]
sub ecx, dword [edi + 0x3bc]
inc ebx
sar ecx, 2
cmp ebx, ecx
jb 0x401de0
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret 4
pop ebx
pop edi
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00487c50
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 0x80070057
pop esi
call fcn.00487c50
mov esp, ebp
pop ebp
ret 4