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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efdce
mov eax, dword fs:[0]
push eax
sub esp, 0xe00
mov eax, dword [0x54b1b4]
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.004c24e0
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 0x466218
lea edi, [ebp - 0x21c]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x465d10
mov ecx, dword [0x510884]
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 0x465d43
mov eax, esi
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x465d45
lea edi, [ebp - 0x21c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x465d60
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x465d60
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 0x465d93
mov eax, dword [0x510884]
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 0x465dd0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x465dd0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x440]
call fcn.00408440
push 2
mov eax, 0x517dc0
lea ecx, [ebp - 0x440]
mov byte [ebp - 4], 1
call fcn.00407450
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 0x465e2c
mov eax, esi
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x465e31
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x440]
call fcn.00407450
push 4
mov eax, str..lnk
lea ecx, [ebp - 0x440]
call fcn.00407450
mov dword [ebp - 0xe04], ebx
lea eax, [ebp - 0xe04]
push eax
push 0x5150e0
push 1
push ebx
push 0x4fb2fc
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x465f11
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xe04]
cmp eax, ebx
je 0x465e9c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp - 0x448], edi
jb 0x465eb3
mov eax, dword [ebp - 0x45c]
push eax
call fcn.004ba3a4
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 0x465ee4
mov edx, dword [ebp - 0x440]
push edx
call fcn.004ba3a4
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 0x46628c
mov ecx, dword [ebp - 0x478]
push ecx
jmp 0x466284
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 0x4fb7ec
push eax
call edx
cmp eax, ebx
jge 0x465fdd
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xe08]
cmp eax, ebx
je 0x465f52
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 0x465f68
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp - 0x448], edi
jb 0x465f7f
mov eax, dword [ebp - 0x45c]
push eax
call fcn.004ba3a4
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 0x465fb0
mov edx, dword [ebp - 0x440]
push edx
call fcn.004ba3a4
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 0x46628c
mov ecx, dword [ebp - 0x478]
push ecx
jmp 0x466284
mov ecx, dword [ebp - 0x440]
cmp dword [ebp - 0x42c], edi
jae 0x465ff1
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 0x466057
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xe08]
cmp eax, ebx
je 0x46601b
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 0x466031
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x45c]
call fcn.004077e0
lea ecx, [ebp - 0x440]
call fcn.004077e0
lea ecx, [ebp - 0x478]
call fcn.004077e0
jmp 0x46628c
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 0x466005
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x4e8]
call fcn.00407850
push edi
push 0x5178c4
lea ecx, [ebp - 0x4e8]
push ecx
xor eax, eax
call fcn.004071a0
cmp eax, 0xffffffff
je 0x4660ca
lea ecx, [ebp - 0x4e8]
call fcn.004077e0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xe08]
cmp eax, ebx
je 0x46601b
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x46601b
lea esi, [ebp - 0xe00]
call fcn.00431220
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.00452410
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 9
call fcn.004077e0
mov eax, dword [ebp - 0x4b0]
mov edi, 8
cmp dword [ebp - 0x49c], edi
jae 0x466124
mov eax, ebx
lea edx, [ebp - 0xe00]
call fcn.004524b0
push str.Unsetup.ico
lea eax, [ebp - 0x4cc]
push esi
push eax
call fcn.004076e0
add esp, 0xc
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x4cc]
cmp dword [ebp - 0x4b8], edi
jae 0x46615c
lea eax, [ebp - 0x4cc]
lea edx, [ebp - 0xe00]
call fcn.00452470
mov eax, 0x5178c4
lea edx, [ebp - 0xe00]
call fcn.00452490
mov edx, dword [ebp - 0x440]
cmp dword [ebp - 0x42c], edi
jae 0x46618b
lea edx, [ebp - 0x440]
lea ecx, [ebp - 0xe00]
call fcn.00431580
lea ecx, [ebp - 0x4cc]
call fcn.004077e0
lea ecx, [ebp - 0x4b0]
call fcn.004077e0
lea eax, [ebp - 0xe00]
call fcn.004312a0
lea ecx, [ebp - 0x4e8]
call fcn.004077e0
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xe08]
test eax, eax
je 0x4661d8
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 0x4661ee
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x45c]
call fcn.004077e0
lea ecx, [ebp - 0x440]
call fcn.004077e0
lea ecx, [ebp - 0x478]
mov dword [ebp - 4], 0xffffffff
call fcn.004077e0
jmp 0x46621d
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.004076e0
mov eax, dword [ebp - 0x494]
add esp, 0xc
cmp dword [ebp - 0x480], edi
jae 0x46624f
lea eax, [ebp - 0x494]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x466275
mov eax, dword [ebp - 0x494]
cmp dword [ebp - 0x480], edi
jae 0x46626e
lea eax, [ebp - 0x494]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x480], edi
jb 0x46628c
mov edx, dword [ebp - 0x494]
push edx
call fcn.004ba3a4
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.004ba3af
mov esp, ebp
pop ebp
ret 4