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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4576
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x4f4164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1a0]
mov esi, dword [ebp + 0xc]
push 0x190
push 0
push eax
mov dword [ebp - 0x1a4], edi
mov dword [ebp - 0x1c8], esi
call fcn.00495790
add esp, 0xc
lea eax, [ebp - 0x1a0]
push 0
push 0xc8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
mov esi, eax
test esi, esi
je 0x47fae9
cmp esi, 0xc8
jae 0x47fae9
lea ecx, [ebp - 0x1a0]
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1b0], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x1ac], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47fa77
sub ecx, edx
lea eax, [ebp - 0x1a0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1c0]
call fcn.004038a0
movups xmm0, xmmword [ebp - 0x1c0]
mov dword [edi], 0
xor eax, eax
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
movups xmmword [edi + 4], xmm0
mov word [ebp - 0x1c0], ax
movq xmm0, qword [ebp - 0x1b0]
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1ac], 7
jmp 0x47fe76
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x47fc01
cmp eax, 8
jne 0x47fe2e
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
push 0x4d197c
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00450e5d
add esp, 8
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 4], 0
test eax, eax
jne 0x47fb6b
mov dword [ebp - 0x1c0], eax
mov ecx, edi
mov dword [ebp - 0x1b0], eax
lea eax, [ebp - 0x1c4]
push eax
lea eax, [ebp - 0x1c0]
mov dword [ebp - 0x1ac], 7
push eax
mov dword [ebp - 0x1c4], 8
call fcn.00469170
jmp 0x47fe7b
push 0
push esi
push eax
push dword [ebp - 0x1c8]
call dword [sym.imp.KERNEL32.dll_GetFinalPathNameByHandleW]
lea ecx, [esi - 1]
mov dword [ebp - 0x1a4], eax
cmp eax, ecx
jne 0x47fbcc
mov esi, dword [ebp - 0x1a8]
lea ecx, [ebp - 0x1e0]
push esi
call fcn.004037d0
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 0x1c4], 0
push ecx
push eax
mov ecx, edi
call fcn.00469170
lea ecx, [ebp - 0x1e0]
call fcn.00403690
push esi
call fcn.00450e58
add esp, 4
jmp 0x47fe86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x1a8]
push esi
mov dword [ebp - 0x1c4], eax
mov dword [ebp - 4], 0xffffffff
call fcn.00450e58
mov eax, dword [ebp - 0x1c4]
add esp, 4
cmp dword [ebp - 0x1a4], 0
jne 0x47fe2e
test eax, eax
je 0x47fe2e
push 7
xor eax, eax
mov dword [ebp - 0x1c0], 0
push str._UNC
lea ecx, [ebp - 0x1c0]
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1ac], 7
mov word [ebp - 0x1c0], ax
call fcn.004038a0
mov dword [ebp - 4], 1
mov esi, 0xc8
mov ecx, 0xfffe
add esi, esi
cmp esi, 0xfffe
push 0x4d197c
cmova esi, ecx
push esi
call fcn.00450e5d
add esp, 8
mov dword [ebp - 0x1a8], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x47fde4
push esi
push 0
push eax
call fcn.00495790
add esp, 0xc
push esi
push dword [ebp - 0x1a8]
push 2
push dword [ebp - 0x1c8]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
test eax, eax
jne 0x47fd30
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1a4], eax
cmp eax, 0xea
jne 0x47fcdf
push dword [ebp - 0x1a8]
mov byte [ebp - 4], 1
call fcn.00450e58
add esp, 4
mov ecx, 0xfffe
cmp esi, 0xfffe
jb 0x47fc53
jmp 0x47fd52
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x1e0], 0
push eax
lea eax, [ebp - 0x1e0]
mov dword [ebp - 0x1d0], 0
push eax
mov ecx, edi
mov dword [ebp - 0x1cc], 7
call fcn.00469170
lea ecx, [ebp - 0x1e0]
call fcn.00403690
push dword [ebp - 0x1a8]
call fcn.00450e58
add esp, 4
jmp 0x47fe7b
mov esi, dword [ebp - 0x1a8]
lea ecx, [ebp - 0x1c0]
lea eax, [esi + 4]
push eax
call fcn.004093f0
push esi
mov byte [ebp - 4], 1
call fcn.00450e58
add esp, 4
cmp dword [ebp - 0x1b0], 7
jbe 0x47fdca
cmp dword [ebp - 0x1ac], 8
lea eax, [ebp - 0x1c0]
cmovae eax, dword [ebp - 0x1c0]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47fdca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1a4], eax
mov ecx, edi
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x1e0], 0
push eax
lea eax, [ebp - 0x1e0]
mov dword [ebp - 0x1d0], 0
push eax
mov dword [ebp - 0x1cc], 7
call fcn.00469170
lea ecx, [ebp - 0x1e0]
call fcn.00403690
jmp 0x47fe7b
lea eax, [ebp - 0x1c0]
mov dword [edi], 0
lea ecx, [edi + 4]
push eax
call fcn.00405c80
jmp 0x47fe7b
lea eax, [ebp - 0x1a4]
mov dword [ebp - 0x1e0], 0
push eax
lea eax, [ebp - 0x1e0]
mov dword [ebp - 0x1d0], 0
push eax
mov ecx, edi
mov dword [ebp - 0x1cc], 7
mov dword [ebp - 0x1a4], 8
call fcn.00469170
lea ecx, [ebp - 0x1e0]
call fcn.00403690
jmp 0x47fe7b
mov dword [ebp - 0x1c0], 0
movups xmm0, xmmword [ebp - 0x1c0]
mov dword [edi], eax
mov dword [edi + 4], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [ebp - 0x1b0], 0
mov dword [ebp - 0x1ac], 7
movups xmmword [edi + 4], xmm0
movq xmm0, qword [ebp - 0x1b0]
movq qword [edi + 0x14], xmm0
lea ecx, [ebp - 0x1c0]
call fcn.00403690
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00450df0
mov esp, ebp
pop ebp
ret