Function at 0x4061f0
Capabilities:
Check os version
Create directory
Create shortcut via ishelllink
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x43a4ef
mov eax, dword fs:[0]
push eax
sub esp, 0xf70
mov eax, dword [0x44e848]
xor eax, esp
mov dword [esp + 0xf6c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44e848]
xor eax, esp
push eax
lea eax, [esp + 0xf84]
mov dword fs:[0], eax
call fcn.0040ad12
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406245
push 0x80004005
call fcn.00401020
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0xf8c], 0
call fcn.0040ad12
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40627a
push 0x80004005
call fcn.00401020
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov byte [esp + 0xf8c], 1
call fcn.0040ad12
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4062ac
push 0x80004005
call fcn.00401020
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x2c], eax
mov byte [esp + 0xf8c], 2
call fcn.0040ad12
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4062de
push 0x80004005
call fcn.00401020
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov byte [esp + 0xf8c], 3
call fcn.0040ad12
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406310
push 0x80004005
call fcn.00401020
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x562]
push edx
mov byte [esp + 0xf98], 4
mov word [esp + 0x564], cx
call fcn.00427580
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x366]
push ecx
mov word [esp + 0x368], ax
call fcn.00427580
add esp, 0x18
call fcn.0040ad12
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40637f
push 0x80004005
call fcn.00401020
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x28], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x104
lea ecx, [esp + 0x96c]
push ecx
push 0
mov byte [esp + 0xf98], 5
call edi
lea edx, [esp + 0x968]
push 0x5c
push edx
call fcn.004276b8
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [esp + 0x968]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4063d0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x96c]
push edx
lea ecx, [esp + 0x30]
call fcn.00403430
push str.TPMXUD.ini
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00405650
add esp, 0xc
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xf90], 6
call fcn.004055d0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xf8c], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406442
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x28]
push ecx
push 0x104
lea edx, [esp + 0xd80]
push edx
push 0x43ebcc
push 0x43f188
push 0x43e660
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x114
lea eax, [esp + 0x38]
push 0
push eax
call fcn.00427580
add esp, 0xc
lea ecx, [esp + 0x34]
push ecx
mov dword [esp + 0x38], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x38]
cmp eax, 6
jne 0x4064a5
cmp dword [esp + 0x3c], 0
ja 0x4064ab
jmp 0x4069f7
jbe 0x4069f7
lea eax, [esp + 0xd78]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4064b5
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xd7c]
push edx
lea ecx, [esp + 0x20]
call fcn.00403430
mov esi, dword [esp + 0x18]
mov eax, dword [esi - 0xc]
test eax, eax
jge 0x4064e6
or eax, 0xffffffff
jmp 0x406501
push 0x43f184
push esi
call fcn.0042796c
add esp, 8
test eax, eax
jne 0x4064fd
or eax, 0xffffffff
jmp 0x406501
sub eax, esi
sar eax, 1
push eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x20]
call fcn.00405480
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0xf90], 7
call fcn.004055d0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xf8c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40654a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi - 0xc]
mov ebx, dword [esp + 0x20]
sub eax, dword [ebx - 0xc]
lea ecx, [esp + 0x14]
dec eax
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00405400
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0xf90], 8
call fcn.004055d0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xf8c], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40659e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], 0
jge 0x4065ad
or eax, 0xffffffff
jmp 0x4065c8
push 0x43f184
push esi
call fcn.0042796c
add esp, 8
test eax, eax
jne 0x4065c4
or eax, 0xffffffff
jmp 0x4065c8
sub eax, esi
sar eax, 1
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x20]
call fcn.00405480
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0xf90], 9
call fcn.004055d0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xf8c], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406611
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi - 0xc]
mov ecx, dword [esp + 0x30]
sub eax, dword [ecx - 0xc]
lea edx, [esp + 0x14]
dec eax
push eax
push edx
lea ecx, [esp + 0x20]
call fcn.00405400
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0xf90], 0xa
call fcn.004055d0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0xf8c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406665
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x104
lea ecx, [esp + 0x55c]
push ecx
push 0
call edi
cmp dword [esp + 0x38], 6
jne 0x406694
cmp dword [esp + 0x3c], 2
jne 0x406694
lea edx, [esp + 0x350]
push edx
push 0
push 0
push 2
jmp 0x4066a2
lea eax, [esp + 0x350]
push eax
push 0
push 0
push 0x17
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x43ec4c
lea ecx, [esp + 0x354]
push ecx
call edi
cmp dword [ebx - 0xc], 0
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyW]
jl 0x4067f0
push 0x43ec4c
push ebx
call fcn.0042796c
add esp, 8
test eax, eax
je 0x4067f0
sub eax, ebx
sar eax, 1
cmp eax, 0xffffffff
je 0x4067f0
call fcn.0040ad12
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40670c
push 0x80004005
call fcn.00401020
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x350]
push ecx
lea edx, [esp + 0x14c]
mov bl, 0xb
push edx
mov byte [esp + 0xf94], bl
call ebp
mov esi, dword [esp + 0x20]
cmp dword [esi - 0xc], 0
jge 0x406746
or eax, 0xffffffff
jmp 0x406761
push 0x43ec4c
push esi
call fcn.0042796c
add esp, 8
test eax, eax
jne 0x40675d
or eax, 0xffffffff
jmp 0x406761
sub eax, esi
sar eax, 1
push eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
call fcn.00405480
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0xf90], 0xc
call fcn.004055d0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0xf8c], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x14]
push esi
lea ecx, [esp + 0x14c]
push ecx
call edi
push 0
lea edx, [esp + 0x14c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esi - 0x10]
mov byte [esp + 0xf8c], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4067ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x20]
push ebx
lea ecx, [esp + 0x354]
push ecx
call edi
xor esi, esi
push esi
lea edx, [esp + 0x354]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x354]
push ecx
lea edx, [esp + 0x2c]
push str._s_s.lnk
push edx
call fcn.00401450
add esp, 0x10
cmp dword [esp + 0x38], 6
jne 0x406947
cmp dword [esp + 0x3c], 2
jne 0x406947
push 0x206
lea ecx, [esp + 0x14e]
xor eax, eax
push esi
push ecx
mov word [esp + 0x154], ax
call fcn.00427580
push 0x206
lea eax, [esp + 0xb82]
xor edx, edx
push esi
push eax
mov word [esp + 0xb88], dx
call fcn.00427580
push 0x206
lea edx, [esp + 0x77e]
xor ecx, ecx
push esi
push edx
mov word [esp + 0x784], cx
call fcn.00427580
add esp, 0x24
lea eax, [esp + 0x968]
push eax
lea ecx, [esp + 0x764]
push ecx
call ebp
push str.pelmenu.dll
lea edx, [esp + 0x764]
push edx
call edi
lea eax, [esp + 0x760]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [esp + 0x24]
mov esi, eax
mov eax, dword [ecx - 0xc]
push eax
lea ecx, [esp + 0x28]
call fcn.004052f0
push eax
lea edx, [esp + 0x14c]
push edx
call ebp
mov eax, dword [esp + 0x2c]
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x30]
call fcn.004052f0
push eax
lea ecx, [esp + 0xb74]
push ecx
call ebp
test esi, esi
je 0x4069f7
push str.InstallShortCut
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40693b
push 0
lea edx, [esp + 0xb74]
push edx
lea ecx, [esp + 0x560]
push ecx
lea edx, [esp + 0x154]
push edx
call eax
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x4069f7
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x1c]
push eax
push 0x44479c
push 1
push esi
push 0x44480c
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x4069f1
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x558]
mov dword [esp + 0x14], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x2c]
call eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x4447cc
push eax
mov eax, dword [ecx]
call eax
cmp eax, esi
jl 0x4069e5
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x14c]
push edx
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
push 1
lea edx, [esp + 0x14c]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0xf8c], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov byte [esp + 0xf8c], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a47
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0xf8c], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
mov byte [esp + 0xf8c], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406a97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
mov byte [esp + 0xf8c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406abf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0xf8c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406aea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xf84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xf6c]
xor ecx, esp
call fcn.00427533
add esp, 0xf7c
ret