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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0efe
mov eax, dword fs:[0]
push eax
sub esp, 0xe00
mov eax, dword [0x54c1b4]
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 eax, dword [ebp + 8]
push 0x208
xor ebx, ebx
lea edx, [ebp - 0x21a]
xor ecx, ecx
push ebx
push edx
mov dword [ebp - 0xe0c], eax
mov word [ebp - 0x21c], cx
call fcn.004c3610
add esp, 0xc
push ebx
push 2
lea eax, [ebp - 0x21c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4670c8
lea edi, [ebp - 0x21c]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x466bc0
mov ecx, dword [0x5118c0]
lea esi, [ebp - 0x478]
mov dword [edi], ecx
call fcn.00403e00
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x464], 8
mov eax, dword [ebp - 0x478]
jae 0x466bf3
mov eax, esi
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x466bf5
lea edi, [ebp - 0x21c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x466c10
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x466c10
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
lea edx, [ebp - 0x21c]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edi, [ebp - 0x21c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x466c43
mov eax, dword [0x5118c0]
mov dword [edi], eax
xor ecx, ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], ebx
mov word [ebp - 0x440], cx
lea edx, [eax + 2]
jmp 0x466c80
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x466c80
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x440]
call fcn.00408810
push 2
mov eax, 0x518f70
lea ecx, [ebp - 0x440]
mov byte [ebp - 4], 1
call fcn.00407820
lea esi, [ebp - 0x45c]
call fcn.00403c60
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x45c]
mov edi, 8
cmp dword [ebp - 0x448], edi
jae 0x466cdc
mov eax, esi
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x466ce1
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x440]
call fcn.00407820
push 4
mov eax, str..lnk
lea ecx, [ebp - 0x440]
call fcn.00407820
mov dword [ebp - 0xe04], ebx
lea eax, [ebp - 0xe04]
push eax
push 0x516308
push 1
push ebx
push 0x4fc30c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x466dc1
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xe04]
cmp eax, ebx
je 0x466d4c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp - 0x448], edi
jb 0x466d63
mov eax, dword [ebp - 0x45c]
push eax
call fcn.004bb4d8
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x448], esi
mov dword [ebp - 0x44c], ebx
mov word [ebp - 0x45c], cx
cmp dword [ebp - 0x42c], edi
jb 0x466d94
mov edx, dword [ebp - 0x440]
push edx
call fcn.004bb4d8
add esp, 4
xor eax, eax
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x430], ebx
mov word [ebp - 0x440], ax
cmp dword [ebp - 0x464], edi
jb 0x46713c
mov ecx, dword [ebp - 0x478]
push ecx
jmp 0x467134
mov dword [ebp - 0xe08], ebx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0xe04]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [ebp - 0xe08]
push ecx
push 0x4fc7fc
push eax
call edx
cmp eax, ebx
jge 0x466e8d
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xe08]
cmp eax, ebx
je 0x466e02
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xe04]
cmp eax, ebx
je 0x466e18
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp - 0x448], edi
jb 0x466e2f
mov eax, dword [ebp - 0x45c]
push eax
call fcn.004bb4d8
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x448], esi
mov dword [ebp - 0x44c], ebx
mov word [ebp - 0x45c], cx
cmp dword [ebp - 0x42c], edi
jb 0x466e60
mov edx, dword [ebp - 0x440]
push edx
call fcn.004bb4d8
add esp, 4
xor eax, eax
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x430], ebx
mov word [ebp - 0x440], ax
cmp dword [ebp - 0x464], edi
jb 0x46713c
mov ecx, dword [ebp - 0x478]
push ecx
jmp 0x467134
mov ecx, dword [ebp - 0x440]
cmp dword [ebp - 0x42c], edi
jae 0x466ea1
lea ecx, [ebp - 0x440]
mov eax, dword [ebp - 0xe08]
mov edx, dword [eax]
push ebx
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
cmp eax, ebx
jge 0x466f07
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xe08]
cmp eax, ebx
je 0x466ecb
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xe04]
cmp eax, ebx
je 0x466ee1
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x45c]
call fcn.00407bb0
lea ecx, [ebp - 0x440]
call fcn.00407bb0
lea ecx, [ebp - 0x478]
call fcn.00407bb0
jmp 0x46713c
mov eax, dword [ebp - 0xe04]
mov ecx, dword [eax]
push 0x104
lea edx, [ebp - 0x424]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
test eax, eax
js 0x466eb5
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x4e8]
call fcn.00407c20
push edi
push 0x518b24
lea ecx, [ebp - 0x4e8]
push ecx
xor eax, eax
call fcn.00407570
cmp eax, 0xffffffff
je 0x466f7a
lea ecx, [ebp - 0x4e8]
call fcn.00407bb0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xe08]
cmp eax, ebx
je 0x466ecb
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x466ecb
lea esi, [ebp - 0xe00]
call fcn.00431cd0
lea esi, [ebp - 0x504]
mov byte [ebp - 4], 6
call fcn.00403ce0
mov esi, dword [ebp - 0xe0c]
add esi, 0x24
mov ecx, eax
mov eax, esi
lea ebx, [ebp - 0x4b0]
mov byte [ebp - 4], 7
call fcn.004530f0
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 9
call fcn.00407bb0
mov eax, dword [ebp - 0x4b0]
mov edi, 8
cmp dword [ebp - 0x49c], edi
jae 0x466fd4
mov eax, ebx
lea edx, [ebp - 0xe00]
call fcn.00453190
push str.Unsetup.ico
lea eax, [ebp - 0x4cc]
push esi
push eax
call fcn.00407ab0
add esp, 0xc
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x4cc]
cmp dword [ebp - 0x4b8], edi
jae 0x46700c
lea eax, [ebp - 0x4cc]
lea edx, [ebp - 0xe00]
call fcn.00453150
mov eax, 0x518b24
lea edx, [ebp - 0xe00]
call fcn.00453170
mov edx, dword [ebp - 0x440]
cmp dword [ebp - 0x42c], edi
jae 0x46703b
lea edx, [ebp - 0x440]
lea ecx, [ebp - 0xe00]
call fcn.00432030
lea ecx, [ebp - 0x4cc]
call fcn.00407bb0
lea ecx, [ebp - 0x4b0]
call fcn.00407bb0
lea eax, [ebp - 0xe00]
call fcn.00431d50
lea ecx, [ebp - 0x4e8]
call fcn.00407bb0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xe08]
test eax, eax
je 0x467088
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xe04]
test eax, eax
je 0x46709e
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x45c]
call fcn.00407bb0
lea ecx, [ebp - 0x440]
call fcn.00407bb0
lea ecx, [ebp - 0x478]
mov dword [ebp - 4], 0xffffffff
call fcn.00407bb0
jmp 0x4670cd
mov edi, 8
mov eax, dword [ebp - 0xe0c]
push str.XYRecoverUninstall.exe
add eax, 0x24
push eax
lea ecx, [ebp - 0x494]
push ecx
call fcn.00407ab0
mov eax, dword [ebp - 0x494]
add esp, 0xc
cmp dword [ebp - 0x480], edi
jae 0x4670ff
lea eax, [ebp - 0x494]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x467125
mov eax, dword [ebp - 0x494]
cmp dword [ebp - 0x480], edi
jae 0x46711e
lea eax, [ebp - 0x494]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x480], edi
jb 0x46713c
mov edx, dword [ebp - 0x494]
push edx
call fcn.004bb4d8
add esp, 4
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.004bb4e3
mov esp, ebp
pop ebp
ret 4