Function at 0x4dc76c
Capabilities:
Check if file exists
Terminate thread

Disassembly:
push 8
mov eax, 0x5346da
call fcn.004f22ff
mov edi, ecx
push str.Clean_Temp_r_n
push 0x5aea00
call fcn.004de360
lea ebx, [edi + 8]
push ebx
call fcn.004cfddf
lea esi, [edi + 0x10]
push esi
call fcn.004cfddf
push dword [edi + 0x74]
push dword [ebx]
push dword [esi]
push dword [edi + 0x18]
push str.Clean_Temp_new_ws_old_ws_cur_ws_result_d_r_n
push 0x5aea00
call fcn.004de360
add esp, 0x28
cmp dword [edi + 0x70], 0
jne 0x4d2f3e
cmp dword [edi + 0x74], 0
jne 0x4d2f3e
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.0043c35e
add eax, 0x10
mov dword [ebp - 0x10], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.004cfddf
push 0x5406e4
call fcn.0043a8c3
add esp, 0xc
lea ecx, [ebp - 0x10]
push eax
push 0x5406e4
call fcn.004516f5
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d2f2f
push str.beging_clear_cur_because_of_install_fail__r_n
push 0x5aea00
call fcn.004de360
push 1
push 1
push dword [ebx]
call fcn.004cd64c
add esp, 0x14
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.end_clear_cur_because_of_install_fail_bRet___d_error___d_r_n
push 0x5aea00
call fcn.004de360
add esp, 0x10
lea esi, [edi + 0x10]
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00436fdb
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x4d2ff8
push eax
mov ecx, ebx
call fcn.004684c0
test eax, eax
je 0x4d2ff8
cmp dword [edi + 0x74], 0
je 0x4d2ff8
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.0043c35e
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push eax
call fcn.004cfddf
push 0x5406e4
call fcn.0043a8c3
add esp, 0xc
lea ecx, [ebp - 0x10]
push eax
push 0x5406e4
call fcn.004516f5
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d2fe9
push str.beging_clear_old_install_covered__r_n
push 0x5aea00
call fcn.004de360
push 1
push 1
push dword [esi]
call fcn.004cd64c
add esp, 0x14
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.end_clear_old_install_covered_bRet___d_error___d_r_n
push 0x5aea00
call fcn.004de360
add esp, 0x10
lea esi, [edi + 0x10]
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00436fdb
cmp dword [edi + 0x70], 0
je 0x4d30ab
push dword [esi]
mov ecx, ebx
call fcn.004684c0
test eax, eax
je 0x4d30ab
cmp dword [edi + 0x74], 0
jne 0x4d30ab
mov eax, dword [ebx]
sub eax, 0x10
push eax
call fcn.0043c35e
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 2
push eax
call fcn.004cfddf
mov esi, 0x5406e4
push esi
call fcn.0043a8c3
add esp, 0xc
lea ecx, [ebp - 0x10]
push eax
push esi
call fcn.004516f5
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d309c
push str.beging_clear_cur_install_covered_r_n
push 0x5aea00
call fcn.004de360
push 1
push 1
push dword [ebx]
call fcn.004cd64c
add esp, 0x14
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.end_clear_cur_install_covered_bRet___d_error___d_r_n
push 0x5aea00
call fcn.004de360
add esp, 0x10
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.00436fdb
mov eax, dword [edi + 0x18]
cmp dword [eax - 0xc], 0
je 0x4d313e
add eax, 0xfffffff0
push eax
call fcn.0043c35e
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 3
push eax
call fcn.004cfddf
mov ebx, 0x5406e4
push ebx
call fcn.0043a8c3
add esp, 0xc
lea ecx, [ebp - 0x14]
push eax
push ebx
call fcn.004516f5
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d3133
push str.beging_clear_new_r_n
mov ebx, 0x5aea00
push ebx
call fcn.004de360
push 1
push 1
push dword [edi + 0x18]
call fcn.004cd64c
add esp, 0x14
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.end_clear_new_bRet___d_error___d_r_n
push ebx
call fcn.004de360
add esp, 0x10
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
call fcn.004f22cd
ret
push esi
mov esi, ecx
mov ecx, dword [esi + 0x130]
call fcn.004df3b9
mov eax, dword [esi + 0x130]
push eax
mov edx, dword [eax]
call dword [edx + 8]
and dword [esi + 0x130], 0
cmp dword [esi + 0x30], 0
je 0x4dc7ab
push 0
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x30], 0
push 0xffffffffffffffff
mov ecx, esi
call fcn.004dc85d
test eax, eax
jne 0x4dc7d4
cmp dword [esi + 0x34], eax
je 0x4dc7d4
push eax
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x34], 0
lea ecx, [esi + 0x80]
call fcn.004ddfa9
mov ecx, esi
pop esi
jmp 0x4d2e4e