Function at 0x413103
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x463a82
call fcn.00461c40
sub esp, 0x44c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edx, dword [esi + 0x44]
cmp edx, ebx
jne 0x413128
xor eax, eax
jmp 0x4135d7
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x456]
mov word [ebp - 0x458], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov al, byte [edx + 0x38]
lea edi, [edx + 0x38]
push ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x38], al
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 [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 - 0x38]
push dword [eax]
push ebx
push edi
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_]
lea eax, [ebp - 0x38]
push 0x4845cc
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP60.dll_bool___cdecl_std::operator_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 al, al
pop ecx
jne 0x4135c6
lea eax, [ebp - 0x28]
push ebx
push eax
call 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_]
pop ecx
pop ecx
mov eax, dword [eax + 4]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x41319e
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 - 0x38]
push 0x47ffa8
push eax
call dword [sym.imp.Ht4Dll.dll_public:_static_unsigned_short_int_const____cdecl_CHT4StrTool::Replace_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____unsigned_short_int_const___unsigned_short_int_const__]
and byte [ebp - 4], 0
add esp, 0xc
lea ecx, [ebp - 0x28]
push 1
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 [ebp - 0x34]
cmp eax, ebx
jne 0x4131cc
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 - 0x458]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
lea eax, [ebp - 0x458]
pop ecx
push str..swf
push eax
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionW]
lea eax, [ebp - 0x458]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x38]
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 eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x413219
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 0x413255
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00412b51
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], 2
push dword [ecx]
lea ecx, [ebp - 0x38]
push ebx
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 - 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 ecx, dword [esi + 0x3c]
cmp ecx, ebx
je 0x4135c6
mov eax, dword [ecx]
call dword [eax + 0x50]
cmp dword [eax], ebx
jne 0x4135c6
mov ecx, dword [esi + 0x3c]
mov eax, dword [ecx]
call dword [eax + 0x50]
cmp dword [eax], ebx
jne 0x4132b1
push 0x168
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
mov byte [ebp - 4], 3
je 0x4132a1
call fcn.0043116b
mov ecx, dword [ebp - 0x18]
push eax
call fcn.0045d2d6
mov edi, eax
jmp 0x4132a3
xor edi, edi
mov ecx, dword [esi + 0x3c]
and byte [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 0x50]
mov dword [eax], edi
mov edi, dword [esi + 0x3c]
mov ecx, edi
mov eax, dword [edi]
call dword [eax + 0x50]
mov eax, dword [eax]
sub esp, 0x10
mov dword [ebp - 0x18], esp
mov ecx, esi
mov dword [eax + 0x8c], edi
mov eax, esp
push eax
call fcn.00412b51
mov ecx, dword [esi + 0x3c]
and byte [ebp - 4], 0
mov eax, dword [ecx]
call dword [eax + 0x50]
mov ecx, dword [eax]
call fcn.0040c3f2
mov eax, dword [esi + 0x44]
mov edi, dword [eax + 0x48]
cmp edi, ebx
jne 0x413346
call fcn.0043116b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x24]
mov dword [ebp - 0x18], ebx
cmp eax, ebx
mov byte [ebp - 4], 5
je 0x413334
mov edx, dword [eax]
push dword [esi + 0x40]
mov ecx, eax
call dword [edx + 0x48]
cmp eax, ebx
mov dword [ebp - 0x18], eax
je 0x413334
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xd0]
mov ecx, dword [esi + 0x3c]
mov edi, eax
mov eax, dword [ecx]
call dword [eax + 0x50]
mov eax, dword [eax]
mov dword [eax + 0x124], edi
mov ecx, dword [ebp - 0x18]
and byte [ebp - 4], 0
cmp ecx, ebx
je 0x413356
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x413356
mov ecx, dword [esi + 0x3c]
mov eax, dword [ecx]
call dword [eax + 0x50]
mov eax, dword [eax]
mov dword [eax + 0x124], edi
mov edi, dword [esi + 0x44]
push ebx
add edi, 0x4c
lea ecx, [ebp - 0x28]
mov al, byte [edi]
mov byte [ebp - 0x28], al
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 [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 - 0x28]
push dword [eax]
push ebx
push edi
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 [ebp - 0x24]
mov byte [ebp - 4], 6
cmp eax, ebx
jne 0x41338d
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_PathIsRelativeW]
test eax, eax
je 0x41341c
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x24e]
mov word [ebp - 0x250], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 0x44]
add eax, 0x38
mov eax, dword [eax + 4]
cmp eax, ebx
jne 0x4133c6
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 - 0x250]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
lea eax, [ebp - 0x250]
pop ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jne 0x4133ef
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 - 0x250]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x250]
push eax
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__::assign_unsigned_short_int_const___unsigned_int_]
lea eax, [ebp - 0x48]
push ebx
push eax
call 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_]
pop ecx
pop ecx
mov eax, dword [eax + 4]
mov byte [ebp - 4], 7
cmp eax, ebx
jne 0x413439
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 - 0x28]
push 0x47ffa8
push eax
call dword [sym.imp.Ht4Dll.dll_public:_static_unsigned_short_int_const____cdecl_CHT4StrTool::Replace_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int_____unsigned_short_int_const___unsigned_short_int_const__]
add esp, 0xc
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
push 1
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 al, byte [ebp - 0x28]
sub esp, 0x10
mov edi, esp
mov dword [ebp - 0x18], esp
push ebx
mov ecx, edi
mov byte [edi], al
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 [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 ecx, edi
push dword [eax]
lea eax, [ebp - 0x28]
push ebx
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_]
mov ecx, dword [esi + 0x3c]
mov byte [ebp - 4], 6
mov eax, dword [ecx]
call dword [eax + 0x50]
mov ecx, dword [eax]
call fcn.0040c3ae
mov al, byte [ebp - 0x38]
sub esp, 0x10
mov edi, esp
mov dword [ebp - 0x18], esp
push ebx
mov ecx, edi
mov byte [edi], al
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 [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 ecx, edi
push dword [eax]
lea eax, [ebp - 0x38]
push ebx
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_]
mov ecx, dword [esi + 0x3c]
mov byte [ebp - 4], 6
mov eax, dword [ecx]
call dword [eax + 0x50]
mov ecx, dword [eax]
call fcn.0045df25
cmp eax, ebx
jne 0x4134ea
mov ecx, dword [esi + 0x3c]
push ebx
push ebx
mov eax, dword [ecx]
call dword [eax + 0x50]
mov ecx, dword [eax]
call fcn.0045d8b6
xor eax, eax
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov edi, dword [sym.imp.USER32.dll_GetSystemMetrics]
add dword [ebp - 0x14], 5
add dword [ebp - 0x10], 5
push ebx
call edi
mov ebx, eax
push 1
sub ebx, 0xa
call edi
mov ecx, dword [esi + 0x3c]
mov edi, eax
sub edi, 0xa
mov eax, dword [ecx]
call dword [eax + 0x50]
mov eax, dword [eax]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x18]
add eax, dword [ebp - 0x14]
cmp eax, ebx
jle 0x41354d
mov ecx, dword [esi + 0x3c]
mov eax, dword [ecx]
call dword [eax + 0x50]
mov eax, dword [eax]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x18]
push 0xfffffffffffffff6
pop ecx
sub ecx, eax
add dword [ebp - 0x14], ecx
push 0xa
pop ebx
cmp dword [ebp - 0x14], ebx
jg 0x413558
mov dword [ebp - 0x14], ebx
mov ecx, dword [esi + 0x3c]
mov eax, dword [ecx]
call dword [eax + 0x50]
mov eax, dword [eax]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
add eax, dword [ebp - 0x10]
cmp eax, edi
jle 0x413589
mov ecx, dword [esi + 0x3c]
mov eax, dword [ecx]
call dword [eax + 0x50]
mov eax, dword [eax]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
push 0xfffffffffffffff6
pop ecx
sub ecx, eax
add dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], ebx
jg 0x413591
mov dword [ebp - 0x10], ebx
mov esi, dword [esi + 0x3c]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x50]
mov ecx, dword [ebp + 8]
mov eax, dword [eax]
neg ecx
mov edx, dword [eax]
lea esi, [ebp - 0x14]
sbb ecx, ecx
push 0
not ecx
and ecx, esi
push ecx
mov ecx, eax
call dword [edx + 0x58]
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x28]
mov ebx, eax
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_]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x38]
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, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4