Function at 0x4065ee
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x46295a
call fcn.00461c40
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
push edi
je 0x406700
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x88]
test eax, eax
je 0x406700
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1b8]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x18]
mov edi, dword [ebp + 0xc]
cmp eax, esi
jne 0x40669b
cmp dword [ebp + 0x10], esi
jne 0x4066a0
lea eax, [ebp - 0x2c]
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::GetHt4AppDataFolder_void_]
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 dword [ebp - 4], esi
push dword [ecx]
mov ecx, edi
push esi
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_]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x2c]
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 esi, str.uistylebk.jpg
push esi
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
push esi
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__::append_unsigned_short_int_const___unsigned_int_]
mov eax, dword [edi + 4]
test eax, eax
jne 0x40668c
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 0x4066e1
push 1
jmp 0x4066fd
cmp dword [ebp + 0x10], esi
je 0x4066e3
mov al, byte [ebp + 0x13]
push esi
lea ecx, [ebp - 0x1c]
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_]
lea eax, [ebp - 0x1c]
push esi
push eax
push ebx
mov dword [ebp - 4], 1
call fcn.00405786
add esp, 0xc
cmp eax, esi
je 0x4066d0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
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_]
jmp 0x4066e3
xor esi, esi
push dword [ebp + 0x10]
push edi
push ebx
call fcn.00405786
add esp, 0xc
cmp eax, esi
je 0x406700
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
push 2
pop eax
jmp 0x406702
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret