Function at 0x417070
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4511e2
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x46b114]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46b114]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov eax, dword [esp + 0x74]
mov ebx, ecx
mov edi, dword [ebx + 0x10]
mov esi, dword [ebx + 0xc]
mov dword [esp + 0x1c], eax
mov ecx, edi
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov dword [esp + 0x18], ebx
je 0x417336
cmp esi, edi
jbe 0x4170dd
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [ebx]
mov dword [esp + 0x20], edi
mov ebp, esi
xor ebx, ebx
jmp 0x4170f0
mov eax, dword [esp + 0x18]
mov esi, dword [eax + 0x10]
cmp dword [eax + 0xc], esi
jbe 0x417106
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
cmp edi, ebx
je 0x417110
cmp edi, eax
je 0x417116
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp ebp, esi
je 0x417336
cmp edi, ebx
jne 0x41716c
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x417135
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [ebp + 0x14], ebx
lea edi, [ebp + 4]
je 0x41730b
lea ecx, [esp + 0x28]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esp + 0x44]
mov dword [esp + 0x6c], ebx
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov esi, 8
mov byte [esp + 0x6c], 1
cmp dword [edi + 0x14], esi
jb 0x417170
mov eax, dword [edi]
jmp 0x417172
mov eax, dword [edi]
jmp 0x41712a
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x417184
push str.path
jmp 0x4171ca
push ebp
call fcn.004173d0
test eax, eax
je 0x417195
push str.XLAppLink
jmp 0x4171ca
cmp dword [edi + 0x14], esi
jb 0x41719e
mov esi, dword [edi]
jmp 0x4171a0
mov esi, edi
push str.http:__
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push str.http:__
push esi
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x4171c5
call fcn.00417360
cmp eax, ebx
je 0x4171e1
push 0x45bf90
lea ecx, [esp + 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push ebp
lea ecx, [esp + 0x48]
call dword [0x454368]
jmp 0x417234
push ebx
push 0x3a
mov ecx, ebp
call dword [sym.imp.MSVCP90.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_first_of_wchar_t__unsigned_int_const]
mov edx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov esi, eax
mov eax, dword [edx]
cmp esi, eax
jne 0x417203
push eax
push 1
lea ecx, [esp + 0x30]
jmp 0x41722d
cmp esi, 1
jbe 0x417234
lea eax, [esi - 1]
push eax
push 1
push ebp
lea ecx, [esp + 0x34]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int_]
inc esi
cmp esi, dword [edi + 0x10]
jae 0x417234
mov ecx, dword [sym.imp.MSVCP90.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
mov edx, dword [ecx]
push edx
push esi
lea ecx, [esp + 0x4c]
push ebp
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::append_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int_]
mov eax, dword [esp + 0x3c]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004390d1
mov edx, dword [esp + 0x30]
add esp, 4
cmp dword [esp + 0x40], 8
mov edi, eax
jae 0x417263
lea edx, [esp + 0x2c]
mov ecx, edi
movzx eax, word [edx]
mov word [ecx], ax
add edx, 2
add ecx, 2
cmp ax, bx
jne 0x417265
mov eax, dword [esp + 0x58]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004390d1
mov edx, dword [esp + 0x4c]
add esp, 4
cmp dword [esp + 0x5c], 8
mov esi, eax
jae 0x4172a5
lea edx, [esp + 0x48]
mov ecx, esi
movzx eax, word [edx]
mov word [ecx], ax
add edx, 2
add ecx, 2
cmp ax, bx
jne 0x4172a7
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 0x1c]
cmp eax, ebx
je 0x4172eb
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4172eb
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0x1c]
push esi
push edi
add eax, 4
mov eax, dword [eax]
push 0x1402
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esp + 0x44]
mov byte [esp + 0x6c], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x28]
mov dword [esp + 0x6c], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [esp + 0x20]
cmp eax, ebx
jne 0x417332
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
xor eax, eax
cmp ebp, dword [eax + 0x10]
jb 0x417326
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
mov edi, dword [esp + 0x20]
add ebp, 0x1c
jmp 0x4170f0
mov eax, dword [eax]
jmp 0x41731b
mov eax, 1
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.004390e8
add esp, 0x5c
ret 4