Function at 0x457ff0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x48c7f8
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4bb028]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4bb028]
xor eax, esp
push eax
lea eax, [esp + 0xbc]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xcc]
lea eax, [esp + 0x1c]
push eax
call fcn.00454dc0
xor edi, edi
lea ecx, [esp + 0x7c]
mov dword [esp + 0xc4], edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esp + 0x60]
mov byte [esp + 0xc4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov ebx, 2
lea ecx, [esp + 0x98]
mov byte [esp + 0xc4], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [esp + 0xc4], 3
cmp ebp, edi
je 0x45815c
mov eax, ebp
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, ebx
cmp cx, di
jne 0x458090
sub eax, edx
sar eax, 1
je 0x45815c
mov ecx, 0x4984d4
mov ebx, reloc.BootTime.dll_Ordinal_1
lea esi, [esp + 0x1c]
call fcn.00454f70
test eax, eax
je 0x45810a
push str.Curbackground
mov eax, ebp
mov edi, esi
call fcn.004551a0
push ebp
mov edi, eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4580e6
push str.Lastbackground
mov eax, ebp
mov edi, esi
call fcn.004551a0
mov edi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x458100
push eax
call dword [sym.imp.Config.dll_Ordinal_1_4]
add esp, 4
mov dword [esp + 0x3c], 0
lea ecx, [esp + 0x40]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::clear_void_]
lea ecx, [esp + 0x98]
mov byte [esp + 0xc4], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x60]
mov byte [esp + 0xc4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x7c]
mov byte [esp + 0xc4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0xc8], 0xffffffff
call fcn.00454d00
mov eax, edi
jmp 0x4581ab
lea ecx, [esp + 0x98]
mov byte [esp + 0xc4], bl
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x60]
mov byte [esp + 0xc4], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x7c]
mov byte [esp + 0xc4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0xc8], 0xffffffff
call fcn.00454d00
xor eax, eax
mov ecx, dword [esp + 0xbc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0048a3f6
add esp, 0xb4
ret 4