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

Disassembly:
push 0x5c
mov eax, 0x507cc0
call fcn.004d9a2f
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [ebx + 0x54]
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x48]
call fcn.00437189
mov ecx, dword [ebx + 0x54]
call fcn.00437747
test al, al
jne 0x4335b0
cmp dword [0x5500d4], 0
je 0x4335a8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___get_remote_site_info_failed_
call fcn.0042749e
pop ecx
pop ecx
push 5
pop eax
jmp 0x433a50
mov esi, ebx
call fcn.00434709
push 0x64
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4335eb
cmp dword [0x5500d4], eax
je 0x4335e7
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._WARN___d___cancel_download.
call fcn.0042749e
pop ecx
pop ecx
push 0xd
jmp 0x4335aa
cmp byte [ebx + 0x30], 0
mov byte [ebp - 0x55], 1
je 0x433622
push dword [ebx + 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
lea eax, [ebp - 0x5c]
push eax
push ebx
call fcn.00433a56
push dword [eax]
call esi
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
call fcn.00403eb2
mov byte [ebx + 0x30], 0
jmp 0x433886
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
lea edi, [ebx + 0x44]
mov eax, dword [edi]
push SysReAllocString
push eax
mov byte [ebp - 0x4d], 1
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x5c], eax
cmp eax, 0xffffffff
je 0x43379d
lea esi, [ebp - 0x54]
mov eax, ebx
call fcn.00434d36
xor esi, esi
mov dword [ebp - 4], esi
cmp byte [ebx + 0x9c], 0
je 0x433709
lea eax, [ebp - 0x54]
push eax
mov ecx, 0x52e1b4
call fcn.00403160
test eax, eax
je 0x433709
mov eax, dword [ebp - 0x54]
cmp dword [eax - 0xc], esi
jge 0x433694
push 0x80070057
call fcn.00403e33
cmp word [eax], 0x2c
je 0x433709
mov eax, dword [edi]
cmp dword [eax - 4], 1
jle 0x4336ab
push dword [eax - 0xc]
push edi
call fcn.00403bcb
push dword [edi]
lea ecx, [ebp - 0x60]
call fcn.00434d52
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x60]
cmp dword [eax - 0xc], esi
je 0x4336fc
push 1
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00434357
test al, al
je 0x4336fa
cmp dword [0x5500d4], 0
je 0x4336f6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___check_file_md5_ok.
call fcn.0042749e
pop ecx
pop ecx
mov byte [ebp - 0x4d], 0
xor esi, esi
mov eax, dword [ebp - 0x60]
add eax, 0xfffffff0
call fcn.00403eb2
jmp 0x433770
mov eax, dword [ebx + 0xb0]
cmp dword [eax - 0xc], esi
je 0x433735
mov ecx, ebx
call fcn.00432be6
test al, al
je 0x433770
cmp dword [0x5500d4], esi
je 0x43376c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._INFO___d___check_file_verison_ok.
jmp 0x43375f
push esi
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov eax, ebx
call fcn.00432e17
test al, al
je 0x433770
cmp dword [0x5500d4], esi
je 0x43376c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str._INFO___d___check_file_size_ok.
mov ecx, dword [0x5500d4]
call fcn.0042749e
pop ecx
pop ecx
mov byte [ebp - 0x4d], 0
cmp dword [ebp - 0x5c], esi
je 0x43377e
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x54]
add eax, 0xfffffff0
call fcn.00403eb2
cmp byte [ebp - 0x4d], 0
jne 0x43379b
xor eax, eax
inc eax
jmp 0x433a50
xor esi, esi
mov eax, dword [ebx + 0x54]
cmp byte [eax + 0x70], 0
je 0x433886
cmp dword [0x5500d4], esi
je 0x4337cb
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___check_file_resume.
call fcn.0042749e
pop ecx
pop ecx
lea eax, [ebp - 0x5c]
push eax
push ebx
call fcn.00433a56
mov eax, dword [eax]
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
call fcn.00403eb2
cmp dword [ebp - 0x54], 0xffffffff
je 0x433886
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x43386e
mov eax, dword [ebx + 0x54]
mov edi, dword [eax + 0x84]
mov ecx, dword [eax + 0x80]
mov eax, dword [ebx + 0x50]
imul eax, eax, 0x18
add eax, 4
cdq
add eax, ecx
adc edx, edi
cmp dword [ebp - 0x64], eax
jne 0x43386e
cmp dword [ebp - 0x60], edx
jne 0x43386e
mov ecx, ebx
call fcn.00433cab
test al, al
je 0x43386e
cmp dword [0x5500d4], esi
je 0x43386a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___check_file_resume_ok.
call fcn.0042749e
pop ecx
pop ecx
mov byte [ebp - 0x55], 0
cmp dword [ebp - 0x54], esi
je 0x43387c
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x55], 0
je 0x4339f3
mov eax, dword [ebx + 0x50]
mov ecx, dword [ebx + 0x54]
imul eax, eax, 0x18
add eax, 4
cdq
mov edi, edx
mov edx, dword [ecx + 0x80]
mov esi, eax
mov eax, dword [ecx + 0x84]
add esi, edx
adc edi, eax
test eax, eax
jl 0x4338b7
jg 0x4338b1
test edx, edx
jb 0x4338b7
cmp byte [ecx + 0x70], 0
jne 0x4338bb
xor esi, esi
xor edi, edi
lea eax, [ebp - 0x60]
push eax
push ebx
call fcn.00433a56
mov dword [ebp - 4], 2
mov edx, dword [ebp - 0x60]
and dword [ebp - 0x54], 0
push edi
push esi
lea edi, [ebp - 0x54]
call fcn.004301ee
xor edi, edi
pop ecx
pop ecx
mov esi, eax
cmp dword [0x5500d4], edi
je 0x43394c
push dword [ebp - 0x60]
lea ecx, [ebp - 0x30]
call fcn.0040ed9b
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.00428151
pop ecx
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
jb 0x433913
mov eax, dword [eax]
push dword [ebp - 0x54]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___create_null_file__s___ret__d___d_.
call fcn.0042749e
add esp, 0x14
push edi
push 1
lea ecx, [ebp - 0x4c]
call fcn.0040248a
push edi
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00403de3
cmp esi, edi
je 0x4339e2
cmp esi, 2
jne 0x4339a6
cmp dword [0x5500d4], edi
je 0x43397a
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___disk_space_not_enough_
call fcn.0042749e
pop ecx
pop ecx
push dword [ebp - 0x54]
mov esi, ebx
push 3
push edi
push 0xd
push dword [ebx + 0xa0]
push 0xffffffffffffffff
call fcn.00434fd8
push 0xa
mov eax, dword [ebp - 0x60]
pop esi
add eax, 0xfffffff0
call fcn.00403eb2
mov eax, esi
jmp 0x433a50
cmp dword [0x5500d4], edi
je 0x4339c7
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___create_null_file_failed_
call fcn.0042749e
pop ecx
pop ecx
push dword [ebp - 0x54]
mov esi, ebx
push 1
push edi
push 0xd
push dword [ebx + 0xa0]
push 0xffffffffffffffff
call fcn.00434fd8
push 9
jmp 0x433993
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x60]
add eax, 0xfffffff0
call fcn.00403eb2
xor esi, esi
lea eax, [ebp - 0x68]
push eax
push ebx
call fcn.00433a56
push 2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [ebp - 0x68]
add eax, 0xfffffff0
call fcn.00403eb2
mov eax, ebx
call fcn.00433aa0
test al, al
jne 0x433a45
cmp dword [0x5500d4], esi
je 0x433a3e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___assign_download_task_failed_
call fcn.0042749e
pop ecx
pop ecx
push 6
jmp 0x4335aa
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0x38], eax
xor eax, eax
call fcn.004d9ab2
ret