Function at 0x4132e0
Capabilities:
Check if file exists
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b943a
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4f54d8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x78]
mov dword [ebp - 0x78], 0
mov edx, edi
lea ecx, [ebp - 0x40]
call fcn.0040e6d0
mov ebx, eax
add esi, 0x90
cmp esi, ebx
je 0x413358
cmp dword [esi + 0x14], 8
jb 0x41333d
push dword [esi]
call fcn.00464c00
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push ebx
mov word [esi], ax
call fcn.004069a0
cmp dword [ebp - 0x2c], 8
jb 0x413369
push dword [ebp - 0x40]
call fcn.00464c00
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x413371
mov esi, dword [esi]
push esi
push str.rootpath__s
push 0x76
push str.SimulatorFileCleaner::_removeSetupDir
call fcn.0042a930
push 0x4d92a8
mov edx, edi
lea ecx, [ebp - 0x70]
call fcn.00410a80
add esp, 0x14
mov dword [ebp - 4], 0
mov ebx, 1
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x78], ebx
jb 0x4133ac
mov eax, dword [eax]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
je 0x413413
push 0x4d92c4
mov edx, edi
lea ecx, [ebp - 0x40]
call fcn.00410a80
add esp, 4
mov dword [ebp - 4], 1
mov ebx, 3
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x78], ebx
jb 0x4133e2
mov eax, dword [eax]
push eax
call esi
test eax, eax
je 0x413413
push str._system.vmdk
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.00410a80
add esp, 4
mov ebx, 7
cmp dword [eax + 0x14], 8
jb 0x413408
mov eax, dword [eax]
push eax
call esi
mov byte [ebp - 0x71], 1
test eax, eax
jne 0x413417
mov byte [ebp - 0x71], 0
test bl, 4
je 0x413444
and ebx, 0xfffffffb
cmp dword [ebp - 0x44], 8
jb 0x413430
push dword [ebp - 0x58]
call fcn.00464c00
add esp, 4
xor eax, eax
mov dword [ebp - 0x44], 7
mov dword [ebp - 0x48], 0
mov word [ebp - 0x58], ax
test bl, 2
je 0x413471
and ebx, 0xfffffffd
cmp dword [ebp - 0x2c], 8
jb 0x41345d
push dword [ebp - 0x40]
call fcn.00464c00
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 0xffffffff
test bl, 1
je 0x41348e
cmp dword [ebp - 0x5c], 8
jb 0x41348e
push dword [ebp - 0x70]
call fcn.00464c00
add esp, 4
cmp byte [ebp - 0x71], 0
je 0x41351a
cmp dword [edi + 0x14], 8
jb 0x4134a2
mov edx, dword [edi]
jmp 0x4134a4
mov edx, edi
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp word [edx], ax
jne 0x4134c1
xor ecx, ecx
jmp 0x4134d5
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4134c6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00406a70
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 2
call fcn.0040e740
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x413506
push dword [ebp - 0x28]
call fcn.00464c00
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp dword [edi + 0x14], 8
jb 0x413524
mov eax, dword [edi]
jmp 0x413526
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x413558
cmp dword [edi + 0x14], 8
jb 0x413539
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.remove_install_dir___s__failed__last_error___d.
push 0x81
push str.SimulatorFileCleaner::_removeSetupDir
call fcn.0042a930
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00482fe3
mov esp, ebp
pop ebp
ret