Function at 0x1400e8cd0
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
xor ebx, ebx
lea rax, [rsp + 0x70]
mov esi, dword [rax]
mov rdi, rcx
test edx, 0xffff7fff
jne 0x1400e8df0
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400e8d6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x1400e8d49
mov rcx, rdi
call fcn.1400e93d0
mov rbx, rax
test rax, rax
jne 0x1400e8d3b
call fcn.1400371cc
mov dword [rax], SafeArrayPutElement
mov 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 0x1400e8d6b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400e8b80
mov rcx, rbx
call fcn.1400305a4
mov eax, 0xffffffff
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
test al, 0x10
je 0x1400e8de3
mov qword [rsp + 0x30], 0
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 0x2000001
xor edx, edx
mov dword [rsp + 0x20], 3
test rbx, rbx
je 0x1400e8da0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x1400e8da9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rbx
mov rdi, rax
call fcn.1400305a4
cmp rdi, 0xffffffffffffffff
jne 0x1400e8dd1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400e8b80
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
xor edx, edx
mov rcx, rdi
call fcn.14003d5a4
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
test rbx, rbx
jne 0x1400e8e97
mov edx, dword [rsp + 0x68]
mov r8d, esi
mov rcx, rdi
call fcn.1401bfc3c
mov ebx, eax
test eax, eax
jns 0x1400e8f2b
call fcn.1400371cc
cmp dword [rax], 0xd
jne 0x1400e8e75
test dword [rsp + 0x68], 0x100
je 0x1400e8e75
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1400e8e41
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400e8b80
mov eax, 0xffffffff
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
test al, 0x10
je 0x1400e8e5d
call fcn.1400371cc
mov dword [rax], reloc.WS2_32.dll_setsockopt
mov eax, 0xffffffff
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
call fcn.1400371cc
mov dword [rax], reloc.WS2_32.dll_listen
mov eax, 0xffffffff
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
call fcn.1400371cc
cmp dword [rax], 2
jne 0x1400e8f2b
mov rcx, rdi
call fcn.1400e93d0
mov rbx, rax
test rax, rax
je 0x1400e8d23
mov edx, dword [rsp + 0x68]
mov r8d, esi
mov rcx, rbx
call fcn.1401bfdf0
mov edi, eax
test eax, eax
jns 0x1400e8f19
call fcn.1400371cc
cmp dword [rax], 0xd
jne 0x1400e8f19
test dword [rsp + 0x68], 0x100
je 0x1400e8f19
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400e8eed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400e8b80
mov rcx, rbx
call fcn.1400305a4
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
test al, 0x10
je 0x1400e8f0e
call fcn.1400371cc
mov rcx, rbx
mov dword [rax], reloc.WS2_32.dll_setsockopt
call fcn.1400305a4
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
call fcn.1400371cc
mov dword [rax], reloc.WS2_32.dll_listen
mov rcx, rbx
call fcn.1400305a4
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