Function at 0x40cd60
Capabilities:
Check if file exists
Create directory
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b34b6
mov eax, dword fs:[0]
push eax
sub esp, 0x5f0
mov eax, dword [0x5603e8]
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 ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x5e4], ecx
mov ecx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x5d4], ecx
mov dword [ebp - 0x5fc], ebx
mov dword [ebp - 0x5f8], eax
mov dword [ebp - 0x5e8], edx
mov dword [ebp - 0x5f4], edi
cmp ecx, edi
je 0x40d5d8
cmp word [ecx], di
je 0x40d5d8
cmp ebx, edi
je 0x40d5d8
cmp word [ebx], di
je 0x40d5d8
cmp esi, edi
je 0x40d5d8
cmp word [esi], di
je 0x40d5d8
mov dword [ebp - 0x5d0], edi
mov dword [ebp - 0x5e0], edi
mov dword [ebp - 0x5d8], edi
call fcn.0040cd20
mov dword [ebp - 0x5ec], eax
lea eax, [ebp - 0x5d0]
push eax
push 0x52ee8c
push 1
push edi
push 0x52ef10
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, edi
jl 0x40d5dd
mov eax, dword [ebp - 0x5d0]
mov ecx, dword [eax]
lea edx, [ebp - 0x5e0]
push edx
push 0x52ef00
push eax
mov eax, dword [ecx]
call eax
mov edi, eax
test edi, edi
jns 0x40ce69
mov eax, dword [ebp - 0x5d0]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, edi
jmp 0x40d5dd
mov eax, dword [ebp - 0x5e0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push 2
push ebx
push eax
call edx
test eax, eax
js 0x40ce90
mov eax, dword [ebp - 0x5d0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x4c]
push 3
push 0
push eax
call edx
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov dword [ebp - 0x5dc], 0
mov word [ebp - 0x218], ax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x5d0]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
add esp, 0xc
push 4
push 0
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push eax
call edx
mov edi, dword [ebp - 0x5d4]
test eax, eax
js 0x40cef5
lea eax, [ebp - 0x218]
push edi
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x40cf11
mov eax, dword [ebp - 0x5d0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push edi
push eax
call edx
mov ebx, 1
mov dword [ebp - 0x5d8], ebx
jmp 0x40cf16
mov ebx, 1
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x5d0]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push eax
call edx
test eax, eax
js 0x40cf8f
mov ecx, esi
lea eax, [ebp - 0x218]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40cf86
test dx, dx
je 0x40cf82
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40cf86
add eax, 4
add ecx, 4
test dx, dx
jne 0x40cf60
xor eax, eax
jmp 0x40cf8b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40cfa4
mov eax, dword [ebp - 0x5d0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push esi
push eax
call edx
mov dword [ebp - 0x5d8], ebx
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41e]
push ecx
mov word [ebp - 0x420], ax
call sub.MSVCR100.dll_memset
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call sub.MSVCR100.dll_memset
add esp, 0x18
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x5e4]
push edi
call fcn.00407530
mov eax, dword [ebp - 0x5d0]
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
push 0x104
lea ecx, [ebp - 0x420]
push ecx
push eax
call edx
test eax, eax
js 0x40d04f
lea ecx, [ebp - 0x218]
lea eax, [ebp - 0x420]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d046
test dx, dx
je 0x40d042
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d046
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d020
xor eax, eax
jmp 0x40d04b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40d06a
mov eax, dword [ebp - 0x5d0]
mov ecx, dword [eax]
lea edx, [ebp - 0x218]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov dword [ebp - 0x5d8], ebx
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x41e]
push edx
mov word [ebp - 0x420], cx
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x5d0]
mov ecx, dword [eax]
add esp, 0xc
push 0x104
lea edx, [ebp - 0x420]
push edx
push eax
mov eax, dword [ecx + 0x28]
call eax
mov edi, dword [ebp - 0x5ec]
mov ebx, dword [sym.imp.QtCore4.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const]
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [edi + 4]
call ebx
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x40d105
mov eax, dword [ebp - 0x5d0]
mov edx, dword [eax]
push 0x4c79ac
push eax
mov eax, dword [edx + 0x2c]
call eax
mov ecx, dword [ebp - 0x5d0]
mov esi, dword [ecx]
lea ecx, [edi + 4]
call ebx
mov edx, dword [ebp - 0x5d0]
push eax
mov eax, dword [esi + 0x2c]
push edx
call eax
mov dword [ebp - 0x5dc], eax
mov dword [ebp - 0x5d8], 1
mov edi, dword [ebp - 0x5e4]
cmp dword [edi + 0x24], 0
jne 0x40d117
cmp dword [edi + 0x4c], 0
jle 0x40d174
mov ecx, dword [ebp - 0x5d4]
push ecx
lea edx, [ebp - 0x55c]
push edx
mov ecx, edi
call fcn.0040bfb0
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], 0
jb 0x40d13d
mov ecx, dword [eax]
jmp 0x40d13f
mov ecx, eax
mov esi, dword [edi + 0x4c]
mov eax, dword [ebp - 0x5d0]
mov edx, dword [eax]
push esi
push ecx
push eax
mov eax, dword [edx + 0x44]
call eax
lea ecx, [ebp - 0x55c]
mov dword [ebp - 0x5dc], eax
mov dword [ebp - 4], 0xffffffff
call fcn.004a9f30
mov dword [ebp - 0x5d8], 1
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x41e]
push edx
mov word [ebp - 0x420], cx
call sub.MSVCR100.dll_memset
or esi, 0xffffffff
add esp, 0xc
cmp dword [edi + 0x24], 0
mov dword [ebp - 0x5f0], esi
jne 0x40d1b2
cmp dword [edi + 0x4c], 0
jg 0x40d1b2
mov eax, dword [ebp + 0x1c]
test eax, eax
js 0x40d1b5
mov esi, eax
jmp 0x40d1b5
mov esi, dword [edi + 0x4c]
mov eax, dword [ebp - 0x5d0]
mov ecx, dword [eax]
lea edx, [ebp - 0x5f0]
push edx
push 0x104
lea edx, [ebp - 0x420]
push edx
push eax
mov eax, dword [ecx + 0x40]
call eax
mov ebx, dword [ebp - 0x5e8]
mov edi, eax
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d1e3
sub eax, edx
sar eax, 1
jne 0x40d214
mov ecx, dword [ebp - 0x5d4]
push ecx
mov ecx, dword [ebp - 0x5e4]
lea edx, [ebp - 0x5b0]
push edx
call fcn.0040bfb0
mov ebx, 1
jmp 0x40d225
push ebx
lea ecx, [ebp - 0x594]
call fcn.00405cd0
mov ebx, 2
push eax
lea ecx, [ebp - 0x55c]
mov dword [ebp - 0x5f4], ebx
mov dword [ebp - 4], ebx
call fcn.00405de0
mov dword [ebp - 4], 3
test bl, 2
je 0x40d254
lea ecx, [ebp - 0x594]
and ebx, 0xfffffffd
call fcn.004a9f30
mov byte [ebp - 4], 5
test bl, 1
je 0x40d268
lea ecx, [ebp - 0x5b0]
call fcn.004a9f30
test esi, esi
js 0x40d2f1
mov ebx, dword [ebp - 0x55c]
test edi, edi
mov edi, dword [ebp - 0x548]
js 0x40d2ca
mov ecx, ebx
cmp edi, 8
jae 0x40d28d
lea ecx, [ebp - 0x55c]
lea eax, [ebp - 0x420]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40d2b9
test dx, dx
je 0x40d2b5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40d2b9
add eax, 4
add ecx, 4
test dx, dx
jne 0x40d293
xor eax, eax
jmp 0x40d2be
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40d2ca
cmp dword [ebp - 0x5f0], esi
je 0x40d2f1
mov ecx, ebx
cmp edi, 8
jae 0x40d2d7
lea ecx, [ebp - 0x55c]
mov eax, dword [ebp - 0x5d0]
mov edx, dword [eax]
push esi
push ecx
push eax
mov eax, dword [edx + 0x44]
call eax
mov dword [ebp - 0x5d8], 1
or esi, 0xffffffff
lea ecx, [ebp - 0x55c]
mov dword [ebp - 4], esi
call fcn.004a9f30
mov edi, dword [ebp - 0x5ec]
add edi, 0x10
mov ecx, edi
call dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QString::isEmpty_void_const]
test al, al
jne 0x40d44c
mov ecx, dword [ebp - 0x5d0]
push ecx
lea ecx, [ebp - 0x5d4]
call fcn.00408d30
mov ecx, dword [ebp - 0x5d4]
mov dword [ebp - 4], 6
test ecx, ecx
je 0x40d43d
xor edx, edx
xor eax, eax
mov word [ebp - 0x534], dx
lea edx, [ebp - 0x534]
push edx
mov dword [ebp - 0x532], eax
mov dword [ebp - 0x52e], eax
mov dword [ebp - 0x52a], eax
mov word [ebp - 0x526], ax
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
push 0x4c7a88
push ecx
call eax
test eax, eax
js 0x40d437
mov eax, dword [ebp - 0x52c]
test eax, eax
je 0x40d3a7
push eax
mov ecx, edi
call dword [sym.imp.QtCore4.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const]
push eax
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x40d437
xor ecx, ecx
push 0x100
push ecx
lea edx, [ebp - 0x522]
push edx
mov word [ebp - 0x524], cx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, edi
call dword [sym.imp.QtCore4.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const]
push eax
lea eax, [ebp - 0x524]
push 0x80
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
mov eax, dword [ebp - 0x5d4]
lea edx, [ebp - 0x524]
add esp, 0xc
mov dword [ebp - 0x52c], edx
lea edx, [ebp - 0x534]
push edx
mov ecx, 0x1f
mov word [ebp - 0x534], cx
mov ecx, dword [eax]
push 0x4c7a88
push eax
mov eax, dword [ecx + 0x18]
call eax
test eax, eax
js 0x40d437
mov eax, dword [ebp - 0x5d4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push eax
call edx
mov dword [ebp - 0x5dc], eax
mov dword [ebp - 0x5d8], 1
mov ecx, dword [ebp - 0x5d4]
mov dword [ebp - 4], esi
test ecx, ecx
je 0x40d44c
mov eax, dword [ecx]
push ecx
mov ecx, dword [eax + 8]
call ecx
mov esi, dword [ebp - 0x5e4]
mov ecx, esi
call fcn.00408010
test eax, eax
je 0x40d479
mov eax, dword [ebp - 0x5f8]
mov ecx, dword [ebp - 0x5d0]
lea edx, [ebp - 0x5d8]
push edx
push eax
push ecx
mov ecx, esi
call fcn.00408da0
cmp dword [ebp - 0x5d8], 0
je 0x40d5b4
mov eax, 7
xor edx, edx
mov dword [ebp - 0x52c], eax
mov dword [ebp - 0x530], 0
mov word [ebp - 0x540], dx
mov edi, dword [ebp - 0x5fc]
push edi
lea ecx, [ebp - 0x578]
mov dword [ebp - 4], eax
call fcn.00405cd0
push edi
mov byte [ebp - 4], 8
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d580
push 1
push 1
push 0x4c7780
lea ecx, [ebp - 0x578]
call fcn.004087e0
mov esi, eax
cmp esi, 0xffffffff
je 0x40d580
mov bl, 9
lea ecx, [ecx]
push esi
push 0
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x578]
call fcn.00409fc0
push eax
lea ecx, [ebp - 0x540]
mov byte [ebp - 4], bl
call fcn.00405d20
lea ecx, [ebp - 0x5cc]
mov byte [ebp - 4], 8
call fcn.004a9f30
cmp dword [ebp - 0x52c], 8
mov eax, dword [ebp - 0x540]
jae 0x40d538
lea eax, [ebp - 0x540]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d561
cmp dword [ebp - 0x52c], 8
mov eax, dword [ebp - 0x540]
jae 0x40d558
lea eax, [ebp - 0x540]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
inc esi
push esi
push 0x4c7780
lea ecx, [ebp - 0x578]
call fcn.004087e0
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d4f0
mov eax, dword [ebp - 0x5e0]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push edi
push eax
call edx
lea ecx, [ebp - 0x578]
mov dword [ebp - 0x5dc], eax
call fcn.004a9f30
lea ecx, [ebp - 0x540]
mov dword [ebp - 4], 0xffffffff
call fcn.004a9f30
mov eax, dword [ebp - 0x5e0]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x5d0]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x5dc]
jmp 0x40d5dd
mov eax, 0x80070057
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.004b12f6
mov esp, ebp
pop ebp
ret 0x18