Function at 0x45bd34
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x46a319
call fcn.00461c40
sub esp, 0x2d0
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
push edi
lea edi, [esi + 8]
test ecx, ecx
mov dword [ebp - 0x14], edi
je 0x45bd8c
mov eax, dword [edi + 8]
sub eax, ecx
mov ecx, 0x8c
cdq
idiv ecx
test eax, eax
jbe 0x45bd8c
test ebx, ebx
jne 0x45bd77
cmp dword [esi + 0x50], ebx
je 0x45c0e4
lea eax, [esi + 0x48]
push ebx
push eax
call dword [sym.imp.Ht4Dll.dll_public:_static_int___cdecl_CHT4StrTool::EqualI_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_short_int_const__]
pop ecx
test eax, eax
pop ecx
jne 0x45c0e4
mov ecx, esi
call fcn.0045bc08
test ebx, ebx
jne 0x45befd
mov ebx, dword [sym.imp.Ht4Dll.dll_public:_static_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____cdecl_CHtPath::GetContentPath_int_]
lea eax, [ebp - 0x28]
push 1
push eax
call ebx
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.0043116b
test eax, eax
mov edi, str.product_studio.xml
je 0x45bddd
call fcn.0043116b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x270]
cmp eax, 2
jne 0x45bddd
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
push edi
jmp 0x45be16
call fcn.0043116b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x29c]
test eax, eax
je 0x45be04
push str.Products_tour.xml
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
push str.Products_tour.xml
jmp 0x45be16
push str.Products.xml
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
push str.Products.xml
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00452c5e
mov eax, dword [ebp - 0x24]
pop ecx
test eax, eax
pop ecx
jne 0x45be38
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45bed1
push eax
lea eax, [ebp - 0x48]
push eax
call ebx
pop ecx
pop ecx
mov ecx, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
mov byte [ebp - 4], 1
push dword [ecx]
lea ecx, [ebp - 0x28]
push 0
push eax
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
call fcn.0043116b
test eax, eax
je 0x45be94
call fcn.0043116b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x270]
cmp eax, 2
je 0x45beb1
call fcn.0043116b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x29c]
test eax, eax
mov edi, str.Products_tour.xml
jne 0x45beb1
mov edi, str.Products.xml
push edi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::append_unsigned_short_int_const___unsigned_int_]
lea eax, [ebp - 0x28]
push 1
push eax
call fcn.00452c5e
pop ecx
pop ecx
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x45bedd
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
lea ecx, [esi + 0x18]
push eax
mov dword [ebp + 8], ecx
call fcn.0042c856
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov edi, dword [ebp - 0x14]
jmp 0x45bf1c
push ebx
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
push ebx
lea ecx, [esi + 0x48]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
lea ecx, [esi + 0x18]
push ebx
mov dword [ebp + 8], ecx
call fcn.0042c856
call fcn.0043116b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x24]
mov ecx, dword [ebp + 8]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x38], eax
call fcn.0042c81d
test eax, eax
jle 0x45c0e4
push dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
call fcn.0042c830
mov ebx, eax
test ebx, ebx
je 0x45c0eb
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x45c0eb
mov eax, dword [ebx + 0x18]
push 0x78
sub eax, ecx
pop ecx
cdq
idiv ecx
test eax, eax
je 0x45c0eb
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x45c0d0
mov eax, dword [ebx + 0x18]
push 0x78
sub eax, ecx
pop ecx
cdq
idiv ecx
test eax, eax
jle 0x45c0d0
and dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x14]
mov ecx, dword [ebp - 0x18]
and dword [ebp - 0x30], 0
lea esi, [ecx + eax]
mov ecx, dword [ebp - 0x38]
push dword [esi]
mov dword [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax + 0x48]
mov edi, eax
test edi, edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
jne 0x45bfca
or dword [ebp - 4], 0xffffffff
jmp 0x45c0c0
lea ecx, [ebp - 0xd4]
call fcn.0045c10d
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::npos]
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 3
push dword [eax]
push 0
push ebx
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___unsigned_int__unsigned_int_]
mov eax, dword [esi]
push esi
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xc4], eax
call fcn.0042ea75
cmp dword [ebp - 0x80], 0
jne 0x45c085
and word [ebp - 0x2dc], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x2da]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp - 0x98]
test eax, eax
jne 0x45c031
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
lea eax, [ebp - 0x2dc]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
lea eax, [ebp - 0x2dc]
pop ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x2dc]
push str.Preview.png
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x2dc]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x2dc]
push eax
lea ecx, [ebp - 0x88]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
mov edi, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0xd4]
push eax
call fcn.0045cda8
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 4
call fcn.0042d4a4
push 1
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Tidy_bool_]
mov eax, dword [edi]
or dword [ebp - 4], 0xffffffff
mov ecx, edi
call dword [eax + 0xc]
add dword [ebp - 0x18], 0x78
dec dword [ebp - 0x2c]
jne 0x45bf97
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
inc dword [ebp - 0x10]
call fcn.0042c81d
cmp dword [ebp - 0x10], eax
jl 0x45bf3f
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x45c0ef
xor eax, eax
jmp 0x45c0fc
mov eax, dword [edi + 8]
sub eax, ecx
mov ecx, 0x8c
cdq
idiv ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4