Function at 0x46e420
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x49e183
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0xb4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cacfc]
xor eax, esp
push eax
lea eax, [esp + 0xcc]
mov dword fs:[0], eax
mov esi, dword [esp + 0xdc]
mov edi, dword [esp + 0xe0]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x30], bl
mov dword [esp + 0x34], 2
mov dword [esp + 0x28], vtable.ATL::CDacl.0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
lea ecx, [esp + 0x68]
mov dword [esp + 0xd4], ebx
call fcn.0046cd50
mov byte [esp + 0xd4], 1
cmp esi, ebx
je 0x46e668
cmp edi, ebx
je 0x46e668
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46e668
push 0x4a692c
push edi
call fcn.00487536
add esp, 8
test eax, eax
je 0x46e4f9
push edi
call fcn.00465f50
add esp, 4
test eax, eax
je 0x46e668
mov ebp, dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
push ebx
push ebx
push 4
push 1
push esi
call ebp
test eax, eax
jne 0x46e668
mov al, byte [esp + 0xe8]
cmp al, bl
jne 0x46e529
mov eax, 2
jmp 0x46e536
xor ecx, ecx
cmp al, 1
sete cl
lea ecx, [ecx + ecx + 1]
mov eax, ecx
mov edx, dword [esp + 0xe4]
push 3
push eax
push edx
push edi
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameW]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x50]
push eax
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x46e668
mov ecx, dword [esp + 0x14]
push ebx
push ecx
push ebx
push ebx
push 4
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
test eax, eax
jne 0x46e668
push ebx
push edi
lea ecx, [esp + 0x70]
call fcn.0046e000
test al, al
je 0x46e668
lea edx, [esp + 0x24]
push edx
push ebx
lea eax, [esp + 0x24]
push eax
push ebx
push ebx
push 4
push 1
push esi
call ebp
cmp eax, ebx
je 0x46e5be
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46e668
mov edi, dword [esp + 0x1c]
cmp edi, ebx
je 0x46e5dd
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 8]
lea ecx, [esp + 0x28]
call eax
push edi
lea ecx, [esp + 0x2c]
call fcn.0046dc00
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x1c], ebx
setne al
cmp al, bl
je 0x46e668
mov al, byte [esp + 0xe8]
cmp al, bl
jne 0x46e617
mov edx, dword [esp + 0xe4]
push ebx
push edx
lea eax, [esp + 0x70]
push eax
lea ecx, [esp + 0x34]
call fcn.0046d960
jmp 0x46e632
cmp al, 1
jne 0x46e668
mov ecx, dword [esp + 0xe4]
push ebx
push ecx
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x34]
call fcn.0046da90
test al, al
je 0x46e668
push ebx
lea ecx, [esp + 0x2c]
call fcn.0046c5b0
push eax
push ebx
push ebx
push 4
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
sete al
cmp al, bl
je 0x46e668
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x46e677
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [esp + 0x68]
call fcn.0046cdc0
lea ecx, [esp + 0x28]
call fcn.0046dec0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xcc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xb4]
xor ecx, esp
call fcn.00486dc0
add esp, 0xc4
ret