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

Disassembly:
push 0x54
mov eax, 0x506156
call fcn.004da051
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 0x4347a5
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.00427dfb
add esp, 0xc
cmp dword [esi], edi
je 0x4347b5
mov esi, ebx
call fcn.00434656
jmp 0x434aa8
lea eax, [ebp - 0x5c]
push eax
push ebx
call fcn.004341de
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 0x434846
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 0x434830
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x434830
cmp dword [0x550334], edi
je 0x43482c
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.00427dfb
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 0x43484f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43484f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x50], eax
cmp byte [ebp - 0x49], 0
jne 0x434894
cmp dword [0x550334], edi
je 0x43487a
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.00427dfb
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.00435760
jmp 0x4348fe
lea edi, [ebx + 0x44]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [edi]
push dword [ebp - 0x5c]
call fcn.004e27fd
pop ecx
pop ecx
test eax, eax
je 0x4348f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x550334], 0
mov esi, eax
je 0x4348db
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.00427dfb
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.00435760
mov byte [ebp - 0x49], 0
cmp byte [ebp - 0x49], 0
jne 0x43490c
xor edi, edi
mov eax, dword [ebp - 0x58]
mov dword [eax], 9
jmp 0x434a99
mov eax, dword [edi]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp byte [ebx + 0x9c], 0
je 0x434940
lea esi, [ebp - 0x50]
mov eax, ebx
call fcn.004354be
mov eax, dword [eax]
cmp dword [eax - 0xc], 3
mov dword [ebp - 0x54], 1
mov byte [ebp - 0x4a], 1
jg 0x434944
mov byte [ebp - 0x4a], 0
test byte [ebp - 0x54], 1
je 0x434959
mov eax, dword [ebp - 0x50]
and dword [ebp - 0x54], 0xfffffffe
add eax, 0xfffffff0
call fcn.0040436d
cmp byte [ebp - 0x4a], 0
je 0x434a97
mov eax, dword [edi]
cmp dword [eax - 4], 1
jle 0x434974
push dword [eax - 0xc]
push edi
call fcn.004040cc
push dword [edi]
lea ecx, [ebp - 0x50]
call fcn.004354da
mov byte [ebp - 4], 1
push dword [ebp - 0x50]
lea ecx, [ebp - 0x48]
call fcn.00404466
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.00428a57
pop ecx
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.0040476f
cmp dword [0x550334], esi
je 0x4349de
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x4349c3
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.00427dfb
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.00435760
mov eax, dword [ebp - 0x50]
cmp dword [eax - 0xc], 0
je 0x434a25
lea esi, [ebp - 0x60]
mov eax, ebx
call fcn.004354be
push 0
push eax
lea eax, [ebp - 0x50]
mov byte [ebp - 4], 5
or dword [ebp - 0x54], 2
push eax
call fcn.00434adf
test al, al
je 0x434a25
xor bl, bl
jmp 0x434a27
mov bl, 1
mov dword [ebp - 4], 4
test byte [ebp - 0x54], 2
je 0x434a3f
mov eax, dword [ebp - 0x60]
add eax, 0xfffffff0
call fcn.0040436d
test bl, bl
je 0x434a47
mov byte [ebp - 0x49], 0
cmp byte [ebp - 0x49], 0
jne 0x434a80
cmp dword [0x550334], 0
je 0x434a6f
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.00427dfb
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.00402476
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
call fcn.0040436d
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x5c]
add eax, 0xfffffff0
call fcn.0040436d
cmp dword [0x550334], edi
je 0x434acf
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.00427dfb
add esp, 0xc
mov ecx, dword [ebp - 0x58]
xor eax, eax
cmp dword [ecx], edi
sete al
call fcn.004da0d4
ret