Function at 0x140025258
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x70
mov rbx, rcx
lea rcx, [0x14012e0b8]
mov r13d, r9d
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r14d, r14d
lea r12, [0x14012cb08]
cmp qword [rsp + 0xd8], r14
jne 0x1400252b2
mov ecx, dword [0x14012c934]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, r14
je 0x1400252c4
cmp qword [rax], r14
je 0x1400252c4
mov r12, rax
jmp 0x1400252c4
cmp qword [rsp + 0xd8], 0xffffffffffffffff
cmovne r12, qword [rsp + 0xd8]
mov al, byte [rbx + 0x10]
mov ecx, 1
test al, 0x20
jne 0x1400252df
bt r13d, 0x10
mov dword [rsp + 0xc8], r14d
jae 0x1400252e6
mov dword [rsp + 0xc8], ecx
test al, 0x40
jne 0x1400252f4
bt r13d, 0x11
mov edi, r14d
jae 0x1400252f6
mov edi, ecx
mov rcx, qword [rsp + 0xb8]
mov word [rsp + 0x50], r14w
mov esi, r13d
and esi, 0x2020
mov r14d, r13d
mov dword [rsp + 0xb0], esi
and r14d, 0x1010
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [r12 + 0x18]
lea ecx, [rax + 0x532]
mov dword [rsp + 0x40], eax
sub edx, dword [r12 + 0x10]
cmp edx, ecx
jge 0x14002535b
mov rcx, qword [r12 + 0x10]
movsxd rdx, eax
lea rdx, [rdx + rcx + 0x1049c]
lea rcx, [r12 + 8]
mov qword [r12 + 0x18], rdx
call fcn.14005fb18
xor r11d, r11d
cmp esi, r11d
jne 0x1400254f7
mov r9, qword [rsp + 0xd0]
cmp r9, r11
je 0x140025405
cmp edi, r11d
je 0x140025405
mov rdx, qword [rbx + 0x80]
cmp r9, rdx
jb 0x140025405
movsxd rax, dword [rbx + 0x8c]
lea rcx, [rdx + rax*2]
cmp r9, rcx
jae 0x140025405
mov r8d, r11d
cmp rdx, r9
ja 0x1400253f1
movzx r11d, word [rbx + 0x88]
movzx ecx, word [rbx + 0x8a]
movzx r10d, word [rbx + 0x90]
jmp 0x1400253cd
cmp cx, ax
je 0x1400253d6
cmp r10w, ax
je 0x1400253d6
add rdx, 2
movzx eax, word [rdx]
cmp r11w, ax
jne 0x1400253be
cmp cx, word [rdx]
jne 0x1400253df
add rdx, 2
cmp r10w, word [rdx]
jne 0x1400253e9
add rdx, 2
inc r8d
cmp rdx, r9
jbe 0x1400253cd
lea rdx, str._ld_t
lea rcx, [rsp + 0x50]
call fcn.1400164f8
xor r11d, r11d
cmp dword [rsp + 0xc8], r11d
je 0x1400254ac
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [0x14012cb70]
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rax, r8
div rcx
mov edx, eax
mov rsi, rax
imul rdx, rcx
sub r8, rdx
xor edx, edx
imul r8, r8, 0xf4240
mov rax, r8
div rcx
mov edx, eax
mov rdi, rax
imul rdx, rcx
sub r8, rdx
xor edx, edx
imul r8, r8, 0xf4240
mov rax, r8
div rcx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rdx, qword [r12 + 0x10]
mov rcx, qword [r12 + 8]
mov r9d, esi
mov r8d, eax
lea rcx, [rcx + rdx*2]
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x30], rdx
lea rdx, str._lu_t_u._06lu_06lu_t_s
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], edi
call fcn.1400164f8
mov esi, dword [rsp + 0xb0]
jmp 0x1400254cb
mov rcx, qword [r12 + 0x10]
mov rax, qword [r12 + 8]
lea r8, [rsp + 0x50]
lea rcx, [rax + rcx*2]
lea rdx, [0x1401112fc]
call fcn.1400164f8
inc eax
movsxd rcx, eax
mov eax, r14d
add qword [r12 + 0x10], rcx
mov rdx, qword [r12 + 0x10]
neg eax
mov rax, qword [r12 + 8]
sbb cl, cl
and cl, 0x20
add cl, 0x5b
xor r11d, r11d
movsx ecx, cl
mov word [rax + rdx*2 - 2], cx
mov rcx, qword [r12 + 0x10]
mov rax, qword [r12 + 8]
movsxd r10, dword [rsp + 0x40]
mov rdx, qword [rsp + 0xb8]
lea r8, [r10 + r10]
lea rcx, [rax + rcx*2]
call fcn.14001c8fc
add qword [r12 + 0x10], r10
mov rdx, qword [r12 + 0x10]
cmp esi, r11d
jne 0x140025548
lea rax, [rdx + 1]
neg r14d
mov qword [r12 + 0x10], rax
sbb al, al
and al, 0x20
add al, 0x5d
movsx ecx, al
mov rax, qword [r12 + 8]
mov word [rax + rdx*2], cx
mov rcx, qword [r12 + 0x10]
mov rax, qword [r12 + 8]
mov word [rax + rcx*2], r11w
mov rcx, qword [r12 + 0x10]
cmp r13b, r11b
jne 0x1400255ff
mov rax, qword [r12 + 8]
mov rsi, qword [rsp + 0xc0]
lea rdx, str._t__lu__t:
lea rdi, [rax + rcx*2]
mov r8d, esi
mov rcx, rdi
mov rbx, rdi
call fcn.1400164f8
xor r14d, r14d
cmp eax, r14d
jle 0x140025599
cdqe
lea rbx, [rdi + rax*2]
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov r8d, esi
xor edx, edx
mov ecx, 0x1200
mov dword [rsp + 0x28], 0x400
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
xor r11d, r11d
cmp eax, r11d
jle 0x1400255ce
cdqe
lea rbx, [rbx + rax*2]
jmp 0x1400255e3
mov edx, 0xd
mov word [rbx], dx
mov edx, 0xa
add rbx, 4
mov word [rbx - 2], dx
mov rax, qword [r12 + 8]
sub rbx, rdi
sar rbx, 1
add qword [r12 + 0x10], rbx
mov rcx, qword [r12 + 0x10]
mov word [rax + rcx*2], r11w
jmp 0x140025641
lea rax, [rcx + 1]
mov edx, 0xd
mov qword [r12 + 0x10], rax
mov rax, qword [r12 + 8]
mov word [rax + rcx*2], dx
mov rcx, qword [r12 + 0x10]
mov edx, 0xa
lea rax, [rcx + 1]
mov qword [r12 + 0x10], rax
mov rax, qword [r12 + 8]
mov word [rax + rcx*2], dx
mov r8, qword [r12 + 0x10]
mov rax, qword [r12 + 8]
mov word [rax + r8*2], r11w
cmp qword [r12 + 0x10], 0x10000
jg 0x140025653
cmp byte [r12 + 0x29], r11b
je 0x140025662
mov rdx, qword [rsp + 0xd8]
mov cl, 1
call fcn.1400179c4
lea rcx, [0x14012e0b8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x70
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret