Function at 0x41f2da
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
push 0x380
mov eax, 0x4b9f28
call fcn.00495a70
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x388], eax
lea eax, [ebp - 0x330]
push 3
push eax
call fcn.0044e8e7
pop ecx
pop ecx
push 8
xor esi, esi
pop edi
mov dword [ebp - 4], esi
cmp dword [eax + 0x14], edi
jb 0x41f314
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.0044de82
pop ecx
pop ecx
push esi
push 1
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], 2
call fcn.00401129
mov eax, dword [ebp - 0x26c]
cmp dword [ebp - 0x258], edi
jae 0x41f349
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x288]
push eax
call fcn.0044d925
push str.wtoolx
push eax
lea eax, [ebp - 0x2a4]
push eax
mov byte [ebp - 4], 3
call fcn.0040acab
add esp, 0x14
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 4
call fcn.0040261f
push esi
push 1
lea ecx, [ebp - 0x2a4]
call fcn.00401129
push esi
push 1
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 2
call fcn.00401129
mov eax, dword [ebp - 0x26c]
cmp dword [ebp - 0x258], edi
jae 0x41f3b3
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x288]
push eax
call fcn.0044d925
push ebx
push eax
lea eax, [ebp - 0x2a4]
push eax
mov byte [ebp - 4], 5
call fcn.0040acab
add esp, 0x14
push eax
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 6
call fcn.0040261f
push esi
push 1
lea ecx, [ebp - 0x2a4]
call fcn.00401129
push esi
push 1
lea ecx, [ebp - 0x288]
mov byte [ebp - 4], 2
call fcn.00401129
mov eax, dword [ebp - 0x26c]
cmp dword [ebp - 0x258], edi
jae 0x41f419
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x2a4]
push eax
call fcn.0044d925
push 0x4c6c38
push eax
lea eax, [ebp - 0x314]
push eax
mov byte [ebp - 4], 7
call fcn.0040acab
add esp, 0x14
push esi
push 1
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 9
call fcn.00401129
mov eax, dword [ebp - 0x314]
cmp dword [ebp - 0x300], edi
jae 0x41f465
lea eax, [ebp - 0x314]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41f497
xor edi, edi
push esi
push 1
lea ecx, [ebp - 0x314]
call fcn.00401129
push esi
push 1
lea ecx, [ebp - 0x26c]
call fcn.00401129
mov eax, edi
call fcn.00495af3
ret
mov eax, dword [ebp - 0x314]
cmp dword [ebp - 0x300], edi
jae 0x41f4ab
lea eax, [ebp - 0x314]
push eax
lea ecx, [ebp - 0x2dc]
call fcn.004099d2
mov ebx, 0x5000
push ebx
mov edi, 0x4c1bc0
push edi
push str.arguments
mov esi, str.LinkInfo
push esi
lea eax, [ebp - 0x2f8]
push eax
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 0xa
call fcn.0040b162
push ebx
push edi
push str.taskbarpin
push esi
lea eax, [ebp - 0x2c0]
push eax
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 0xb
call fcn.0040b162
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
mov byte [ebp - 4], 0xc
call fcn.00495b20
add esp, 0xc
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.0044d925
push dword [ebp - 0x388]
mov byte [ebp - 4], 0xd
call fcn.00495461
add esp, 0xc
push eax
push dword [ebp - 0x388]
lea ecx, [ebp - 0x234]
call fcn.0040136b
push str..lnk
call fcn.00495461
pop ecx
push eax
push str..lnk
lea ecx, [ebp - 0x234]
call fcn.0040136b
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x41f59f
lea eax, [ebp - 0x234]
push eax
push str.LinkFile___s.
push str.kupdate::KDesktopLink::fixDesktopLink
push 0x2d7
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcprotocolKProcedureImpl.cpp
push 0
call fcn.004030c6
mov eax, dword [ebp - 0x234]
add esp, 0x18
cmp dword [ebp - 0x220], 8
jae 0x41f5d3
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41f8ad
push ebx
push edi
push 0x4c8a80
push esi
lea eax, [ebp - 0x330]
push eax
lea ecx, [ebp - 0x2dc]
call fcn.0040b162
push ebx
push edi
push str.description
push esi
lea eax, [ebp - 0x2a4]
push eax
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 0xe
call fcn.0040b162
push ebx
push edi
push str.callpath
push esi
lea eax, [ebp - 0x368]
push eax
lea ecx, [ebp - 0x2dc]
mov byte [ebp - 4], 0xf
call fcn.0040b162
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0x10
jb 0x41f645
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.0044e901
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x368]
mov byte [ebp - 4], 0x12
call fcn.00401129
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x41f67c
lea eax, [ebp - 0x250]
push eax
call fcn.0044d46c
pop ecx
test al, al
jne 0x41f6e5
cmp dword [ebp - 0x23c], 8
mov ecx, dword [ebp - 0x250]
jae 0x41f69c
lea ecx, [ebp - 0x250]
cmp dword [ebp - 0x258], 8
mov eax, dword [ebp - 0x26c]
jae 0x41f6b1
lea eax, [ebp - 0x26c]
push ecx
push eax
lea eax, [ebp - 0x34c]
push eax
call fcn.0044df22
add esp, 0xc
push eax
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0x13
call fcn.0040261f
push 0
push 1
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 0x12
call fcn.00401129
push ebx
push edi
push str.iconlocation
push esi
lea eax, [ebp - 0x384]
push eax
lea ecx, [ebp - 0x2dc]
call fcn.0040b162
mov esi, eax
cmp dword [ebp - 0x258], 8
mov eax, dword [ebp - 0x26c]
mov byte [ebp - 4], 0x14
jae 0x41f71a
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x34c]
push eax
call fcn.0044d925
push esi
push eax
lea eax, [ebp - 0x288]
push eax
mov byte [ebp - 4], 0x15
call fcn.004136b1
add esp, 0x14
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x34c]
call fcn.00401129
push esi
push 1
lea ecx, [ebp - 0x384]
mov byte [ebp - 4], 0x18
call fcn.00401129
mov eax, dword [ebp - 0x250]
push 8
pop edi
cmp dword [ebp - 0x23c], edi
jae 0x41f775
lea eax, [ebp - 0x250]
push eax
call fcn.0044d379
pop ecx
test al, al
je 0x41f83e
mov eax, dword [ebp - 0x288]
cmp dword [ebp - 0x274], edi
jae 0x41f798
lea eax, [ebp - 0x288]
push eax
call fcn.0044d379
pop ecx
test al, al
je 0x41f83e
mov ebx, dword [ebp - 0x2c0]
cmp dword [ebp - 0x2ac], edi
jae 0x41f7bb
lea ebx, [ebp - 0x2c0]
mov eax, dword [ebp - 0x2a4]
cmp dword [ebp - 0x290], edi
jae 0x41f7cf
lea eax, [ebp - 0x2a4]
cmp dword [ebp - 0x2e4], edi
mov edi, dword [ebp - 0x2f8]
mov dword [ebp - 0x38c], eax
jae 0x41f7e9
lea edi, [ebp - 0x2f8]
cmp dword [ebp - 0x274], 8
mov edx, dword [ebp - 0x288]
jae 0x41f7fe
lea edx, [ebp - 0x288]
cmp dword [ebp - 0x23c], 8
mov ecx, dword [ebp - 0x250]
jae 0x41f813
lea ecx, [ebp - 0x250]
cmp dword [ebp - 0x31c], 8
mov eax, dword [ebp - 0x330]
jae 0x41f828
lea eax, [ebp - 0x330]
push esi
push ebx
push dword [ebp - 0x38c]
push edi
push edx
push ecx
push eax
call fcn.0041ef90
add esp, 0x1c
jmp 0x41f870
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], edi
jae 0x41f852
lea eax, [ebp - 0x234]
push eax
push str.fixTaskbarpinLink_fail__no_icon___s.
push str.kupdate::KDesktopLink::fixDesktopLink
push 0x2e4
push str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcprotocolKProcedureImpl.cpp
push esi
call fcn.004030c6
add esp, 0x18
xor edi, edi
push esi
inc edi
push edi
lea ecx, [ebp - 0x288]
call fcn.00401129
push esi
push edi
lea ecx, [ebp - 0x250]
call fcn.00401129
push esi
push edi
lea ecx, [ebp - 0x2a4]
call fcn.00401129
push esi
push edi
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], 0xd
call fcn.00401129
jmp 0x41f8af
xor esi, esi
call fcn.0044f113
cmp dword [ebp - 0x220], 8
mov bl, al
mov eax, dword [ebp - 0x234]
jae 0x41f8cb
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov edi, ecx
test bl, bl
je 0x41fa5a
cmp edi, esi
je 0x41fa58
push dword [ebp - 0x388]
call fcn.0041ef4d
pop ecx
test eax, eax
jne 0x41fa43
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x41f915
lea eax, [ebp - 0x234]
mov edi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
push esi
push esi
push eax
push 0x4ccdd4
push esi
call edi
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x41f93c
lea eax, [ebp - 0x234]
push esi
push esi
push esi
push eax
push str.taskbarpin
push esi
call edi
cmp dword [ebp - 0x220], 8
mov eax, dword [ebp - 0x234]
jae 0x41f95d
lea eax, [ebp - 0x234]
push eax
push str.fixTaskbarpinLink_succeeded___s.
mov edi, str.kupdate::KDesktopLink::fixDesktopLink
push edi
push 0x2ff
mov ebx, str.H:_rc_v10_personal_20170808_branchCoding_supportwpsupdateUpdateClient_srcprotocolKProcedureImpl.cpp
push ebx
push esi
call fcn.004030c6
add esp, 0x18
cmp dword [ebp - 0x2b0], esi
je 0x41fa43
cmp dword [ebp - 0x2ac], 8
mov eax, dword [ebp - 0x2c0]
jae 0x41f99e
lea eax, [ebp - 0x2c0]
push 0x4c4cec
push eax
call fcn.00499b67
pop ecx
pop ecx
test eax, eax
jne 0x41fa43
push dword [ebp - 0x388]
lea eax, [ebp - 0x250]
push eax
call fcn.0041ed76
pop ecx
pop ecx
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
mov byte [ebp - 4], 0x19
jae 0x41f9e0
lea eax, [ebp - 0x250]
push eax
push str.getTaskbarPinned___s.
push edi
push 0x304
push ebx
push esi
call fcn.004030c6
add esp, 0x18
cmp dword [ebp - 0x240], esi
je 0x41fa31
cmp dword [ebp - 0x2e4], 8
mov ecx, dword [ebp - 0x2f8]
jae 0x41fa13
lea ecx, [ebp - 0x2f8]
cmp dword [ebp - 0x23c], 8
mov eax, dword [ebp - 0x250]
jae 0x41fa28
lea eax, [ebp - 0x250]
push ecx
push eax
call fcn.0041dc75
pop ecx
pop ecx
push esi
push 1
lea ecx, [ebp - 0x250]
mov byte [ebp - 4], 0xd
call fcn.00401129
push dword [ebp - 0x388]
call fcn.0041ef4d
pop ecx
test eax, eax
je 0x41fa58
xor edi, edi
inc edi
jmp 0x41fa5a
xor edi, edi
xor ebx, ebx
push esi
inc ebx
push ebx
lea ecx, [ebp - 0x234]
call fcn.00401129
push esi
push ebx
lea ecx, [ebp - 0x2c0]
call fcn.00401129
push esi
push ebx
lea ecx, [ebp - 0x2f8]
call fcn.00401129
push esi
push ebx
lea ecx, [ebp - 0x2dc]
call fcn.00401129
xor esi, esi
jmp 0x41f473