Function at 0x51f010
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58ff65
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x5ed80c]
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 eax, dword [ebp + 8]
mov esi, ecx
push esi
mov dword [ebp - 0x70], eax
call fcn.00408110
add esp, 4
test al, al
je 0x51f30c
lea eax, [esi + 0x38]
push eax
mov dword [ebp - 0x74], eax
call fcn.00408110
add esp, 4
test al, al
je 0x51f30c
lea eax, [esi + 0x54]
push eax
call fcn.00408110
add esp, 4
test al, al
je 0x51f30c
xor ebx, ebx
mov dword [ebp - 0x68], ebx
lea ecx, [ebp - 0x68]
push ecx
push 0x5bde90
push 0x17
push ebx
push 0x5c47a8
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
push eax
call fcn.004faa20
mov edi, dword [ebp - 0x68]
add esp, 4
lea edx, [ebp - 0x2c]
push edx
mov ecx, esi
call fcn.00407200
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 1
jb 0x51f0c1
mov eax, dword [eax]
mov ecx, dword [edi]
mov edx, dword [ecx + 0x50]
push eax
push edi
call edx
push eax
call fcn.004faa20
mov edi, 8
add esp, 4
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], edi
jb 0x51f0ec
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0055ae44
add esp, 4
cmp dword [esi + 0x2c], ebx
je 0x51f110
cmp dword [esi + 0x30], edi
lea eax, [esi + 0x1c]
jb 0x51f0fb
mov eax, dword [eax]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x2c]
push ecx
call eax
push eax
call fcn.004faa20
add esp, 4
mov edi, dword [ebp - 0x68]
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [esi + 0x54]
call fcn.00407200
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 2
jb 0x51f12b
mov eax, dword [eax]
mov ecx, dword [esi + 0x70]
mov edx, dword [edi]
mov edx, dword [edx + 0x44]
push ecx
push eax
push edi
call edx
push eax
call fcn.004faa20
mov edi, 8
add esp, 4
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], edi
jb 0x51f15a
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0055ae44
add esp, 4
cmp dword [esi + 0x48], ebx
je 0x51f193
mov esi, dword [ebp - 0x68]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp - 0x74]
call fcn.004077e0
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], edi
jb 0x51f179
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov eax, dword [edx + 0x24]
push esi
call eax
push eax
call fcn.004faa20
add esp, 4
lea ecx, [ebp - 0x2c]
call fcn.00413b90
mov dword [ebp - 0x6c], ebx
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
lea edx, [ebp - 0x6c]
push edx
push 0x5c4798
push eax
mov eax, dword [ecx]
mov byte [ebp - 4], 4
call eax
push eax
call fcn.004faa20
mov edx, dword [ebp - 0x70]
add esp, 4
push 0xffffffffffffffff
xor ecx, ecx
push ebx
mov word [ebp - 0x48], cx
push edx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
call fcn.00401b40
push str..lnk
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00401ec0
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.004076d0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x18], edi
jb 0x51f20b
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0055ae44
add esp, 4
lea edx, [ebp - 0x48]
push edx
call fcn.00408110
add esp, 4
test al, al
je 0x51f227
lea eax, [ebp - 0x48]
push eax
call fcn.00408220
add esp, 4
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00407200
mov edx, dword [ebp - 0x54]
inc edx
push edx
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.00405a60
mov edx, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x64]
mov byte [ebp - 4], 8
mov eax, ecx
cmp edx, edi
jae 0x51f260
lea eax, [ebp - 0x64]
mov esi, dword [ebp - 0x54]
lea eax, [eax + esi*2]
cmp edx, edi
jae 0x51f26d
lea ecx, [ebp - 0x64]
mov esi, dword [ebp - 0x20]
sub eax, ecx
sar eax, 1
add eax, eax
push eax
push ecx
push esi
call fcn.0055b1c0
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
add esp, 0xc
push 1
push esi
push eax
call edx
push eax
call fcn.004faa20
add esp, 4
cmp esi, ebx
je 0x51f2a5
push esi
call fcn.0055ae44
add esp, 4
cmp dword [ebp - 0x50], edi
jb 0x51f2b6
mov eax, dword [ebp - 0x64]
push eax
call fcn.0055ae44
add esp, 4
xor ecx, ecx
mov esi, 7
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
cmp dword [ebp - 0x34], edi
jb 0x51f2d8
mov edx, dword [ebp - 0x48]
push edx
call fcn.0055ae44
add esp, 4
xor eax, eax
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], bl
cmp eax, ebx
je 0x51f2f6
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x68]
mov dword [ebp - 4], 0xffffffff
cmp eax, ebx
je 0x51f30c
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
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.0055bc32
mov esp, ebp
pop ebp
ret 4