Function at 0x1400281e8
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x70
mov rbx, rcx
lea rcx, [0x140118f08]
mov edi, r9d
mov rsi, rdx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r13d, r13d
lea r12, [0x140117a58]
cmp qword [rsp + 0xd8], r13
jne 0x14002824a
mov ecx, dword [0x1401178b4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp rax, r13
je 0x14002825c
cmp qword [rax], r13
je 0x14002825c
mov r12, rax
jmp 0x14002825c
cmp qword [rsp + 0xd8], 0xffffffffffffffff
cmovne r12, qword [rsp + 0xd8]
mov word [rsp + 0x50], r13w
mov r15d, edi
mov r13d, edi
mov rcx, rsi
and r13d, 0x10
and r15d, 0x20
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [r12 + 0x18]
sub edx, dword [r12 + 0x10]
movsxd rsi, eax
lea ecx, [rsi + 0x532]
mov dword [rsp + 0x40], esi
cmp edx, ecx
jge 0x1400282b0
mov rcx, qword [r12 + 0x10]
lea rdx, [rsi + rcx + 0x1049c]
lea rcx, [r12 + 8]
mov qword [r12 + 0x18], rdx
call fcn.14005a250
xor r11d, r11d
cmp r15d, r11d
jne 0x14002844a
mov r9, qword [rsp + 0xd0]
cmp r9, r11
je 0x140028358
test byte [rbx + 0x10], 0x40
je 0x140028358
mov rdx, qword [rbx + 0x80]
cmp r9, rdx
jb 0x140028358
movsxd rax, dword [rbx + 0x8c]
lea rcx, [rdx + rax*2]
cmp r9, rcx
jae 0x140028358
mov r8d, r11d
cmp rdx, r9
ja 0x140028347
movzx r11d, word [rbx + 0x88]
movzx ecx, word [rbx + 0x8a]
movzx r10d, word [rbx + 0x90]
jmp 0x140028323
cmp cx, ax
je 0x14002832c
cmp r10w, ax
je 0x14002832c
add rdx, 2
movzx eax, word [rdx]
cmp r11w, ax
jne 0x140028314
cmp cx, word [rdx]
jne 0x140028335
add rdx, 2
cmp r10w, word [rdx]
jne 0x14002833f
add rdx, 2
inc r8d
cmp rdx, r9
jbe 0x140028323
lea rdx, str._ld_t
lea rcx, [rsp + 0x50]
call fcn.1400157b8
test byte [rbx + 0x10], 0x20
je 0x1400283ff
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rcx, qword [0x140117ac0]
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.1400157b8
mov edi, dword [rsp + 0xc8]
mov esi, dword [rsp + 0x40]
jmp 0x14002841e
mov rcx, qword [r12 + 0x10]
mov rax, qword [r12 + 8]
lea r8, [rsp + 0x50]
lea rcx, [rax + rcx*2]
lea rdx, [0x1400fd3b4]
call fcn.1400157b8
inc eax
movsxd rcx, eax
mov eax, r13d
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]
mov rdx, qword [rsp + 0xb8]
movsxd r10, esi
lea rcx, [rax + rcx*2]
lea r8, [r10 + r10]
call fcn.14001b7a8
add qword [r12 + 0x10], r10
mov rdx, qword [r12 + 0x10]
cmp r15d, r11d
jne 0x140028499
lea rax, [rdx + 1]
neg r13d
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 edi, r11d
jne 0x140028550
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.1400157b8
xor r13d, r13d
cmp eax, r13d
jle 0x1400284ea
cdqe
lea rbx, [rdi + rax*2]
mov qword [rsp + 0x30], r13
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 0x14002851f
cdqe
lea rbx, [rbx + rax*2]
jmp 0x140028534
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 0x140028592
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 0x1400285a4
cmp byte [r12 + 0x29], r11b
je 0x1400285b3
mov rdx, qword [rsp + 0xd8]
mov cl, 1
call fcn.140016bd4
lea rcx, [0x140118f08]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
add rsp, 0x70
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret