Function at 0x1400409f0
Capabilities:
Get thread local storage value
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x1400f7368]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov r15, r9
mov rbp, r8
mov rbx, rdx
mov rsi, rcx
mov r14, qword [rsp + 0xe0]
mov r13, qword [rsp + 0xe8]
mov rax, qword [r14]
mov r12, qword [rax + 0x78]
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x30], r14
mov ecx, dword [0x1401000b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140040a5a
mov rdx, qword [rax + 8]
jmp 0x140040a5c
xor edx, edx
mov r8d, 0xc0
call fcn.14003d990
mov rdi, rax
mov qword [rsp + 0x38], rax
xor ecx, ecx
mov qword [rax + 0x20], rcx
lea rax, [0x140040e20]
mov qword [rdi + 0x28], rax
mov qword [rdi], rcx
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rcx
mov qword [rdi + 0x18], rcx
mov dword [rdi + 0x30], ecx
movups xmm0, xmmword [r15]
movups xmmword [rdi + 0x38], xmm0
lea rdx, [rdi + 0x48]
mov rax, qword [r14]
mov qword [r14], rcx
mov qword [rdx], rax
lea rcx, [rdi + 0x50]
mov r8, r13
call fcn.140040fc0
mov qword [rsp + 0x40], rdi
test r12, r12
je 0x140040b29
mov r8d, 0x58
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x68]
call fcn.140038010
lea rax, vtable.asio::detail::cancellation_handler_class_asio::detail::win_iocp_handle_service::iocp_op_cancellation_.0
mov rdx, qword [rsp + 0x48]
mov qword [rdx], rax
mov rax, qword [rbx]
xor r14d, r14d
mov qword [rdx + 0x28], r14
lea r8, [0x140039330]
mov qword [rdx + 0x30], r8
mov qword [rdx + 8], r14
mov qword [rdx + 0x10], r14
mov qword [rdx + 0x18], r14
mov qword [rdx + 0x20], r14
mov dword [rdx + 0x38], r14d
mov qword [rdx + 0x40], rax
mov qword [rdx + 0x48], rdi
mov rax, qword [rsp + 0x50]
mov qword [rdx + 0x50], rax
mov rax, qword [rsp + 0x68]
mov qword [rax], rdx
lea rdi, [rdx + 8]
jmp 0x140040b2c
xor r14d, r14d
movups xmm0, xmmword [r15]
movups xmmword [rsp + 0x58], xmm0
cmp dword [rbx + 8], 0
jne 0x140040b46
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbx + 8], eax
jmp 0x140040b58
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 8], eax
je 0x140040b58
mov dword [rbx + 8], 0xffffffff
mov rax, qword [rsi + 0x28]
lock inc dword [rax + 0x30]
cmp qword [rbx], 0xffffffffffffffff
jne 0x140040b7d
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rdi
mov rcx, qword [rsi + 0x28]
call fcn.140038cf0
jmp 0x140040bfb
mov r8, qword [rsp + 0x60]
test r8, r8
jne 0x140040b98
xor r9d, r9d
mov rdx, rdi
mov rcx, qword [rsi + 0x28]
call fcn.140038cf0
jmp 0x140040bfb
mov dword [rsp + 0x68], r14d
mov dword [rdi + 0x10], ebp
shr rbp, 0x20
mov dword [rdi + 0x14], ebp
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x68]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x140040bef
cmp eax, 0x3e5
je 0x140040bef
cmp eax, 0xea
je 0x140040bef
mov r9d, dword [rsp + 0x68]
mov r8d, eax
mov rdx, rdi
mov rcx, qword [rsi + 0x28]
call fcn.140038cf0
jmp 0x140040bfb
mov rdx, rdi
mov rcx, qword [rsi + 0x28]
call fcn.140038c60
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
lea rcx, [rsp + 0x30]
call fcn.140040d50
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.14008c930
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret