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

Disassembly:
push 0x54
mov eax, 0x50611f
call fcn.004da01f
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 [0x550334], edi
je 0x4346e9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._INFO___d___handle_download_finished__begin_result__d_
call fcn.00427e2f
add esp, 0xc
cmp dword [esi], edi
je 0x4346f9
mov esi, ebx
call fcn.0043459a
jmp 0x4349ec
lea eax, [ebp - 0x5c]
push eax
push ebx
call fcn.00434122
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 0x43478a
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 0x434774
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x434774
cmp dword [0x550334], edi
je 0x434770
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._INFO___d___handle_download_finished__check_file_size_ok.
call fcn.00427e2f
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 0x434793
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x434793
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
cmp byte [ebp - 0x49], 0
jne 0x4347d8
cmp dword [0x550334], edi
je 0x4347be
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._ERROR___d___handle_download_finished__read_size_failed__error__d_.
call fcn.00427e2f
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.004356a4
jmp 0x434842
lea edi, [ebx + 0x44]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
push dword [ebp - 0x5c]
call fcn.004e27cd
pop ecx
pop ecx
test eax, eax
je 0x43483a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x550334], 0
mov esi, eax
je 0x43481f
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._ERROR___d___handle_download_finished__rename_failed__error__d_.
call fcn.00427e2f
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.004356a4
mov byte [ebp - 0x49], 0
cmp byte [ebp - 0x49], 0
jne 0x434850
xor edi, edi
mov eax, dword [ebp - 0x58]
mov dword [eax], 9
jmp 0x4349dd
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebx + 0x9c], 0
je 0x434884
lea esi, [ebp - 0x50]
mov eax, ebx
call fcn.00435402
mov eax, dword [eax]
cmp dword [eax - 0xc], 3
mov dword [ebp - 0x54], 1
mov byte [ebp - 0x4a], 1
jg 0x434888
mov byte [ebp - 0x4a], 0
test byte [ebp - 0x54], 1
je 0x43489d
mov eax, dword [ebp - 0x50]
and dword [ebp - 0x54], 0xfffffffe
add eax, 0xfffffff0
call fcn.0040442d
cmp byte [ebp - 0x4a], 0
je 0x4349db
mov eax, dword [edi]
cmp dword [eax - 4], 1
jle 0x4348b8
push dword [eax - 0xc]
push edi
call fcn.0040418c
push dword [edi]
lea ecx, [ebp - 0x50]
call fcn.0043541e
mov byte [ebp - 4], 1
push dword [ebp - 0x50]
lea ecx, [ebp - 0x48]
call fcn.00404526
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00428aca
pop ecx
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.0040482f
cmp dword [0x550334], esi
je 0x434922
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x434907
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._INFO___d___handle_download_finished__check_md5__download_pkg_md5__s_.
call fcn.00427e2f
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.004356a4
mov eax, dword [ebp - 0x50]
cmp dword [eax - 0xc], 0
je 0x434969
lea esi, [ebp - 0x60]
mov eax, ebx
call fcn.00435402
push 0
push eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 5
or dword [ebp - 0x54], 2
push eax
call fcn.00434a23
test al, al
je 0x434969
xor bl, bl
jmp 0x43496b
mov bl, 1
mov dword [ebp - 4], 4
test byte [ebp - 0x54], 2
je 0x434983
mov eax, dword [ebp - 0x60]
add eax, 0xfffffff0
call fcn.0040442d
test bl, bl
je 0x43498b
mov byte [ebp - 0x49], 0
cmp byte [ebp - 0x49], 0
jne 0x4349c4
cmp dword [0x550334], 0
je 0x4349b3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._ERROR___d___handle_download_finished__check_file_md5_failed_
call fcn.00427e2f
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.00402566
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
call fcn.0040442d
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
call fcn.0040442d
cmp dword [0x550334], edi
je 0x434a13
mov eax, dword [ebp - 0x58]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [0x550334]
push eax
push str._INFO___d___handle_download_finished__end_result__d_
call fcn.00427e2f
add esp, 0xc
mov ecx, dword [ebp - 0x58]
xor eax, eax
cmp dword [ecx], edi
sete al
call fcn.004da0a2
ret