Function at 0x458457
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x469fbd
call fcn.00461c40
sub esp, 0x490
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0xdc]
mov eax, dword [ecx]
call dword [eax + 0x44]
mov edi, eax
push 5
push str.valid
push str.WallPaper
mov eax, dword [edi]
mov ecx, edi
mov dword [ebp - 0x2c], edi
call dword [eax + 0x10]
xor ebx, ebx
mov dword [esi + 0xc8], eax
mov eax, dword [edi]
push ebx
push str.count
push str.WallPaper
mov ecx, edi
call dword [eax + 0x10]
mov ecx, eax
mov eax, dword [esi + 0xc8]
cmp eax, 5
mov dword [ebp - 0x10], ecx
jl 0x4584bc
push 5
pop eax
cmp eax, ecx
mov dword [esi + 0xc8], eax
jle 0x4584cc
mov dword [esi + 0xc8], ecx
cmp dword [ebp + 0x18], ebx
jle 0x4584da
mov eax, dword [esi + 0xc8]
mov dword [ebp - 0x10], eax
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x49a]
cmp dword [ebp - 0x10], ebx
mov word [ebp - 0x49c], bx
mov dword [ebp + 0x18], ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jle 0x4587e9
mov esi, dword [sym.imp.MSVCRT.dll_wcslen]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x292]
push dword [ebp + 0x18]
mov word [ebp - 0x294], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x49c]
push 0x480f70
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
lea edx, [ebp - 0x294]
mov eax, dword [ecx]
push 0x104
push edx
lea edx, [ebp - 0x49c]
push 0x4845cc
push edx
push str.WallPaper
call dword [eax + 0x18]
mov al, byte [ebp + 0x17]
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x20], al
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov al, byte [ebp + 0x17]
push ebx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x3c], 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, 0x47fc30
push edi
call esi
pop ecx
push eax
push edi
lea ecx, [ebp - 0x3c]
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 al, byte [ebp + 0x17]
push ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
mov byte [ebp - 0x5c], 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 - 0x294]
push eax
call esi
pop ecx
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x5c]
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
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.Ht4Dll.dll_public:_static_long_int___cdecl_CHT4StrTool::SplitString_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const___class_std::vector_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int____class_std::allocator_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______]
add esp, 0xc
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
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_]
push 1
lea ecx, [ebp - 0x3c]
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_]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x458774
mov ecx, dword [ebp - 0x18]
sub ecx, eax
and ecx, 0xfffffff0
cmp ecx, 0x40
jne 0x458774
mov eax, dword [eax + 0x34]
cmp eax, ebx
jne 0x45861c
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 0x4587ce
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax + 4]
cmp edi, ebx
jne 0x45863b
mov edi, 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 al, byte [ebp + 0x17]
push ebx
lea ecx, [ebp - 0x8c]
mov byte [ebp - 0x8c], 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_]
push edi
call esi
pop ecx
push eax
push edi
lea ecx, [ebp - 0x8c]
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 ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x8c]
push edx
mov byte [ebp - 4], 3
mov eax, dword [ecx + 8]
push eax
call fcn.0041b8df
push 1
lea ecx, [ebp - 0x8c]
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_]
mov eax, dword [ebp - 0x1c]
mov edi, 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 eax, dword [eax + 0x14]
cmp eax, ebx
je 0x45869d
mov edi, eax
mov al, byte [ebp + 0x17]
push ebx
lea ecx, [ebp - 0x7c]
mov byte [ebp - 0x7c], 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_]
push edi
call esi
pop ecx
push eax
push edi
lea ecx, [ebp - 0x7c]
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 ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 4
mov eax, dword [ecx + 8]
push eax
call fcn.0041b8df
push 1
lea ecx, [ebp - 0x7c]
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_]
mov ecx, dword [ebp - 0x1c]
mov edx, 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 edi, edx
mov eax, dword [ecx + 4]
cmp eax, ebx
je 0x4586f2
mov edi, eax
cmp word [edi], bx
je 0x45871c
cmp eax, ebx
jne 0x4586fd
mov eax, edx
cmp word [eax], 0x2a
je 0x45871c
mov ecx, dword [ecx + 0x24]
cmp ecx, ebx
jne 0x45870c
mov ecx, edx
push ecx
call dword [sym.imp.MSVCRT.dll__wtoi]
mov dword [ebp - 0x24], eax
pop ecx
lea eax, [ebp - 0x24]
jmp 0x458722
mov dword [ebp - 0x28], ebx
lea eax, [ebp - 0x28]
mov ecx, dword [ebp + 0x14]
push eax
call fcn.00451ff5
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax + 0x34]
cmp edi, ebx
jne 0x45873b
mov edi, 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 al, byte [ebp + 0x17]
push ebx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x4c], 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_]
push edi
call esi
pop ecx
push eax
push edi
lea ecx, [ebp - 0x4c]
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 ecx, dword [ebp + 8]
lea eax, [ebp - 0x4c]
push eax
mov byte [ebp - 4], 5
call fcn.0041a6a8
mov byte [ebp - 4], bl
push 1
lea ecx, [ebp - 0x4c]
jmp 0x4587c8
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4587ce
mov al, byte [ebp + 0x17]
push ebx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 0x6c], 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 - 0x294]
push eax
call esi
pop ecx
push eax
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x6c]
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 ecx, dword [ebp + 8]
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 4], 6
call fcn.0041a6a8
mov byte [ebp - 4], bl
push 1
lea ecx, [ebp - 0x6c]
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
lea ecx, [ebp - 0x20]
call fcn.004033a7
inc dword [ebp + 0x18]
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp - 0x10]
jl 0x458504
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14