Function at 0x40b6a3
Capabilities:
Delete file
Get file size
Set file attributes

Disassembly:
push 0x54
mov eax, 0x4a1ea1
call fcn.00481105
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push dword [edi + 0x48]
mov dword [edi + 0x38], eax
mov eax, dword [edi + 0x54]
call fcn.004060bf
mov eax, dword [edi + 0x54]
call fcn.0040661a
test eax, eax
jne 0x40b6f0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x4d4770]
push eax
push str._ERROR___d___get_remote_site_info_failed_
call fcn.00414401
pop ecx
pop ecx
push 5
pop eax
jmp 0x40bb17
mov esi, edi
call fcn.0040c75d
push 0x64
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40b723
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x4d4770]
push eax
push str._WARN___d___cancel_download.
call fcn.00414401
pop ecx
pop ecx
push 0xd
jmp 0x40b6ea
xor ecx, ecx
inc ecx
xor esi, esi
mov dword [ebp - 0x58], ecx
cmp dword [edi + 0x30], esi
je 0x40b75c
push dword [edi + 0x44]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call ebx
lea eax, [ebp - 0x58]
push eax
push edi
call fcn.0040bb1d
push dword [eax]
call ebx
mov eax, dword [ebp - 0x58]
add eax, 0xfffffff0
call fcn.00402a23
mov dword [edi + 0x30], esi
jmp 0x40b9bd
push esi
push 0x80
push 3
push esi
push ecx
lea ebx, [edi + 0x44]
mov eax, dword [ebx]
push Ordinal_1
push eax
mov dword [ebp - 0x4c], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x50], eax
cmp eax, 0xffffffff
je 0x40b8eb
lea esi, [ebp - 0x5c]
mov eax, edi
call fcn.0040cddd
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [edi + 0x9c], esi
je 0x40b832
lea eax, [ebp - 0x5c]
push eax
mov ecx, 0x4bae00
call fcn.00404382
test eax, eax
je 0x40b832
mov eax, dword [ebp - 0x5c]
cmp dword [eax - 0xc], esi
jge 0x40b7c5
push 0x80070057
call fcn.004029f0
cmp word [eax], 0x2c
je 0x40b832
mov eax, dword [ebx]
cmp dword [eax - 4], 1
jle 0x40b7dc
push dword [eax - 0xc]
push ebx
call fcn.004023ee
push dword [ebx]
lea ecx, [ebp - 0x54]
call fcn.0040cdfc
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x54]
cmp dword [eax - 0xc], esi
je 0x40b822
push 1
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x54]
mov edx, edi
call fcn.0040c2f2
test eax, eax
je 0x40b822
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x4d4770]
push eax
push str._INFO___d___check_file_md5_ok.
call fcn.00414401
pop ecx
pop ecx
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
call fcn.00402a23
jmp 0x40b8bf
mov eax, dword [edi + 0xb0]
cmp dword [eax - 0xc], esi
je 0x40b866
mov ecx, edi
call fcn.0040ae41
test eax, eax
je 0x40b8bf
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x4d4770]
push eax
push str._INFO___d___check_file_verison_ok.
call fcn.00414401
pop ecx
pop ecx
mov dword [ebp - 0x4c], esi
jmp 0x40b8bf
push esi
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [edi + 0x48]
mov esi, eax
call fcn.0040b114
mov ebx, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x4d4770]
push eax
push str._INFO___d___Check_Cdn_FileSize__ld_____ld
call fcn.00414401
add esp, 0x10
test ebx, ebx
je 0x40b8bd
cmp ebx, esi
jne 0x40b8bd
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x4d4770]
push eax
push str._INFO___d___check_file_size_ok.
call fcn.00414401
and dword [ebp - 0x4c], 0
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x50], esi
je 0x40b8cd
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
call fcn.00402a23
cmp dword [ebp - 0x4c], esi
jne 0x40b8e9
xor eax, eax
inc eax
jmp 0x40bb17
xor esi, esi
mov eax, dword [edi + 0x54]
cmp dword [eax + 0x74], esi
je 0x40b9bd
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x4d4770]
push eax
push str._INFO___d___check_file_resume.
call fcn.00414401
pop ecx
pop ecx
lea eax, [ebp - 0x50]
push eax
push edi
call fcn.0040bb1d
mov eax, dword [eax]
push esi
push 0x80
push 3
push esi
push 1
push Ordinal_1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
call fcn.00402a23
cmp dword [ebp - 0x4c], 0xffffffff
je 0x40b9bd
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40b9a6
mov eax, dword [edi + 0x54]
mov ebx, dword [eax + 0x8c]
mov ecx, dword [eax + 0x88]
mov eax, dword [edi + 0x50]
imul eax, eax, 0x18
add eax, 4
cdq
add eax, ecx
adc edx, ebx
cmp dword [ebp - 0x60], eax
jne 0x40b9a6
cmp dword [ebp - 0x5c], edx
jne 0x40b9a6
mov ecx, edi
call fcn.0040bd49
test eax, eax
je 0x40b9a6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x4d4770]
push eax
push str._INFO___d___check_file_resume_ok.
call fcn.00414401
pop ecx
pop ecx
mov dword [ebp - 0x58], esi
cmp dword [ebp - 0x4c], esi
je 0x40b9b4
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x58], esi
je 0x40bac2
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x54]
imul eax, eax, 0x18
add eax, 4
cdq
mov esi, edx
mov edx, dword [ecx + 0x88]
mov ebx, eax
mov eax, dword [ecx + 0x8c]
add ebx, edx
adc esi, eax
test eax, eax
jl 0x40b9ee
jg 0x40b9e8
test edx, edx
jb 0x40b9ee
cmp dword [ecx + 0x74], 0
jne 0x40b9f2
xor ebx, ebx
xor esi, esi
lea eax, [ebp - 0x4c]
push eax
push edi
call fcn.0040bb1d
mov dword [ebp - 4], 2
mov ecx, dword [ebp - 0x4c]
push esi
push ebx
call fcn.004126c1
pop ecx
pop ecx
push dword [ebp - 0x4c]
lea ecx, [ebp - 0x2c]
mov ebx, eax
call fcn.004029c1
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00419832
pop ecx
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
jb 0x40ba39
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
push eax
call esi
mov ecx, dword [0x4d4770]
push eax
push str._INFO___d___create_null_file__s___ret__d_.
call fcn.00414401
add esp, 0x10
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00401587
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00402a5a
test ebx, ebx
je 0x40bab3
call esi
mov ecx, dword [0x4d4770]
push eax
cmp ebx, 2
jne 0x40baa3
push str._ERROR___d___disk_space_not_enough_
call fcn.00414401
pop ecx
pop ecx
push 0xa
mov eax, dword [ebp - 0x4c]
pop esi
add eax, 0xfffffff0
call fcn.00402a23
mov eax, esi
jmp 0x40bb17
push str._ERROR___d___create_null_file_failed_
call fcn.00414401
pop ecx
pop ecx
push 9
jmp 0x40ba93
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
add eax, 0xfffffff0
call fcn.00402a23
lea eax, [ebp - 0x54]
push eax
push edi
call fcn.0040bb1d
push 2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
call fcn.00402a23
mov eax, edi
call fcn.0040bb5e
test eax, eax
jne 0x40bb0c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x4d4770]
push eax
push str._ERROR___d___assign_download_task_failed_
call fcn.00414401
pop ecx
pop ecx
push 6
jmp 0x40b6ea
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x38], eax
xor eax, eax
call fcn.00481188
ret