Function at 0x42bde0
Capabilities:
Check if file exists
Delete directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51c541
mov eax, dword fs:[0]
push eax
mov eax, 0x1088
call fcn.00459470
mov eax, dword [0x56c3c4]
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 ebx, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1094], edi
test edi, edi
je 0x42c13e
cmp word [edi], 0
je 0x42c13e
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42be34
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x42c13e
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00492a50
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x531d4c
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
call fcn.0041ffe0
mov ecx, eax
call fcn.0041ffc0
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea esi, [ebx + 0x94]
mov ecx, ebx
push esi
push edi
call fcn.0042b1c0
test eax, eax
jne 0x42bea3
mov dword [esi], 0xc8
mov eax, 0x5c
mov dword [ebp - 0x428], 0
mov word [ebp - 0x42c], ax
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x884]
call fcn.0042b080
test eax, eax
je 0x42c070
cmp dword [ebp - 0x424], 0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x42bf4b
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x42bf4b
cmp word [ebp - 0x858], 0x2e
jne 0x42bf4b
mov ax, word [ebp - 0x856]
test ax, ax
je 0x42bf27
cmp ax, 0x2e
jne 0x42bf4b
cmp word [ebp - 0x854], 0
jne 0x42bf4b
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x42c064
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jmp 0x42bede
lea eax, [ebp - 0x1088]
push eax
lea ecx, [ebp - 0x884]
call fcn.0042b5e0
lea eax, [ebp - 0x108c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x884]
call fcn.0042b530
lea ecx, [ebp - 0x108c]
mov byte [ebp - 4], 2
call fcn.00408d50
cmp dword [ebp - 0x424], 0
je 0x42bfc6
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x42bfc6
mov esi, dword [ebp - 0x1088]
sub esp, 0x28
mov eax, esp
mov dword [eax], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8CUninstaller__AEXXZPAV3__std__X__V_std__.0
mov dword [eax + 4], fcn.0042b000
mov dword [eax + 8], ebx
mov dword [eax + 0x24], eax
lea eax, [ebx + 0xc]
push eax
push esi
call fcn.00434950
add esp, 0x30
jmp 0x42bff2
mov esi, dword [ebp - 0x1088]
lea eax, [ebx + 0xc]
push eax
push esi
call fcn.00434810
add esp, 8
test eax, eax
je 0x42bff2
push esi
push 0x531d50
call fcn.004215a0
add esp, 8
mov ecx, ebx
call fcn.0042b000
mov eax, dword [ebp - 0x428]
test eax, eax
jne 0x42c000
xor edi, edi
jmp 0x42c01f
cmp dword [ebp - 0x424], 0
jne 0x42c00d
xor edi, edi
jmp 0x42c01f
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
mov edx, dword [ebp - 0x108c]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42c041
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42c05d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jmp 0x42bede
mov dword [ebp - 0x424], 0
jmp 0x42c09a
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x42c09a
cmp eax, 0xffffffff
je 0x42c09a
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x428], 0
mov esi, dword [ebp - 0x1094]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov edx, str.failed.
mov ecx, str.suceess
cmove ecx, edx
push ecx
push esi
push str.remove_directory__s__s
call fcn.004215a0
push 0x800
lea eax, [ebp - 0x1084]
push 0
push eax
call fcn.00492a50
add esp, 0x18
lea eax, [ebp - 0x1084]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.HaloDesktop
lea eax, [ebp - 0x1084]
push eax
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x1084]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42c11e
lea eax, [ebp - 0x1084]
push eax
call fcn.00430df0
add esp, 4
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x42c13e
cmp eax, 0xffffffff
je 0x42c13e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
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.0045945a
mov esp, ebp
pop ebp
ret 4