Function at 0x1400407a0
Capabilities:
Get thread local storage value
Write 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, 0x70
mov rax, qword [0x1400f7368]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r14, r9
mov r15, r8
mov rbx, rdx
mov rsi, rcx
mov rbp, qword [rsp + 0xd0]
mov r13, qword [rsp + 0xd8]
mov rax, qword [rbp]
mov r12, qword [rax + 0x78]
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x30], rbp
mov ecx, dword [0x1401000b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140040808
mov rdx, qword [rax + 8]
jmp 0x14004080a
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, [0x1400411e0]
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 [r14]
movups xmmword [rdi + 0x38], xmm0
lea rdx, [rdi + 0x48]
mov rax, qword [rbp]
mov qword [rbp], rcx
mov qword [rdx], rax
lea rcx, [rdi + 0x50]
mov r8, r13
call fcn.140040fc0
mov qword [rsp + 0x40], rdi
test r12, r12
je 0x1400408d9
mov r8d, 0x58
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x58]
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 r13d, r13d
mov qword [rdx + 0x28], r13
lea r8, [0x140039330]
mov qword [rdx + 0x30], r8
mov qword [rdx + 8], r13
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], r13
mov qword [rdx + 0x20], r13
mov dword [rdx + 0x38], r13d
mov qword [rdx + 0x40], rax
mov qword [rdx + 0x48], rdi
mov rax, qword [rsp + 0x50]
mov qword [rdx + 0x50], rax
mov rax, qword [rsp + 0x58]
mov qword [rax], rdx
lea rdi, [rdx + 8]
jmp 0x1400408dc
xor r13d, r13d
mov r12, qword [r14]
mov rbp, qword [r14 + 8]
cmp dword [rbx + 8], 0
jne 0x1400408f4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rbx + 8], eax
jmp 0x140040906
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbx + 8], eax
je 0x140040906
mov dword [rbx + 8], 0xffffffff
mov rax, qword [rsi + 0x28]
lock inc dword [rax + 0x30]
cmp qword [rbx], 0xffffffffffffffff
jne 0x14004092b
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rdi
mov rcx, qword [rsi + 0x28]
call fcn.140038cf0
jmp 0x1400409aa
test rbp, rbp
jne 0x140040944
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, qword [rsi + 0x28]
call fcn.140038cf0
jmp 0x1400409aa
mov dword [rsp + 0x58], r13d
mov dword [rdi + 0x10], r15d
shr r15, 0x20
mov dword [rdi + 0x14], r15d
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x58]
mov r8d, ebp
mov rdx, r12
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x14004099e
cmp eax, 0x3e5
je 0x14004099e
cmp eax, 0xea
je 0x14004099e
mov r9d, dword [rsp + 0x58]
mov r8d, eax
mov rdx, rdi
mov rcx, qword [rsi + 0x28]
call fcn.140038cf0
jmp 0x1400409aa
mov rdx, rdi
mov rcx, qword [rsi + 0x28]
call fcn.140038c60
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
lea rcx, [rsp + 0x30]
call fcn.140040d50
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14008c930
mov rbx, qword [rsp + 0xc0]
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret