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

Disassembly:
push 8
mov eax, 0x534033
call fcn.004f1d7f
mov edi, ecx
push str.Clean_Temp_r_n
push 0x5aca00
call fcn.004dddd9
lea ebx, [edi + 8]
push ebx
call fcn.004cf906
lea esi, [edi + 0x10]
push esi
call fcn.004cf906
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 0x5aca00
call fcn.004dddd9
add esp, 0x28
cmp dword [edi + 0x70], 0
jne 0x4d2a66
cmp dword [edi + 0x74], 0
jne 0x4d2a66
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.004cf906
push 0x53f34c
call fcn.0043a8c3
add esp, 0xc
lea ecx, [ebp - 0x10]
push eax
push 0x53f34c
call fcn.004516f5
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d2a57
push str.beging_clear_cur_because_of_install_fail__r_n
push 0x5aca00
call fcn.004dddd9
push 1
push 1
push dword [ebx]
call fcn.004cd173
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 0x5aca00
call fcn.004dddd9
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 0x4d2b20
push eax
mov ecx, ebx
call fcn.004684c0
test eax, eax
je 0x4d2b20
cmp dword [edi + 0x74], 0
je 0x4d2b20
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.004cf906
push 0x53f34c
call fcn.0043a8c3
add esp, 0xc
lea ecx, [ebp - 0x10]
push eax
push 0x53f34c
call fcn.004516f5
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d2b11
push str.beging_clear_old_install_covered__r_n
push 0x5aca00
call fcn.004dddd9
push 1
push 1
push dword [esi]
call fcn.004cd173
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 0x5aca00
call fcn.004dddd9
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 0x4d2bd3
push dword [esi]
mov ecx, ebx
call fcn.004684c0
test eax, eax
je 0x4d2bd3
cmp dword [edi + 0x74], 0
jne 0x4d2bd3
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.004cf906
mov esi, 0x53f34c
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 0x4d2bc4
push str.beging_clear_cur_install_covered_r_n
push 0x5aca00
call fcn.004dddd9
push 1
push 1
push dword [ebx]
call fcn.004cd173
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 0x5aca00
call fcn.004dddd9
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 0x4d2c66
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.004cf906
mov ebx, 0x53f34c
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 0x4d2c5b
push str.beging_clear_new_r_n
mov ebx, 0x5aca00
push ebx
call fcn.004dddd9
push 1
push 1
push dword [edi + 0x18]
call fcn.004cd173
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.004dddd9
add esp, 0x10
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00436fdb
call fcn.004f1d4d
ret
push esi
mov esi, ecx
mov ecx, dword [esi + 0x130]
call fcn.004dee32
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 0x4dc224
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.004dc2d6
test eax, eax
jne 0x4dc24d
cmp dword [esi + 0x34], eax
je 0x4dc24d
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.004dda22
mov ecx, esi
pop esi
jmp 0x4d2976