Function at 0x231966960
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov edi, dword [0x231f05070]
test edi, edi
je 0x231966990
lea rsp, [rbp + 8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov dword [0x231f05070], 1
call sym.__mingw_GetSectionCount
cdqe
lea rax, [rax + rax*4]
lea rax, [rax*8 + 0xf]
and rax, 0xfffffffffffffff0
call fcn.2319676c0
mov r13, qword [0x231ecd3f0]
mov dword [0x231f05074], 0
mov rbx, qword [0x231ecd400]
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [0x231f05078], rax
mov rax, r13
sub rax, rbx
cmp rax, 7
jle 0x23196697f
cmp rax, 0xb
mov edx, dword [rbx]
jg 0x231966b78
mov eax, dword [rbx]
test eax, eax
jne 0x231966c70
mov eax, dword [rbx + 4]
test eax, eax
jne 0x231966c70
mov edx, dword [rbx + 8]
cmp edx, 1
jne 0x231966cb2
add rbx, 0xc
cmp rbx, r13
jae 0x23196697f
mov r12, qword [0x231ecd3e0]
movabs r15, 0xffffffff7fffffff
jmp 0x231966a93
movzx esi, byte [r14]
and ecx, 0xc0
test sil, sil
jns 0x231966c58
or rsi, 0xffffffffffffff00
sub rsi, rax
add rsi, r9
test ecx, ecx
jne 0x231966a7b
cmp rsi, 0xff
jg 0x231966bbf
cmp rsi, 0xffffffffffffff80
jl 0x231966bbf
mov rcx, r14
call sym.mark_section_writable
mov byte [r14], sil
add rbx, 0xc
cmp rbx, r13
jae 0x231966b20
mov ecx, dword [rbx + 8]
mov eax, dword [rbx]
mov r8d, dword [rbx + 4]
movzx edx, cl
add rax, r12
cmp edx, 0x20
mov r9, qword [rax]
lea r14, [r8 + r12]
je 0x231966bd8
ja 0x231966ba0
cmp edx, 8
je 0x231966a40
cmp edx, 0x10
jne 0x231966ca6
movzx esi, word [r14]
and ecx, 0xc0
test si, si
jns 0x231966c40
or rsi, 0xffffffffffff0000
sub rsi, rax
add rsi, r9
test ecx, ecx
jne 0x231966b04
cmp rsi, 0xffffffffffff8000
jl 0x231966bbf
cmp rsi, 0xffff
jg 0x231966bbf
mov rcx, r14
add rbx, 0xc
call sym.mark_section_writable
cmp rbx, r13
mov word [r14], si
jb 0x231966a93
nop dword [rax]
mov edx, dword [0x231f05074]
test edx, edx
jle 0x23196697f
mov rsi, qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r12, [rbp - 4]
xor ebx, ebx
nop dword [rax + rax]
mov rax, qword [0x231f05078]
add rax, rbx
mov r8d, dword [rax]
test r8d, r8d
je 0x231966b5f
mov rdx, qword [rax + 0x10]
mov r9, r12
mov rcx, qword [rax + 8]
call rsi
add edi, 1
add rbx, 0x28
cmp edi, dword [0x231f05074]
jl 0x231966b40
jmp 0x23196697f
test edx, edx
jne 0x231966c70
mov eax, dword [rbx + 4]
mov edx, eax
or edx, dword [rbx + 8]
jne 0x231966a02
add rbx, 0xc
jmp 0x2319669f5
cmp edx, 0x40
jne 0x231966ca6
mov rsi, qword [r14]
sub rsi, rax
add rsi, r9
and ecx, 0xc0
jne 0x231966c20
test rsi, rsi
js 0x231966c20
mov qword [rsp + 0x20], rsi
lea rcx, str._d_bit_pseudo_relocation_at__p_out_of_range__targeting__p__yielding_the_value__p._n
mov r8, r14
call sym.__report_error
nop dword [rax + rax]
mov esi, dword [r14]
and ecx, 0xc0
test esi, esi
jns 0x231966c30
movabs r11, 0xffffffff00000000
or rsi, r11
sub rsi, rax
add rsi, r9
test ecx, ecx
jne 0x231966c0b
cmp rsi, r15
jle 0x231966bbf
mov eax, 0xffffffff
cmp rsi, rax
jg 0x231966bbf
mov rcx, r14
call sym.mark_section_writable
mov dword [r14], esi
jmp 0x231966a86
mov rcx, r14
call sym.mark_section_writable
mov qword [r14], rsi
jmp 0x231966a86
sub rsi, rax
add rsi, r9
test ecx, ecx
je 0x231966bfc
jmp 0x231966c0b
sub rsi, rax
add rsi, r9
test ecx, ecx
je 0x231966aea
jmp 0x231966b04
sub rsi, rax
add rsi, r9
test ecx, ecx
je 0x231966a64
jmp 0x231966a7b
cmp rbx, r13
jae 0x23196697f
mov r14, qword [0x231ecd3e0]
mov esi, dword [rbx + 4]
add rbx, 8
mov r12d, dword [rbx - 8]
add rsi, r14
add r12d, dword [rsi]
mov rcx, rsi
call sym.mark_section_writable
cmp rbx, r13
mov dword [rsi], r12d
jb 0x231966c80
jmp 0x231966b20
lea rcx, str.__Unknown_pseudo_relocation_bit_size__d._n
call sym.__report_error
lea rcx, str.__Unknown_pseudo_relocation_protocol_version__d._n
call sym.__report_error
nop
nop