Function at 0x49b270
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
push str.entering_delete_mode
mov esi, ecx
mov dword [ebp - 0x10], ebx
call fcn.004a35a8
pop ecx
lea eax, [ebp - 0x10]
lea edi, [esi + 0xd4]
push eax
mov ecx, edi
mov byte [ebp - 1], bl
call fcn.00401000
mov ecx, dword [eax]
lea edx, [ebp - 1]
mov eax, dword [ecx]
push edx
push 0x5014
call dword [eax + 0x80]
test al, al
je 0x49b2be
mov byte [ebp - 2], bl
cmp byte [ebp - 1], bl
jne 0x49b2c2
mov byte [ebp - 2], 1
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x49b2ce
mov eax, dword [ecx]
call dword [eax + 8]
cmp byte [ebp - 2], bl
je 0x49b2e3
push str.CInstallManager::HandleDeleteMode_3509__:_deleteMode_value_missing
call fcn.004a35be
pop ecx
jmp 0x49b4a3
push 0x508688
lea ecx, [ebp - 8]
call fcn.00401520
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.00401000
lea ecx, [ebp - 8]
push ecx
push 0x5015
push dword [eax]
call fcn.0043002f
add esp, 0xc
test al, al
je 0x49b31d
mov eax, dword [ebp - 8]
mov byte [ebp - 2], bl
cmp dword [eax - 0xc], ebx
jne 0x49b321
mov byte [ebp - 2], 1
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x49b32d
mov eax, dword [ecx]
call dword [eax + 8]
cmp byte [ebp - 2], bl
je 0x49b342
push str.CInstallManager::HandleDeleteMode_3516__:_deleteFolder_value_missing
call fcn.004a35be
pop ecx
jmp 0x49b498
call fcn.0049b1b9
push eax
lea ecx, [ebp - 0x18]
call fcn.00426c6a
lea ecx, [ebp - 0x18]
call fcn.00426eb2
test al, al
jne 0x49b383
push str.Start:_wait_for_parent_process
call fcn.004a35a8
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00426da3
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push str.Finish:_wait_for_parent_process
call fcn.004a35a8
pop ecx
push dword [ebp - 8]
push str.deleting_folder:__s
call fcn.004a35a8
mov ecx, dword [ebp - 8]
push ebx
xor dl, dl
call fcn.00493d8f
add esp, 0xc
lea ecx, [esi + 0x50]
call fcn.00430ba7
push eax
push str.deleting_file:__s
call fcn.004a35a8
pop ecx
pop ecx
lea ecx, [esi + 0x50]
call fcn.00430ba7
mov dl, 1
mov ecx, eax
call fcn.00494535
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49b424
mov esi, ebx
push str.folder_still_exists__sleep_0.5_seconds_and_try_again
call fcn.004a3592
mov dword [esp], 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, 0x50e9ac
call fcn.00434f32
push dword [ebp - 8]
push str.deleting_folder:__s
call fcn.004a35a8
mov ecx, dword [ebp - 8]
push ebx
xor dl, dl
call fcn.00493d8f
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x49b424
inc esi
cmp esi, 4
jb 0x49b3d4
push 0x508688
lea ecx, [ebp - 0xc]
call fcn.00401520
lea eax, [ebp - 0x10]
push eax
mov ecx, edi
call fcn.00401000
lea ecx, [ebp - 0xc]
push ecx
push 0x5024
push dword [eax]
call fcn.0043002f
add esp, 0xc
test al, al
mov eax, dword [ebp - 0xc]
jne 0x49b45b
cmp dword [eax - 0xc], ebx
jne 0x49b45d
mov bl, 1
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x49b46c
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, dword [ebp - 0xc]
test bl, bl
je 0x49b488
push eax
push str.deleting_empty_folders:__s
call fcn.004a35a8
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
call fcn.00493995
mov eax, dword [ebp - 0xc]
lea ecx, [eax - 0x10]
call fcn.00402199
lea ecx, [ebp - 0x18]
call fcn.00426c89
mov ecx, dword [ebp - 8]
lea ecx, [ecx - 0x10]
call fcn.00402199
pop edi
pop esi
pop ebx
leave
ret