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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8536
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x507254]
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.004a8a30
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 0x479eb9
cmp esi, 0xc8
jae 0x479eb9
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 0x479e47
sub ecx, edx
lea eax, [ebp - 0x1a0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1c0]
call fcn.00403940
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 0x47a246
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x479fd1
cmp eax, 8
jne 0x47a1fe
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
push 0x4dfb58
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a62ca
add esp, 8
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 4], 0
test eax, eax
jne 0x479f3b
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.0045ce40
jmp 0x47a24b
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 0x479f9c
mov esi, dword [ebp - 0x1a8]
lea ecx, [ebp - 0x1e0]
push esi
call fcn.0040a560
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 0x1c4], 0
push ecx
push eax
mov ecx, edi
call fcn.0045ce40
lea ecx, [ebp - 0x1e0]
call fcn.00402710
push esi
call fcn.004a62c5
add esp, 4
jmp 0x47a256
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.004a62c5
mov eax, dword [ebp - 0x1c4]
add esp, 4
cmp dword [ebp - 0x1a4], 0
jne 0x47a1fe
test eax, eax
je 0x47a1fe
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.00403940
mov dword [ebp - 4], 1
mov esi, 0xc8
mov ecx, 0xfffe
add esi, esi
cmp esi, 0xfffe
push 0x4dfb58
cmova esi, ecx
push esi
call fcn.004a62ca
add esp, 8
mov dword [ebp - 0x1a8], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x47a1b4
push esi
push 0
push eax
call fcn.004a8a30
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 0x47a100
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1a4], eax
cmp eax, 0xea
jne 0x47a0af
push dword [ebp - 0x1a8]
mov byte [ebp - 4], 1
call fcn.004a62c5
add esp, 4
mov ecx, 0xfffe
cmp esi, 0xfffe
jb 0x47a023
jmp 0x47a122
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.0045ce40
lea ecx, [ebp - 0x1e0]
call fcn.00402710
push dword [ebp - 0x1a8]
call fcn.004a62c5
add esp, 4
jmp 0x47a24b
mov esi, dword [ebp - 0x1a8]
lea ecx, [ebp - 0x1c0]
lea eax, [esi + 4]
push eax
call fcn.0040e470
push esi
mov byte [ebp - 4], 1
call fcn.004a62c5
add esp, 4
cmp dword [ebp - 0x1b0], 7
jbe 0x47a19a
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 0x47a19a
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.0045ce40
lea ecx, [ebp - 0x1e0]
call fcn.00402710
jmp 0x47a24b
lea eax, [ebp - 0x1c0]
mov dword [edi], 0
lea ecx, [edi + 4]
push eax
call fcn.00403010
jmp 0x47a24b
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.0045ce40
lea ecx, [ebp - 0x1e0]
call fcn.00402710
jmp 0x47a24b
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.00402710
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.004a6256
mov esp, ebp
pop ebp
ret