Function at 0x46e680
Capabilities:
Check if file exists
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4f6018
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push ebp
push esi
push edi
mov eax, dword [0x52b360]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [esp + 0x68]
xor ebp, ebp
cmp ebx, ebp
je 0x46e9f8
push ebx
mov esi, 0x532e68
call fcn.00482800
mov dword [esp + 0x18], ebp
mov byte [esp + 0x17], 1
cmp dword [edi + 0x78], ebx
jne 0x46e75c
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
push ebp
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
mov dword [edi + 0x78], ebp
mov dword [esp + 0x20], ebp
mov byte [edi + 0x74], 2
call edx
mov esi, 8
mov dword [esp + 0x60], ebp
cmp dword [eax + 0x18], esi
jb 0x46e701
mov eax, dword [eax + 4]
jmp 0x46e704
add eax, 4
push eax
call fcn.00448d50
add esp, 4
mov dword [esp + 0x60], 0xffffffff
mov dword [edi + 0x7c], eax
cmp dword [esp + 0x38], esi
jb 0x46e72b
mov eax, dword [esp + 0x24]
push eax
call fcn.004c8f17
add esp, 4
mov eax, dword [edi + 0x7c]
mov ecx, dword [eax + 8]
mov dword [eax + 8], ebp
cmp ecx, ebp
je 0x46e9c4
mov ecx, dword [edi + 0x7c]
cmp ecx, ebp
je 0x46e74b
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [edi + 0x7c], ebp
mov byte [edi + 0x74], 3
mov byte [esp + 0x17], 0
jmp 0x46e9c4
cmp dword [edi + 0x88], ebx
jne 0x46e7fc
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
mov esi, 1
push esi
lea eax, [esp + 0x24]
push eax
mov ecx, edi
mov dword [edi + 0x88], ebp
mov dword [esp + 0x20], esi
mov byte [edi + 0x84], 2
call edx
mov dword [esp + 0x60], esi
cmp dword [eax + 0x18], 8
jb 0x46e79c
mov eax, dword [eax + 4]
jmp 0x46e79f
add eax, 4
push eax
call fcn.00448d50
add esp, 4
lea ecx, [esp + 0x20]
mov dword [edi + 0x8c], eax
mov dword [esp + 0x60], 0xffffffff
call fcn.004016f0
mov eax, dword [edi + 0x8c]
mov ecx, dword [eax + 8]
mov dword [eax + 8], ebp
cmp ecx, ebp
je 0x46e9c4
mov ecx, dword [edi + 0x8c]
cmp ecx, ebp
je 0x46e7e5
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [edi + 0x8c], ebp
mov byte [edi + 0x84], 3
mov byte [esp + 0x17], 0
jmp 0x46e9c4
cmp dword [edi + 0x98], ebx
jne 0x46e89b
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ebx, 2
push ebx
lea ecx, [esp + 0x24]
push ecx
mov ecx, edi
mov dword [edi + 0x98], ebp
mov dword [esp + 0x20], ebx
mov byte [edi + 0x94], bl
call edx
mov dword [esp + 0x60], ebx
cmp dword [eax + 0x18], 8
jb 0x46e83b
mov eax, dword [eax + 4]
jmp 0x46e83e
add eax, 4
push eax
call fcn.00448d50
add esp, 4
lea ecx, [esp + 0x20]
mov dword [edi + 0x9c], eax
mov dword [esp + 0x60], 0xffffffff
call fcn.004016f0
mov eax, dword [edi + 0x9c]
mov ecx, dword [eax + 8]
mov dword [eax + 8], ebp
cmp ecx, ebp
je 0x46e9c0
mov ecx, dword [edi + 0x9c]
cmp ecx, ebp
je 0x46e884
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [edi + 0x9c], ebp
mov byte [edi + 0x94], 3
mov byte [esp + 0x17], 0
jmp 0x46e9c0
cmp dword [edi + 0xa8], ebx
jne 0x46e9c4
mov dword [edi + 0xa8], ebp
mov eax, dword [ebx + 0x88]
lea esi, [edi - 0x12c]
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 3
call fcn.00473640
mov edx, dword [edi]
mov edx, dword [edx + 0x10]
add esp, 4
push 3
lea eax, [esp + 0x40]
push eax
mov ecx, edi
call edx
cmp dword [eax + 0x18], 8
jb 0x46e8e9
mov eax, dword [eax + 4]
jmp 0x46e8ec
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x3c]
mov ebp, eax
call fcn.004016f0
mov ebx, 2
test ebp, ebp
je 0x46e90f
mov byte [edi + 0xa4], bl
jmp 0x46e916
mov byte [edi + 0xa4], 3
cmp byte [edi + 0xa4], bl
jne 0x46e9aa
mov ecx, dword [0x532f38]
lea eax, [edi - 0x12c]
cmp eax, dword [0x532f34]
je 0x46e93a
cmp eax, ecx
jne 0x46e9af
cmp eax, ecx
jne 0x46e948
mov dword [0x532f38], 0
mov ebx, dword [esp + 0x1c]
test bl, 0x20
je 0x46e95c
push esi
call fcn.00473140
add esp, 4
jmp 0x46e9af
test bl, 0x40
je 0x46e96c
push esi
call fcn.00473210
add esp, 4
jmp 0x46e9af
test bl, bl
jns 0x46e97b
push esi
call fcn.004732e0
add esp, 4
jmp 0x46e9af
mov eax, dword [edi - 0x124]
push eax
push str.set_select_Id___d
push 0x350
push 8
call fcn.004845b0
mov ecx, eax
mov eax, str..wallpaperWallPaperElement.cpp
call fcn.00484890
push ebx
call fcn.00472fa0
add esp, 0x14
jmp 0x46e9af
mov byte [esp + 0x17], 0
push 0
push 0
push 4
mov esi, edi
mov byte [edi + 0x22], 0
call fcn.00483650
mov ebx, dword [esp + 0x68]
lea ecx, [ebx + 0x8c]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x46e9df
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
mov eax, dword [esp + 0x18]
cmp eax, 3
je 0x46e9f8
movzx ecx, byte [esp + 0x17]
push ecx
push eax
push 1
mov esi, edi
call fcn.00483650
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 4