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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50d0c6
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x54c154]
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.004d78d0
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 0x4c1229
cmp esi, 0xc8
jae 0x4c1229
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 0x4c11b7
sub ecx, edx
lea eax, [ebp - 0x1a0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x1c0]
call fcn.00415d70
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 0x4c15b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
je 0x4c1341
cmp eax, 8
jne 0x4c156e
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
push 0x512598
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004a4656
add esp, 8
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 4], 0
test eax, eax
jne 0x4c12ab
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.004a5a30
jmp 0x4c15bb
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 0x4c130c
mov esi, dword [ebp - 0x1a8]
lea ecx, [ebp - 0x1e0]
push esi
call fcn.0040f1d0
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 0x1c4], 0
push ecx
push eax
mov ecx, edi
call fcn.004a5a30
lea ecx, [ebp - 0x1e0]
call fcn.00405a10
push esi
call fcn.004a450c
add esp, 4
jmp 0x4c15c6
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.004a450c
mov eax, dword [ebp - 0x1c4]
add esp, 4
cmp dword [ebp - 0x1a4], 0
jne 0x4c156e
test eax, eax
je 0x4c156e
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.00415d70
mov dword [ebp - 4], 1
mov esi, 0xc8
mov ecx, 0xfffe
add esi, esi
cmp esi, 0xfffe
push 0x512598
cmova esi, ecx
push esi
call fcn.004a4656
add esp, 8
mov dword [ebp - 0x1a8], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x4c1524
push esi
push 0
push eax
call fcn.004d78d0
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 0x4c1470
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1a4], eax
cmp eax, 0xea
jne 0x4c141f
push dword [ebp - 0x1a8]
mov byte [ebp - 4], 1
call fcn.004a450c
add esp, 4
mov ecx, 0xfffe
cmp esi, 0xfffe
jb 0x4c1393
jmp 0x4c1492
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.004a5a30
lea ecx, [ebp - 0x1e0]
call fcn.00405a10
push dword [ebp - 0x1a8]
call fcn.004a450c
add esp, 4
jmp 0x4c15bb
mov esi, dword [ebp - 0x1a8]
lea ecx, [ebp - 0x1c0]
lea eax, [esi + 4]
push eax
call fcn.00461fc0
push esi
mov byte [ebp - 4], 1
call fcn.004a450c
add esp, 4
cmp dword [ebp - 0x1b0], 7
jbe 0x4c150a
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 0x4c150a
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.004a5a30
lea ecx, [ebp - 0x1e0]
call fcn.00405a10
jmp 0x4c15bb
lea eax, [ebp - 0x1c0]
mov dword [edi], 0
lea ecx, [edi + 4]
push eax
call fcn.0040f220
jmp 0x4c15bb
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.004a5a30
lea ecx, [ebp - 0x1e0]
call fcn.00405a10
jmp 0x4c15bb
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.00405a10
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.004a44cd
mov esp, ebp
pop ebp
ret