Function at 0x433fdd
Capabilities:
Clear file content
Delete file
Set file attributes

Disassembly:
push 0x54
mov eax, 0x506609
call fcn.004d9a2f
xor edi, edi
mov esi, edx
mov dword [ebp - 0x54], edi
mov ebx, ecx
mov dword [ebp - 0x58], esi
mov byte [ebp - 0x49], 0
cmp dword [0x5500d4], edi
je 0x43401d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___handle_download_finished__begin_result__d_
call fcn.0042749e
add esp, 0xc
cmp dword [esi], edi
je 0x43402d
mov esi, ebx
call fcn.00433ece
jmp 0x434320
lea eax, [ebp - 0x5c]
push eax
push ebx
call fcn.00433a56
push edi
push 0x80
push 3
push edi
push 3
push 0xc0000000
mov dword [ebp - 4], edi
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4340be
mov eax, dword [ebx + 0x54]
mov ecx, dword [eax + 0x80]
mov eax, dword [eax + 0x84]
push edi
push edi
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4340a8
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x4340a8
cmp dword [0x5500d4], edi
je 0x4340a4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___handle_download_finished__check_file_size_ok.
call fcn.0042749e
pop ecx
pop ecx
mov byte [ebp - 0x49], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
cmp esi, edi
je 0x4340c7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4340c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
cmp byte [ebp - 0x49], 0
jne 0x43410c
cmp dword [0x5500d4], edi
je 0x4340f2
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___handle_download_finished__read_size_failed__error__d_.
call fcn.0042749e
add esp, 0xc
push dword [ebp - 0x50]
mov eax, dword [ebx + 0xa0]
push 4
push edi
push 0xd
push eax
push 0xffffffffffffffff
mov esi, ebx
call fcn.00434fd8
jmp 0x434176
lea edi, [ebx + 0x44]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
push dword [ebp - 0x5c]
call fcn.004e21dd
pop ecx
pop ecx
test eax, eax
je 0x43416e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x5500d4], 0
mov esi, eax
je 0x434153
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___handle_download_finished__rename_failed__error__d_.
call fcn.0042749e
add esp, 0xc
mov eax, dword [ebx + 0xa0]
push esi
push 2
push 0
push 0xd
push eax
push 0xffffffffffffffff
mov esi, ebx
call fcn.00434fd8
mov byte [ebp - 0x49], 0
cmp byte [ebp - 0x49], 0
jne 0x434184
xor edi, edi
mov eax, dword [ebp - 0x58]
mov dword [eax], 9
jmp 0x434311
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebx + 0x9c], 0
je 0x4341b8
lea esi, [ebp - 0x50]
mov eax, ebx
call fcn.00434d36
mov eax, dword [eax]
cmp dword [eax - 0xc], 3
mov dword [ebp - 0x54], 1
mov byte [ebp - 0x4a], 1
jg 0x4341bc
mov byte [ebp - 0x4a], 0
test byte [ebp - 0x54], 1
je 0x4341d1
mov eax, dword [ebp - 0x50]
and dword [ebp - 0x54], 0xfffffffe
add eax, 0xfffffff0
call fcn.00403eb2
cmp byte [ebp - 0x4a], 0
je 0x43430f
mov eax, dword [edi]
cmp dword [eax - 4], 1
jle 0x4341ec
push dword [eax - 0xc]
push edi
call fcn.00403bcb
push dword [edi]
lea ecx, [ebp - 0x50]
call fcn.00434d52
mov byte [ebp - 4], 1
push dword [ebp - 0x50]
lea ecx, [ebp - 0x48]
call fcn.0040ed9b
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00428151
pop ecx
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00403de3
cmp dword [0x5500d4], esi
je 0x434256
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x43423b
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___handle_download_finished__check_md5__download_pkg_md5__s_.
call fcn.0042749e
add esp, 0xc
mov eax, dword [ebx + 0xa0]
push esi
push esi
lea ecx, [ebp - 0x2c]
push ecx
push 0xb
push eax
push 0xffffffffffffffff
mov esi, ebx
call fcn.00434fd8
mov eax, dword [ebp - 0x50]
cmp dword [eax - 0xc], 0
je 0x43429d
lea esi, [ebp - 0x60]
mov eax, ebx
call fcn.00434d36
push 0
push eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 5
or dword [ebp - 0x54], 2
push eax
call fcn.00434357
test al, al
je 0x43429d
xor bl, bl
jmp 0x43429f
mov bl, 1
mov dword [ebp - 4], 4
test byte [ebp - 0x54], 2
je 0x4342b7
mov eax, dword [ebp - 0x60]
add eax, 0xfffffff0
call fcn.00403eb2
test bl, bl
je 0x4342bf
mov byte [ebp - 0x49], 0
cmp byte [ebp - 0x49], 0
jne 0x4342f8
cmp dword [0x5500d4], 0
je 0x4342e7
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._ERROR___d___handle_download_finished__check_file_md5_failed_
call fcn.0042749e
pop ecx
pop ecx
mov eax, dword [ebp - 0x58]
mov dword [eax], 0xb
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040248a
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
call fcn.00403eb2
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
call fcn.00403eb2
cmp dword [0x5500d4], edi
je 0x434347
mov eax, dword [ebp - 0x58]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x5500d4]
push eax
push str._INFO___d___handle_download_finished__end_result__d_
call fcn.0042749e
add esp, 0xc
mov ecx, dword [ebp - 0x58]
xor eax, eax
cmp dword [ecx], edi
sete al
call fcn.004d9ab2
ret