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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ea3be
mov eax, dword fs:[0]
push eax
sub esp, 0xe00
mov eax, dword [0x5441b4]
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.004be120
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 0x4620e8
lea edi, [ebp - 0x21c]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x461be0
mov ecx, dword [0x50b670]
lea esi, [ebp - 0x478]
mov dword [edi], ecx
call fcn.00403cf0
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x464], 8
mov eax, dword [ebp - 0x478]
jae 0x461c13
mov eax, esi
mov edx, eax
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x461c15
lea edi, [ebp - 0x21c]
sub eax, edx
add edi, 0xfffffffe
jmp 0x461c30
mov cx, word [edi + 2]
add edi, 2
cmp cx, bx
jne 0x461c30
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 0x461c63
mov eax, dword [0x50b670]
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 0x461ca0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x461ca0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x440]
call fcn.004073c0
push 2
mov eax, 0x512570
lea ecx, [ebp - 0x440]
mov byte [ebp - 4], 1
call fcn.004065e0
lea esi, [ebp - 0x45c]
call fcn.00403b50
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x45c]
mov edi, 8
cmp dword [ebp - 0x448], edi
jae 0x461cfc
mov eax, esi
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x461d01
sub ecx, esi
sar ecx, 1
push ecx
lea ecx, [ebp - 0x440]
call fcn.004065e0
push 4
mov eax, str..lnk
lea ecx, [ebp - 0x440]
call fcn.004065e0
mov dword [ebp - 0xe04], ebx
lea eax, [ebp - 0xe04]
push eax
push 0x50f9a0
push 1
push ebx
push 0x4f62ec
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x461de1
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xe04]
cmp eax, ebx
je 0x461d6c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp - 0x448], edi
jb 0x461d83
mov eax, dword [ebp - 0x45c]
push eax
call fcn.004b6106
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 0x461db4
mov edx, dword [ebp - 0x440]
push edx
call fcn.004b6106
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 0x46215c
mov ecx, dword [ebp - 0x478]
push ecx
jmp 0x462154
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 0x4f67dc
push eax
call edx
cmp eax, ebx
jge 0x461ead
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xe08]
cmp eax, ebx
je 0x461e22
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 0x461e38
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp - 0x448], edi
jb 0x461e4f
mov eax, dword [ebp - 0x45c]
push eax
call fcn.004b6106
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 0x461e80
mov edx, dword [ebp - 0x440]
push edx
call fcn.004b6106
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 0x46215c
mov ecx, dword [ebp - 0x478]
push ecx
jmp 0x462154
mov ecx, dword [ebp - 0x440]
cmp dword [ebp - 0x42c], edi
jae 0x461ec1
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 0x461f27
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xe08]
cmp eax, ebx
je 0x461eeb
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 0x461f01
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x45c]
call fcn.00406760
lea ecx, [ebp - 0x440]
call fcn.00406760
lea ecx, [ebp - 0x478]
call fcn.00406760
jmp 0x46215c
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 0x461ed5
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x4e8]
call fcn.004067d0
push edi
push 0x5120d4
lea ecx, [ebp - 0x4e8]
push ecx
xor eax, eax
call fcn.0040c250
cmp eax, 0xffffffff
je 0x461f9a
lea ecx, [ebp - 0x4e8]
call fcn.00406760
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xe08]
cmp eax, ebx
je 0x461eeb
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x461eeb
lea esi, [ebp - 0xe00]
call fcn.0042f760
lea esi, [ebp - 0x504]
mov byte [ebp - 4], 6
call fcn.00403bd0
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.0044f910
lea ecx, [ebp - 0x504]
mov byte [ebp - 4], 9
call fcn.00406760
mov eax, dword [ebp - 0x4b0]
mov edi, 8
cmp dword [ebp - 0x49c], edi
jae 0x461ff4
mov eax, ebx
lea edx, [ebp - 0xe00]
call fcn.0044f9a0
push str.Unsetup.ico
lea eax, [ebp - 0x4cc]
push esi
push eax
call fcn.00404300
add esp, 0xc
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x4cc]
cmp dword [ebp - 0x4b8], edi
jae 0x46202c
lea eax, [ebp - 0x4cc]
lea edx, [ebp - 0xe00]
call fcn.0044f960
mov eax, 0x5120d4
lea edx, [ebp - 0xe00]
call fcn.0044f980
mov edx, dword [ebp - 0x440]
cmp dword [ebp - 0x42c], edi
jae 0x46205b
lea edx, [ebp - 0x440]
lea ecx, [ebp - 0xe00]
call fcn.0042fac0
lea ecx, [ebp - 0x4cc]
call fcn.00406760
lea ecx, [ebp - 0x4b0]
call fcn.00406760
lea eax, [ebp - 0xe00]
call fcn.0042f7e0
lea ecx, [ebp - 0x4e8]
call fcn.00406760
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0xe08]
test eax, eax
je 0x4620a8
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 0x4620be
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x45c]
call fcn.00406760
lea ecx, [ebp - 0x440]
call fcn.00406760
lea ecx, [ebp - 0x478]
mov dword [ebp - 4], 0xffffffff
call fcn.00406760
jmp 0x4620ed
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.00404300
mov eax, dword [ebp - 0x494]
add esp, 0xc
cmp dword [ebp - 0x480], edi
jae 0x46211f
lea eax, [ebp - 0x494]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x462145
mov eax, dword [ebp - 0x494]
cmp dword [ebp - 0x480], edi
jae 0x46213e
lea eax, [ebp - 0x494]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x480], edi
jb 0x46215c
mov edx, dword [ebp - 0x494]
push edx
call fcn.004b6106
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.004b6111
mov esp, ebp
pop ebp
ret 4