Function at 0x14001fa80
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 0x14001fc9f
cmp qword [r8 + 0x18], 0x10
jb 0x14001fac3
mov rdi, qword [r8]
jmp 0x14001fac6
mov rdi, r14
call fcn.14000b6b4
mov rcx, rax
test rax, rax
jne 0x14001fade
mov ecx, 0x80004005
call fcn.14000b9ec
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 0x14001fb3b
test rdi, 0xffffffffffff0000
jne 0x14001fb26
movzx edi, di
xor edx, edx
mov ecx, edi
call fcn.14000b0cc
test rax, rax
je 0x14001fb56
mov r8d, edi
mov rdx, rax
lea rcx, [rbp + 0xd8]
call fcn.1400080f4
jmp 0x14001fb4f
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [rdi + rax], 0
jne 0x14001fb30
jmp 0x14001fb3d
xor eax, eax
mov r8d, eax
mov rdx, rdi
lea rcx, [rbp + 0xd8]
call fcn.140007a14
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 0x14001fb82
mov edx, 0x104
lea rcx, [rbp + 0xd8]
call fcn.14000799c
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.140156670
test eax, eax
js 0x14001fdee
cmp eax, dword [rbx - 0xc]
jg 0x14001fdee
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 0x14001fbcc
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.14001cfb0
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 0x14001fcae
test rdi, rdi
je 0x14001fc87
mov rax, qword [rsp + 0x40]
sub rax, rdi
cmp rax, 0x1000
jb 0x14001fc7e
test dil, 0x1f
je 0x14001fc51
call fcn.140128ff4
int3
mov rax, qword [rdi - 8]
cmp rax, rdi
jb 0x14001fc60
call fcn.140128ff4
int3
sub rdi, rax
cmp rdi, 8
jae 0x14001fc6f
call fcn.140128ff4
int3
cmp rdi, 0x27
jbe 0x14001fc7b
call fcn.140128ff4
int3
mov rdi, rax
mov rcx, rdi
call fcn.1400eb7f4
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x14001fc9f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, r14
call fcn.14000c7e0
xor al, al
jmp 0x14001fdf9
lea rcx, [rbp - 0x80]
call fcn.140014f90
lea rdx, [r15 + 0x28]
cmp qword [rdx + 0x18], 0x10
jb 0x14001fcc5
mov rdx, qword [rdx]
lea rcx, [rbp - 0x80]
call fcn.140014fd0
mov r8d, r12d
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.1400150c0
test al, al
jne 0x14001fd30
test rdi, rdi
je 0x14001fc87
mov rax, qword [rsp + 0x40]
sub rax, rdi
cmp rax, 0x1000
jb 0x14001fc7e
test dil, 0x1f
je 0x14001fd02
call fcn.140128ff4
int3
mov rax, qword [rdi - 8]
cmp rax, rdi
jb 0x14001fd11
call fcn.140128ff4
int3
sub rdi, rax
cmp rdi, 8
jae 0x14001fd20
call fcn.140128ff4
int3
cmp rdi, 0x27
jbe 0x14001fc7b
call fcn.140128ff4
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.14000ca10
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.14001ee50
movzx edi, al
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14001fdc8
mov rcx, qword [rsp + 0x40]
sub rcx, rdx
cmp rcx, 0x1000
jb 0x14001fdbf
test dl, 0x1f
je 0x14001fd92
call fcn.140128ff4
int3
mov rax, qword [rdx - 8]
cmp rax, rdx
jb 0x14001fda1
call fcn.140128ff4
int3
sub rdx, rax
cmp rdx, 8
jae 0x14001fdb0
call fcn.140128ff4
int3
cmp rdx, 0x27
jbe 0x14001fdbc
call fcn.140128ff4
int3
mov rdx, rax
mov rcx, rdx
call fcn.1400eb7f4
nop
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], esi
sub esi, 1
jg 0x14001fde0
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.WS2_32.dll_htonl]
nop
mov rcx, r14
call fcn.14000c7e0
movzx eax, dil
jmp 0x14001fdf9
mov ecx, 0x80070057
call fcn.14000b9ec
nop
add rsp, 0x180
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret