Function at 0x498255
Capabilities:
Check if file exists

Disassembly:
push 0x120
mov eax, 0x50d8cb
call fcn.004d02ab
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [esi + 4]
lea eax, [ebp - 0x18]
push eax
call fcn.004022e5
mov byte [ebp - 4], 1
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.004022e5
mov byte [ebp - 4], 2
lea eax, [ebp - 0x14]
push eax
call fcn.004028b3
mov byte [ebp - 4], 3
mov eax, dword [esi]
cmp dword [eax - 0xc], ebx
jne 0x4982ae
push str.ERROR_CHECK_BOOLEX:_IsStrEmpty_LinkInfo.strShortcutName_
push 0x69a
jmp 0x4984da
mov eax, dword [esi + 4]
cmp dword [eax - 0xc], ebx
je 0x4984d0
push dword [ebp - 0x18]
mov edi, dword [0x51a4b0]
call edi
test eax, eax
je 0x4984d0
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], ebx
je 0x4984c4
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x4984c4
push dword [ebp - 0x10]
call dword [0x51a4b4]
test eax, eax
je 0x4984c4
push ebx
call dword [0x51a7d4]
mov edi, eax
cmp edi, ebx
jge 0x498324
push edi
push str.ERROR_CHECK_COM_hr___x:_hr
push 0x6a0
push str.d:code_sharecube_branches_branch_wps_release_srcclientincludexlive_xlive_hlp.h
push 5
pop esi
call fcn.0040f52f
add esp, 0x10
jmp 0x4984ec
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x1c]
push eax
call fcn.00499891
mov edi, eax
cmp edi, ebx
jge 0x498367
push edi
push str.ERROR_CHECK_COM_hr___x:_hr
push 0x6a4
push str.d:code_sharecube_branches_branch_wps_release_srcclientincludexlive_xlive_hlp.h
push 5
pop esi
call fcn.0040f52f
add esp, 0x10
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
call fcn.0040a06d
jmp 0x4984ec
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x50]
mov edi, eax
cmp edi, ebx
jge 0x498387
push edi
push str.ERROR_CHECK_COM_hr___x:_hr
push 0x6a8
jmp 0x498345
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], ebx
je 0x4983ac
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x2c]
mov edi, eax
cmp edi, ebx
jge 0x4983ac
push edi
push str.ERROR_CHECK_COM_hr___x:_hr
push 0x6ad
jmp 0x498345
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], ebx
je 0x4983d7
push dword [esi + 0x10]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x44]
mov edi, eax
cmp edi, ebx
jge 0x4983d7
push edi
push str.ERROR_CHECK_COM_hr___x:_hr
push 0x6b2
jmp 0x498345
mov dword [ebp - 0x20], ebx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
push edx
push 0x51d560
push eax
call dword [ecx]
mov edi, eax
cmp edi, ebx
jge 0x498422
push edi
push str.ERROR_CHECK_COM_hr___x:_hr
push 0x6b8
push str.d:code_sharecube_branches_branch_wps_release_srcclientincludexlive_xlive_hlp.h
push 5
pop esi
call fcn.0040f52f
add esp, 0x10
mov byte [ebp - 4], 5
lea eax, [ebp - 0x20]
push eax
call fcn.0040a11e
jmp 0x498355
lea eax, [ebp - 0x24]
push str..lnk
push eax
mov ecx, esi
call fcn.0040a149
pop ecx
pop ecx
mov byte [ebp - 4], 8
lea edi, [ebp - 0x14]
call fcn.00403a2e
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x24]
call fcn.004028da
push dword [ebp - 0x14]
lea eax, [ebp - 0x10]
call fcn.0040d65b
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], 9
push dword [ebp - 0x10]
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x128]
mov dword [ebp - 0x12c], eax
lea eax, [ebp - 0x12c]
call fcn.00499c9e
mov byte [ebp - 4], 0xa
mov eax, dword [esi]
push ebx
push dword [ebp - 0x12c]
push esi
call dword [eax + 0x18]
mov edi, eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x128]
cmp dword [ebp - 0x12c], eax
je 0x4984ac
push dword [ebp - 0x12c]
call fcn.004cad3f
pop ecx
cmp edi, ebx
jge 0x498410
push edi
push str.ERROR_CHECK_COM_hr___x:_hr
push 0x6bf
jmp 0x498400
push str.ERROR_CHECK_BOOLEX:_IsStrEmpty_strTargetFolder___pathTarget.FileExists____pathTarget.IsDirectory__
push 0x69c
jmp 0x4984da
push str.ERROR_CHECK_BOOLEX:_IsStrEmpty_LinkInfo.strFilePath___pathFile.FileExists__
push 0x69b
push str.d:code_sharecube_branches_branch_wps_release_srcclientincludexlive_xlive_hlp.h
push 5
pop ecx
mov edi, 0x80070057
call fcn.0040ef48
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.004028da
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
call fcn.004025f7
mov byte [ebp - 4], bl
lea eax, [ebp - 0x18]
push eax
call fcn.004025f7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004028da
mov eax, edi
call fcn.004d0383
ret