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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bc6da
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4f84d8]
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.0040e060
mov ebx, eax
add esi, 0x90
cmp esi, ebx
je 0x412f88
cmp dword [esi + 0x14], 8
jb 0x412f6d
push dword [esi]
call fcn.00486360
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.00406310
cmp dword [ebp - 0x2c], 8
jb 0x412f99
push dword [ebp - 0x40]
call fcn.00486360
add esp, 4
cmp dword [esi + 0x14], 8
jb 0x412fa1
mov esi, dword [esi]
push esi
push str.rootpath__s
push 0x76
push str.SimulatorFileCleaner::_removeSetupDir
call fcn.0042c780
push 0x4dc30c
mov edx, edi
lea ecx, [ebp - 0x70]
call fcn.00410410
add esp, 0x14
mov dword [ebp - 4], 0
mov ebx, 1
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x78], ebx
jb 0x412fdc
mov eax, dword [eax]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
je 0x413043
push 0x4dc328
mov edx, edi
lea ecx, [ebp - 0x40]
call fcn.00410410
add esp, 4
mov dword [ebp - 4], 1
mov ebx, 3
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x78], ebx
jb 0x413012
mov eax, dword [eax]
push eax
call esi
test eax, eax
je 0x413043
push str._system.vmdk
mov edx, edi
lea ecx, [ebp - 0x58]
call fcn.00410410
add esp, 4
mov ebx, 7
cmp dword [eax + 0x14], 8
jb 0x413038
mov eax, dword [eax]
push eax
call esi
mov byte [ebp - 0x71], 1
test eax, eax
jne 0x413047
mov byte [ebp - 0x71], 0
test bl, 4
je 0x413074
and ebx, 0xfffffffb
cmp dword [ebp - 0x44], 8
jb 0x413060
push dword [ebp - 0x58]
call fcn.00486360
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 0x4130a1
and ebx, 0xfffffffd
cmp dword [ebp - 0x2c], 8
jb 0x41308d
push dword [ebp - 0x40]
call fcn.00486360
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 0x4130be
cmp dword [ebp - 0x5c], 8
jb 0x4130be
push dword [ebp - 0x70]
call fcn.00486360
add esp, 4
cmp byte [ebp - 0x71], 0
je 0x41314a
cmp dword [edi + 0x14], 8
jb 0x4130d2
mov edx, dword [edi]
jmp 0x4130d4
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 0x4130f1
xor ecx, ecx
jmp 0x413105
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4130f6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.004063e0
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 2
call fcn.0040e0d0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x14], 8
jb 0x413136
push dword [ebp - 0x28]
call fcn.00486360
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 0x413154
mov eax, dword [edi]
jmp 0x413156
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x413188
cmp dword [edi + 0x14], 8
jb 0x413169
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.0042c780
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.00486203
mov esp, ebp
pop ebp
ret