Function at 0x14000f590
Capabilities:
Check if file exists
Create directory
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov r14, r8
mov r12, rdx
mov r15, rcx
cmp qword [rcx], 0xffffffffffffffff
je 0x14000f7af
cmp qword [r8 + 0x18], 0x10
jb 0x14000f5d3
mov rdi, qword [r8]
jmp 0x14000f5d6
mov rdi, r14
call fcn.14000bcc0
mov rcx, rax
test rax, rax
jne 0x14000f5ee
mov ecx, 0x80004005
call fcn.14000b790
int3
mov rax, qword [rax]
call qword [rax + Ordinal_26]
lea rbx, [rax + 0x18]
mov qword [rbp + 0xd8], rbx
or rsi, 0xffffffffffffffff
test rdi, rdi
je 0x14000f64b
test rdi, 0xffffffffffff0000
jne 0x14000f636
movzx edi, di
xor edx, edx
mov ecx, edi
call fcn.14000b6e0
test rax, rax
je 0x14000f666
mov r8d, edi
mov rdx, rax
lea rcx, [rbp + 0xd8]
call fcn.14000bdc0
jmp 0x14000f65f
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [rdi + rax], 0
jne 0x14000f640
jmp 0x14000f64d
xor eax, eax
mov r8d, eax
mov rdx, rdi
lea rcx, [rbp + 0xd8]
call fcn.14000c510
mov rbx, qword [rbp + 0xd8]
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x14000f692
mov edx, 0x104
lea rcx, [rbp + 0xd8]
call fcn.14000bfd0
mov rbx, qword [rbp + 0xd8]
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
call fcn.1400e521c
test eax, eax
js 0x14000f8fe
cmp eax, dword [rbx - 0xc]
jg 0x14000f8fe
mov dword [rbx - 0x10], eax
cdqe
mov byte [rax + rbx], 0
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x14000f6dc
xor r8d, r8d
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
xor r9d, r9d
xor r8d, r8d
mov edx, dword [r12]
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [r12 + 4]
lea rcx, [rsp + 0x30]
call fcn.14000b2a0
nop
mov dword [rbp + 0xc0], 0
mov r12, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x30]
sub r12, rdi
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0xc0]
mov r8d, r12d
mov rdx, rdi
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rbp + 0xc0]
cmp rax, r12
jae 0x14000f7be
test rdi, rdi
je 0x14000f797
mov rax, qword [rsp + 0x40]
sub rax, rdi
cmp rax, 0x1000
jb 0x14000f78e
test dil, 0x1f
je 0x14000f761
call fcn.1400e463c
int3
mov rax, qword [rdi - 8]
cmp rax, rdi
jb 0x14000f770
call fcn.1400e463c
int3
sub rdi, rax
cmp rdi, 8
jae 0x14000f77f
call fcn.1400e463c
int3
cmp rdi, 0x27
jbe 0x14000f78b
call fcn.1400e463c
int3
mov rdi, rax
mov rcx, rdi
call fcn.14007b810
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x14000f7af
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, r14
call fcn.140007010
xor al, al
jmp 0x14000f909
lea rcx, [rbp - 0x80]
call fcn.140008320
lea rdx, [r15 + 0x28]
cmp qword [rdx + 0x18], 0x10
jb 0x14000f7d5
mov rdx, qword [rdx]
lea rcx, [rbp - 0x80]
call fcn.140008360
mov r8d, r12d
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.140008450
test al, al
jne 0x14000f840
test rdi, rdi
je 0x14000f797
mov rax, qword [rsp + 0x40]
sub rax, rdi
cmp rax, 0x1000
jb 0x14000f78e
test dil, 0x1f
je 0x14000f812
call fcn.1400e463c
int3
mov rax, qword [rdi - 8]
cmp rax, rdi
jb 0x14000f821
call fcn.1400e463c
int3
sub rdi, rax
cmp rdi, 8
jae 0x14000f830
call fcn.1400e463c
int3
cmp rdi, 0x27
jbe 0x14000f78b
call fcn.1400e463c
nop
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x58], 0
mov byte [rsp + 0x48], 0
mov r9, rsi
xor r8d, r8d
mov rdx, r14
lea rcx, [rsp + 0x48]
call fcn.1400075c0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.14000e960
movzx edi, al
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14000f8d8
mov rcx, qword [rsp + 0x40]
sub rcx, rdx
cmp rcx, 0x1000
jb 0x14000f8cf
test dl, 0x1f
je 0x14000f8a2
call fcn.1400e463c
int3
mov rax, qword [rdx - 8]
cmp rax, rdx
jb 0x14000f8b1
call fcn.1400e463c
int3
sub rdx, rax
cmp rdx, 8
jae 0x14000f8c0
call fcn.1400e463c
int3
cmp rdx, 0x27
jbe 0x14000f8cc
call fcn.1400e463c
int3
mov rdx, rax
mov rcx, rdx
call fcn.14007b810
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x14000f8f0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, r14
call fcn.140007010
movzx eax, dil
jmp 0x14000f909
mov ecx, 0x80070057
call fcn.14000b790
nop
add rsp, 0x180
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret