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

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x290
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x14012dcd0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov esi, edx
mov rdi, rcx
lea r14, section..data
mov rcx, qword [section..data]
cmp rcx, r14
je 0x14001663e
mov edx, ntohl
lea r8, [0x1400dddb0]
mov rcx, qword [rcx + 0x10]
call fcn.140012400
cmp dword [0x1401328e0], 0
je 0x140016651
mov eax, 0x2000
jmp 0x14001699b
lea rax, [0x1401328e0]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], 1
xor ebp, ebp
lea rbx, [rdi + 0x270]
mov qword [rsp + 0x58], rbx
test rbx, rbx
je 0x140016682
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x1401328e0], 1
test rbx, rbx
je 0x14001669b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140016974
mov dword [rsp + 0x20], ebp
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
call fcn.1400b6604
test rax, rax
jne 0x1400166ec
mov dword [rsp + 0x20], ebp
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, qword [rdi + 0x38]
call fcn.1400b6604
test rax, rax
je 0x140016866
test esi, esi
jne 0x140016866
mov dword [rsp + 0x40], ebp
mov word [rsp + 0x70], bp
mov rcx, qword [section..data]
cmp rcx, r14
je 0x14001671c
lea edx, [rsi + 0xd]
lea r8, [0x1400dddb0]
mov rcx, qword [rcx + 0x10]
call fcn.140012400
mov esi, ebp
mov dword [rsp + 0x20], ebp
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, qword [rdi + 0x38]
call fcn.1400b6604
test rax, rax
je 0x14001677b
mov dword [rsp + 0x20], ebp
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, qword [rdi + 0x38]
call fcn.1400b6604
mov rcx, rax
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x40]
xor edx, edx
call fcn.1400586d0
mov esi, eax
mov dword [rsp + 0x20], ebp
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, qword [rdi + 0x38]
call fcn.1400b6604
test rax, rax
je 0x1400167d8
mov dword [rsp + 0x20], ebp
lea r9, vtable.type_info.0
lea r8, vtable.type_info.0
xor edx, edx
mov rcx, qword [rdi + 0x38]
call fcn.1400b6604
mov rcx, rax
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x70]
lea r8, [rsp + 0x40]
xor edx, edx
call fcn.140042d08
mov esi, eax
test esi, esi
je 0x140016845
mov rcx, qword [section..data]
cmp rcx, r14
je 0x14001681c
movzx r9d, word [rdi + 0x260]
mov edx, reloc.WS2_32.dll_ntohl
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x40]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], esi
lea r8, [0x1400dddb0]
mov rcx, qword [rcx + 0x10]
call fcn.140017100
nop
test rbx, rbx
je 0x14001682a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x1401328e0], ebp
test rbx, rbx
je 0x14001683e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
jmp 0x14001699b
mov rcx, qword [section..data]
cmp rcx, r14
je 0x140016866
mov edx, 0xf
lea r8, [0x1400dddb0]
mov rcx, qword [rcx + 0x10]
call fcn.140012400
lea rsi, [rdi + 0x2c0]
mov rax, qword [rsi]
mov eax, dword [rax - 0x10]
test eax, eax
jle 0x1400168e8
sub eax, 1
js 0x1400168dd
mov rcx, qword [rsi]
cmp eax, dword [rcx - 0x10]
jg 0x1400168dd
cdqe
cmp word [rcx + rax*2], 0x5c
je 0x1400168a2
mov r8d, 1
lea rdx, [0x1400de108]
mov rcx, rsi
call fcn.1400127c0
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rcx, qword [rsi]
cmp eax, 0xffffffff
jne 0x1400168bb
call qword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
jmp 0x1400168c9
call qword [sym.imp.KERNEL32.dll_DeleteVolumeMountPointW]
test eax, eax
je 0x140016974
xor r8d, r8d
lea rdx, [0x1400dd1f0]
mov rcx, rsi
call fcn.140007830
jmp 0x1400168e8
mov ecx, 0x80070057
call fcn.140003970
int3
mov rcx, qword [rdi + 0x40]
test rcx, rcx
je 0x14001691e
mov byte [rdi + 0x50], 1
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rdi + 0x40], rbp
mov byte [rdi + 0x50], 0
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x14001691e
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rdi + 0x48], rbp
mov rcx, qword [rdi + 0x38]
test rcx, rcx
je 0x140016931
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rdi + 0x38], rbp
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0xb0]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x88]
nop
test rbx, rbx
je 0x14001695c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x1401328e0], ebp
test rbx, rbx
je 0x140016970
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x14001699b
test rbx, rbx
je 0x140016985
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test rbx, rbx
mov dword [0x1401328e0], ebp
je 0x140016996
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 0x57
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400af8c0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret