Function at 0x402f40
Capabilities:
Create shortcut via ishelllink
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f901
mov eax, dword fs:[0]
push eax
sub esp, 0x874
mov eax, dword [0x434018]
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 edi, ecx
mov esi, dword [edi]
mov ebx, dword [esi - 0xc]
test ebx, ebx
je 0x40332f
push 0x208
lea eax, [ebp - 0x258]
push 0
push eax
call fcn.0040cc50
add esp, 0xc
cmp dword [esi - 4], 1
jle 0x402fa3
push ebx
mov ecx, edi
call fcn.00402240
mov esi, dword [edi]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x258]
push eax
call esi
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0x208
lea eax, [ebp - 0x460]
push 0
push eax
call fcn.0040cc50
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x460]
push eax
call esi
push str._tools.ini
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x208
lea eax, [ebp - 0x870]
push 0
push eax
call fcn.0040cc50
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x460]
add esp, 0xc
push eax
push 0x104
lea eax, [ebp - 0x870]
push eax
push 0
push str.yxml
push str.UserInformation
call esi
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.0040cc50
add esp, 0xc
lea eax, [ebp - 0x460]
push eax
push 0x20
lea eax, [ebp - 0x50]
push eax
push 0
push 0x42b810
push str.UserInformation
call esi
lea eax, [ebp - 0x50]
push str.zh_cn
push eax
call fcn.004102a2
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 8
test eax, eax
je 0x403089
lea eax, [ebp - 0x50]
push eax
call esi
test eax, eax
je 0x403089
xor bl, bl
jmp 0x40308b
mov bl, 1
lea eax, [ebp - 0x258]
push eax
call esi
test eax, eax
je 0x40332f
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x878]
mov dword [ebp - 0x878], 0
push eax
push 0x4202e0
push 1
push 0
push 0x420300
mov dword [ebp - 0x87c], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x403309
mov eax, dword [ebp - 0x878]
push dword [edi]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
call fcn.00401e10
mov ecx, eax
test ecx, ecx
je 0x40334d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x874], eax
lea eax, [ebp - 0x258]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x874]
call fcn.00403850
test al, al
jne 0x403152
lea ecx, [ebp - 0x258]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403130
sub ecx, edx
lea eax, [ebp - 0x258]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x874]
call fcn.00402040
push str.xzm.ico
lea edx, [ebp - 0x874]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x880]
call fcn.00403600
add esp, 4
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x878]
push 0
push dword [eax]
mov edx, dword [ecx]
push ecx
call dword [edx + 0x44]
mov byte [ebp - 4], 1
or edi, 0xffffffff
mov edx, dword [ebp - 0x880]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4031aa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov edx, dword [ebp - 0x874]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4031ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x878]
lea edx, [ebp - 0x258]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x878]
lea edx, [ebp - 0x87c]
push edx
push 0x4202f0
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
js 0x403309
push 0x208
lea eax, [ebp - 0x668]
push 0
push eax
call fcn.0040cc50
add esp, 0xc
lea eax, [ebp - 0x668]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.00401e10
mov ecx, eax
test ecx, ecx
je 0x403357
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x874], eax
mov ecx, str.XZZ.lnk
mov dword [ebp - 4], 3
test bl, bl
mov eax, 0x42b9e0
cmove eax, ecx
push eax
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x874]
push str._s_s
push eax
call fcn.004039f0
mov eax, dword [ebp - 0x87c]
add esp, 0x10
mov esi, dword [ebp - 0x874]
mov ecx, dword [eax]
push 1
push esi
push eax
call dword [ecx + 0x18]
test eax, eax
js 0x4032ed
lea eax, [ebp - 0x460]
push eax
lea eax, [ebp - 0x258]
push eax
push str.yxml
push str.UserInformation
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [ebp - 0x87c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x878]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x4032e9
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
jmp 0x403331
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x403309
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0x87c]
test ecx, ecx
je 0x403319
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x878]
test ecx, ecx
je 0x403329
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
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.0040a893
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401b90
push 0x80004005
call fcn.00401b90
int3