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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4105d8
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00406fc0
add esp, 4
test al, al
jne 0x406cec
push 0x2d8
push str.nidscosdeppath.cpp
sub esp, 0x14
xorps xmm0, xmm0
mov eax, esp
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
movq qword [eax + 4], xmm0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax], vtable.ni::dsc::exception::InvalidArgument.0
lea eax, [ebp - 0x2c]
push eax
call fcn.004069f0
add esp, 0x20
lea eax, [ebp - 0x2c]
push 0x413ddc
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
test esi, esi
jne 0x406cf7
push 0x2db
jmp 0x406ca2
mov edi, esi
lea ecx, [edi + 2]
nop dword [eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x406d00
sub edi, ecx
mov edx, 2
sar edi, 1
xor ecx, ecx
mov dword [ebp - 0x14], edi
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040ef89
mov esi, eax
mov dword [ebp - 0x18], esi
lea eax, [edi*2 + 2]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 8]
push esi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x14]
add esp, 0x10
mov edi, esi
cmp ecx, 0xffffffff
jle 0x406d68
cmp word [esi + ecx*2], 0x5c
je 0x406d68
xor eax, eax
mov word [esi + ecx*2], ax
dec ecx
cmp ecx, 0xffffffff
jg 0x406d55
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406d70
sub ecx, edx
sar ecx, 1
jne 0x406d8b
push 0x2f3
jmp 0x406ca2
mov dword [ebp - 0x10], 0
cmp ecx, 4
jb 0x406db9
cmp word [esi], 0x5c
jne 0x406db9
cmp word [esi + 2], 0x5c
jne 0x406db9
cmp word [esi + 4], 0x3f
jne 0x406db9
cmp word [esi + 6], 0x5c
jne 0x406db9
mov eax, 4
jmp 0x406df0
cmp ecx, 2
jb 0x406dee
cmp word [esi], 0x5c
jne 0x406dee
cmp word [esi + 2], 0x5c
jne 0x406dee
mov eax, 2
cmp eax, ecx
jae 0x406de2
cmp word [esi + eax*2], 0x5c
je 0x406de0
inc eax
cmp eax, ecx
jb 0x406dd4
cmp eax, ecx
jne 0x406df0
push 0x307
jmp 0x406ca2
xor eax, eax
cmp eax, ecx
jae 0x406e1f
lea edx, [esi + eax*2]
sub ecx, eax
xor esi, esi
nop dword [eax + eax]
cmp word [edx], 0x5c
jne 0x406e11
test esi, esi
cmove edi, edx
inc esi
xor eax, eax
mov word [edx], ax
add edx, 2
sub ecx, 1
jne 0x406e00
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x18]
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jbe 0x406e8c
mov ecx, 0x5c
mov word [edi], cx
add edi, 2
cmp word [edi], 0
jne 0x406e34
mov ax, word [edi - 2]
cmp ax, word [0x412160]
je 0x406ea5
push esi
call fcn.00406fc0
add esp, 4
test al, al
je 0x406e6c
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406e6c
test al, 0x10
seta al
test al, al
jne 0x406e7b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.004072e0
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, 0x5c
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x10]
jb 0x406e31
push esi
call fcn.0040ef92
mov ecx, dword [ebp - 0xc]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x329
push str.nidscosdeppath.cpp
sub esp, 0x14
xorps xmm0, xmm0
mov eax, esp
movups xmmword [eax], xmm0
mov dword [eax + 0x10], 0
movq qword [eax + 4], xmm0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax], vtable.ni::dsc::exception::InvalidArgument.0
lea eax, [ebp - 0x40]
push eax
call fcn.004069f0
add esp, 0x20
lea eax, [ebp - 0x40]
push 0x413ddc
jmp 0x406ce6