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

Disassembly:
push 0x54
mov eax, 0x506572
call fcn.004d998f
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 0x4340e7
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.00427581
add esp, 0xc
cmp dword [esi], edi
je 0x4340f7
mov esi, ebx
call fcn.00433f98
jmp 0x4343ea
lea eax, [ebp - 0x5c]
push eax
push ebx
call fcn.00433b20
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 0x434188
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 0x434172
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x434172
cmp dword [0x5500d4], edi
je 0x43416e
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.00427581
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 0x434191
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x434191
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
cmp byte [ebp - 0x49], 0
jne 0x4341d6
cmp dword [0x5500d4], edi
je 0x4341bc
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.00427581
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.004350a2
jmp 0x434240
lea edi, [ebx + 0x44]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
push dword [ebp - 0x5c]
call fcn.004e213d
pop ecx
pop ecx
test eax, eax
je 0x434238
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x5500d4], 0
mov esi, eax
je 0x43421d
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.00427581
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.004350a2
mov byte [ebp - 0x49], 0
cmp byte [ebp - 0x49], 0
jne 0x43424e
xor edi, edi
mov eax, dword [ebp - 0x58]
mov dword [eax], 9
jmp 0x4343db
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebx + 0x9c], 0
je 0x434282
lea esi, [ebp - 0x50]
mov eax, ebx
call fcn.00434e00
mov eax, dword [eax]
cmp dword [eax - 0xc], 3
mov dword [ebp - 0x54], 1
mov byte [ebp - 0x4a], 1
jg 0x434286
mov byte [ebp - 0x4a], 0
test byte [ebp - 0x54], 1
je 0x43429b
mov eax, dword [ebp - 0x50]
and dword [ebp - 0x54], 0xfffffffe
add eax, 0xfffffff0
call fcn.00403e7d
cmp byte [ebp - 0x4a], 0
je 0x4343d9
mov eax, dword [edi]
cmp dword [eax - 4], 1
jle 0x4342b6
push dword [eax - 0xc]
push edi
call fcn.00403b8c
push dword [edi]
lea ecx, [ebp - 0x50]
call fcn.00434e1c
mov byte [ebp - 4], 1
push dword [ebp - 0x50]
lea ecx, [ebp - 0x48]
call fcn.0040edaa
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00428265
pop ecx
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00403da4
cmp dword [0x5500d4], esi
je 0x434320
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x434305
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.00427581
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.004350a2
mov eax, dword [ebp - 0x50]
cmp dword [eax - 0xc], 0
je 0x434367
lea esi, [ebp - 0x60]
mov eax, ebx
call fcn.00434e00
push 0
push eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 5
or dword [ebp - 0x54], 2
push eax
call fcn.00434421
test al, al
je 0x434367
xor bl, bl
jmp 0x434369
mov bl, 1
mov dword [ebp - 4], 4
test byte [ebp - 0x54], 2
je 0x434381
mov eax, dword [ebp - 0x60]
add eax, 0xfffffff0
call fcn.00403e7d
test bl, bl
je 0x434389
mov byte [ebp - 0x49], 0
cmp byte [ebp - 0x49], 0
jne 0x4343c2
cmp dword [0x5500d4], 0
je 0x4343b1
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.00427581
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.0040241d
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
call fcn.00403e7d
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
call fcn.00403e7d
cmp dword [0x5500d4], edi
je 0x434411
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.00427581
add esp, 0xc
mov ecx, dword [ebp - 0x58]
xor eax, eax
cmp dword [ecx], edi
sete al
call fcn.004d9a12
ret