Function at 0x100014944
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r13
sub rsp, 0x40
mov eax, dword [rcx + 0x3c]
xor esi, esi
mov rdi, rdx
cmp dword [rcx + 0x40], eax
mov rbp, rcx
jge 0x100014b61
or r13, 0xffffffffffffffff
test rdi, rdi
jne 0x1000149eb
lea ecx, [rdi + 0x78]
call fcn.100015a28
mov rdi, rax
test rax, rax
je 0x1000149b5
and dword [rax], 0
and qword [rax + 0x30], 0
and qword [rax + 0x38], 0
and qword [rax + 0x40], 0
and qword [rax + 0x48], 0
and qword [rax + 0x50], 0
and dword [rax + 0x28], 0
mov qword [rax + 8], r13
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x20], r13
jmp 0x1000149b7
xor edi, edi
test rdi, rdi
je 0x100014b36
mov eax, dword [rbp]
mov rcx, qword [rbp + 0x10]
mov r8, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x18]
mov dword [rdi], eax
mov qword [rdi + 8], rcx
test eax, eax
jne 0x1000149e3
mov rcx, rdi
call fcn.1000158dc
jmp 0x1000149eb
mov qword [rdi + 0x10], rdx
mov qword [rdi + 0x18], r8
xor esi, esi
cmp dword [rdi], esi
jne 0x100014aac
lea edx, [rsi + 1]
lea ecx, [rsi + 0x1a]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 1
and dword [rsp + 0x20], esi
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rdi + 0x18], rax
cmp rax, r13
jne 0x100014a29
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
jmp 0x100014b1e
mov rdx, qword [rdi + 8]
xor r9d, r9d
mov r8, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
test rax, rax
jne 0x100014a5c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rdi + 0x18]
mov esi, eax
call qword [sym.imp.WS2_32.dll_closesocket]
mov qword [rdi + 0x18], r13
jmp 0x100014b1e
xor edx, edx
lea rbx, [rdi + 0x58]
lea r8d, [rdx + 0x20]
mov rcx, rbx
call sub.msvcrt.dll_memset
mov r8, qword [rdi + 0x40]
mov rdx, qword [rdi + 0x18]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov ebx, 0x30
xor r9d, r9d
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call sub.MSWSOCK.dll_AcceptEx
test eax, eax
jne 0x100014b1e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
jmp 0x100014b15
cmp dword [rdi], 1
jne 0x100014b1e
cmp qword [rdi + 0x48], rsi
jne 0x100014ad8
mov ecx, 0x1000
call fcn.100015a28
mov dword [rdi + 0x28], 0x1000
mov qword [rdi + 0x48], rax
test rax, rax
jne 0x100014ad8
mov esi, 0x80200001
jmp 0x100014b1e
xor edx, edx
lea rbx, [rdi + 0x58]
lea r8d, [rdx + 0x20]
mov rcx, rbx
call sub.msvcrt.dll_memset
mov r8d, dword [rdi + 0x28]
mov rdx, qword [rdi + 0x48]
mov rcx, qword [rdi + 0x18]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100014b1e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp eax, 0x26
je 0x100014b1c
cmp eax, 0x3e5
jne 0x100014b1e
xor esi, esi
test esi, esi
jne 0x100014b3d
lock add dword [rbp + 0x40], 1
mov eax, dword [rbp + 0x3c]
xor edi, edi
cmp dword [rbp + 0x40], eax
jge 0x100014b61
jmp 0x10001496e
mov esi, 0x80200001
jmp 0x100014b61
mov rcx, qword [rdi + 0x40]
test rcx, rcx
je 0x100014b4b
call fcn.100015a7c
mov rcx, qword [rdi + 0x48]
test rcx, rcx
je 0x100014b59
call fcn.100015a7c
mov rcx, rdi
call fcn.100015a7c
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov eax, esi
add rsp, 0x40
pop r13
pop rdi
pop rsi
ret