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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5b4d
mov eax, dword fs:[0]
push eax
sub esp, 0xdac
mov eax, dword [0x53f1e4]
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 - 0xdb8], eax
mov word [ebp - 0x21c], cx
call fcn.004b9c60
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 0x45f5d9
lea edi, [ebp - 0x21c]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x45f250
mov ecx, dword [0x5062dc]
lea eax, [ebp - 0x21c]
mov dword [edi], ecx
add eax, 0xfffffffe
lea ecx, [ecx]
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x45f270
mov edx, dword [0x50a8b0]
mov ecx, dword [0x50a8b4]
mov dword [eax], edx
mov edx, dword [0x50a8b8]
mov dword [eax + 4], ecx
mov ecx, dword [0x50a8bc]
mov dword [eax + 8], edx
push ebx
lea edx, [ebp - 0x21c]
push edx
mov dword [eax + 0xc], ecx
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 0x45f2b6
mov eax, dword [0x5062dc]
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 0x45f2f0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45f2f0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x440]
call fcn.00404960
push 2
mov eax, 0x50d8f8
lea ecx, [ebp - 0x440]
mov dword [ebp - 4], ebx
call fcn.00403f00
push 7
mov eax, 0x50a8b0
lea ecx, [ebp - 0x440]
call fcn.00403f00
push 4
mov eax, str..lnk
lea ecx, [ebp - 0x440]
call fcn.00403f00
mov dword [ebp - 0xdb0], ebx
lea eax, [ebp - 0xdb0]
push eax
push 0x50aa28
push 1
push ebx
push 0x4f132c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x45f39d
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0xdb0]
cmp eax, ebx
je 0x45f384
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp - 0x42c], 8
jb 0x45f64d
mov eax, dword [ebp - 0x440]
push eax
jmp 0x45f645
mov dword [ebp - 0xdb4], ebx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0xdb0]
mov ecx, dword [eax]
lea edx, [ebp - 0xdb4]
push edx
push 0x4f181c
push eax
mov eax, dword [ecx]
call eax
cmp eax, ebx
jge 0x45f3dc
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xdb4]
cmp eax, ebx
je 0x45f36f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
jmp 0x45f36f
mov ecx, dword [ebp - 0x440]
mov edi, 8
cmp dword [ebp - 0x42c], edi
jae 0x45f3f5
lea ecx, [ebp - 0x440]
mov eax, dword [ebp - 0xdb4]
mov edx, dword [eax]
push ebx
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
cmp eax, ebx
jge 0x45f444
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xdb4]
cmp eax, ebx
je 0x45f41f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0xdb0]
cmp eax, ebx
je 0x45f434
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x440]
call fcn.00404a50
jmp 0x45f64d
mov eax, dword [ebp - 0xdb0]
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 0x45f409
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x4b0]
call fcn.00404190
push edi
push 0x50d5a4
lea ecx, [ebp - 0x4b0]
push ecx
xor eax, eax
call fcn.0040d750
cmp eax, 0xffffffff
je 0x45f4b7
lea ecx, [ebp - 0x4b0]
call fcn.00404a50
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xdb4]
cmp eax, ebx
je 0x45f41f
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
jmp 0x45f41f
lea esi, [ebp - 0xdac]
call fcn.00430520
mov esi, dword [ebp - 0xdb8]
push 0x50c8c0
add esi, 0x24
lea eax, [ebp - 0x494]
push esi
push eax
mov byte [ebp - 4], 4
call fcn.00403a10
add esp, 0xc
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x494]
cmp dword [ebp - 0x480], edi
jae 0x45f4fc
lea eax, [ebp - 0x494]
lea edx, [ebp - 0xdac]
call fcn.00450a00
push str.Unsetup.ico
lea ecx, [ebp - 0x478]
push esi
push ecx
call fcn.00403a10
add esp, 0xc
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x478]
cmp dword [ebp - 0x464], edi
jae 0x45f534
lea eax, [ebp - 0x478]
lea edx, [ebp - 0xdac]
call fcn.004509c0
mov eax, 0x50d5a4
lea edx, [ebp - 0xdac]
call fcn.004509e0
mov edx, dword [ebp - 0x440]
cmp dword [ebp - 0x42c], edi
jae 0x45f563
lea edx, [ebp - 0x440]
lea ecx, [ebp - 0xdac]
call fcn.00430880
lea ecx, [ebp - 0x478]
call fcn.00404a50
lea ecx, [ebp - 0x494]
call fcn.00404a50
lea eax, [ebp - 0xdac]
call fcn.004305a0
lea ecx, [ebp - 0x4b0]
call fcn.00404a50
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xdb4]
cmp eax, ebx
je 0x45f5b0
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0xdb0]
cmp eax, ebx
je 0x45f5c5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea ecx, [ebp - 0x440]
mov dword [ebp - 4], 0xffffffff
call fcn.00404a50
jmp 0x45f5de
mov edi, 8
mov eax, dword [ebp - 0xdb8]
push str.XYRecoverUninstall.exe
add eax, 0x24
push eax
lea ecx, [ebp - 0x45c]
push ecx
call fcn.00403a10
mov eax, dword [ebp - 0x45c]
add esp, 0xc
cmp dword [ebp - 0x448], edi
jae 0x45f610
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x45f636
mov eax, dword [ebp - 0x45c]
cmp dword [ebp - 0x448], edi
jae 0x45f62f
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x448], edi
jb 0x45f64d
mov edx, dword [ebp - 0x45c]
push edx
call fcn.004b1c22
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.004b1c2d
mov esp, ebp
pop ebp
ret 4