Function at 0x40dd70
Capabilities:
Check if file exists
Create shortcut via ishelllink
Get common file path
Get file attributes
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55aea0
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x5a9840]
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 esi, ecx
push 0x64
call fcn.0040f4c0
push 4
mov ecx, esi
call fcn.0040a980
lea ebx, [esi + 0x4f0]
push ebx
lea ecx, [ebp - 0x230]
call fcn.00408e40
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 4], 0
cmp ecx, edx
jae 0x40ddfb
lea eax, [ecx + 1]
cmp edx, 7
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x230]
cmova eax, dword [ebp - 0x230]
mov dword [eax + ecx*2], 0x5c
jmp 0x40de17
push 0x5c
mov byte [ebp - 0x238], 0
lea ecx, [ebp - 0x230]
push dword [ebp - 0x238]
push 1
call fcn.00408310
push 0xe
push 0x565ed0
lea ecx, [ebp - 0x230]
call fcn.00410690
cmp dword [ebp - 0x21c], 7
lea eax, [ebp - 0x230]
cmova eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e05e
test al, 0x10
jne 0x40e05e
cmp dword [ebx + 0x14], 7
mov esi, ebx
jbe 0x40de5f
mov esi, dword [ebx]
cmp dword [ebp - 0x21c], 7
lea edi, [ebp - 0x230]
push 0
cmova edi, dword [ebp - 0x230]
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x40df5b
lea eax, [ebp - 0x234]
push eax
push 0x57e1c0
push 1
push 0
push 0x581b20
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40df55
mov eax, dword [ebp - 0x234]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x234]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x238]
push edx
push 0x57ed90
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x40df49
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004f26e0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40df10
mov eax, dword [ebp - 0x238]
lea edx, [ebp - 0x218]
mov ecx, 8
mov esi, 0x565f44
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x238]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x234]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [ebx + 0x14], 7
jbe 0x40df63
mov ebx, dword [ebx]
cmp dword [ebp - 0x21c], 7
lea esi, [ebp - 0x230]
push 0
cmova esi, dword [ebp - 0x230]
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x40e069
lea eax, [ebp - 0x234]
push eax
push 0x57e1c0
push 1
push 0
push 0x581b20
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40e056
mov eax, dword [ebp - 0x234]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x234]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x238]
push edx
push 0x57ed90
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x40e04a
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004f26e0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x40e011
mov eax, dword [ebp - 0x238]
lea edx, [ebp - 0x218]
mov ecx, 8
mov esi, 0x565f44
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x238]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x234]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x40e069
push str._XIMAO_OnDecompressDone_ExistFile_fail_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 0x21c]
cmp ecx, 7
jbe 0x40e0a5
mov edx, dword [ebp - 0x230]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40e09b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40e0c5
push ecx
push edx
call fcn.004ef1f0
add esp, 8
xor eax, eax
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.004ef253
mov esp, ebp
pop ebp
ret 0x10
call fcn.004ff818
int3