Function at 0x1401403e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x108
mov rdi, qword [0x140207460]
mov r15d, dword [rsp + 0x170]
mov rax, qword [rdi]
mov qword [rsp + 0xf8], rax
xor eax, eax
cmp qword [rcx + 0x78], 0
mov rsi, rcx
mov rbx, rdx
mov r13, r8
jne 0x140140926
mov edx, dword [r8]
test edx, edx
js 0x14014042f
test r9d, r9d
jne 0x140140480
test r15d, r15d
jne 0x140140470
mov rdi, qword [0x140207460]
mov rax, qword [rsp + 0xf8]
sub rax, qword [rdi]
jne 0x140140940
mov rdx, r13
mov rcx, rsi
add rsp, 0x108
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140140370
mov r8, r13
xor edx, edx
mov rcx, rsi
call fcn.14013fd60
jmp 0x140140434
mov rax, qword [rcx]
lea r8, [0x1401ef940]
mov edx, 0x1251
lea rcx, str.merge_ort.c
lea r9, [0x1401f1596]
mov qword [rsp + 0x20], rax
call fcn.14008f540
mov r8, qword [r13 + 8]
mov rdx, rbx
mov rcx, rsi
call fcn.140136010
test eax, eax
jne 0x14014087c
mov rax, qword [rsi]
mov edx, 0x1259
lea r9, [0x1401f1596]
lea r8, [0x1401ef940]
lea rcx, str.merge_ort.c
lea rdi, [rsp + 0x70]
mov qword [rsp + 0x20], rax
call fcn.14008f750
mov rax, qword [rsi]
lea r8, [0x1401ef940]
mov edx, 0x125b
lea rcx, str.merge_ort.c
lea r9, str.record_conflicted
mov qword [rsp + 0x20], rax
call fcn.14008f540
xor eax, eax
mov rdx, qword [r13 + 0x18]
mov r8, qword [rsi]
mov ecx, 0x10
mov qword [rsp + 0x30], rdi
rep stosq qword [rdi], rax
lea rax, [0x1401f0e0f]
mov qword [rsi + 0x78], rdx
mov rbp, qword [r8 + 0xf0]
mov qword [rsp + 0x78], rax
test byte [rdx + 0x68], 1
je 0x140140960
mov eax, dword [rdx + 0x58]
test eax, eax
je 0x1401407bc
lea r14, [rsp + 0x50]
lea rcx, [rdx + 0x40]
mov rdx, r14
call fcn.14001fd30
jmp 0x140140584
mov rcx, qword [rax + 0x10]
mov rdx, rbp
call fcn.140016760
test eax, eax
je 0x1401408ff
mov rcx, r14
call fcn.14001fd50
test rax, rax
jne 0x140140570
mov rax, qword [rsi + 0x78]
mov rdx, r14
mov r12d, dword [rbp + 0xc]
mov qword [rsp + 0x70], rbp
or byte [rsp + 0xe8], 0x13
lea rcx, [rax + 0x40]
call fcn.14001fd30
mov rcx, r14
call fcn.14001fd50
test rax, rax
je 0x14014078d
mov qword [rsp + 0x40], r13
xor edi, edi
mov dword [rsp + 0x4c], r15d
mov qword [rsp + 0x38], rsi
mov esi, edi
nop word cs:[rax + rax]
mov r13, qword [rax + 0x18]
mov rdi, qword [rax + 0x10]
test r13, r13
je 0x14014090c
test byte [r13 + 0x28], 2
jne 0x14014090c
mov ebx, dword [rbp + 0xc]
mov dword [rbp + 0xc], r12d
mov rcx, rdi
call sub.msvcrt.dll_strlen
mov rdx, rdi
mov rcx, rbp
mov r8d, eax
call fcn.140048130
mov r12d, dword [rbp + 0xc]
mov dword [rbp + 0xc], ebx
test eax, eax
js 0x140140740
mov rdx, qword [rbp]
cdqe
mov rbx, qword [rdx + rax*8]
mov eax, dword [rbx + 0x38]
test eax, 0x40000000
jne 0x140140768
or eax, 0x20000
mov dword [rbx + 0x38], eax
lea r15, [r13 + 0x40]
xor ebx, ebx
movzx eax, byte [r13 + 0xd0]
mov ecx, ebx
add ebx, 1
shr al, 2
and eax, 7
shr eax, cl
test al, 1
je 0x140140697
movzx edx, word [r15 + 0x24]
mov dword [rsp + 0x20], ebx
mov r8, r15
mov rcx, rbp
mov dword [rsp + 0x28], 0
mov r9, rdi
call fcn.14004a740
mov r8d, 8
mov rcx, rbp
mov rdx, rax
call fcn.14004a990
add r15, 0x28
cmp ebx, 3
jne 0x14014064e
mov rcx, r14
call fcn.14001fd50
test rax, rax
jne 0x1401405e0
mov edx, 1
mov rcx, rbp
mov r13, qword [rsp + 0x40]
mov edi, esi
mov r15d, dword [rsp + 0x4c]
mov rsi, qword [rsp + 0x38]
call fcn.140048210
mov edx, dword [rbp + 0xc]
cmp rdx, 1
ja 0x1401408e4
test edi, edi
je 0x1401407b9
mov qword [rsi + 0x78], 0
mov rdx, r13
mov rcx, rsi
mov dword [r13], 0xffffffff
call fcn.140140370
mov rdi, qword [0x140207460]
mov rax, qword [rsp + 0xf8]
sub rax, qword [rdi]
jne 0x140140940
mov rax, qword [rsi]
lea r9, str.record_conflicted
mov edx, 0x1262
lea r8, [0x1401ef940]
mov qword [rsp + 0x170], rax
jmp 0x1401408c5
movzx eax, byte [r13 + 0xd0]
and eax, 0x1c
cmp al, 4
jne 0x140140945
mov rdx, rdi
mov rcx, rbp
call fcn.1400e52b0
jmp 0x140140648
mov r8, qword [rsp + 0x30]
xor r9d, r9d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], 0
call fcn.1401a0b60
or esi, eax
mov eax, dword [rbx + 0x38]
jmp 0x140140640
mov edx, 1
mov rcx, rbp
call fcn.140048210
mov edx, dword [rbp + 0xc]
mov rcx, qword [rbp]
cmp rdx, 1
jbe 0x1401407b9
lea r9, [0x1400449e0]
mov r8d, 8
call fcn.14007d390
mov r8, qword [rsi]
mov qword [rsi + 0x78], 0
lea r9, str.record_conflicted
mov edx, 0x1267
lea rcx, str.merge_ort.c
mov qword [rsp + 0x20], r8
lea r8, [0x1401ef940]
call fcn.14008f750
mov rax, qword [rsi]
mov edx, 0x1269
lea r9, str.write_auto_merge
lea r8, [0x1401ef940]
lea rcx, str.merge_ort.c
mov qword [rsp + 0x20], rax
call fcn.14008f540
mov rcx, qword [rsi]
call fcn.140039400
lea rdx, [0x1401f1619]
mov rcx, rax
call fcn.1400a67c0
mov rbx, rax
mov rax, qword [r13 + 8]
lea rcx, [rax + 4]
call fcn.1400202e0
lea rdx, [0x1401f161b]
mov rcx, rbx
mov r8, rax
call sub.libintl_8.dll_libintl_fprintf
mov rcx, rbx
call sub.msvcrt.dll_fclose
mov rax, qword [rsi]
mov edx, 0x126e
lea r9, str.write_auto_merge
lea r8, [0x1401ef940]
lea rcx, str.merge_ort.c
mov qword [rsp + 0x20], rax
call fcn.14008f750
jmp 0x14014042f
mov dword [r13], 0xffffffff
mov rdx, r13
mov rcx, rsi
call fcn.140140370
mov rdi, qword [0x140207460]
mov rax, qword [rsp + 0xf8]
sub rax, qword [rdi]
jne 0x140140940
mov rax, qword [rsi]
lea r9, [0x1401f1596]
mov edx, 0x1256
lea r8, [0x1401ef940]
mov qword [rsp + 0x170], rax
lea rcx, str.merge_ort.c
add rsp, 0x108
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.14008f750
mov rcx, qword [rbp]
lea r9, [0x1400449e0]
mov r8d, 8
call fcn.14007d390
jmp 0x1401406dc
mov rcx, rbp
call fcn.14007beb0
jmp 0x140140591
mov r8d, 0x1166
lea rdx, str.merge_ort.c
lea rcx, str.ci___ci__merged.clean
call qword [sym.imp.msvcrt.dll__assert]
mov r8d, 0x124c
lea rdx, str.merge_ort.c
lea rcx, [0x1401efc16]
call qword [sym.imp.msvcrt.dll__assert]
call fcn.1401be670
mov r9, rdi
lea r8, str.Conflicted__s_but_nothing_in_basic_working_tree_or_index__this_shouldnt_happen
mov edx, 0x117b
lea rcx, str.merge_ort.c
call fcn.1400a0ca0
lea r8, [0x1401f0060]
mov edx, 0x134
lea rcx, [0x1401f007f]
call fcn.1400a0ca0
nop
nop dword [rax]