Function at 0x23196a490
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 r12d, dword [global_was_init]
test r12d, r12d
je 0x23196a4c8
lea rsp, [rbp + 8]
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
mov dword [global_was_init], 1
call dbg.__mingw_GetSectionCount
cdqe
lea rax, [rax + rax*4]
lea rax, [rax*8 + 0xf]
and rax, 0xfffffffffffffff0
call fcn.23196b280
mov r13, qword [0x231ee7af0]
mov rbx, qword [0x231ee7b00]
sub rsp, rax
mov dword [0x231f22064], 0
lea rax, [rsp + 0x30]
mov qword [0x231f22068], rax
mov rax, r13
sub rax, rbx
cmp rax, 7
jle 0x23196a4b1
cmp rax, 0xb
jg 0x23196a688
mov eax, dword [rbx]
test eax, eax
jne 0x23196a790
mov eax, dword [rbx + 4]
test eax, eax
jne 0x23196a790
mov edx, dword [rbx + 8]
cmp edx, 1
jne 0x23196a7e6
add rbx, 0xc
cmp rbx, r13
jae 0x23196a4b1
mov r14, qword [0x231ee7ae0]
mov r15d, 0xffffffff
jmp 0x23196a5d3
cmp ecx, 8
je 0x23196a6b0
cmp ecx, 0x10
jne 0x23196a7c2
movzx esi, word [rdi]
and edx, 0xc0
test si, si
jns 0x23196a778
or rsi, 0xffffffffffff0000
sub rsi, rax
add rsi, r9
test edx, edx
jne 0x23196a5bf
cmp rsi, 0xffff
jg 0x23196a7d0
cmp rsi, 0xffffffffffff8000
jl 0x23196a7d0
mov rcx, rdi
call dbg.mark_section_writable
mov word [rdi], si
add rbx, 0xc
cmp rbx, r13
jae 0x23196a630
mov eax, dword [rbx]
mov edx, dword [rbx + 8]
mov edi, dword [rbx + 4]
add rax, r14
movzx ecx, dl
mov r9, qword [rax]
add rdi, r14
cmp ecx, 0x20
je 0x23196a700
jbe 0x23196a570
cmp ecx, 0x40
jne 0x23196a7c2
mov rsi, qword [rdi]
sub rsi, rax
add rsi, r9
and edx, 0xc0
jne 0x23196a619
test rsi, rsi
jns 0x23196a7d0
mov rcx, rdi
add rbx, 0xc
call dbg.mark_section_writable
mov qword [rdi], rsi
cmp rbx, r13
jb 0x23196a5d3
nop dword [rax]
mov ecx, dword [0x231f22064]
test ecx, ecx
jle 0x23196a4b1
mov rsi, qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor ebx, ebx
lea rdi, [rbp - 4]
nop dword [rax + rax]
mov rax, qword [0x231f22068]
add rax, rbx
mov r8d, dword [rax]
test r8d, r8d
je 0x23196a66f
mov rdx, qword [rax + 0x10]
mov rcx, qword [rax + 8]
mov r9, rdi
call rsi
add r12d, 1
add rbx, 0x28
cmp r12d, dword [0x231f22064]
jl 0x23196a650
jmp 0x23196a4b1
mov edx, dword [rbx]
test edx, edx
jne 0x23196a790
mov eax, dword [rbx + 4]
mov ecx, eax
or ecx, dword [rbx + 8]
jne 0x23196a538
add rbx, 0xc
jmp 0x23196a52b
movzx esi, byte [rdi]
and edx, 0xc0
test sil, sil
jns 0x23196a760
or rsi, 0xffffffffffffff00
sub rsi, rax
add rsi, r9
test edx, edx
jne 0x23196a6ea
cmp rsi, 0xff
jg 0x23196a7d0
cmp rsi, 0xffffffffffffff80
jl 0x23196a7d0
mov rcx, rdi
call dbg.mark_section_writable
mov byte [rdi], sil
jmp 0x23196a5ca
mov esi, dword [rdi]
and edx, 0xc0
test esi, esi
jns 0x23196a750
movabs r11, 0xffffffff00000000
or rsi, r11
sub rsi, rax
add rsi, r9
test edx, edx
jne 0x23196a73f
cmp rsi, r15
jg 0x23196a7d0
movabs rax, 0xffffffff7fffffff
cmp rsi, rax
jle 0x23196a7d0
mov rcx, rdi
call dbg.mark_section_writable
mov dword [rdi], esi
jmp 0x23196a5ca
sub rsi, rax
add rsi, r9
test edx, edx
je 0x23196a723
jmp 0x23196a73f
sub rsi, rax
add rsi, r9
test edx, edx
je 0x23196a6d3
jmp 0x23196a6ea
sub rsi, rax
add rsi, r9
test edx, edx
je 0x23196a5a5
jmp 0x23196a5bf
cmp rbx, r13
jae 0x23196a4b1
mov r14, qword [0x231ee7ae0]
mov esi, dword [rbx + 4]
mov edi, dword [rbx]
add rbx, 8
add rsi, r14
add edi, dword [rsi]
mov rcx, rsi
call dbg.mark_section_writable
mov dword [rsi], edi
cmp rbx, r13
jb 0x23196a7a0
jmp 0x23196a630
mov edx, ecx
lea rcx, str.__Unknown_pseudo_relocation_bit_size__d._n
call dbg.__report_error
mov qword [rsp + 0x20], rsi
mov edx, ecx
mov r8, rdi
lea rcx, str._d_bit_pseudo_relocation_at__p_out_of_range__targeting__p__yielding_the_value__p._n
call dbg.__report_error
lea rcx, str.__Unknown_pseudo_relocation_protocol_version__d._n
call dbg.__report_error
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop