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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x40
lea rax, [rsp + 0x70]
xor ebx, ebx
mov rdi, rcx
mov esi, dword [rax]
test edx, 0xffff7fff
jne 0x1400df5d0
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400df549
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 3
jne 0x1400df528
mov rcx, rdi
call fcn.1400dfb60
mov rbx, rax
test rax, rax
jne 0x1400df51a
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], SafeArrayPutElement
or eax, 0xffffffff
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400df549
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.1400df350
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
or eax, 0xffffffff
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
test al, 0x10
je 0x1400df5c3
mov qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x28], 0x2000001
mov dword [rsp + 0x20], 3
test rbx, rbx
je 0x1400df57e
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
jmp 0x1400df587
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CreateFileA]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.msvcrt.dll_free]
cmp rdi, 0xffffffffffffffff
jne 0x1400df5b0
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.1400df350
or eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
xor edx, edx
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__open_osfhandle]
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
test rbx, rbx
jne 0x1400df676
mov edx, dword [rsp + 0x68]
mov r8d, esi
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__open]
mov ebx, eax
test eax, eax
jns 0x1400df711
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 0xd
jne 0x1400df653
test dword [rsp + 0x68], 0x100
je 0x1400df653
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400df621
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.1400df350
or eax, 0xffffffff
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
test al, 0x10
je 0x1400df63c
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], reloc.WS2_32.dll_setsockopt
or eax, 0xffffffff
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], reloc.WS2_32.dll_listen
or eax, 0xffffffff
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 2
jne 0x1400df711
mov rcx, rdi
call fcn.1400dfb60
mov rbx, rax
test rax, rax
je 0x1400df503
mov edx, dword [rsp + 0x68]
mov r8d, esi
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wopen]
mov edi, eax
test eax, eax
jns 0x1400df6fe
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 0xd
jne 0x1400df6fe
test dword [rsp + 0x68], 0x100
je 0x1400df6fe
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400df6cf
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.1400df350
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
test al, 0x10
je 0x1400df6f2
call qword [sym.imp.msvcrt.dll__errno]
mov rcx, rbx
mov dword [rax], reloc.WS2_32.dll_setsockopt
call qword [sym.imp.msvcrt.dll_free]
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
call qword [sym.imp.msvcrt.dll__errno]
mov dword [rax], reloc.WS2_32.dll_listen
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov eax, ebx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret