Function at 0x452c5e
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x469865
call fcn.00461c40
sub esp, 0x420
push ebx
push esi
push edi
call fcn.0043116b
mov esi, eax
mov al, byte [ebp + 0xb]
xor ebx, ebx
lea ecx, [ebp - 0x1c]
push ebx
mov byte [ebp - 0x1c], 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 [esi]
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, esi
mov dword [ebp - 4], ebx
call dword [eax + 0x94]
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jne 0x452ca7
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 0x48163c
push eax
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
jne 0x452cc0
xor esi, esi
jmp 0x452dd1
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x42a]
mov word [ebp - 0x42c], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
cmp eax, ebx
jne 0x452ce7
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]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
call esi
cmp eax, ebx
mov ebx, dword [sym.imp.MSVCRT.dll_wcscpy]
je 0x452d15
mov eax, dword [edi + 4]
test eax, eax
jne 0x452d06
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 esi
push eax
lea eax, [ebp - 0x42c]
push eax
call ebx
pop ecx
pop ecx
and word [ebp - 0x224], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x222]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
mov eax, dword [edi + 4]
test eax, eax
jne 0x452d3d
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 - 0x224]
push eax
call ebx
pop ecx
lea eax, [ebp - 0x224]
pop ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov esi, dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x224]
push 0x483800
push eax
call esi
mov eax, dword [ebp - 0x18]
pop ecx
test eax, eax
pop ecx
jne 0x452d78
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 - 0x224]
push eax
call esi
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x224]
push eax
call esi
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x452db0
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x452cb9
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x224]
push eax
mov ecx, 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_unsigned_short_int_const___unsigned_int_]
push 1
pop esi
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x1c]
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 [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret