Function at 0x451660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d57b5
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x64c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
xor ebx, ebx
mov esi, dword [eax]
mov eax, dword [0x65cc38]
cmp eax, dword [esi + 4]
jle 0x4516de
push 0x65cc38
call fcn.00483c2d
add esp, 4
cmp dword [0x65cc38], 0xffffffff
jne 0x4516de
mov dword [ebp - 4], ebx
call fcn.00414990
push 0x5d7c10
call fcn.00484084
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0x65cc38
call fcn.00483be3
add esp, 4
lea eax, [ebp - 0x18]
mov ecx, 0x65cc40
push eax
call fcn.004127f0
sub esp, 0xc
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
push str.kwallpapersdkmenu.dll
call fcn.00410bd0
add esp, 0x10
mov byte [ebp - 4], 3
or edi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45172a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x1c]
call fcn.00410cd0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp - 0x1c]
cmp eax, 0xffffffff
mov eax, edi
setne byte [ebp - 0xd]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x45175f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp byte [ebp - 0xd], 0
je 0x4517b7
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0
lea ecx, [ecx - 0x10]
call fcn.00406d70
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00421cf0
mov ebx, eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x45179d
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x1c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4517b7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x65cc38]
cmp eax, dword [esi + 4]
jle 0x451801
push 0x65cc38
call fcn.00483c2d
add esp, 4
cmp dword [0x65cc38], 0xffffffff
jne 0x451801
mov byte [ebp - 4], 5
call fcn.00414990
push 0x5d7c10
call fcn.00484084
add esp, 4
mov byte [ebp - 4], 3
push 0x65cc38
call fcn.00483be3
add esp, 4
lea eax, [ebp - 0x24]
mov ecx, 0x65cc40
push eax
call fcn.004127f0
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.00406d70
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00415c40
mov byte [ebp - 4], 6
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45184b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 3
mov eax, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x451869
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x451888
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret