Function at 0x440acd
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4679ed
call fcn.00461c40
sub esp, 0x464
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push ecx
push 0x47e378
mov ecx, edi
mov dword [ebp - 4], ebx
call dword [eax + 4]
cmp dword [ebp - 0x10], ebx
mov esi, dword [ebp + 8]
je 0x440b73
lea ecx, [ebp - 0x60]
call fcn.00424156
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 - 0x44]
mov byte [ebp - 4], 1
push dword [eax]
push ebx
push esi
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 [ebp - 0x10]
push dword [ebp + 0xc]
lea edx, [ebp - 0x60]
mov eax, dword [ecx]
push edx
call dword [eax + 0x30]
mov dword [ebp + 8], eax
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, esi
push dword [eax]
lea eax, [ebp - 0x44]
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_]
cmp dword [ebp + 8], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x60]
je 0x440b6e
call fcn.0041a3e6
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x440b66
mov eax, dword [ecx]
call dword [eax + 0xc]
push 1
pop eax
jmp 0x440cfc
call fcn.0041a3e6
mov eax, dword [edi]
push 0x4845cc
push esi
push str.emptytemplatefile
mov ecx, edi
call dword [eax + 0x38]
cmp dword [esi + 8], ebx
jne 0x440ba1
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x440b9a
mov eax, dword [ecx]
call dword [eax + 0xc]
xor eax, eax
jmp 0x440cfc
cmp dword [ebp + 0xc], ebx
jle 0x440ccc
mov edx, 0x81
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x266]
mov word [ebp - 0x268], bx
mov word [ebp - 0x470], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x46e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esi + 4]
cmp eax, ebx
jne 0x440be5
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 - 0x470]
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
pop ecx
lea eax, [ebp - 0x470]
pop ecx
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
cmp eax, ebx
je 0x440c2e
mov word [eax], bx
add eax, 2
push eax
lea eax, [ebp - 0x470]
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x268]
push str._s_d._s
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x14
jmp 0x440c4d
push dword [ebp + 0xc]
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x268]
push str._s_d
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
mov al, byte [ebp + 0xf]
push ebx
lea ecx, [ebp - 0x20]
mov byte [ebp - 0x20], 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 edi, dword [sym.imp.MSVCRT.dll_wcslen]
lea eax, [ebp - 0x268]
push eax
call edi
pop ecx
push eax
lea eax, [ebp - 0x268]
push eax
lea ecx, [ebp - 0x20]
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 - 0x20]
mov byte [ebp - 4], 2
push eax
call dword [sym.imp.Ht4Dll.dll_public:_static_unsigned_short_int_const____cdecl_CHtPath::BuildExePath_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int____]
mov eax, dword [ebp - 0x1c]
pop ecx
cmp eax, ebx
jne 0x440c99
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
je 0x440cbe
lea eax, [ebp - 0x268]
push eax
call edi
pop ecx
push eax
lea eax, [ebp - 0x268]
push eax
mov ecx, esi
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
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
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_]
push esi
call dword [sym.imp.Ht4Dll.dll_public:_static_unsigned_short_int_const____cdecl_CHtPath::BuildExePath_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int____]
mov esi, dword [esi + 4]
pop ecx
cmp esi, ebx
jne 0x440ce1
mov esi, 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 esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
mov esi, eax
je 0x440cfa
mov eax, dword [ecx]
call dword [eax + 0xc]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8