Function at 0x46e0e0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4f1bb4
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x52b360]
xor eax, esp
mov dword [esp + 0x2bc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0x2d4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2e4]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov edi, ecx
mov esi, 7
xor eax, eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], ebp
mov dword [esp + 0xc4], esi
mov dword [esp + 0xc0], ebx
mov word [esp + 0xb0], ax
mov eax, 1
mov dword [esp + 0x2dc], eax
xor ecx, ecx
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
mov word [ebp + 4], cx
push 0x206
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xce]
xor edx, edx
push ebx
push eax
mov word [esp + 0xd4], dx
call fcn.004d1df0
add esp, 0xc
test byte [0x535524], 1
jne 0x46e1bd
or dword [0x535524], 1
xor ecx, ecx
push 0x4f9e10
mov dword [0x535520], esi
mov dword [0x53551c], ebx
mov word [0x53550c], cx
call fcn.004c9e97
add esp, 4
test byte [0x535524], 2
jne 0x46e1ef
or dword [0x535524], 2
xor edx, edx
push 0x4f9dd0
mov dword [0x535504], esi
mov dword [0x535500], ebx
mov word [0x5354f0], dx
call fcn.004c9e97
add esp, 4
test byte [0x535524], 4
jne 0x46e220
or dword [0x535524], 4
xor eax, eax
push 0x4f9d90
mov dword [0x5354e8], esi
mov dword [0x5354e4], ebx
mov word [0x5354d4], ax
call fcn.004c9e97
add esp, 4
cmp dword [0x532e64], ebx
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
je 0x46e419
mov eax, dword [esp + 0x2e8]
cmp eax, 3
ja case.default.0x46e242
jmp dword [eax*4 + 0x46e520]
cmp dword [0x53551c], 0
jne 0x46e28a
mov ecx, str.WallPaperSmallIcon_
lea edi, [esp + 0x20]
call fcn.0047e4c0
push 0xffffffffffffffff
push 0
push eax
mov eax, 0x535508
mov byte [esp + 0x2e8], 2
call fcn.00401850
mov ecx, edi
mov byte [esp + 0x2dc], 1
call fcn.004016f0
mov edi, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
push 0x535508
mov eax, ebp
call fcn.00401850
mov ecx, dword [edi - 0x124]
push ecx
push str._d_Small.png
jmp 0x46e3de
cmp dword [0x535500], 0
jne 0x46e2ec
mov ecx, str.WallPaperSmallIcon1_
lea edi, [esp + 0x74]
call fcn.0047e4c0
push 0xffffffffffffffff
push 0
push eax
mov eax, 0x5354ec
mov byte [esp + 0x2e8], 3
call fcn.00401850
mov ecx, edi
mov byte [esp + 0x2dc], 1
call fcn.004016f0
mov edi, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
push 0x5354ec
mov eax, ebp
call fcn.00401850
mov eax, dword [edi - 0x124]
push eax
push str._d_MSmall.png
lea ecx, [esp + 0xd0]
push ecx
jmp 0x46e3e6
cmp dword [0x5354e4], 0
jne 0x46e356
mov ecx, str.WallPaperSmallIcon2_
lea edi, [esp + 0x3c]
call fcn.0047e4c0
push 0xffffffffffffffff
push 0
push eax
mov eax, 0x5354d0
mov byte [esp + 0x2e8], 4
call fcn.00401850
mov ecx, edi
mov byte [esp + 0x2dc], 1
call fcn.004016f0
mov edi, dword [esp + 0x14]
push 0xffffffffffffffff
push 0
push 0x5354d0
mov eax, ebp
call fcn.00401850
mov edx, dword [edi - 0x124]
push edx
push str._d_BSmall.png
lea eax, [esp + 0xd0]
push eax
jmp 0x46e3e6
lea esi, [esp + 0x90]
call fcn.0047e6f0
push 0x4fea60
mov ecx, eax
lea esi, [esp + 0x5c]
mov byte [esp + 0x2e0], 5
call fcn.0041e3f0
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov eax, ebp
mov byte [esp + 0x2e8], 6
call fcn.00401850
mov ecx, esi
call fcn.004016f0
lea ecx, [esp + 0x90]
mov byte [esp + 0x2dc], 1
call fcn.004016f0
mov ecx, dword [edi - 0x124]
push ecx
push str._d.jpg
lea edx, [esp + 0xd0]
push edx
call ebx
add esp, 0xc
lea eax, [esp + 0xc8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46e3f5
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xcc]
push eax
lea esi, [esp + 0xb4]
call fcn.00401760
mov ecx, dword [edi - 0x124]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
lea edx, [esp + 0xcc]
push 0x50a5e0
push edx
call ebx
lea eax, [esp + 0xd4]
add esp, 0xc
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46e450
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xcc]
push eax
mov eax, ebp
call fcn.004088a0
mov edi, 8
lea esi, [ebp + 4]
cmp dword [ebp + 0x18], edi
jb 0x46e480
mov eax, dword [esi]
jmp 0x46e482
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46e4c8
cmp dword [ebp + 0x18], edi
jb 0x46e496
mov edx, dword [esi]
jmp 0x46e498
mov edx, esi
call fcn.004612d0
test al, al
jne 0x46e4c8
cmp dword [ebp + 0x18], edi
jb 0x46e4a8
mov esi, dword [esi]
push esi
push 0x508090
push 0x2c3
push edi
call fcn.004845b0
mov ecx, eax
mov eax, str..wallpaperWallPaperElement.cpp
call fcn.00484890
add esp, 0x10
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0xb4]
push ecx
mov esi, ebp
call fcn.00408f90
cmp dword [esp + 0xc4], edi
jb 0x46e4f4
mov edx, dword [esp + 0xb0]
push edx
call fcn.004c8f17
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x2d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2bc]
xor ecx, esp
call fcn.004c8f08
add esp, 0x2cc
ret 8