Function at 0x42f190
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46d7c0
push eax
mov dword fs:[0], esp
sub esp, 0x28
push edi
mov edi, ecx
lea ecx, [edi + 0x2c]
call fcn.00434920
test eax, eax
jne 0x42f1ce
mov eax, 1
pop edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
push ebx
push ebp
push esi
call fcn.004178f0
mov esi, eax
call fcn.004154a0
mov ebx, eax
mov eax, dword [ebx + 0x60]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x28], ebx
jne 0x42f212
mov eax, dword [edi + 0x10]
cmp dword [eax - 8], ebp
jl 0x42f212
push str._DESKTOP_
push eax
call fcn.00457e8d
add esp, 8
cmp eax, ebp
je 0x42f212
sub eax, dword [edi + 0x10]
cmp eax, 0xffffffff
jne 0x42f729
cmp dword [ebx + 0x68], ebp
jne 0x42f23d
mov eax, dword [edi + 0x10]
cmp dword [eax - 8], ebp
jl 0x42f23d
push str._QUICKLAUNCH_
push eax
call fcn.00457e8d
add esp, 8
cmp eax, ebp
je 0x42f23d
sub eax, dword [edi + 0x10]
cmp eax, 0xffffffff
jne 0x42f729
mov eax, dword [0x4800d8]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0x10]
mov ecx, dword [eax - 8]
cmp ecx, ebp
mov dword [esp + 0x40], ebp
mov dword [esp + 0x34], ebp
jl 0x42f279
push str._DESKTOP_
push eax
call fcn.00457e8d
add esp, 8
cmp eax, ebp
je 0x42f279
sub eax, dword [edi + 0x10]
cmp eax, 0xffffffff
je 0x42f279
push str.DESKTOP
jmp 0x42f2af
mov eax, dword [edi + 0x10]
cmp dword [eax - 8], ebp
jl 0x42f2a2
push str._QUICKLAUNCH_
push eax
call fcn.00457e8d
add esp, 8
cmp eax, ebp
je 0x42f2a2
sub eax, dword [edi + 0x10]
cmp eax, 0xffffffff
je 0x42f2a2
push str.QUICKLAUNCH
jmp 0x42f2af
mov dword [esp + 0x34], 1
push str.LINK
lea ecx, [esp + 0x1c]
call fcn.00404d30
mov eax, dword [0x4800d8]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov ecx, dword [edi]
push ecx
lea edx, [esp + 0x28]
push 0x4708c8
push edx
mov byte [esp + 0x4c], 2
call fcn.00405ab0
mov ebx, dword [ebx + 0x58]
add esp, 0xc
push 0x104
lea ecx, [esp + 0x20]
call fcn.004042d0
test eax, eax
je 0x42f306
mov eax, dword [esp + 0x1c]
mov dword [eax - 8], 0x104
mov byte [eax + 0x104], 0
mov ecx, dword [esp + 0x18]
mov edx, dword [esi]
push ebx
push 0x104
push eax
mov eax, dword [esp + 0x30]
push 0x4708d8
push eax
push ecx
mov ecx, esi
call dword [edx + 0x90]
lea ecx, [esp + 0x1c]
call fcn.00404410
mov ebp, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
call ebx
push ebp
push str.Old_Link_File:__s
mov dword [ebp - 8], eax
push 0x80
mov byte [eax + ebp], 0
call fcn.004047f0
mov eax, dword [esp + 0x40]
add esp, 0xc
test eax, eax
jne 0x42f376
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x42f376
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42f70e
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42f3a1
push ebp
push str.Delete_Link:__s
push 0x80
call fcn.004047f0
mov edx, dword [esi]
add esp, 0xc
push 0
push 0
push ebp
mov ecx, esi
call dword [edx + 0x20]
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + 0xc]
push 0x4708d8
push eax
call fcn.004515d0
push eax
lea ecx, [esp + 0x38]
call fcn.00405970
mov edx, dword [0x4800d8]
mov dword [esp + 0x48], edx
push 0x104
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 4
call fcn.004042d0
test eax, eax
jne 0x42f3e5
xor ecx, ecx
jmp 0x42f3f7
mov ecx, dword [esp + 0x48]
mov dword [ecx - 8], 0x104
mov byte [ecx + 0x104], 0
mov eax, dword [edi + 0x10]
mov edx, dword [esi]
push 0
push 0x104
push ecx
push eax
mov ecx, esi
call dword [edx + 0xfc]
lea ecx, [esp + 0x48]
call fcn.00404410
mov ebp, dword [esp + 0x48]
push ebp
call ebx
push 0x4708a4
mov dword [ebp - 8], eax
push 0x4708a4
mov byte [eax + ebp], 0
call ebx
push eax
lea ecx, [esp + 0x50]
call fcn.00403ab0
mov eax, dword [edi + 8]
test eax, eax
je 0x42f490
push 0x4708d8
push eax
mov eax, dword [esp + 0x30]
mov ecx, dword [eax + 0xc]
call fcn.004515d0
push eax
lea ecx, [esp + 0x34]
call fcn.00405970
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 5
call fcn.00403ab0
push 0x4708a4
lea ecx, [esp + 0x4c]
call fcn.00404260
lea ecx, [esp + 0x30]
mov byte [esp + 0x40], 4
call fcn.004309a0
mov edx, dword [edi]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 0xc]
push 0x4708d8
push edx
call fcn.004515d0
push eax
lea ecx, [esp + 0x34]
call fcn.00405970
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 6
call fcn.00403ab0
push str..lnk
push str..lnk
call ebx
push eax
lea ecx, [esp + 0x50]
call fcn.00403ab0
mov edx, dword [0x4800d8]
mov dword [esp + 0x14], edx
push 0x104
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 7
call fcn.004042d0
test eax, eax
jne 0x42f500
xor ecx, ecx
jmp 0x42f512
mov ecx, dword [esp + 0x14]
mov dword [ecx - 8], 0x104
mov byte [ecx + 0x104], 0
mov eax, dword [edi + 0x20]
mov edx, dword [esi]
push 0
push 0x104
push ecx
push eax
mov ecx, esi
call dword [edx + 0xfc]
lea ecx, [esp + 0x14]
call fcn.00404410
mov ebp, dword [esp + 0x14]
push ebp
call ebx
mov dword [ebp - 8], eax
mov byte [eax + ebp], 0
push 0x4708a4
lea eax, [edi + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0040aa70
lea edx, [edi + 0x1c]
push edx
push eax
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x4c], 8
call fcn.0040a9c0
mov eax, dword [esp + 0x20]
mov edx, dword [0x4800dc]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x42f595
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42f595
mov eax, dword [esp + 0x20]
add eax, 0xfffffff4
push eax
call fcn.00457c3f
add esp, 4
mov edx, dword [0x4800d8]
mov dword [esp + 0x10], edx
push 0x104
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 0xb
call fcn.004042d0
test eax, eax
je 0x42f5c8
mov eax, dword [esp + 0x10]
mov dword [eax - 8], 0x104
mov byte [eax + 0x104], 0
mov edx, dword [esi]
push 0
push 0x104
push eax
mov eax, dword [esp + 0x38]
push eax
mov ecx, esi
call dword [edx + 0xfc]
lea ecx, [esp + 0x10]
call fcn.00404410
mov ebp, dword [esp + 0x10]
push ebp
call ebx
mov dword [ebp - 8], eax
mov byte [eax + ebp], 0
mov ecx, dword [0x4800d8]
mov dword [esp + 0x20], ecx
push 0x104
lea ecx, [esp + 0x24]
mov byte [esp + 0x44], 0xc
call fcn.004042d0
test eax, eax
je 0x42f629
mov eax, dword [esp + 0x20]
mov dword [eax - 8], 0x104
mov byte [eax + 0x104], 0
mov edx, dword [esi]
push 0
push 0x104
push eax
mov eax, dword [edi + 0x18]
push eax
mov ecx, esi
call dword [edx + 0xfc]
lea ecx, [esp + 0x20]
call fcn.00404410
mov ebp, dword [esp + 0x20]
push ebp
call ebx
mov ebx, dword [esp + 0x48]
push ebx
push str.Install_Link:__s
mov dword [ebp - 8], eax
push 0x80
mov byte [eax + ebp], 0
call fcn.004047f0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 8]
add esp, 0xc
test eax, eax
lea eax, [esp + 0x14]
jg 0x42f680
lea eax, [esp + 0x10]
mov ecx, dword [esp + 0x34]
mov eax, dword [eax]
mov edx, dword [esi]
push ebp
push ecx
mov ecx, dword [edi + 0xc]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push ebx
mov ecx, esi
call dword [edx + 0x68]
test eax, eax
je 0x42f743
lea edx, [esp + 0x48]
push edx
mov ecx, edi
call fcn.0042eda0
mov ecx, dword [esp + 0x28]
mov edx, dword [ecx + 0x58]
mov ecx, dword [esp + 0x48]
mov eax, dword [esi]
push edx
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x20]
push edx
push ecx
mov ecx, esi
call dword [eax + 0x9c]
lea ecx, [esp + 0x20]
call fcn.004309a0
lea ecx, [esp + 0x10]
call fcn.004309a0
lea ecx, [esp + 0x2c]
call fcn.004309a0
lea ecx, [esp + 0x14]
call fcn.004309a0
lea ecx, [esp + 0x30]
call fcn.004309a0
lea ecx, [esp + 0x48]
call fcn.004309a0
lea ecx, [esp + 0x34]
call fcn.004309a0
lea ecx, [esp + 0x24]
call fcn.004309a0
lea ecx, [esp + 0x1c]
call fcn.004309a0
lea ecx, [esp + 0x18]
call fcn.004309a0
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
push str.Install_Link_Failed_
push 4
call fcn.004047f0
add esp, 8
lea ecx, [esp + 0x20]
call fcn.004309a0
lea ecx, [esp + 0x10]
call fcn.004309a0
lea ecx, [esp + 0x2c]
call fcn.004309a0
lea ecx, [esp + 0x14]
call fcn.004309a0
lea ecx, [esp + 0x30]
call fcn.004309a0
lea ecx, [esp + 0x48]
call fcn.004309a0
lea ecx, [esp + 0x34]
call fcn.004309a0
lea ecx, [esp + 0x24]
call fcn.004309a0
lea ecx, [esp + 0x1c]
call fcn.004309a0
lea ecx, [esp + 0x18]
call fcn.004309a0
mov ecx, dword [esp + 0x38]
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
mov dword fs:[0], ecx
add esp, 0x34
ret 4