Function at 0x40e6b0
Capabilities:
Check if file exists
Create directory
Create shortcut via ishelllink
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x42a95c]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x17
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
mov dword [ebp - 0x62c], eax
cmp dword [ebp - 0x62c], 0
je 0x40e6f6
mov eax, 1
jmp 0x40e9cf
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 0x218]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov edx, dword [ebp - 0x218]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push 0x420e60
lea eax, [ebp - 0x210]
push eax
call fcn.004118b0
add esp, 8
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x630], eax
cmp dword [ebp - 0x630], 0xffffffff
je 0x40e752
mov edx, dword [ebp - 0x630]
and edx, 0x10
jne 0x40e782
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e782
push 0x38
call fcn.004129f0
add esp, 4
push eax
mov ecx, dword [ebp + 8]
call fcn.00404ef0
mov eax, 1
jmp 0x40e9cf
push 0x420e78
lea ecx, [ebp - 0x210]
push ecx
call fcn.004118b0
add esp, 8
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x630], eax
cmp dword [ebp - 0x630], 0xffffffff
je 0x40e7bd
mov eax, dword [ebp - 0x630]
and eax, 0x10
jne 0x40e7ed
push 0
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40e7ed
push 0x38
call fcn.004129f0
add esp, 4
push eax
mov ecx, dword [ebp + 8]
call fcn.00404ef0
mov eax, 1
jmp 0x40e9cf
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [ebp - 0x214]
push edx
push 0x424bbc
push 1
push 0
push 0x424bec
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x62c], eax
cmp dword [ebp - 0x62c], 0
jge 0x40e829
mov eax, 1
jmp 0x40e9cf
lea eax, [ebp - 4]
push eax
push 0x424bdc
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [edx]
call ecx
mov dword [ebp - 0x62c], eax
cmp dword [ebp - 0x62c], 0
jge 0x40e86f
mov edx, dword [ebp - 0x214]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [eax + 8]
call edx
xor eax, eax
jmp 0x40e9cf
lea eax, [ebp - 0x420]
push eax
call fcn.0040e520
add esp, 4
lea ecx, [ebp - 0x420]
push ecx
push str._sHKBTokendftx
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x628]
push eax
mov ecx, dword [ebp - 0x214]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [edx + 0x24]
call ecx
push 1
mov edx, dword [ebp - 0x214]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [eax + 0x3c]
call edx
lea eax, [ebp - 0x420]
push eax
push str._sHKBTokendftxHKB_DFTX_Client.exe
lea ecx, [ebp - 0x628]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x628]
push edx
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x214]
push edx
mov eax, dword [ecx + 0x50]
call eax
lea ecx, [ebp - 0x210]
push ecx
push 0x420ef4
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
lea eax, [ebp - 0x628]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx + 0x18]
call ecx
mov dword [ebp - 0x62c], eax
lea edx, [ebp - 0x420]
push edx
push str._sHKBTokendftxuninst.exe
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x628]
push ecx
mov edx, dword [ebp - 0x214]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [eax + 0x50]
call edx
lea eax, [ebp - 0x210]
push eax
push 0x420f48
lea ecx, [ebp - 0x628]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 1
lea edx, [ebp - 0x628]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx + 0x18]
call eax
mov dword [ebp - 0x62c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx + 8]
call ecx
mov edx, dword [ebp - 0x214]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [eax + 8]
call edx
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00413653
mov esp, ebp
pop ebp
ret