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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45d318
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0040b510
add esp, 4
test al, al
jne 0x40b23c
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.0040b070
add esp, 0x20
lea eax, [ebp - 0x2c]
push 0x473d4c
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
test esi, esi
jne 0x40b247
push 0x2db
jmp 0x40b1f2
mov edi, esi
lea ecx, [edi + 2]
nop dword [eax]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x40b250
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.0041fe90
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 0x40b2b8
cmp word [esi + ecx*2], 0x5c
je 0x40b2b8
xor eax, eax
mov word [esi + ecx*2], ax
dec ecx
cmp ecx, 0xffffffff
jg 0x40b2a5
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b2c0
sub ecx, edx
sar ecx, 1
jne 0x40b2db
push 0x2f3
jmp 0x40b1f2
mov dword [ebp - 0x10], 0
cmp ecx, 4
jb 0x40b309
cmp word [esi], 0x5c
jne 0x40b309
cmp word [esi + 2], 0x5c
jne 0x40b309
cmp word [esi + 4], 0x3f
jne 0x40b309
cmp word [esi + 6], 0x5c
jne 0x40b309
mov eax, 4
jmp 0x40b340
cmp ecx, 2
jb 0x40b33e
cmp word [esi], 0x5c
jne 0x40b33e
cmp word [esi + 2], 0x5c
jne 0x40b33e
mov eax, 2
cmp eax, ecx
jae 0x40b332
cmp word [esi + eax*2], 0x5c
je 0x40b330
inc eax
cmp eax, ecx
jb 0x40b324
cmp eax, ecx
jne 0x40b340
push 0x307
jmp 0x40b1f2
xor eax, eax
cmp eax, ecx
jae 0x40b36f
lea edx, [esi + eax*2]
sub ecx, eax
xor esi, esi
nop dword [eax + eax]
cmp word [edx], 0x5c
jne 0x40b361
test esi, esi
cmove edi, edx
inc esi
xor eax, eax
mov word [edx], ax
add edx, 2
sub ecx, 1
jne 0x40b350
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x18]
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jbe 0x40b3dc
mov ecx, 0x5c
mov word [edi], cx
add edi, 2
cmp word [edi], 0
jne 0x40b384
mov ax, word [edi - 2]
cmp ax, word [0x4634f0]
je 0x40b3f5
push esi
call fcn.0040b510
add esp, 4
test al, al
je 0x40b3bc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b3bc
test al, 0x10
seta al
test al, al
jne 0x40b3cb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0040b7c0
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov ecx, 0x5c
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 0x10]
jb 0x40b381
push esi
call fcn.0041fe99
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.0040b070
add esp, 0x20
lea eax, [ebp - 0x40]
push 0x473d4c
jmp 0x40b236